/* ==========================================================================
   Geißbock Fenster & Türen — Stylesheet
   Warmer, einladender Stil für ein Fenster- und Türenbau-Unternehmen
   ========================================================================== */

/* ==========================================================================
   SCHRIFTEN — selbst gehostet, erledigt
   --------------------------------------------------------------------------
   Frueher wurden Fraunces und Nunito Sans per @import von Google-Servern
   geladen. Dabei ging die IP-Adresse jedes Besuchers an Google. Das LG
   Muenchen I hat darin 2022 (Az. 3 O 17493/20) einen DSGVO-Verstoss gesehen.

   Beide Familien liegen jetzt als Variable Font unter assets/fonts/ und
   werden unten per @font-face eingebunden. Es geht keine Verbindung mehr
   nach aussen. Der Abschnitt zu Google Fonts in datenschutz.html wurde
   entsprechend entfernt, ebenso die preconnect-Angaben im Seitenkopf.

   Beim Austausch der Schriften: unicode-range mit anpassen, sonst fallen
   Zeichen ausserhalb des latin-Subsets auf die Systemschrift zurueck.
   ========================================================================== */

/* Schriften werden selbst gehostet — es geht keine Verbindung zu Google-Servern
   und damit auch keine Besucher-IP dorthin. Beide Dateien sind Variable Fonts:
   eine Datei deckt alle benoetigten Gewichte ab.
   Enthalten ist nur das latin-Subset; das deckt Deutsch samt Umlauten, ss,
   Anfuehrungszeichen und Gedankenstrich vollstaendig ab. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/nunito-sans-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* "Eichenton" Farbpalette — warmes Holzbraun & Kupfer */
  /* Variablennamen aus Kompatibilitätsgründen beibehalten (terracotta -> Kupfer-Akzent, wood -> Braun-Anker) */
  --color-terracotta: #945C26;
  --color-terracotta-dark: #7C4D20;
  --color-terracotta-light: #D9A468;
  /* Nur für dekorative Flächen ohne Textauflage (Blobs, Verläufe). */
  --color-terracotta-surface: #B5702E;
  /* Helle Textfarbe für dunkle Sektionen und Footer. */
  --color-text-on-dark: rgba(245, 236, 220, 0.78);
  --color-wood: #4A2F1F;
  --color-wood-dark: #2E1B10;
  --color-cream: #F5ECDC;
  --color-cream-alt: #ECDFC7;
  --color-sage: #8A7358;
  --color-sage-dark: #6B5840;
  --color-gold: #D9A468;
  --color-text: #2A1F16;
  --color-text-light: #6B5C4C;
  --color-white: #FFFFFF;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 8px 30px rgba(46, 27, 16, 0.14);
  --shadow-strong: 0 16px 45px rgba(46, 27, 16, 0.22);

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Die Bilder stecken in <picture>, damit Browser wahlweise die kleinere
   WebP-Datei laden koennen. display: contents nimmt das picture-Element
   aus dem Layout heraus - das img verhaelt sich dadurch weiterhin wie ein
   direktes Kind seines Containers und alle bestehenden Regeln greifen. */
picture {
  display: contents;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-wood-dark);
  line-height: 1.2;
  font-weight: 600;
  /* Lange deutsche Komposita wie "Denkmalschutzfenster" blähen sonst die
     min-content-Breite auf. Nur "anywhere" wirkt auf die intrinsische Breite;
     die Silbentrennung greift dank lang="de-DE" zuerst. */
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--color-text-light); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-terracotta-dark);
  background: rgba(181, 112, 46, 0.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.08rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(181, 112, 46, 0.35);
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(181, 112, 46, 0.42);
}

.btn-outline {
  background: transparent;
  color: var(--color-wood-dark);
  border-color: var(--color-wood-dark);
}

.btn-outline:hover {
  background: var(--color-wood-dark);
  color: var(--color-white);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-terracotta-dark);
}

