/* =========================================================
   GRAFFITI-FREE · Master Stylesheet
   styles-gf.css · Foundation v1.0
   Lädt nach style.css · Ersetzt style.css nach vollständiger Migration
   ========================================================= */


/* =========================================================
   01 ─ TOKENS
   Einzige Quelle aller Design-Entscheidungen.
   Alle Farben, Schriften, Abstände und Easing-Werte.
   Kein anderer Abschnitt verwendet Rohwerte, die hier als
   Token vorliegen.
   ========================================================= */

:root {
  /* Farben */
  --ink:        #1c1c1a;
  --ink-soft:   #4a4a47;
  --ink-faint:  #9a9a96;
  --green:      #26843D;
  --green-mid:  #1e6b31;
  --green-pale: #eaf4ec;
  --stone:      #f5f4f0;
  --line:       #e2e1dc;
  --white:      #ffffff;

  /* Typografie */
  --head: 'CGStack', 'Century Gothic', 'Trebuchet MS', Calibri, sans-serif;
  --body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max:  1200px;
  --pad:  clamp(24px, 5vw, 80px);

  /* Easing */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}


/* =========================================================
   02 ─ BASE / RESET
   Browser-Normalisierung und Basis-Elementstyles.
   Schafft eine konsistente, vorhersagbare Render-Grundlage.
   ========================================================= */

/* ── Schriften ── */
@font-face {
  font-family: 'CGStack';
  src: local('Century Gothic'), local('CenturyGothic'), local('Futura PT'),
       local('Futura'), local('Trebuchet MS');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Box Model ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── HTML ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  overflow-x: hidden;
}

/* ── Body ── */
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Medien ── */
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  background: var(--stone);
}

/* ── Typografie-Basis ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  line-height: 1.15;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Formulare ── */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
}

input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* ── Fokus (Accessibility) ── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}


/* =========================================================
   03 ─ LAYOUT
   Strukturelle Hüll-Klassen und Grid-Utilities.
   Seitenübergreifende Layoutgrundlage.
   ========================================================= */

/* ── Wrapper ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── 2-Spalten-Grid ── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── Section-Padding ── */
/* Löst das wiederkehrende Inline-padding-Pattern ab.
   Wird in der HTML-Migration eingesetzt, wenn Inline-Styles
   bereinigt werden. */
.section-pad {
  padding: clamp(72px, 10vw, 120px) 0;
}

/* ── Nav-Offset ── */
/* Kompensiert die fixe Navigation (68px) auf Seiten ohne .page-hero.
   Eingesetzt auf: kontakt.html */
.main-offset {
  padding-top: 68px;
  overflow-x: hidden;
}


/* =========================================================
   04 ─ TYPOGRAFIE
   Wiederverwendbare Text-Klassen für strukturierende
   Elemente auf Abschnittsebene.
   ========================================================= */

