/* === FONTS (lokal gehostet, kein externer Request) === */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2-variations"),
       url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.woff2") format("woff2-variations"),
       url("/fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* === CUSTOM PROPERTIES === */
:root {
  --ink: #12171D;
  --ink-soft: #1C242D;
  --paper: #F4F5F3;
  --paper-2: #E8EAE6;
  --text-dk: #10151A;
  --text-lt: #EDEFF2;
  --muted-dk: #5B6672;
  --muted-lt: #8B96A3;
  --amber: #FFB020;
  --line: #2A333D;
  --line-lt: #CFD4CE;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --spacing-section-mobile: 4.5rem;
  --spacing-section-desktop: 7rem;
  --max-width: 44rem;
  --pad-mobile: 1.25rem;
  --pad-tablet: 2rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-dk);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }

/* === UTILITIES === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--pad-mobile); }
.section { padding: var(--spacing-section-mobile) 0; }
@media (min-width: 48rem) {
  .section { padding: var(--spacing-section-desktop) 0; }
  .container { padding: 0 var(--pad-tablet); }
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
.dark { background: var(--ink); color: var(--text-lt); }
.dark .eyebrow { color: var(--amber); }
.light { background: var(--paper); color: var(--text-dk); }
.light .eyebrow {
  color: var(--muted-dk);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.light .eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--amber);
  flex-shrink: 0;
}
.accent { color: var(--amber); }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -100px; left: 0.75rem;
  background: var(--amber); color: var(--ink);
  padding: 0.5rem 1rem; font-weight: 600; z-index: 1000;
  border-radius: 4px;
}
.skip-link:focus { top: 0.75rem; }

/* === SCROLL MARGIN (Sticky-Header-Ausgleich) === */
:target { scroll-margin-top: 72px; }
#main-content { scroll-margin-top: 72px; }

/* === FOCUS === */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline-offset: 2px; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: 56px; background: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.site-header.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 0 var(--amber);
}
.header-inner {
  max-width: var(--max-width); width: 100%;
  margin: 0 auto; padding: 0 var(--pad-mobile);
  display: flex; justify-content: space-between; align-items: center;
}
@media (min-width: 48rem) { .header-inner { padding: 0 var(--pad-tablet); } }

.wordmark { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; display: inline-flex; }
.wordmark-d { color: var(--text-lt); }
.wordmark-p { color: var(--amber); }
.wordmark-phone { color: var(--amber); }
.header-cta { font-weight: 600; color: var(--text-lt); font-size: 0.9375rem; }
.header-cta:hover { color: var(--amber); }

/* === BUTTONS === */
.btn {
  display: inline-block; font-weight: 700; font-family: var(--font-body);
  padding: 0.875rem 2rem; border-radius: 4px; text-align: center;
  min-height: 44px; min-width: 44px; cursor: pointer;
  line-height: 1.2; font-size: 1rem;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { opacity: 0.9; }
.btn-large { padding: 1.125rem 2.5rem; min-height: 3.25rem; font-size: 1.125rem; }
.hero-subnote { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-lt); }

/* === HERO === */
.hero {
  min-height: calc(82vh - 56px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--ink) 0%, #0C1015 100%);
}
@supports (min-height: 82svh) {
  .hero { min-height: calc(82svh - 56px); }
}
.hero-eyebrow { color: var(--amber); }
.hero-headline { margin-bottom: 1.5rem; }
.hero-lead { font-size: 1.1875rem; max-width: 34rem; color: var(--muted-lt); margin-bottom: 2rem; }
.hero .btn { margin-bottom: 0.5rem; }

/* === PAIN SECTION === */
.pain-lines { margin-bottom: 2rem; }
.pain-lines p {
  padding-left: 1.5rem; border-left: 2px solid var(--amber);
  margin-bottom: 1.25rem; max-width: 34rem; color: var(--muted-lt);
}
.pain-closing { max-width: 34rem; }

/* === TABS === */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line-lt); margin-bottom: 2.5rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem; font-weight: 600; font-size: 1rem;
  color: var(--muted-dk); position: relative; min-height: 44px;
}
.tab-btn[aria-selected="true"] {
  color: var(--text-dk);
}
.tab-btn[aria-selected="true"]::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--amber);
}

/* === PANELS === */
.tab-panel { display: block; max-width: 34rem; }
.tab-panel[hidden] { display: none; }
.no-js .tabs { display: none; }
.no-js .tab-panel[hidden] { display: block; }
.no-js .tab-panel { margin-bottom: 3rem; }

.panel-heading { margin-bottom: 1.25rem; }
.tab-panel p { margin-bottom: 1rem; }

/* === RESULT LINES === */
.result-lines { margin: 2rem 0; }
.result-item {
  border-top: 1px solid var(--line-lt); padding: 1rem 0;
  display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; align-items: baseline;
}
.result-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.125rem; }
.result-desc { color: var(--muted-dk); font-size: 0.9375rem; }

