/* ==========================================================================
   Netzwerkstatt Verbund — Design-System
   ========================================================================== */

:root {
  /* Farben */
  --c-anthrazit: #1B1815;
  --c-anthrazit-2: #26221D;
  --c-papier: #F5EFE4;
  --c-papier-2: #ECE3D3;
  --c-glutrot: #B23A2E;
  --c-glutrot-2: #8E2E24;
  --c-sonnenorange: #DD7A28;
  --c-gold: #C9A227;
  --c-dachgruen: #33493B;
  --c-dachgruen-2: #24352A;
  --c-text-dunkel: #211D18;
  --c-text-hell: #F5EFE4;
  --c-text-hell-70: rgba(245, 239, 228, 0.72);
  --c-linie-hell: rgba(245, 239, 228, 0.16);
  --c-linie-dunkel: rgba(33, 29, 24, 0.14);

  --gradient-glut: linear-gradient(100deg, var(--c-glutrot) 0%, var(--c-sonnenorange) 52%, var(--c-gold) 100%);

  /* Typografie */
  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5.5rem;
  --space-xxl: 9rem;

  --radius: 3px;
  --max-width: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text-dunkel);
  background: var(--c-papier);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--c-sonnenorange);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--c-sonnenorange);
  display: inline-block;
  margin-bottom: var(--space-s);
}
.on-dark .eyebrow { color: var(--c-gold); }

.section {
  padding: var(--space-xl) 0;
}
.section--tight { padding: var(--space-l) 0; }
.section--dark { background: var(--c-anthrazit); color: var(--c-text-hell); }
.section--dark h2, .section--dark h3 { color: var(--c-text-hell); }
.section--green { background: var(--c-dachgruen); color: var(--c-text-hell); }
.section--papier2 { background: var(--c-papier-2); }

.section-head { max-width: 46rem; margin: 0 0 var(--space-l); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { font-size: 1.08rem; opacity: 0.85; margin-top: var(--space-s); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient-glut);
  color: var(--c-text-hell);
  box-shadow: 0 8px 24px -10px rgba(178, 58, 46, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(178, 58, 46, 0.65); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
}
.on-dark .btn-ghost { color: var(--c-text-hell); }
.btn-ghost:hover { background: rgba(245, 239, 228, 0.08); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 24, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-linie-hell);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--c-text-hell);
}
.brand strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  color: var(--c-text-hell-70);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-list {
  display: flex;
  gap: var(--space-l);
  align-items: center;
}
.nav-list a {
  color: var(--c-text-hell-70);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--c-text-hell); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gradient-glut);
}
.nav-cta { display: flex; align-items: center; gap: var(--space-m); }
.nav-cta .btn { padding: 0.65em 1.3em; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px; height: 34px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  height: 2px;
  background: var(--c-text-hell);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list { position: absolute; top: 76px; left: 0; right: 0; background: var(--c-anthrazit); flex-direction: column; align-items: flex-start; padding: var(--space-m); gap: var(--space-s); border-bottom: 1px solid var(--c-linie-hell); transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s; }
  .nav-list.is-open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--c-anthrazit);
  color: var(--c-text-hell);
  overflow: hidden;
  padding: var(--space-xxl) 0 var(--space-xl);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(178, 58, 46, 0.22), transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201, 162, 39, 0.14), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-glut);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.18rem;
  color: var(--c-text-hell-70);
  max-width: 34rem;
  margin: var(--space-m) 0 var(--space-l);
}
.hero-actions { display: flex; gap: var(--space-s); flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-l);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  display: block;
  background: var(--gradient-glut);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-text-hell-70);
  text-transform: uppercase;
}

/* ---------- Bridge signature SVG ---------- */
.bridge-wrap { position: relative; }
.bridge-svg { width: 100%; height: auto; }
.bridge-svg .strip {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 1.8s var(--ease) forwards;
}
.bridge-svg .strip:nth-child(1) { animation-delay: 0.1s; }
.bridge-svg .strip:nth-child(2) { animation-delay: 0.28s; }
.bridge-svg .strip:nth-child(3) { animation-delay: 0.46s; }
.bridge-svg .strip:nth-child(4) { animation-delay: 0.64s; }
.bridge-svg .strip:nth-child(5) { animation-delay: 0.82s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bridge-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  fill: var(--c-text-hell-70);
  text-transform: uppercase;
}

