/* AIFIDIS – Website-Stylesheet
   Gestaltung nach dem Workspace-Design der App (v1.87): Eurostile, Tinte auf heller Fläche,
   Orange nur als Akzent. Schrift: Eurostile von (URW)++, lokal unter /assets/fonts,
   dieselben Dateien wie in der App – Lizenz für Webnutzung vor Go-live bestätigen. */

@font-face { font-family: "Eurostile AIFIDIS"; src: url("fonts/Eurostile-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Eurostile AIFIDIS"; src: url("fonts/Eurostile-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Eurostile AIFIDIS"; src: url("fonts/Eurostile-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Eurostile AIFIDIS"; src: url("fonts/Eurostile-Heavy.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #292929;           /* Tinte = Text, Linien, dunkle Flächen (App: primary.main) */
  --night: #202223;         /* dunkle Sektionen (App: Dunkelmodus-Seite) */
  --paper: #F7F7F7;         /* Seitenfläche (App: background.default) */
  --paper-2: #FFFFFF;       /* Karten (App: background.paper) */
  --line: #E1E1E1;
  --signal: #FF4D1F;        /* Akzent auf dunklem Grund */
  --signal-ink: #B8360E;    /* Akzent als Text auf hellem Grund (Kontrast ≥ 4,5:1) */
  --body: #4A4A4C;
  --muted: #6B6D71;         /* App nutzt #77797D; für kleine Schrift auf #F7F7F7 abgedunkelt (4,8:1) */
  --on-dark: #E8E7E2;
  --on-dark-muted: #B9BBBC;
  --display: "Eurostile AIFIDIS", "Eurostile", "Arial Black", Arial, sans-serif;
  --sans: "Eurostile AIFIDIS", "Eurostile", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Eurostile AIFIDIS", "Eurostile", system-ui, Arial, sans-serif;  /* Labels: gesperrte Versalien statt Monospace */
  --brand: "Avenir Next", Avenir, Futura, "Century Gothic", sans-serif;  /* Wortmarke und Claim wie in der App */
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--sans); }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

/* ── Typografie ─────────────────────────────── */
.eyebrow { font: 700 13px/1.4 var(--mono); letter-spacing: .25em; text-transform: uppercase; color: #5B5A5C; }
.dark .eyebrow { color: var(--on-dark-muted); }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 92px); line-height: 1.02; letter-spacing: -.005em; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--body); max-width: 720px; }
.dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.accent { color: var(--signal-ink); }
.dark .accent { color: var(--signal); }
.note { font-size: 14px; color: var(--muted); }
.dark .note { color: var(--on-dark-muted); }

/* ── Header ─────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 247, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.logo { display: inline-block; line-height: 0; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.nav .btn { margin-left: 8px; min-height: 40px; padding: 10px 18px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 12px 0; min-height: 44px; }
.menu summary::-webkit-details-marker { display: none; }

/* ── Buttons ────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--signal-ink); border-color: var(--signal-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dark .btn { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.dark .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.dark .btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Sektionen ──────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section:not(.dark):not(.band) { border-top: 1px solid var(--line); }
.dark { background: var(--night); color: var(--on-dark); }
.band { background: var(--paper-2); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.band .card { background: var(--paper); }
.card p { color: var(--body); }
.card.inverse { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.card.inverse p { color: var(--on-dark-muted); }
.card .tag { font: 700 12px/1 var(--mono); letter-spacing: .10em; text-transform: uppercase; color: var(--ink); background: rgba(0,0,0,.06); padding: 7px 12px; border-radius: 999px; align-self: flex-start; }
.card.inverse .tag { color: var(--on-dark); background: transparent; box-shadow: inset 0 0 0 1.5px var(--signal); }
.num { font: 600 13px var(--mono); letter-spacing: .12em; color: var(--signal-ink); }

.pillar { border-top: 4px solid var(--signal); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.pillar p { color: var(--on-dark-muted); }

.stat { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 72px); line-height: 1; }
.stat p { color: var(--body); }

.step { border-top: 3px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.step:last-child { border-top-color: var(--signal); }
.step p { color: var(--body); font-size: 16px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--signal-ink); border-bottom: 3px solid var(--signal-ink); transform: rotate(-45deg); }
.dark .checklist li::before { border-color: var(--signal); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: 700 12px var(--mono); letter-spacing: .10em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--ink); }

/* ── Hero ───────────────────────────────────── */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }

