/* ============================================================================
   EURO STUDIOS – Design System
   Ruhig, klar, zurückhaltend. Zwei Schriftarten, eine Farbpalette,
   keine Verläufe, keine Glow- oder Glass-Effekte.
   ========================================================================== */

/* ------------------------------------------------------------------ Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- Variables */
:root {
  color-scheme: dark;
  --bg: #0c1322;
  --bg-alt: #101a2c;
  --surface: #131e32;
  --surface-2: #18243a;
  --line: #26344f;
  --line-strong: #374662;
  --text: #e9eef7;
  --text-2: #c3cde0;
  --muted: #94a1b8;
  --accent: #7ca3e0;
  --accent-strong: #3868b8;
  --accent-soft: #172742;
  --ok: #74bfa0;
  --warn: #d4af6a;
  --danger: #e08e8e;
  --radius: 10px;
  --radius-lg: 14px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --header-h: 68px;
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; padding-bottom: 92px; }
.container { width: min(1160px, 92%); margin-inline: auto; }
[hidden] { display: none !important; }
.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;
}
.skip-link {
  position: fixed; left: 14px; top: -70px; z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent-strong); color: #fff; font-weight: 600;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 14px; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 5px; }
::selection { background: #2b4a7d; color: #fff; }

.mono { font-family: var(--mono); font-size: .88em; letter-spacing: .02em; }
.muted { color: var(--muted); }
.center { justify-content: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.team { grid-template-columns: repeat(3, minmax(0, 1fr)); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.08rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--text); }
strong { color: var(--text); }
code { font-family: var(--mono); }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Icons */
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon.flip { transform: rotate(180deg); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] > .icon { width: 1em; height: 1em; }
.btn-icon { display: inline-flex; align-items: center; }
.btn-icon .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-strong); }
.nav { display: flex; align-items: center; height: var(--header-h); gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--text); font-family: var(--font-head);
  font-size: .95rem; letter-spacing: .1em; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface); color: var(--accent);
  font-size: 1rem; font-weight: 700; letter-spacing: 0;
}
.brand-text strong { font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a:not(.nav-cta) {
  padding: 8px 11px; border-radius: 7px;
  color: var(--muted); font-size: .88rem; font-weight: 500;
}
.nav-links > a:not(.nav-cta):hover { color: var(--text); background: var(--surface); }
.nav-links > a.active { color: var(--text); background: var(--surface); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 10px; padding: 9px 14px; border-radius: 7px;
  background: var(--accent-strong); color: #fff;
  font-size: .84rem; font-weight: 600;
}
.nav-cta:hover { color: #fff; background: #4579cc; }
.nav-cta .icon { width: 16px; height: 16px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle .icon { width: 20px; height: 20px; margin: auto; }

/* -------------------------------------------------------------------- Hero */
.hero { padding-block: 78px 30px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center; gap: clamp(40px, 6vw, 80px);
}
.hero-copy h1 {
  max-width: 720px; margin-bottom: .28em;
  font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.06;
}
.hero-copy .lead {
  max-width: 590px; margin-bottom: 28px;
  color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 30px 0 0; padding: 0; list-style: none;
  color: var(--text-2); font-size: .86rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.point-icon { display: inline-flex; color: var(--ok); }
.point-icon .icon { width: 15px; height: 15px; stroke-width: 2.4; }

.hero-panel {
  padding: 30px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.panel-label {
  color: var(--muted); font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-panel h2 { font-size: 1.4rem; margin-bottom: .5em; }
.hero-panel > p { font-size: .9rem; }
.panel-list { display: grid; gap: 0; margin: 22px 0 0; }
.panel-list > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: .86rem;
}
.panel-list dt { color: var(--muted); }
.panel-list dd { margin: 0; color: var(--text-2); }

/* --------------------------------------------------------------- Sections */
.section { padding-top: 88px; }
.section-alt { background: var(--bg-alt); padding-bottom: 88px; border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { font-size: .95rem; }
.section-foot { margin-top: 32px; text-align: center; }
.page-head { max-width: 800px; margin: 54px auto 42px; text-align: center; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { max-width: 650px; margin-inline: auto; color: var(--text-2); font-size: .98rem; }
.page-head .eyebrow { margin-bottom: 14px; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(38px, 6vw, 76px);
}
.split-copy h2 { margin-bottom: .4em; }
.split-copy > p { font-size: .95rem; }
.status-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: .85rem; }
.check-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--text-2); font-size: .88rem; }
.check-list .icon { color: var(--ok); margin-top: 3px; width: 15px; height: 15px; }
.detail-list { display: grid; gap: 0; margin: 24px 0 0; }
.detail-list > div {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: .88rem;
}
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; color: var(--text-2); }

/* ------------------------------------------------------------------- Cards */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px;
}
.service h2, .project h2 { font-size: 1.2rem; }
.service p, .project p { font-size: .9rem; }
.ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2); color: var(--accent);
}
.ico .icon { width: 20px; height: 20px; }

