/* Boards without Barriers — Premium Design System */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --bg: #f7f2ea;
  --bg-white: #ffffff;
  --bg-dark: #0b1218;
  --bg-dark-2: #121c26;

  --ink: #0c1419;
  --ink-soft: #3d4a56;
  --ink-muted: #647484;
  --ink-faint: #8b98a6;

  --accent: #e07818;
  --accent-hover: #c5650f;
  --accent-bright: #f5a45a;
  --accent-soft: #fce9d4;
  --accent-glow: rgba(224, 120, 24, 0.22);
  --brand-orange: #ff8c00;
  --brand-red: #e85a20;

  --teal: #1d9a8f;
  --teal-soft: rgba(29, 154, 143, 0.12);

  --line: rgba(12, 20, 25, 0.09);
  --line-strong: rgba(12, 20, 25, 0.16);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 4px 20px rgba(12, 20, 25, 0.06);
  --shadow: 0 20px 60px rgba(12, 20, 25, 0.1);
  --shadow-lg: 0 32px 80px rgba(12, 20, 25, 0.14);

  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 140, 0, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(232, 90, 32, 0.05), transparent),
    var(--bg);
}

img, picture, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

/* Muss .btn überschreiben — sonst erscheint der Button doppelt im Desktop-Header */
.site-nav .nav-mobile-cta {
  display: none !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-text small {
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(12, 20, 25, 0.05);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-hover);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-white);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  padding-inline: 16px;
}

.btn-ghost:hover { color: var(--ink); background: rgba(12, 20, 25, 0.05); }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-light:hover { transform: translateY(-2px); }

/* ——— Typography ——— */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink);
}

h1.display { font-size: clamp(2.6rem, 5.5vw, 4.5rem); margin: 0 0 24px; }
h2.display { font-size: clamp(2rem, 3.8vw, 3rem); margin: 0 0 16px; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }

.lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.text-accent { color: var(--accent); font-style: normal; }

/* Headings on dark surfaces — must stay light (WCAG) */
:is(.story-section, .page-hero, .panel-dark, .highlight-band, .contact-section)
  :is(h1, h2, h3).display,
:is(.story-section, .page-hero, .panel-dark, .highlight-band, .contact-section) .display {
  color: #fff;
}

:is(.story-section, .page-hero, .panel-dark, .highlight-band, .contact-section) .text-accent {
  color: var(--accent-bright);
}

.section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

section { padding: clamp(48px, 6vw, 72px) 0; }

/* Subtle brand accent on light sections */
section:not(.hero):not(.story-section):not(.contact-section):not(.page-hero):not(.marquee-band) {
  position: relative;
}

section:not(.hero):not(.story-section):not(.contact-section):not(.page-hero):not(.marquee-band)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 20%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), var(--brand-red), transparent);
  opacity: 0.45;
}

/* ——— Hero ——— */

