/* ==========================================================
   Gänshirt raum & farbe – Stylesheet
   Farben und Abstände zentral anpassen: Abschnitt "Einstellungen"
   ========================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"),
       url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Einstellungen ---------- */
:root {
  --akzent: #155E63;          /* Buttons, Links – am besten Logofarbe eintragen */
  --text: #1E232B;
  --text-2: #3A424C;
  --text-3: #56606B;
  --grund: #FFFFFF;
  --flaeche: #EEF1F2;
  --linie: #D9DEE1;
  --platzhalter: #D8DBDA;

  /* Farben der Sortimentsbereiche */
  --innenraum: #56705C;
  --fassade: #97691B;
  --holz: #8B3A2B;
  --tapeten: #E0B0A6;
  --boden: #6B5B4E;
  --sonne: #E0B43C;

  --breite: 1200px;
  --rand: clamp(20px, 5vw, 48px);
  --abschnitt: clamp(56px, 8vw, 96px);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(38px, 5vw, 60px); font-stretch: 115%; letter-spacing: -0.015em; line-height: 1.03; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-stretch: 115%; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-stretch: 110%; line-height: 1.25; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 12px 16px; }

.container { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt { padding: var(--abschnitt) 0; }
.abschnitt--flaeche { background: var(--flaeche); }
.kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 40px; }
.kopf p { max-width: 680px; margin-top: 14px; font-size: 19px; color: var(--text-2); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }
.text-2 { color: var(--text-2); }

/* ---------- Farbleiste ---------- */
.farbleiste { display: flex; height: 6px; }
.farbleiste span { flex: 1; }
.farbleiste span:nth-child(1) { background: var(--innenraum); }
.farbleiste span:nth-child(2) { background: var(--fassade); }
.farbleiste span:nth-child(3) { background: var(--holz); }
.farbleiste span:nth-child(4) { background: var(--tapeten); }
.farbleiste span:nth-child(5) { background: var(--boden); }
.farbleiste span:nth-child(6) { background: var(--sonne); }

/* ---------- Buttons & Links ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px;
  border: 2px solid var(--akzent); border-radius: 3px;
  background: var(--akzent); color: #fff;
  font: inherit; font-size: 17px; font-weight: 700; text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn--rahmen { background: transparent; color: var(--text); border-color: var(--text); }
.btn--rahmen:hover { background: var(--text); color: #fff; filter: none; }
.btn--weiss { background: #fff; color: var(--akzent); border-color: #fff; }
.btn--weiss-rahmen { background: transparent; color: #fff; border-color: #fff; }
.btn--weiss-rahmen:hover { background: #fff; color: var(--akzent); filter: none; }
.textlink { font-weight: 700; color: var(--akzent); text-underline-offset: 3px; }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- Kopfzeile ---------- */
.header { border-bottom: 1px solid #E1E5E7; background: #fff; position: relative; z-index: 20; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.logo { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.logo b { font-size: 27px; line-height: 1; font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; }
.logo span { font-size: 14px; line-height: 1; font-weight: 500; color: var(--text-3); }
/* Logo als Bild: <a class="logo" href="index.html"><img src="images/logo.png" alt="Gänshirt raum & farbe" width="180"></a> */

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--akzent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .hat-unter { position: relative; }
.nav .unter {
  position: absolute; top: 100%; left: -18px; min-width: 230px;
  padding: 10px 0; background: #fff; border: 1px solid var(--linie);
  box-shadow: 0 12px 28px rgba(30, 35, 43, .12);
  display: none;
}
.nav .unter a { display: block; padding: 10px 18px; font-weight: 500; }
.nav .hat-unter:hover .unter, .nav .hat-unter:focus-within .unter { display: block; }
.header-tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--akzent); text-decoration: none; white-space: nowrap; }
.menu-btn { display: none; }