/* Produkt-Illustration (reines HTML, kein Screenshot) */
.mock { background: var(--night); color: var(--on-dark); border-radius: 12px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(32, 34, 35, .55); font-size: 15px; display: flex; flex-direction: column; gap: 14px; }
.mock-bar { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--on-dark-muted); letter-spacing: .05em; }
.mock-q { align-self: flex-end; background: #2A2C2D; border-radius: 12px 12px 2px 12px; padding: 12px 14px; max-width: 88%; }
.mock-a { background: var(--paper); color: var(--ink); border-radius: 12px 12px 12px 2px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mock-a strong { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.mock-src { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-src span { font: 12px var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: var(--body); }
.mock-foot { font: 12px var(--mono); color: var(--on-dark-muted); display: flex; gap: 8px; align-items: center; }
.mock-foot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4CC38A; }

/* ── Diagramm Datenfluss ────────────────────── */
.flow { border: 2px dashed var(--ink); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.flow-row { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; gap: 12px; align-items: stretch; }
.flow-arrow { align-self: center; font: 700 22px var(--display); color: var(--signal-ink); }
.flow-ext { border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: 16px 20px; color: var(--body); }

/* ── Tabellen ───────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
.status { font: 600 12px var(--mono); letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.status.live { background: #DDEFE3; color: #1F5B37; }
.status.beta { background: #FBE7C6; color: #7A4A06; }
.status.plan { background: #ECECEC; color: #4A4A4C; }
tr.price td { font-weight: 700; background: var(--night); color: var(--paper); }
tr.price td:not(:first-child) { color: var(--signal); }

/* ── FAQ ────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 24px var(--display); color: var(--signal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--body); max-width: 820px; }

/* ── CTA & Footer ───────────────────────────── */
.cta .wrap { display: flex; flex-direction: column; gap: 28px; }
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 48px 0; font-size: 15px; border-top: 1px solid #2A2C2D; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--on-dark); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Rechtstexte ────────────────────────────── */
.legal { max-width: 780px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; color: var(--body); }
.legal mark { background: #FFE08A; color: var(--ink); padding: 0 3px; }

/* ── Responsiv ──────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-row { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: 52px; flex-direction: column; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 240px; box-shadow: 0 16px 32px -16px rgba(0,0,0,.3); }
  .menu-panel a { text-decoration: none; font-weight: 600; padding: 10px 8px; min-height: 44px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.align-start { align-items: start; }
.footer-brand { color: var(--on-dark); display: inline-block; vertical-align: -1px; }
.footer-brand .wordmark { height: 13px; }
.legal .h1 { font-size: clamp(36px, 6vw, 64px); hyphens: auto; }
.hero .h1 { font-size: clamp(38px, 5.4vw, 72px); }
.hero-home .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 48px; }
.hero-home .h1 { font-size: clamp(40px, 6.6vw, 92px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* ── Audit-Fixes 24.09.2026 ───────────────────── */
/* Pilotpreis in der dunklen Karte als Akzent (Spezifität über .card.inverse p) */
.card.inverse .accent { color: var(--signal); }
/* Dreier-Raster ohne verwaiste dritte Karte auf Zwischenbreiten */
@media (max-width: 960px) and (min-width: 641px) {
  .grid-3 > :last-child:nth-child(3) { grid-column: 1 / -1; }
}
/* Tabellen auf Mobil als gestapelte Karten – keine abgeschnittenen Spalten */
@media (max-width: 640px) {
  .table-wrap:has(.stack-mobile) { overflow: visible; border: 0; background: transparent; }
  table.stack-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack-mobile, table.stack-mobile tbody, table.stack-mobile tr, table.stack-mobile td { display: block; width: 100%; }
  table.stack-mobile tr { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; margin-bottom: 12px; }
  table.stack-mobile td { border-bottom: 0; padding: 6px 16px; }
  table.stack-mobile td[data-label]::before { content: attr(data-label); display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  table.stack-mobile td.row-head { font-weight: 700; }
  table.price-table tr.price { background: var(--night); }
  table.price-table tr.price td[data-label]::before { color: var(--on-dark-muted); }
  table.price-table td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  table.price-table td[data-label]::before { display: inline; }
}
/* 404 */
.not-found .h1 { font-size: clamp(36px, 6vw, 64px); }
.not-found-art { width: 120px; height: auto; color: var(--ink); margin-bottom: 8px; }
.not-found-art .slot-leer { opacity: .5; }
.card.inverse .checklist li::before { border-color: var(--signal); }

/* ── Stilelemente der App (14.10.2026) ───────── */
.site-footer .logo::after, .footer-brand::after { content: none; }
.card-head { display: flex; align-items: center; gap: 12px; }
.ico { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }
.card .ico { color: var(--ink); }
.card.inverse .ico { color: var(--signal); }
.table-wrap th { letter-spacing: .25em; }

/* Wortmarke der App als SVG (Century Gothic Bold, -0.055em) */
.wordmark { display: block; height: 28px; width: auto; }

/* Logo-Paket wie in der App-Kopfzeile (Wortmarke + Claim, Vektor) */
.logo .lockup { display: block; height: 44px; width: auto; }
.site-header .logo .wordmark { display: none; }
@media (max-width: 640px) { .site-header .logo .lockup { display: none; } .site-header .logo .wordmark { display: block; height: 24px; } }

/* Sprachumschalter (DE · EN · FR · IT) */
.lang { display: flex; gap: 2px; margin-left: -12px; }
.lang a { text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .10em; padding: 6px 6px; border-radius: 999px; color: var(--muted); min-width: 28px; text-align: center; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lang-menu { display: none; }
@media (max-width: 1100px) {
  .site-header .wrap > .lang { display: none; }
  .menu-panel .lang-menu { display: flex; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .menu-panel .lang-menu a { min-height: 36px; padding: 9px 6px; font-weight: 700; }
}
/* Logo-Paket nie stauchen; längere Navigation (FR/IT) früher ins Menü */
.site-header .logo { flex-shrink: 0; }
@media (max-width: 1240px) {
  .site-header .nav, .site-header .wrap > .lang { display: none; }
  .menu { display: block; position: relative; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: 52px; flex-direction: column; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 240px; box-shadow: 0 16px 32px -16px rgba(0,0,0,.3); }
  .menu-panel a { text-decoration: none; font-weight: 600; padding: 10px 8px; min-height: 44px; }
  .menu-panel .lang-menu { display: flex; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .menu-panel .lang-menu a { min-height: 36px; padding: 9px 6px; font-weight: 700; }
}
@media (max-width: 1560px) {
  html[lang="fr"] .site-header .nav, html[lang="it"] .site-header .nav, html[lang="fr"] .site-header .wrap > .lang, html[lang="it"] .site-header .wrap > .lang, html[lang="es"] .site-header .nav, html[lang="es"] .site-header .wrap > .lang { display: none; }
  html[lang="fr"] .menu, html[lang="it"] .menu, html[lang="es"] .menu { display: block; position: relative; }
  html[lang="fr"] .menu[open] .menu-panel, html[lang="it"] .menu[open] .menu-panel, html[lang="es"] .menu[open] .menu-panel { display: flex; }
  html[lang="fr"] .menu-panel, html[lang="it"] .menu-panel, html[lang="es"] .menu-panel { display: none; position: absolute; right: 0; top: 52px; flex-direction: column; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 240px; box-shadow: 0 16px 32px -16px rgba(0,0,0,.3); }
  html[lang="fr"] .menu-panel a, html[lang="it"] .menu-panel a, html[lang="es"] .menu-panel a { text-decoration: none; font-weight: 600; padding: 10px 8px; min-height: 44px; }
  html[lang="fr"] .menu-panel .lang-menu, html[lang="it"] .menu-panel .lang-menu, html[lang="es"] .menu-panel .lang-menu { display: flex; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  html[lang="fr"] .menu-panel .lang-menu a, html[lang="it"] .menu-panel .lang-menu a, html[lang="es"] .menu-panel .lang-menu a { min-height: 36px; padding: 9px 6px; }
}