.btn-light:hover {
  background: var(--color-cream-alt);
  transform: translateY(-2px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 236, 220, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 47, 31, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1340px;
  margin: 0 auto;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-wood-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-mark {
  width: auto;
  height: 40px;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-wood-dark);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-terracotta);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 13px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Telefon und E-Mail sind anklickbar, sollen aber nicht wie Links aussehen -
   sie erben die Farbe ihrer Umgebung (Kopfzeile hell, Fusszeile dunkel). */
.kontakt-link {
  color: inherit;
  text-decoration: none;
}

.kontakt-link:hover {
  text-decoration: underline;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-wood-dark);
  font-size: 0.92rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-wood-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(150deg, var(--color-cream) 0%, var(--color-cream-alt) 60%, #DFC9A0 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin: 0 0 30px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust div {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--color-terracotta);
}

.hero-trust span {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  position: absolute;
  bottom: 18px;
  left: -10px;
  background: var(--color-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}

.hero-badge .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-wood-dark);
}

.hero-badge small {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ---------- Illustration blob shapes ---------- */
.blob-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(145deg, var(--color-terracotta-light), var(--color-terracotta-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
}

.blob-frame svg {
  width: 62%;
  height: 62%;
}

/* ---------- Services / Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(74, 47, 31, 0.06);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--color-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-terracotta);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 700;
  color: var(--color-terracotta);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Alt section (dark wood) ---------- */
.section-wood {
  background: var(--color-wood-dark);
  color: var(--color-cream);
}

.section-wood h2,
.section-wood h3 {
  color: var(--color-white);
}

.section-wood p {
  color: rgba(245, 236, 220, 0.75);
}

.section-wood .section-tag {
  background: rgba(217, 164, 104, 0.18);
  color: var(--color-gold);
}

/* ---------- Why us / stats ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.why-item {
  display: flex;
  gap: 18px;
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(217, 164, 104, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-gold);
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why-item p {
  font-size: 0.94rem;
}

/* ---------- Steps / Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 10px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: 10px;
  display: block;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.94rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.testimonial .stars {
  color: var(--color-terracotta);
  letter-spacing: 3px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.testimonial p.quote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-wood-dark);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.gallery-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.92);
  color: var(--color-terracotta-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  background: linear-gradient(to top, rgba(42, 31, 22, 0.92) 0%,
              rgba(42, 31, 22, 0.72) 45%, rgba(42, 31, 22, 0) 100%);
  padding-top: 42px;
  color: var(--color-white);
}

.gallery-caption strong {
  display: block;
  font-size: 1rem;
}

.gallery-caption span {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-wood-dark);
  color: rgba(245, 236, 220, 0.75);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-grid h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a:hover {
  color: var(--color-gold);
}

.footer-logo {
  display: block;
  width: 190px;
  height: auto;
  margin-bottom: 18px;
}


.social-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 236, 220, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-row a:hover {
  background: var(--color-terracotta);
}

.social-row svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-cream);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 236, 220, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--color-cream-alt) 0%, var(--color-cream) 100%);
  padding: 64px 0 70px;
  text-align: center;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.breadcrumb span {
  color: var(--color-terracotta);
}

.page-hero p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-wood-dark);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(74, 47, 31, 0.18);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.checkbox-row input {
  margin-top: 4px;
  width: auto;
}

/* ---------- Contact info cards ---------- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.info-card .why-icon {
  margin: 0 auto 16px;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.9rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: 30px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.hours-list {
  margin-top: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 47, 31, 0.08);
  font-size: 0.94rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li strong {
  color: var(--color-wood-dark);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-align: center;
  padding-bottom: 26px;
}

.team-photo {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h3 {
  margin-top: 18px;
  font-size: 1.05rem;
}

.team-card span {
  color: var(--color-terracotta);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-large { margin-top: 60px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stat-row {
  display: flex;
  gap: 44px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat-row div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--color-terracotta);
}

.stat-row div span {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container,
  .two-col,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-extra {
  display: none;
}

/* Zwischenstufe: bei knapper Breite Telefonnummer aus der Kopfzeile nehmen,
   damit die 7 Navigationspunkte weiter nebeneinander passen. */
@media (max-width: 1340px) {
  .nav-cta .nav-phone {
    display: none;
  }
}

@media (max-width: 1200px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--color-cream);
    padding: 100px 32px 40px;
    gap: 26px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 1050;
    overflow-y: auto;
  }

  .nav-links.mobile-open .mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(74, 47, 31, 0.12);
  }

  .nav-links.mobile-open .mobile-extra .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 44px 28px;
  }

  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  /* Kopfzeile: Logo skalieren, damit Wortmarke + Emblem + Menue-Button
     auf schmalen Geraeten nebeneinander passen. */
  .logo {
    font-size: 1rem;
    gap: 8px;
  }

  .logo-mark {
    height: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Legal pages ---------- */
.template-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #F2E3C9;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 50px;
}