.step, .milestone { display: flex; flex-direction: column; }
.step-num {
  display: inline-flex; align-self: flex-start;
  margin-bottom: 16px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--accent); font-family: var(--font-head);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em;
}
.step h3, .milestone h3 { font-size: 1.04rem; }
.step p, .milestone p { margin: 0; font-size: .88rem; }

.flow-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.flow-list { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
  color: var(--text-2); font-size: .92rem;
}
.flow-num { color: var(--accent); font-family: var(--font-head); font-size: .8rem; letter-spacing: .08em; }
.flow-note { margin: 20px 0 0; font-size: .82rem; }

.project { display: flex; flex-direction: column; min-height: 240px; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.project-meta { display: grid; gap: 0; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.project-meta > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .8rem; }
.project-meta dt { color: var(--muted); }
.project-meta dd { margin: 0; color: var(--text-2); }

.media-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 320px; padding: 30px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); text-align: center;
}
.media-placeholder.small { min-height: 180px; }
.media-icon { display: inline-flex; color: var(--muted); }
.media-icon .icon { width: 34px; height: 34px; }
.media-placeholder strong { font-family: var(--font-head); font-size: 1rem; }
.media-placeholder span:last-child { color: var(--muted); font-size: .85rem; }

/* --------------------------------------------------------------- Badges */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.progress { color: var(--warn); border-color: #4a402a; background: #2a261a; }
.badge.done, .badge.closed { color: var(--ok); border-color: #2d4a3f; background: #1b2c25; }
.badge.open { color: var(--accent); border-color: #2c4468; background: var(--accent-soft); }
.badge.hidden-b { color: var(--muted); }
.tag {
  display: inline-block; padding: 2px 8px;
  border: 1px dashed var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: .66rem;
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: 8px;
  background: var(--accent-strong); color: #fff;
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s ease, opacity .18s ease;
}
.btn:hover { color: #fff; background: #4579cc; }
.btn:active { background: #2f5ba3; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.danger { background: #934343; }
.btn.danger:hover { background: #a74f4f; }
.btn.sm { padding: 8px 12px; border-radius: 7px; font-size: .82rem; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.danger-text { color: var(--danger) !important; }
.btn.ghost.danger-text:hover { border-color: #6a3f3f; background: #2b1e22; color: var(--danger) !important; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 7px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn .icon { width: 16px; height: 16px; }
.spinner {
  width: 14px; height: 14px; display: inline-block;
  border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}

/* -------------------------------------------------------------- Chips/FAQ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.chip-count { padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .7rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.catalog-count { color: var(--muted); font-size: .8rem; }
.catalog-state {
  max-width: 780px; margin: 20px auto 0; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--muted); font-size: .87rem; text-align: center;
}
.catalog-state-error { border-color: #6a3f3f; background: #2b1e22; color: #f0bcbc; }
.catalog-state .icon { color: var(--danger); }

.faq-panel { max-width: 900px; margin: 0 auto; padding: 28px; }
.faq-search-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.faq-search-row .field { flex: 1; }
.faq-search-row .catalog-count { white-space: nowrap; }
.faq-panel .chips { margin-bottom: 12px; }
.faq { display: grid; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 2px; color: var(--text); font-size: .94rem; font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 26px 18px 2px; color: var(--muted); font-size: .9rem; }
.faq-empty { padding: 24px; color: var(--muted); text-align: center; }

/* --------------------------------------------------------------- Support */
.support-card { display: flex; flex-direction: column; height: 100%; color: inherit; }
.support-card:hover { color: inherit; border-color: var(--line-strong); }
.support-card h3 { font-size: 1.05rem; }
.support-card p { flex: 1; font-size: .88rem; }
.support-card .card-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .83rem; font-weight: 600; }
.support-card .card-arrow .icon { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 24px; align-items: start; max-width: 1060px; margin: 0 auto; }
.form-card { padding: 30px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field label, .form-grid > div > label {
  display: block; margin-bottom: 6px; color: var(--text-2);
  font-size: .82rem; font-weight: 600;
}
input, select, textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text);
  font: inherit; font-size: .9rem;
  transition: border-color .18s ease;
}
input::placeholder, textarea::placeholder { color: #6f7b92; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 163, 224, .14);
}
select { cursor: pointer; }
select option { background: var(--surface); color: var(--text); }
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
textarea.compact { min-height: 100px; }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent-strong); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle .icon { width: 17px; height: 17px; }
.hint { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.err { margin-top: 5px; color: #f0a6a6; font-size: .8rem; line-height: 1.45; }
.err:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #a65c5c; }
.check { display: flex; align-items: flex-start; gap: 9px; }
.check input { margin-top: 3px; }
.check label { margin: 0; color: var(--text-2); font-size: .84rem; font-weight: 400; line-height: 1.5; }
.form-actions { margin-top: 6px; }
.inline-field { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; }
.inline-field select { width: auto; min-width: 150px; padding: 7px 10px; font-size: .82rem; }
.form-aside {
  padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.form-aside h3 { font-size: .95rem; }
.form-aside ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.form-aside li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .84rem; }
.form-aside li .icon { color: var(--ok); margin-top: 2px; width: 15px; height: 15px; }
.context-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 18px; padding: 12px 14px;
  border: 1px solid #2c4468; border-radius: 8px;
  background: var(--accent-soft); color: #c6d8f2; font-size: .84rem;
}
.context-note .icon { margin-top: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 18px 0; padding: 13px 15px;
  border: 1px solid #4a402a; border-radius: 8px;
  background: #241f16; color: #e8d4a6; font-size: .84rem; text-align: left;
}
.notice .icon { flex: none; margin-top: 2px; color: var(--warn); }
.notice.info { border-color: #2c4468; background: var(--accent-soft); color: #c6d8f2; }
.notice.info .icon { color: var(--accent); }
.notice strong { color: inherit; }

/* -------------------------------------------------------------- Team/Cards */
.member { display: flex; flex-direction: column; height: 100%; padding: 24px; }
.member-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.avatar {
  width: 72px; height: 72px; display: grid; place-items: center; flex: none;
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface-2); color: var(--accent);
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar.sm { width: 42px; height: 42px; font-size: .9rem; }
.avatar-loading { background: var(--surface-2); }
.member-role { margin-bottom: 5px; color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.member h3 { margin-bottom: 3px; font-size: 1.08rem; }
.member-area { margin-bottom: 10px; color: var(--muted); font-size: .8rem; }
.member p { flex: 1; font-size: .88rem; }
.member-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.member-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .83rem; font-weight: 500; }
.member-link .icon { width: 14px; height: 14px; }
.member-link.is-static { color: var(--muted); }

.empty-state { max-width: 560px; margin: 0 auto; padding: 46px 24px; text-align: center; }
.empty-icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  margin: 0 auto 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2); color: var(--accent);
}
.empty-icon .icon { width: 23px; height: 23px; }
.empty-state h3 { margin-bottom: .3em; }
.empty-state p { margin-bottom: 18px; font-size: .9rem; }

/* ------------------------------------------------------------- Skeletons */
.skeleton {
  border-radius: 6px;
  background: var(--surface-2);
  animation: shimmer 1.5s ease-in-out infinite;
}
.skeleton-card, .skeleton-row { pointer-events: none; }
.skeleton-avatar { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 16px; }
.skeleton-avatar-sm { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.skeleton-title { width: 68%; height: 20px; margin-bottom: 14px; }
.skeleton-line { width: 100%; height: 11px; margin-bottom: 8px; }
.skeleton-line.short { width: 58%; }
.skeleton-row .skeleton-line { margin: 0; }

/* ---------------------------------------------------------- Confirmation */
.confirm { max-width: 760px; margin: 0 auto; padding: 44px 34px; text-align: center; }
.confirm-icon {
  width: 68px; height: 68px; display: grid; place-items: center;
  margin: 0 auto 20px; border: 1px solid #2d4a3f; border-radius: 50%;
  background: #1b2c25; color: var(--ok);
}
.confirm-icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.confirm-icon.is-muted { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.confirm h1 { margin-bottom: .3em; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.confirm .lead { max-width: 570px; margin: 0 auto 24px; font-size: .95rem; }
.ticket-receipt {
  margin: 24px 0; padding: 16px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); text-align: left;
}
.receipt-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: .84rem;
}
.receipt-row:last-child { border-bottom: 0; }
.receipt-row > span { color: var(--muted); }
.receipt-row strong { font-size: .88rem; letter-spacing: .02em; }
.receipt-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px;
  max-width: 560px; margin: 0 auto 20px; padding: 17px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); text-align: left;
}
.receipt-summary > div > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.receipt-summary > div > strong { font-size: .87rem; }
.receipt-updated { margin-top: 16px; color: var(--muted); font-size: .75rem; }
.code-value {
  padding: 6px 9px; overflow-wrap: anywhere;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text-2); font-family: var(--mono); font-size: .74rem;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--muted); font: inherit; font-size: .7rem; cursor: pointer;
}
.copy-btn:hover { color: var(--text); background: var(--surface-2); }
.copy-btn .icon { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ Admin */
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center; gap: 48px; max-width: 1000px; min-height: 60vh;
  margin: 36px auto;
}
.auth-card { padding: 34px; }
.auth-card h1 { margin-bottom: .3em; font-size: 2rem; }
.auth-card > p { font-size: .9rem; }
.auth-brand { margin-bottom: 22px; }
.auth-aside { padding: 8px 0; }
.auth-aside h2 { font-size: 1.35rem; }
.auth-aside p { font-size: .9rem; }
.auth-aside ul { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.auth-aside li { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .85rem; }
.auth-aside li .icon { flex: none; margin-top: 2px; color: var(--ok); width: 16px; height: 16px; }
.divider {
  display: flex; align-items: center; gap: 10px; margin: 20px 0;
  color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { margin-bottom: .1em; font-size: clamp(2rem, 4vw, 2.7rem); }
.admin-head p { margin: 0; font-size: .88rem; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 26px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; padding: 17px; }
.stat-card span { color: var(--muted); font-size: .74rem; }
.stat-card strong { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.2; }
.stat-card small { color: var(--muted); font-size: .7rem; }
.admin-nav {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  display: flex; gap: 4px; margin-bottom: 30px; padding: 5px;
  overflow-x: auto; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface);
}
.admin-nav a { padding: 8px 12px; border-radius: 6px; color: var(--muted); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.admin-nav a:hover, .admin-nav a.active { color: var(--text); background: var(--surface-2); }
.admin-section { padding-top: 30px; scroll-margin-top: 120px; }
.admin-section + .admin-section { margin-top: 34px; border-top: 1px solid var(--line); }
.admin-section .section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; max-width: none; margin: 0 0 20px; text-align: left;
}
.admin-section .section-head h2 { margin-bottom: .15em; font-size: 1.5rem; }
.admin-section .section-head p { margin: 0; font-size: .86rem; }
.admin-section .section-head .row { flex: none; }

.table-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 13px 17px; }
.table-row .info { min-width: 0; }
.table-row .info strong { display: block; overflow: hidden; color: var(--text); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.table-row .info > span { display: block; overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.table-row .actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.admin-item { padding: 0; overflow: hidden; }
.admin-item > summary { display: flex; align-items: center; gap: 13px; padding: 15px 17px; cursor: pointer; list-style: none; }
.admin-item > summary::-webkit-details-marker { display: none; }
.admin-item-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.admin-item-main strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-main span { color: var(--muted); font-size: .78rem; }
.admin-item-chevron { color: var(--muted); transition: transform .2s ease; }
.admin-item[open] .admin-item-chevron { transform: rotate(180deg); }
.admin-item form { padding: 17px; border-top: 1px solid var(--line); }
.admin-user-edit { display: grid; gap: 15px; padding: 17px; }
.admin-user-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.admin-user-head > div:not(.user-avatar) { min-width: 0; flex: 1; }
.admin-user-head strong { display: block; font-size: .9rem; }
.admin-user-head span:not(.badge) { display: block; overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; }
.user-avatar {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-2); color: var(--accent); font-size: .76rem; font-weight: 700;
}

/* ------------------------------------------------------------ Modal/Toast */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 9, 17, .78);
}
.modal.open { display: flex; }
.modal-card { width: min(700px, 100%); max-height: 92vh; overflow: auto; padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 1.4rem; }
.modal-open { overflow: hidden; }
.photo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.photo-row .hint { margin-top: 5px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 200;
  display: flex; align-items: center; gap: 8px; max-width: min(460px, 92vw);
  padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface-2); color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  font-size: .85rem; opacity: 0; pointer-events: none;
  transform: translate(-50%, 20px); transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { color: var(--ok); }
.toast-error .icon { color: var(--danger); }

/* -------------------------------------------------------------- CTA/Footer */
.cta-wrap { padding-top: 88px; }
.cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding: 38px;
}
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; font-size: .92rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding-block: 42px 22px; color: var(--muted); font-size: .86rem;
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 28px; }
.foot-brand p { max-width: 320px; margin: 14px 0 0; font-size: .84rem; }
.foot-grid h4 { margin-bottom: 11px; color: var(--text); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.foot-grid a:not(.brand) { display: block; padding: 3px 0; color: var(--muted); font-size: .83rem; }
.foot-grid a:not(.brand):hover { color: var(--text); }
.foot-placeholder { display: block; padding: 3px 0; color: var(--muted); font-size: .83rem; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .76rem;
}

/* ------------------------------------------------------------------ Legal */
.legal { max-width: 860px; margin: 0 auto; padding: 34px; }
.legal h2 { margin-top: 1.5em; font-size: 1.15rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); font-size: .91rem; }
.legal ul { padding-left: 20px; }

