/* Malermeisterbetrieb Gavrilovic */

@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f7f5f1;          /* Kalkweiß */
  --surface: #ece8e1;     /* warmes Grau */
  --surface-2: #e2ddd4;
  --line: #d6d0c6;
  --text: #34302c;
  --muted: #6b635b;
  --accent: #785b3c;      /* Umbra */
  --accent-dark: #6f5437;
  --dark: #2b2723;
  --on-dark: #f7f5f1;
  --on-dark-muted: #cfc8bf;
  --accent-light: #d2b48a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Tastaturfokus */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.header a:focus-visible, .header button:focus-visible, .header summary:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.footer a:focus-visible { outline-color: var(--accent-light); }

/* Skip-Link */
.skip {
  position: absolute; top: -100px; left: 12px; z-index: 100;
  background: var(--on-dark); color: var(--dark); padding: 10px 16px;
  font-size: 15px; font-weight: 400; text-decoration: none;
}
.skip:focus { top: 12px; }
h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: 1; }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
h1 em, h2 em { font-style: italic; }
h3 { font-size: 22px; font-weight: 400; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--tint { background: var(--surface); }
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.lead { font-size: clamp(20px, 2.2vw, 24px); color: var(--muted); max-width: 40ch; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--dark); color: var(--on-dark);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { text-decoration: none; line-height: 1; display: flex; flex-direction: column; gap: 7px; }
.brand strong { font-weight: 300; font-size: 20px; letter-spacing: .32em; }
.brand span { font-size: 10px; font-weight: 400; letter-spacing: .42em; color: var(--on-dark-muted); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 400; color: var(--on-dark-muted); }
.nav a:hover { color: var(--on-dark); }
.nav .btn--line { color: var(--on-dark) !important; border: 1px solid var(--on-dark); padding: 12px 24px; }
.nav .btn--line:hover { background: var(--on-dark); color: var(--dark) !important; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--text); color: var(--bg) !important;
  border: 0; padding: 13px 32px; font: inherit; font-size: 15px; font-weight: 400; letter-spacing: .06em;
}
.btn:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg) !important; }