/* ---------- Einstieg (Startseite) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; align-items: center; padding: 64px 0 72px; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }

/* ---------- Foto-Platzhalter / Bilder ---------- */
.foto {
  position: relative; min-height: 220px; background: var(--platzhalter);
  display: flex; align-items: flex-end; padding: 20px; overflow: hidden;
}
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto span { position: relative; background: #fff; padding: 8px 12px; font-size: 14px; color: var(--text-2); }
.foto--hero { height: 480px; }
.foto--gross { height: 520px; }
.foto--karte { height: 200px; }

/* ---------- Öffnungszeiten-Karten ---------- */
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.karte { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.zeiten { margin: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr); row-gap: 4px; }
.zeiten dt { font-weight: 700; }
.zeiten dd { margin: 0; }
.adresse { color: var(--text-3); font-size: 16px; }
.karte__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 4px; font-size: 16px; }
.karte__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--akzent); text-decoration: none; min-height: 32px; }

/* ---------- Sortiment-Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.kachel { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--linie); background: #fff; transition: transform .15s ease; }
.kachel:hover { transform: translateY(-3px); }
.kachel__farbe { height: 200px; display: flex; align-items: flex-end; padding: 24px 26px; color: #fff; }
.kachel__farbe h3 { font-size: 30px; font-stretch: 115%; line-height: 1.1; }
.kachel p { padding: 18px 26px 22px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.f-innenraum { background: var(--innenraum); }
.f-fassade { background: var(--fassade); }
.f-holz { background: var(--holz); }
.f-tapeten { background: var(--tapeten); color: var(--text); }
.f-boden { background: var(--boden); }
.f-sonne { background: var(--sonne); color: var(--text); }

/* ---------- Zwei Spalten mit Bild ---------- */
.split { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: center; }
.split__text { display: flex; flex-direction: column; gap: 22px; }
.split__text p { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.tipp { background: #fff; padding: 20px 24px; }
.tipp strong { display: block; margin-bottom: 6px; }
.tipp p, .split__text .tipp p { font-size: 16px; line-height: 1.55; }
.aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }

/* ---------- Service ---------- */
.service { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.service__item { display: flex; gap: 18px; }
.service__icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--flaeche); color: var(--akzent); }
.service__icon svg { width: 26px; height: 26px; }
.service__item h3 { margin-bottom: 6px; }
.service__item p { font-size: 16px; color: var(--text-2); }
.abschnitt--flaeche .service__icon { background: #fff; }

/* ---------- Kontaktbalken ---------- */
.cta { background: var(--akzent); color: #fff; padding: 72px 0; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta h2 { font-size: clamp(28px, 3vw, 40px); }
.cta p { margin-top: 12px; font-size: 19px; color: rgba(255, 255, 255, .9); max-width: 640px; }

/* ---------- Bereichsseiten ---------- */
.brotkrumen { padding-top: 24px; font-size: 15px; color: var(--text-3); }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.brotkrumen li + li::before { content: "/"; margin-right: 8px; }
.brotkrumen a { color: var(--text-3); }
.brotkrumen [aria-current] { color: var(--text); font-weight: 600; }
.bereich-hero { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); margin-top: 20px; min-height: 440px; }
.bereich-hero__text { display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: clamp(28px, 4vw, 56px); color: #fff; }
.bereich-hero__text.f-tapeten, .bereich-hero__text.f-sonne { color: var(--text); }
.bereich-hero__text p { max-width: 560px; font-size: 19px; }
.bereich-hero .foto { min-height: 260px; }
.bereich-hero__text .btn { align-self: flex-start; background: #fff; color: var(--text); border-color: #fff; margin-top: 8px; }

.produkte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.produkt { display: flex; flex-direction: column; gap: 12px; }
.produkt h3 { font-size: 22px; margin-top: 6px; }
.produkt p { font-size: 16px; color: var(--text-2); }

.wissen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.wissen > div { border-top: 3px solid var(--linie); padding-top: 18px; }
.wissen h3 { margin-bottom: 8px; }
.wissen p { font-size: 16px; color: var(--text-2); }
.b-innenraum .wissen > div { border-color: var(--innenraum); }
.b-fassade .wissen > div { border-color: var(--fassade); }
.b-holz .wissen > div { border-color: var(--holz); }
.b-tapeten .wissen > div { border-color: var(--tapeten); }
.b-boden .wissen > div { border-color: var(--boden); }
.b-sonne .wissen > div { border-color: var(--sonne); }

/* ---------- Einfache Seitenköpfe ---------- */
.seitenkopf { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 48px); }
.seitenkopf p { margin-top: 18px; max-width: 680px; }

/* ---------- Farbberatung ---------- */
.harmonie { display: flex; gap: 16px; }
.harmonie__muster { display: flex; flex-shrink: 0; width: 64px; height: 64px; }
.harmonie__muster span { flex: 1; }
.stile { width: 100%; border-collapse: collapse; font-size: 16px; }
.stile th, .stile td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.stile th { width: 160px; font-weight: 800; }
.tabelle-scroll { overflow-x: auto; }

/* ---------- Standorte ---------- */
.hinweis { background: #FFF6DB; border: 1px solid var(--sonne); padding: 16px 20px; margin-bottom: 32px; }
.standorte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.standorte .karte h2 { font-size: 28px; }

/* ---------- Kontaktformular ---------- */
.formular { display: grid; gap: 18px; max-width: 640px; }
.formular label { display: block; font-weight: 700; margin-bottom: 6px; }
.formular input, .formular textarea, .formular select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--text);
  border: 1px solid #AEB6BE; border-radius: 3px; background: #fff;
}
.formular textarea { min-height: 160px; resize: vertical; }
.formular .klein { font-size: 14px; color: var(--text-3); }
.formular .falle { position: absolute; left: -9999px; }
.meldung { padding: 16px 20px; margin-bottom: 24px; background: var(--flaeche); font-weight: 600; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 760px; }
.rechtstext h2 { font-size: 24px; margin: 32px 0 10px; }
.rechtstext p { margin-bottom: 12px; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--text); color: #D5DAE0; font-size: 15px; line-height: 1.6; }
.footer__raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 64px 0 48px; }
.footer h3 { font-size: 17px; color: #fff; margin-bottom: 10px; font-stretch: 100%; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer .logo span { color: #C3CAD1; }
.footer__unten { border-top: 1px solid #3A424C; padding: 22px 0 30px; font-size: 14px; color: #A9B1BA; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav > ul { gap: 20px; }
  .header-tel span { display: none; }
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .foto--hero, .foto--gross { height: 380px; }
  .kacheln, .raster-3, .service, .produkte, .wissen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bereich-hero { grid-template-columns: 1fr; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 820px) {
  .header .container { min-height: 64px; }
  .logo b { font-size: 22px; }
  .logo span { font-size: 12px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer;
  }
  .header-tel { width: 44px; height: 44px; justify-content: center; margin-left: auto; }
  .js .nav { display: none; }
  .js .nav.offen { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); padding: 8px var(--rand) 20px; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: 12px 0; font-size: 18px; }
  .nav a[aria-current="page"] { text-decoration: none; }
  .nav .unter { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav .unter a { padding: 8px 0; font-size: 16px; }
  .hero { padding: 32px 0 40px; }
  .hero .buttons .btn, .cta .btn { width: 100%; }
  .foto--hero, .foto--gross { height: 240px; }
  .kacheln, .raster-3, .service, .produkte, .wissen, .standorte, .footer__raster { grid-template-columns: 1fr; }
  .kacheln { gap: 12px; }
  .kachel__farbe { height: 96px; padding: 14px 18px; }
  .kachel__farbe h3 { font-size: 24px; }
  .kachel p { padding: 12px 18px 16px; font-size: 15px; }
  .karte { padding: 22px; }
  .cta { padding: 48px 0; }
  .stile th { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Fehlermeldung des Formulars (erscheint nur nach Weiterleitung auf kontakt.html#fehler) */
.fehler { display: none; background: #FBE9E6; color: #7A2A1D; }
.fehler:target { display: block; }
.tipp strong + a { font-weight: 700; color: var(--akzent); }
.tipp p strong { margin-bottom: 2px; }
.wissen.harmonien { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 820px) { .wissen.harmonien { grid-template-columns: 1fr; } }