/* ── Eyebrow ── */
.section-eyebrow {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

.section-eyebrow.light {
  color: rgba(255, 255, 255, 0.4);
}

.section-eyebrow.light::before {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Section H2 ── */
.section-h2 {
  font-family: var(--head);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-h2.light {
  color: var(--white);
}


/* =========================================================
   05 ─ NAVIGATION
   Desktop-Navigation und Mobile-Navigation als
   zusammenhängende Einheit. Alle States.
   Root- und Unterseiten-tauglich (Pfade im HTML).
   ========================================================= */

/* ── Haupt-Nav ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    -webkit-backdrop-filter 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Past-State: aktiv nach Scroll oder statisch auf rechtlichen Seiten */
.nav.past {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── Nav Inner ── */
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
}

/* ── Desktop Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  transition: color 0.2s;
  white-space: nowrap;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

/* ── CTA-Link in Nav ── */
.nav-cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.05em;
  border: 1px solid var(--green);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  box-sizing: border-box;
}

.nav-cta:hover {
  background: var(--green);
  color: var(--white);
}

/* active-State auf nav-cta: Farbe bleibt grün, kein Hover-Override nötig */
.nav-cta.active {
  color: var(--green);
}

/* ── Burger ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 4px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--white);
  z-index: 199;
  padding: 32px var(--pad) 40px;
  flex-direction: column;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
  display: block;
  min-height: 44px;
}

.mobile-nav a:hover {
  color: var(--green);
}

.mobile-nav a.mobile-cta {
  border: none;
  color: var(--green);
  font-weight: 500;
  margin-top: 16px;
}


/* =========================================================
   06 ─ BUTTONS
   Alle vier Button-Varianten und der Pfeil-Helfer.
   Seitenübergreifend in Navigation, CTAs, Formularen
   und Inhaltsblöcken.
   ========================================================= */

/* ── Primär: Solid ── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.25s var(--ease), transform 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn-solid:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.btn-solid:active {
  transform: translateY(0);
}

.btn-solid svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-solid:hover svg {
  transform: translateX(3px);
}

/* ── Outline ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 13px 27px;
  border-radius: 2px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* ── Ghost ── */
.btn-ghost {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Light (auf dunklem Hintergrund) ── */
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn-light:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
}

.btn-light:active {
  transform: translateY(0);
}

/* ── Arrow SVG-Helfer ── */
.arr {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================================================
   07 ─ GLOBALE KOMPONENTEN
   ========================================================= */

/* ---------------------------------------------------------
   07.1 ─ PAGE HERO
   Seitentitel-Block auf Unterseiten.
   Auf 10 von 15 Seiten vorhanden.
   --------------------------------------------------------- */

.page-hero {
  padding-top: 68px;
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  padding: 72px 0 64px;
}

.page-hero h1 {
  font-family: var(--head);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.page-hero p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ---------------------------------------------------------
   07.2 ─ CTA-STRIP
   Seitenabschluss-Block mit Handlungsaufforderung.
   Auf 10 von 15 Seiten. Eyebrow und Note sind variabel.
   --------------------------------------------------------- */

.cta-strip {
  background: var(--ink);
  padding: clamp(64px, 10vw, 100px) 0;
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.cta-strip h2 {
  font-family: var(--head);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--white);
  max-width: 460px;
  overflow-wrap: break-word;
}

/* em im H2: steuert Grün-Färbung des Wortes „Augenschein" */
.cta-strip h2 em {
  font-style: normal;
  color: var(--green);
}

.cta-strip-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.cta-strip-note {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   07.3 ─ SCROLL-REVEAL
   JS-gesteuerte Einblend-Animation.
   main.js fügt .in hinzu wenn Element im Viewport.
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Keyframes — global nutzbar für Hero-Animationen */
@keyframes up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* =========================================================
   08 ─ FOOTER
   Vollständige Footer-Struktur. Alle 15 Seiten.
   Verbindliche Werte: 06229 665 44 30 · © 2026
   ========================================================= */

.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 28px;
}

/* ── 4-Spalten-Grid ── */
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* ── Marke / Logo ── */
.footer-logo {
  margin-bottom: 14px;
}

.footer-logo-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.footer-logo-graffiti {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 8px;
  border-radius: 2px 0 0 2px;
}

.footer-logo-free {
  color: var(--white);
  background: var(--green);
  padding: 5px 8px;
  border-radius: 0 2px 2px 0;
}

.footer-tagline {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  max-width: 260px;
}

/* ── Spalten ── */
.footer-col h4 {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
  display: block;
  padding: 2px 0;
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Footer Bottom ── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* =========================================================
   09 ─ RESPONSIVE
   Breakpoint-Anpassungen für alle Foundation-Komponenten.
   Nur Klassen aus Abschnitten 03–08.
   Seitenspezifische Klassen (hero-grid etc.) folgen später.
   ========================================================= */

/* ── Tablet Landscape: 1024px ── */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta-strip-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Tablet Portrait / große Phones: 768px ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .page-hero-inner {
    padding: 48px 0 40px;
  }

  .cta-strip-inner {
    gap: 24px;
  }
}

/* ── Große Phones: 600px ── */
@media (max-width: 600px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ── Kleine Phones: 480px ── */
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-h2 {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }
}

/* ── Sehr kleine Phones: 380px ── */
@media (max-width: 380px) {
  /* Reserviert für spätere Komponenten-Breakpoints.
     Foundation-Komponenten benötigen auf 380px
     keine zusätzlichen Overrides. */
}


/* =========================================================
   10 ─ MOTION / ACCESSIBILITY / PRINT
   ========================================================= */

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  /* Scroll-Reveal sofort sichtbar */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Smooth-Scroll deaktivieren */
  html {
    scroll-behavior: auto;
  }

  /* Button-Transitions deaktivieren */
  .btn-solid,
  .btn-light,
  .btn-outline,
  .btn-ghost {
    transition: none;
  }

  /* Keyframe-Animationen deaktivieren */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    /* !important notwendig: überschreibt Inline-style-Animationen
       auf index.html (animation: up 0.7s … forwards) ohne
       HTML-Änderung in dieser Phase */
  }
}

/* ── Print ── */
@media print {
  .nav,
  .mobile-nav,
  .cta-strip,
  .footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.7em;
  }
}