.menu { display: none; }
.nav--legal { display: flex; }
@media (max-width: 860px) {
  .nav:not(.nav--legal) { display: none; }
  .nav--legal { display: flex; gap: 20px; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 400; padding: 12px 0; color: var(--on-dark); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu__panel { display: flex; }
  .menu__panel {
    display: none; flex-direction: column; gap: 14px;
    position: absolute; right: calc(-1 * var(--gutter)); top: 52px; width: 100vw; max-width: 320px;
    background: var(--dark); border-top: 1px solid #4a443e; padding: 24px;
  }
  .menu__panel a { text-decoration: none; color: var(--on-dark); padding: 6px 0; }
}

/* Hero */
.hero {
  position: relative; background: var(--dark); color: var(--on-dark);
  min-height: min(calc(100vh - 80px), 860px); display: flex; align-items: flex-end;
  padding: clamp(96px, 14vw, 200px) 0 clamp(56px, 7vw, 88px);
}
/* Foto später: background-image hier, Abdunklung über ::before */
.hero { background: var(--dark) url("../img/p4-showroom.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,39,35,.55), rgba(43,39,35,.85)); }
.hero .wrap { position: relative; width: 100%; }
.hero .eyebrow { color: #e0c9a6; } /* helles Beige, 9.2:1 auf #2b2723 */
.hero h1 { max-width: 11em; margin-bottom: 32px; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.hero__row p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); color: #e4ded6; max-width: 32em; }
.hero .btn { background: var(--on-dark); color: var(--dark) !important; white-space: nowrap; padding: 18px 34px; }
.hero .btn:hover { background: var(--accent-light); }
.hero__ph { position: absolute; right: 24px; top: 24px; background: rgba(247,245,241,.12); padding: 4px 10px; font-size: 13px; color: var(--on-dark-muted); }

/* Platzhalter für Fotos */
.ph {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 1px, var(--surface) 1px 14px);
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 13px; letter-spacing: .08em; color: var(--muted);
}
.ph span { background: var(--bg); padding: 4px 10px; }

/* Werte */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; background: transparent; border: none; margin-top: 56px; }
.values > div { background: transparent; border-top: 1px solid var(--text); padding: 24px 0 0; }
.values p { color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 56px; }
.service { border-top: 1px solid var(--text); padding-top: 22px; }
.service p { color: var(--muted); font-size: 17px; margin: 0; }
.service .num { font-size: 13px; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 10px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Aus einer Hand */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; }
.checklist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.split--text { align-items: center; }
.split--text .checklist { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__img { aspect-ratio: 4 / 3; order: -1; } .split--text .checklist { margin-top: 8px; } }

/* Referenzen */
.refs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 56px; }
.ref { grid-column: span 4; margin: 0; display: flex; flex-direction: column; }
.ref--wide { grid-column: span 8; grid-row: span 2; }
.ref--wide .ph { flex: 1; }
.ref .ph { aspect-ratio: 4 / 3; }
.ref--wide .ph { aspect-ratio: auto; height: 100%; min-height: 260px; }
.ref figcaption { font-size: 15px; color: var(--muted); padding-top: 10px; }
@media (max-width: 860px) { .ref, .ref--wide { grid-column: span 12; } .ref--wide .ph { aspect-ratio: 4 / 3; min-height: 0; } }

/* Vorher / Nachher */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin-top: 48px; }
.pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
.pair__img img { width: 100%; height: 100%; object-fit: cover; }
.pair__img span { position: absolute; left: 10px; top: 10px; background: rgba(247,245,241,.9); padding: 3px 10px; font-size: 13px; font-weight: 400; letter-spacing: .08em; }
@media (max-width: 860px) { .pairs { grid-template-columns: 1fr; } .pair__img { aspect-ratio: 4 / 5; } }

/* Partner & Marken */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.partner { background: var(--bg); padding: 36px 32px; }
.partner p { color: var(--muted); margin: 0; font-size: 17px; }
.brands-intro { margin-top: 48px; }
.brands { display: flex; flex-wrap: wrap; gap: 20px 64px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.brands span { font-size: 20px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

/* Über */
.about__img { aspect-ratio: 4 / 5; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.facts strong { display: block; font-size: 34px; font-weight: 300; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.contact address { font-style: normal; color: var(--muted); margin-top: 28px; }
.contact address a { color: var(--text); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--bg); border: 1px solid #8f877d; border-radius: 0;
  padding: 12px 14px; width: 100%;
  transition: border-color .2s ease;
}
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2334302c' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
input[type="file"] { padding: 10px; font-size: 15px; cursor: pointer; }
input[type="file"]::file-selector-button {
  background: transparent; color: var(--text); border: 1px solid var(--text); border-radius: 0;
  padding: 10px 18px; margin-right: 14px;
  font-family: "Jost", system-ui, sans-serif; font-size: 15px; font-weight: 400; letter-spacing: .04em;
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
input[type="file"]::file-selector-button:hover { background: var(--text); color: var(--bg); }
.hint { font-size: 14px; color: var(--muted); }
.hint.field--full { margin: 0 0 -8px; line-height: 1.4; }
.hidden { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--text); color: #cfc8bf; padding: 56px 0 40px; font-size: 15px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: #cfc8bf; text-decoration: none; margin-left: 24px; }
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: #fff; }

/* Rechtstexte */
.legal { max-width: 760px; padding: clamp(48px, 7vw, 96px) var(--gutter) var(--space); margin: 0 auto; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 24px; font-weight: 400; margin-top: 2em; }
.legal p, .legal li { font-size: 17px; }
.legal-stand { margin-top: 2em; }
.todo { background: #fff3cd; padding: 0 4px; }

::placeholder { color: #8f877d; opacity: 1; }
