/* ── Graffiti-Free · Shared Stylesheet ─────────────────────────── */
/* Version 2.0 · Browser-normalisiert · Responsive · Barrierefrei  */

/* ── 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;
}

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

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

  --max:  1200px;
  --pad:  clamp(24px, 5vw, 80px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* ── Basis ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  overflow-x: hidden; /* iOS Safari: verhindert horizontales Scrollen */
}

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;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  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 Browser-Normalisierung ── */
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; /* iOS rundet Inputs sonst automatisch */
}

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

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

/* ════════════════════════════════════════════════════════════════════
   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;
  /* Verhindert Sub-Pixel-Rendering-Fehler in Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.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 {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.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; /* Größere Klickfläche */
}

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

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

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

/* ── Burger ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 4px; /* Größere Touch-Fläche */
  flex-shrink: 0;
  /* Mindest-44px Touch-Target (WCAG 2.5.5) */
  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; /* Smooth scrolling iOS */
}

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

.mobile-nav a {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  padding: 16px 0; /* Größere Touch-Targets */
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
  display: block; /* Volle Breite anklickbar */
  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;
}

/* ════════════════════════════════════════════════════════════════════
   TYPOGRAFIE
════════════════════════════════════════════════════════════════════ */
.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 {
  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; /* Lange Wörter auf schmalen Screens */
}

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

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════════ */
.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; /* Kein grauer Flash auf iOS */
  min-height: 44px; /* Touch-Target WCAG */
}

.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); }

.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); }

.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); }

.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 ── */
.arr {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ════════════════════════════════════════════════════════════════════
   PAGE HERO (Unterseiten)
════════════════════════════════════════════════════════════════════ */
.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;
}

/* ════════════════════════════════════════════════════════════════════
   CTA STRIP
════════════════════════════════════════════════════════════════════ */
.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;
}

.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;
}

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

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

.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: #fff;
  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: 220px;
}

.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 {
  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.5); }

/* ════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  /* Reduce Motion: Animationen für Nutzer die das bevorzugen deaktivieren */
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .btn-solid, .btn-light, .btn-outline { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════
   ANIMATIONEN
════════════════════════════════════════════════════════════════════ */
@keyframes up   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════════════════════════════ */

/* Tablet Landscape */
@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 */
@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; }
}

/* Kleine Phones */
@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); }


}


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

@media (max-width: 600px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .hero-bar-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 380px) {
  .hero-bar-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   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; }
}