/* ---------- Pillars (7 Brückenpfeiler) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-linie-dunkel);
  border: 1px solid var(--c-linie-dunkel);
}
.pillar {
  background: var(--c-papier);
  padding: var(--space-m);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative;
}
.pillar:hover { background: var(--c-anthrazit); color: var(--c-text-hell); transform: translateY(-3px); }
.pillar:hover .pillar-num { color: var(--c-sonnenorange); }
.pillar:hover h3 { color: var(--c-text-hell); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-glutrot);
  letter-spacing: 0.06em;
}
.pillar h3 { font-size: 1.14rem; margin: var(--space-s) 0 0.4em; }
.pillar p { font-size: 0.92rem; opacity: 0.8; margin: 0; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-papier-2);
  padding: var(--space-m);
  border-left: 3px solid var(--c-sonnenorange);
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.card p { font-size: 0.94rem; opacity: 0.82; margin: 0; }

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  padding: var(--space-l) 0;
  border-top: 1px solid var(--c-linie-hell);
  border-bottom: 1px solid var(--c-linie-hell);
}
.stat-strip .hero-stat strong { font-size: 2.6rem; }

/* ---------- Quote ---------- */
.quote-block {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 44rem;
  position: relative;
  padding-left: var(--space-m);
  border-left: 3px solid var(--c-gold);
}
.quote-block cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-s);
  opacity: 0.7;
}

/* ---------- Timeline (Weg / Werdegang) ---------- */
.timeline { position: relative; padding-left: var(--space-l); }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gradient-glut);
}
.timeline-item { position: relative; padding-bottom: var(--space-l); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-l) + 1px);
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c-papier);
  border: 2.5px solid var(--c-glutrot);
}
.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--c-glutrot-2);
  letter-spacing: 0.06em;
}
.timeline-item h3 { font-size: 1.1rem; margin: 0.3em 0 0.4em; }
.timeline-item p { opacity: 0.82; margin: 0; }

/* ---------- Feature list with icons-as-labels ---------- */
.feature-list { display: grid; gap: var(--space-s); }
.feature-list li {
  display: flex;
  gap: var(--space-s);
  align-items: flex-start;
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--c-linie-dunkel);
}
.section--dark .feature-list li { border-bottom-color: var(--c-linie-hell); }
.feature-list .mark {
  font-family: var(--font-mono);
  color: var(--c-sonnenorange);
  font-size: 0.85rem;
  margin-top: 0.2em;
}

/* ---------- Table (technische Werte) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85em 1em; border-bottom: 1px solid var(--c-linie-dunkel); }
.spec-table th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; font-weight: 500; }
.spec-table td:first-child, .spec-table th:first-child { padding-left: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.form-field { display: flex; flex-direction: column; gap: 0.4em; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 600; }
.form-field .hint { font-size: 0.78rem; opacity: 0.65; font-weight: 400; }
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--c-linie-dunkel);
  border-radius: var(--radius);
  background: var(--c-papier);
  color: var(--c-text-dunkel);
  transition: border-color .2s;
}
.section--dark .form-field input, .section--dark .form-field textarea {
  background: rgba(245,239,228,0.05);
  border-color: var(--c-linie-hell);
  color: var(--c-text-hell);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--c-sonnenorange); }
.form-field textarea { resize: vertical; min-height: 120px; }
.file-drop {
  border: 1.5px dashed var(--c-linie-dunkel);
  border-radius: var(--radius);
  padding: var(--space-m);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  cursor: pointer;
}
.section--dark .file-drop { border-color: var(--c-linie-hell); }
.file-drop.is-dragover { border-color: var(--c-sonnenorange); background: rgba(221,122,40,0.08); }
.required-mark { color: var(--c-glutrot); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-anthrazit);
  color: var(--c-text-hell-70);
  padding: var(--space-xl) 0 var(--space-l);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-l);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--c-linie-hell);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  color: var(--c-text-hell);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-s);
}
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a:hover { color: var(--c-text-hell); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-m);
  flex-wrap: wrap;
  gap: var(--space-s);
  font-size: 0.82rem;
}
.footer-bottom .legal-links { display: flex; gap: var(--space-m); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: var(--space-m); right: var(--space-m); bottom: var(--space-m);
  max-width: 560px;
  background: var(--c-anthrazit);
  color: var(--c-text-hell);
  padding: var(--space-m);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.45);
  z-index: 200;
  border: 1px solid var(--c-linie-hell);
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; margin-bottom: var(--space-s); color: var(--c-text-hell-70); }
.cookie-actions { display: flex; gap: var(--space-s); flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6em 1.1em; font-size: 0.84rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Breadcrumb / page hero (Unterseiten) ---------- */
.page-hero {
  background: var(--c-anthrazit);
  color: var(--c-text-hell);
  padding: var(--space-xl) 0 var(--space-l);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 90% 0%, rgba(201,162,39,0.16), transparent 55%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 40rem; }
.page-hero p { color: var(--c-text-hell-70); max-width: 38rem; font-size: 1.08rem; margin-top: var(--space-s); }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border: 1px solid var(--c-linie-dunkel);
  border-radius: 2px;
  margin: 0.2em 0.4em 0.2em 0;
}
.badge--soon { color: var(--c-glutrot-2); border-color: var(--c-glutrot-2); }
.badge--soon.on-dark { color: var(--c-gold); border-color: var(--c-gold); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