.hero {
  padding-top: 14px;
  padding-bottom: 24px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 1; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 16px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* Prototype showcase */

.prototype-showcase {
  position: relative;
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.prototype-showcase::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.prototype-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.prototype-label span:last-child { color: var(--accent); }
.prototype-label-mobile { display: none; }

.prototype-stage {
  position: relative;
  min-height: clamp(380px, 48vh, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(224, 120, 24, 0.2), transparent 45%),
    linear-gradient(160deg, #1a2632 0%, #060a0e 100%);
}

.prototype-image-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.prototype-image-layer.is-switching {
  opacity: 0;
  transform: scale(0.98);
}

.prototype-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 42%;
  padding: clamp(16px, 2vw, 28px);
}

.prototype-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.prototype-tab {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.prototype-tab:hover,
.prototype-tab:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.prototype-tab.is-active,
.prototype-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.prototype-caption {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.prototype-caption strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.prototype-caption p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

/* Marquee */

.marquee-band {
  padding: 0;
  background: var(--bg-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 48px;
  padding: 18px 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "◆";
  margin-left: 48px;
  color: var(--accent);
  font-size: 0.5rem;
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— Cards & grids ——— */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}

.panel {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.panel-dark {
  background: var(--bg-dark);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.panel-dark p { color: rgba(255, 255, 255, 0.72); }
.panel-dark .section-kicker { color: var(--accent); }

.pull-quote {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-item {
  grid-column: span 3;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.bento-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 140, 0, 0.08) 50%);
  pointer-events: none;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-item:nth-child(1) { grid-column: span 6; }
.bento-item:nth-child(2) { grid-column: span 6; }
.bento-item:nth-child(3) { grid-column: span 4; }
.bento-item:nth-child(4) { grid-column: span 8; }

.bento-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.bento-item p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Steps */

.steps-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 24px 20px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1;
}

.step-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Tech preview */

.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.tech-card .tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Story */

.story-section {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.story-section::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -8%;
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.14), transparent 68%);
  pointer-events: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.story-content .section-kicker { color: var(--accent); }
.story-content p { color: rgba(255, 255, 255, 0.72); margin: 0 0 16px; }

.story-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1e2d3a, #0a1016);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0;
  position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.story-visual span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 280px;
  line-height: 1.35;
}

.story-visual.story-photo {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

.story-photo figcaption {
  position: static;
  padding: 10px 14px 12px;
  background: rgba(8, 13, 18, 0.94);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  line-height: 1.32;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.story-photo figcaption strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin-bottom: 1px;
}

.story-photo figcaption span {
  display: block;
  max-width: none;
  font-family: var(--font-body);
  font-size: 0.76rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

/* Highlight band */

.highlight-band {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.highlight-band p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.72); max-width: 56ch; }
.highlight-band .section-kicker { color: var(--accent); }

/* Target list */

.target-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.target-list li {
  padding: 20px 22px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.target-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.target-list span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.team-avatar {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--accent-soft), var(--bg));
  border: 1px solid var(--line);
  display: block;
  margin: 0 0 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card p { margin: 0; font-size: 0.88rem; color: var(--accent-hover); font-weight: 600; }
.team-detail { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-muted); line-height: 1.45; }

/* Sponsors */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin-inline: auto;
}

.sponsor-slot {
  min-height: 104px;
  display: grid;
  place-items: center;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.sponsor-slot img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.02);
}

.sponsor-slot:hover img {
  filter: saturate(1) contrast(1.04);
}

/* Contact */

.contact-section {
  background: var(--bg-dark);
  color: #fff;
}

.contact-section .section-kicker { color: var(--accent); }
.contact-section .lead { color: rgba(255, 255, 255, 0.72); }

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.contact-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-info {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.contact-info h3 { color: #fff; margin-bottom: 20px; }

.contact-item { margin-bottom: 20px; }
.contact-item p { margin: 0 0 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); font-weight: 700; }
.contact-item a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

.contact-form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.contact-form h3 { color: #fff; margin-bottom: 8px; }
.contact-form > p { margin: 0 0 24px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

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

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 20px 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.form-status.is-success { color: #ffffff; }
.form-status.is-error { color: #ffdfcf; }

/* Footer */

.site-footer {
  padding: 48px 0 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Subpages ——— */

.page-hero {
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(224, 120, 24, 0.15), transparent);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { color: rgba(255, 255, 255, 0.72); }
.page-hero .section-kicker { color: var(--accent); }

.section-soft { background: var(--bg); }

.system-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 24px;
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  color: #fff;
}

.system-flow div {
  padding: 20px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  position: relative;
}

.system-flow div:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.system-flow strong { display: block; margin-bottom: 6px; color: #fff; }
.system-flow span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-item {
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.card-item .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-hover);
  margin-bottom: 16px;
}

.card-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.timeline { display: grid; gap: 16px; }

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  padding: 8px 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  height: fit-content;
}

.timeline-item p { margin: 0; color: var(--ink-soft); }

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.achievement-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.photo-placeholder {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, var(--accent-soft), var(--bg));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.achievement-card h3,
.achievement-card p { padding: 0 24px; }
.achievement-card h3 { padding-top: 20px; }
.achievement-card p { padding-bottom: 24px; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.featured-achievement {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 32px;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-achievement-media {
  margin: 0;
  height: 100%;
  min-height: 420px;
  background: var(--bg-dark);
}

.featured-achievement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-achievement-copy {
  padding: clamp(28px, 4vw, 52px);
}

.featured-achievement-copy p:not(.section-kicker) {
  color: var(--ink-soft);
}

.achievement-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.achievement-media {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.image-credit {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 13, 18, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  line-height: 1.2;
}

.achievement-image,
.gallery-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-dark);
}

.achievement-copy {
  padding: 20px 22px 24px;
}

.achievement-copy h3,
.achievement-copy p {
  padding: 0;
}

.achievement-copy h3 {
  padding-top: 0;
  margin: 0 0 10px;
}

.achievement-copy p:last-child {
  padding-bottom: 0;
}

.achievement-meta {
  margin: 0 0 10px;
  color: var(--accent-hover) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.legal-content { max-width: 720px; }
.legal-note {
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 24px;
}

.checklist-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-card li {
  position: relative;
  padding: 10px 0 10px 24px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.checklist-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.evidence-stack { display: grid; gap: 12px; }

.evidence-stack div {
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink-soft);
}

/* Reveal animation */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Status cards on homepage */

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.status-card {
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.status-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.section-cta { text-align: center; margin-top: 36px; }

.impact-quote {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ——— Responsive ——— */

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .story-grid,
  .contact-grid,
  .highlight-band,
  .featured-achievement,
  .evidence-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .highlight-band .btn { justify-self: start; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-item,
  .bento-item:nth-child(1),
  .bento-item:nth-child(2),
  .bento-item:nth-child(3),
  .bento-item:nth-child(4) { grid-column: span 1; }
  .bento-item:nth-child(4) { grid-column: span 2; }

  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .tech-cards,
  .status-cards,
  .team-grid,
  .achievement-grid-4,
  .gallery-grid-4,
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .system-flow { grid-template-columns: repeat(3, 1fr); }
  .system-flow div:not(:last-child)::after { display: none; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .contact-tags { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0.35s;
    margin-left: 0;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .site-nav .nav-mobile-cta {
    display: inline-flex !important;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 0; }
  .hero-visual { order: 1; }

  .steps-row { grid-template-columns: 1fr; }
  .tech-cards,
  .team-grid,
  .achievement-grid,
  .achievement-grid-4,
  .gallery-grid,
  .gallery-grid-4,
  .cards-4,
  .status-cards { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-item:nth-child(4) { grid-column: span 1; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}

@media (min-width: 1101px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    padding-top: clamp(18px, 3vh, 34px);
    padding-bottom: clamp(18px, 3vh, 34px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .hero > .container {
    width: min(1280px, calc(100% - 64px));
  }

  .hero-grid {
    height: auto;
    min-height: calc(100svh - var(--header-h) - clamp(36px, 6vh, 68px));
    gap: clamp(36px, 4.2vw, 68px);
    align-items: center;
    grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  }

  .hero-copy {
    align-self: center;
  }

  .hero-copy h1.display {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 18px;
    line-height: 0.98;
    max-width: 10.5ch;
  }

  .hero-copy .lead {
    font-size: clamp(1rem, 1.18vw, 1.15rem);
    line-height: 1.56;
    max-width: 50ch;
    margin-bottom: 0;
  }

  .hero-actions {
    margin: 28px 0 0;
  }

  .hero-stats {
    margin-top: 28px;
    padding-top: 22px;
    gap: 22px;
  }

  .hero-stat strong {
    font-size: 1.32rem;
  }

  .hero-stat span {
    font-size: 0.8rem;
  }

  .hero-visual {
    align-self: center;
  }

  .prototype-showcase {
    display: flex;
    flex-direction: column;
    max-height: none;
    padding: clamp(12px, 1.1vw, 16px);
    border-radius: var(--radius-xl);
  }

  .prototype-label {
    padding: 8px 14px 10px;
  }

  .prototype-stage {
    flex: 0 0 auto;
    height: clamp(390px, min(36vw, 53vh), 540px);
    min-height: 0;
    max-height: none;
    border-radius: 26px;
  }

  .prototype-image-layer img {
    object-position: center center;
    padding: clamp(10px, 1.5vw, 22px);
  }

  .prototype-tabs {
    margin-top: 10px;
  }

  .prototype-tab {
    min-height: 38px;
    font-size: 0.76rem;
  }

  .prototype-caption {
    margin-top: 10px;
    padding: 10px 14px;
  }

  .prototype-caption strong {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .prototype-caption p {
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .hero {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-grid {
    gap: clamp(28px, 3vw, 48px);
  }

  .hero-copy h1.display {
    font-size: clamp(2.55rem, 4.2vw, 4.1rem);
    margin-bottom: 12px;
  }

  .hero-copy .lead {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-stats {
    margin-top: 18px;
    padding-top: 14px;
  }

  .prototype-stage {
    height: clamp(340px, 50vh, 430px);
  }

  .prototype-label {
    padding-block: 6px 8px;
  }

  .prototype-caption {
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .prototype-tabs { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-achievement-media { min-height: 260px; }
  .story-photo figcaption { padding: 9px 12px 11px; }
}

/* ——— Accessibility ——— */

@media (prefers-contrast: more) {
  :focus-visible {
    outline-width: 4px;
  }

  .btn-primary {
    border: 2px solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .prototype-image-layer { transition: none; }
}

/* v17: mobile hero order and render framing */
@media (max-width: 860px) {
  .hero {
    padding-top: clamp(20px, 5vw, 32px);
    padding-bottom: clamp(28px, 7vw, 44px);
  }

  .hero-grid {
    gap: clamp(22px, 6vw, 34px);
  }

  .hero-copy {
    order: 0;
  }

  .hero-visual {
    order: 1;
  }

  .prototype-showcase {
    width: 100%;
    padding: clamp(12px, 3.5vw, 16px);
  }

  .prototype-label {
    justify-content: flex-start;
    padding: 4px clamp(8px, 2.5vw, 12px) 10px;
  }

  .prototype-label-desktop {
    display: none;
  }

  .prototype-label-mobile {
    display: inline-flex;
    color: var(--accent);
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* Rahmenhöhe am Bildinhalt orientieren — nicht an der Viewport-Höhe */
  .prototype-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 5 / 4;
    border-radius: clamp(18px, 5vw, 28px);
  }

  .prototype-image-layer,
  .prototype-image-layer picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .prototype-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: clamp(6px, 2vw, 12px);
    transform: scale(1.14);
    transform-origin: center center;
  }

  .prototype-caption {
    margin-top: 8px;
    padding: 10px 12px;
  }

  .prototype-caption p {
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .prototype-showcase {
    padding: 12px;
    border-radius: 24px;
  }

  .prototype-stage {
    aspect-ratio: 4 / 3;
  }

  .prototype-image-layer img {
    padding: 8px;
    transform: scale(1.1);
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .prototype-image-layer img {
    transform: none;
  }
}


.gallery-grid.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .gallery-grid.gallery-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .gallery-grid.gallery-grid-4 { grid-template-columns: 1fr; } }

/* Technik-Seite: Mobile-Fix ohne Veränderung der Startseite */
.system-flow,
.system-flow > div {
  min-width: 0;
  box-sizing: border-box;
}

.system-flow strong,
.system-flow span {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 860px) {
  .system-flow {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: clamp(16px, 5vw, 22px);
    gap: 14px;
    overflow: hidden;
    border-radius: 28px;
  }

  .system-flow div {
    width: 100%;
    max-width: 100%;
    padding: 18px clamp(16px, 5vw, 22px);
    border-radius: 20px;
  }

  .system-flow div::after {
    display: none !important;
  }

  /* Nur der Technik-Abschnitt mit dem Eingabegerät-Panel */
  .section-soft .container.split > .panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-soft .container.split > .panel .display {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
}

/* Erfolge: zusätzliche Jugend-Innovativ-Karte ohne Änderung des Startseitenstils */
@media (min-width: 1080px) {
  .achievement-grid-4 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1079px) and (min-width: 760px) {
  .achievement-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