/* === DOORPLATE === */
.doorplate-wrapper { margin: 2.5rem 0; }
.doorplate-wrapper .eyebrow { margin-bottom: 0.75rem; }
.doorplate {
  border: 1px solid var(--line-lt); background: var(--paper-2);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden;
}
.doorplate-row {
  display: flex; align-items: center; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-lt);
}
.doorplate-row:last-child { border-bottom: none; }
.doorplate-label {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 1.0625rem; min-width: 6rem;
}
.doorplate-status {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-dk);
}
.doorplate-status[data-frei] { margin-right: auto; }
.doorplate-status[data-belegt] { display: none; }
.doorplate-row.is-taken .doorplate-status[data-frei] { display: none; }
.doorplate-row.is-taken .doorplate-status[data-belegt] { display: inline; margin-right: auto; }
.doorplate-row.is-taken { opacity: .45; }
.doorplate-row.is-taken .doorplate-label { text-decoration: line-through; }
.doorplate-bell {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: var(--muted-dk); flex-shrink: 0; transition: color 120ms;
}
.doorplate-row:not(.is-taken):hover .doorplate-bell { color: var(--amber); }

/* === PRICE BLOCK === */
.price-block { margin-top: 2rem; padding: 1.5rem 0; }
.price-block p { margin-bottom: 0.75rem; }
.team-price { margin-top: 2rem; }

/* === OBJECTION BOX === */
.objection-box {
  border: 1px solid var(--line-lt); background: var(--paper-2);
  padding: 1.5rem; border-radius: 4px; margin: 2rem 0;
}
.objection-box h3 { margin-bottom: 0.75rem; font-size: 1.0625rem; }

/* === ORIGIN === */
.origin h2 { margin-bottom: 2rem; max-width: 34rem; }
.origin-grid { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 48rem) {
  .origin-grid { flex-direction: row; align-items: start; }
  .origin-photo { flex: 0 0 auto; width: 15rem; }
}
.origin-photo { width: 100%; max-width: 15rem; margin: 0 auto; }
.photo-placeholder {
  aspect-ratio: 4 / 5; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-dk); font-weight: 600; font-size: 0.875rem;
  border-radius: 4px;
}
.origin-text { max-width: 34rem; }
.origin-text p { margin-bottom: 1rem; }

/* === EXCLUSION === */
.exclusion h2 { margin-bottom: 1.5rem; }
.exclusion-lines { margin-bottom: 1.5rem; }
.exclusion-lines p {
  padding-left: 1.5rem; border-left: 1px solid var(--line-lt);
  margin-bottom: 1.25rem; max-width: 34rem; color: var(--muted-dk);
}
.exclusion-closing { max-width: 34rem; }

/* === CTA === */
.cta-centered { text-align: center; }
.cta h2 { margin-bottom: 1.25rem; }
.cta p { margin-bottom: 1.5rem; max-width: 34rem; margin-left: auto; margin-right: auto; color: var(--muted-lt); }
.cta .btn { margin-bottom: 1.25rem; }
.cta-alt { margin-bottom: 0.5rem; }
.link-alt { color: var(--amber); text-decoration: underline; font-weight: 600; }
.link-alt:hover { opacity: 0.8; }
.cta-disclaimer { font-size: 0.8125rem; color: var(--muted-lt); margin-top: 1.5rem; }

/* === FAQ === */
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--line-lt); }
details:first-of-type { border-top: 1px solid var(--line-lt); }
summary {
  padding: 1rem 0; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; display: inline-block; width: 12px; height: 12px;
  background: currentColor;
  clip-path: polygon(0 20%, 50% 70%, 100% 20%);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(180deg); }
details p { padding: 0 0 1rem; max-width: 34rem; color: var(--muted-dk); }

/* === FOOTER === */
.site-footer { background: var(--ink-soft); color: var(--muted-lt); padding: 2.5rem 0; }
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--pad-mobile);
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 48rem) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: start; padding: 0 var(--pad-tablet); }
}
.footer-brand .wordmark { margin-bottom: 0.5rem; }
.footer-brand address { font-size: 0.875rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--muted-lt); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--amber); }

/* === RESPONSIVE OVERRIDES === */
@media (max-width: 47.9375rem) {
  .result-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* === IMPRESSUM / DATENSCHUTZ === */
.page-legal { background: var(--paper); color: var(--text-dk); min-height: 80vh; }
.page-legal .container { max-width: 34rem; padding-top: 3rem; padding-bottom: 3rem; }
.page-legal h2 { margin-top: 2rem; margin-bottom: 1rem; }
.page-legal p, .page-legal li { margin-bottom: 0.75rem; }
.page-legal a { color: var(--amber); text-decoration: underline; }

/* === 404 === */
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-404 p { margin-bottom: 1rem; }