.template-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--color-terracotta-dark);
}

.template-notice strong {
  color: var(--color-wood-dark);
  display: block;
  margin-bottom: 4px;
}

.template-notice p {
  font-size: 0.94rem;
  color: var(--color-text);
  margin: 0;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 26px;
  margin-bottom: 10px;
  color: var(--color-wood-dark);
}

.legal-content p, .legal-content li {
  font-size: 0.98rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content ul li {
  list-style: disc;
}

.legal-content a {
  color: var(--color-terracotta);
  font-weight: 600;
  text-decoration: underline;
}

.legal-content .placeholder {
  background: rgba(217, 164, 104, 0.18);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
  color: var(--color-wood-dark);
}

.legal-content-wrap {
  max-width: 780px;
}

/* ---------- Overlay for mobile menu ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 22, 0.4);
  z-index: 1040;
}

.nav-overlay.active {
  display: block;
}

/* ==========================================================================
   Landingpages: Leistungen & Standorte
   ========================================================================== */

/* ---------- Breadcrumb mit Links ---------- */
.breadcrumb a {
  color: var(--color-text-light);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
}

/* ---------- Feature-Liste (Leistungsseiten) ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px 40px;
  margin-top: 34px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-wood-dark);
  margin-bottom: 3px;
}

.feature-item span {
  display: block;
  font-size: 0.94rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- FAQ (details/summary) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid rgba(74, 47, 31, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--color-wood-dark);
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--color-terracotta);
  border-bottom: 2.5px solid var(--color-terracotta);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--color-terracotta);
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---------- Standort-Eckdaten ---------- */
.local-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 30px 34px;
  box-shadow: var(--shadow-soft);
}

.local-facts .fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-text-light);
}

.local-facts .fact strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-terracotta);
  line-height: 1.25;
}

.fact-note {
  margin-top: 20px;
  font-size: 0.95rem;
  max-width: 760px;
}

/* ---------- Bausubstanz-Blöcke ---------- */
.bau-block {
  padding: 26px 0;
  border-top: 1px solid rgba(74, 47, 31, 0.12);
}

.bau-block:first-of-type {
  border-top: none;
  padding-top: 6px;
}

.bau-block h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.bau-block p {
  line-height: 1.75;
}

/* ---------- Stadtteil-Tags ---------- */
.district-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.district-tag {
  background: var(--color-white);
  border: 1px solid rgba(74, 47, 31, 0.14);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-wood-dark);
}

/* ---------- Städte-Grid (Hub) ---------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.city-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid rgba(74, 47, 31, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.city-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.city-card-head h3 {
  font-size: 1.35rem;
  margin: 0;
}

.city-badge {
  flex-shrink: 0;
  background: rgba(181, 112, 46, 0.12);
  color: var(--color-terracotta-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.city-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

/* ---------- Städte-Linkzeile ---------- */
.city-links {
  line-height: 2.1;
  font-size: 0.98rem;
  color: var(--color-text-light);
}