/* -------------------------------------------------------------- Animation */
/* Ohne JavaScript bleibt alles sichtbar; Animationen sind optional. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- Responsive */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy h1, .hero-copy .lead { margin-inline: auto; }
  .hero-copy { text-align: center; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-panel { max-width: 560px; margin-inline: auto; width: 100%; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid.cols-3, .grid.team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .form-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .auth-aside { order: 2; }
  .table-row { grid-template-columns: auto minmax(0, 1fr); }
  .table-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .detail-list > div, .panel-list > div { grid-template-columns: 110px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 3px;
    margin: 0; padding: 14px 4% 18px;
    border-bottom: 1px solid var(--line); background: var(--bg);
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.nav-cta) { padding: 11px 12px; }
  .nav-cta { justify-content: center; margin: 8px 0 0; }
  .nav-open { overflow: hidden; }
  .section, .cta-wrap { padding-top: 66px; }
  .section-alt { padding-bottom: 66px; }
  .hero { padding-block: 52px 26px; }
  .admin-nav { top: calc(var(--header-h) + 6px); }
}

@media (max-width: 640px) {
  .grid.cols-3, .grid.team, .grid.cols-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { justify-content: flex-start; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-head, .admin-section .section-head { align-items: flex-start; }
  .form-grid.two { grid-template-columns: 1fr; }
  .confirm { padding: 32px 20px; }
  .receipt-row { grid-template-columns: 1fr auto; }
  .receipt-row > span { grid-column: 1 / -1; }
  .receipt-summary { grid-template-columns: 1fr; }
  .faq-search-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .detail-list > div, .panel-list > div { grid-template-columns: 1fr; gap: 2px; }
  .cta { padding: 30px 22px; }
  .toast { bottom: 16px; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; align-items: center; gap: 8px; }
  .page-head { margin: 40px auto 32px; }
  .card, .form-card, .faq-panel { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .admin-stats { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-card { padding: 20px; }
  .photo-row { align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .card { background: none; border: 1px solid #ccc; }
  p, .muted { color: #222; }
  a { color: #000; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}