.city-links a {
  color: var(--color-terracotta-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.city-links a:hover {
  color: var(--color-terracotta);
}

/* ---------- Footer: 5 Spalten ---------- */
.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr;
}

/* ==========================================================================
   Responsive-Anpassungen für die neuen Komponenten
   ========================================================================== */

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .local-facts {
    padding: 24px 22px;
  }
  .feature-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .faq-item summary {
    padding: 17px 46px 17px 18px;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 0 18px 18px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .city-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* ==========================================================================
   Barrierefreiheit — Kontrastkorrekturen und Tastaturbedienung
   ========================================================================== */

/* Die globale p-Regel überschreibt sonst die helle Footer-Textfarbe. */
.site-footer p,
.site-footer .footer-bottom span {
  color: var(--color-text-on-dark);
}

/* Kennzahlen in dunklen Sektionen brauchen den hellen Akzent statt des
   dunklen Kupfers — sonst nur 2,98:1 gegen den braunen Hintergrund. */
.section-wood .stat-row div strong {
  color: var(--color-terracotta-light);
}

.section-wood .stat-row div span {
  color: var(--color-text-on-dark);
}

/* Sichtbarer Fokusring für Tastaturbedienung. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-footer a:focus-visible,
.section-wood a:focus-visible {
  outline-color: var(--color-terracotta-light);
}

/* Sprunglink zum Inhalt — nur bei Tastaturfokus sichtbar. */
.skip-link {
  /* fixed statt absolute: bleibt auch bei gescrollter Seite im Viewport. */
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 2000;
  background: var(--color-wood-dark);
  color: var(--color-cream);
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Bildflächen — echte <img>-Elemente statt Farbverläufe
   ========================================================================== */

.blob-frame img,
.gallery-img img,
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blob-frame img {
  border-radius: inherit;
}

.team-photo {
  overflow: hidden;
}

/* ==========================================================================
   Unterleistungen: Kachelnavigation, Datentabelle, Abwägung
   ========================================================================== */

/* ---------- Kacheln zu den Unterseiten ---------- */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 22px;
}

.sub-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid rgba(74, 47, 31, 0.09);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.sub-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.sub-card p {
  font-size: 0.93rem;
  line-height: 1.62;
  flex-grow: 1;
  margin-bottom: 14px;
}

/* ---------- Inline-Linkzeile im Leistungen-Hub ---------- */
.sub-inline {
  margin-top: 18px;
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--color-text-light);
}

.sub-inline a {
  color: var(--color-terracotta-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub-inline a:hover {
  color: var(--color-terracotta);
}

/* ---------- Technische Eckdaten ---------- */
.spec-wrap {
  margin-top: 22px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  padding: 18px 22px 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-wood-dark);
}

.spec-table th,
.spec-table td {
  padding: 11px 22px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(74, 47, 31, 0.09);
}

.spec-table tbody tr:first-child th,
.spec-table tbody tr:first-child td {
  border-top: 1px solid rgba(74, 47, 31, 0.14);
}

.spec-table th {
  width: 46%;
  font-weight: 600;
  color: var(--color-text-light);
}

.spec-table td {
  font-weight: 700;
  color: var(--color-wood-dark);
}

.spec-table sub {
  font-size: 0.72em;
}

/* ---------- Vor- und Nachteile ---------- */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pc-col {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-sage-dark);
}

.pc-col.pc-con {
  border-top-color: var(--color-terracotta);
}

.pc-col h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.pc-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pc-col li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.pc-col li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 700;
  font-size: 1.05rem;
}

.pc-pro li::before {
  content: '+';
  color: var(--color-sage-dark);
}

.pc-con li::before {
  content: '!';
  color: var(--color-terracotta);
}

@media (max-width: 760px) {
  .proscons {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .spec-table th,
  .spec-table td {
    padding: 10px 16px;
  }
  .spec-table th {
    width: 50%;
  }
  .spec-table caption {
    padding: 16px 16px 4px;
  }
}
