/* Öffentliche Website (Startseite, Preise, Registrierung) – baut auf den Variablen aus style.css auf */
.web { background: var(--bg-main); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }
.web main { flex: 1; }
.web-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.web-muted { color: var(--text-muted); }
.web h1, .web h2, .web h3 { letter-spacing: -0.02em; line-height: 1.15; }
.web .btn-lg { padding: 0.8rem 1.4rem; font-size: 1.02rem; border-radius: 999px; }
.web .btn-block { display: flex; width: 100%; justify-content: center; }
.web .btn-primary { background: var(--coral); border-color: var(--coral); }
.web .btn-primary:hover { background: #e2643a; border-color: #e2643a; box-shadow: 0 6px 18px var(--coral-light); }
.btn-ghost-hell { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff !important; }
.btn-ghost-hell:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------------------------------------------------------------- Kopfzeile */
.web-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border-color); }
.web-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.web-nav { display: flex; gap: 1.6rem; margin-left: 1.5rem; }
.web-nav > a { color: var(--text-secondary); font-weight: 500; text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.web-nav > a:hover, .web-nav > a.aktiv { color: var(--text-primary); border-bottom-color: var(--coral); }
.web-nav-mobil { display: none; }
.web-aktionen { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.web-login { color: var(--text-primary); font-weight: 600; text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 8px; }
.web-login:hover { background: var(--bg-surface-elevated); }
.web-menu-btn { display: none; }

/* ---------------------------------------------------------------- Hero */
.web-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 500px at 75% 20%, #17447a 0%, transparent 60%), linear-gradient(160deg, #0d2240 0%, #0a1a33 100%); }
[data-theme="dark"] .web-hero { background: radial-gradient(1100px 500px at 75% 20%, #123663 0%, transparent 60%), linear-gradient(160deg, #08111f 0%, #050b16 100%); }
.web-hero-linien { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.web-hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 5.5rem; }
.web-pill { display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid rgba(160, 200, 240, 0.35); border-radius: 999px; font-size: 0.82rem; color: #b9d3f0; }
.web-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 1.1rem 0 1.2rem; }
.web-hero h1 span { color: #ff8a5f; }
.web-lead { font-size: 1.12rem; line-height: 1.6; color: var(--text-secondary); max-width: 40rem; }
.web-hero .web-lead { color: #c3d2e6; }
.web-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.web-haken { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.6rem; color: #b9d3f0; font-size: 0.92rem; }
.web-haken li { display: flex; align-items: center; gap: 0.4rem; }
.web-haken .ic { color: #ff8a5f; }

/* Produktvorschau */
.web-mock { background: #f4f6fa; color: #12203a; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); border: 1px solid rgba(255, 255, 255, 0.15); }
[data-theme="dark"] .web-mock { background: #111c2e; color: #e8eef7; }
.web-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(13, 34, 64, 0.06); }
[data-theme="dark"] .web-mock-bar { background: rgba(255, 255, 255, 0.04); }
.web-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f0744a; opacity: 0.8; }
.web-mock-bar i:nth-child(2) { background: #f2c14e; } .web-mock-bar i:nth-child(3) { background: #3cc48a; }
.web-mock-bar span { margin-left: 12px; font-size: 0.75rem; opacity: 0.55; }
.web-mock-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.web-mock-kopf b { display: block; font-size: 1.1rem; } .web-mock-kopf small { opacity: 0.6; }
.web-mock-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.web-mock-kacheln div { background: rgba(255, 255, 255, 0.9); border-radius: 10px; padding: 10px; box-shadow: 0 1px 3px rgba(16, 32, 58, 0.08); }
[data-theme="dark"] .web-mock-kacheln div { background: #172438; }
.web-mock-kacheln small { display: block; font-size: 0.66rem; opacity: 0.6; line-height: 1.2; min-height: 1.6em; }
.web-mock-kacheln b { font-size: 1.25rem; color: #1b7fae; } .web-mock-kacheln b.o { color: #f0744a; }
.web-mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 10px; border-radius: 10px; background: rgba(27, 127, 174, 0.07); }
.web-mock-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4fb0dc, #1b7fae); }
.web-mock-chart span:last-child { background: linear-gradient(180deg, #ff8a5f, #f0744a); }
.web-mock-liste { display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; }
.web-mock-liste div { display: flex; align-items: center; gap: 8px; }
.punkt { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.punkt.gruen { background: #3cc48a; } .punkt.orange { background: #f0744a; } .punkt.blau { background: #4fb0dc; }

/* ---------------------------------------------------------------- Abschnitte */
.web-sektion { padding: 5rem 0; }
.web-sektion-eng { padding-top: 1rem; }
.web-sektion-alt { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.web-titel { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.web-kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.7rem; }
.web-titel h2, .web-kopf h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 0.9rem; }
.web-titel p { color: var(--text-secondary); font-size: 1.08rem; line-height: 1.6; }

.web-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.web-raster-4 { grid-template-columns: repeat(4, 1fr); }
.web-karte, .web-vorteil { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.web-raster .web-karte:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-primary); }
.web-karte h3, .web-vorteil h3 { font-size: 1.12rem; margin: 1rem 0 0.5rem; }
.web-karte p, .web-vorteil p { color: var(--text-secondary); line-height: 1.6; font-size: 0.96rem; }
.web-vorteil { background: transparent; box-shadow: none; border-color: transparent; padding: 0.5rem; }
.web-karte-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent-primary); }
.web-karte-icon.coral { background: var(--coral-light); color: var(--coral); }

.web-schritte { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.web-schritte li { position: relative; padding: 1.6rem; border-radius: 16px; background: var(--bg-main); border: 1px solid var(--border-color); }
.web-schritte b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 1.1rem; }
.web-schritte h3 { margin: 1rem 0 0.4rem; font-size: 1.12rem; }
.web-schritte p { color: var(--text-secondary); line-height: 1.6; }

.web-band { background: linear-gradient(120deg, #0d2240, #17447a); color: #fff; padding: 3.5rem 0; }
.web-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.web-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 0.4rem; }
.web-band p { color: #c3d2e6; }
.web-band .web-cta { margin-top: 0; }

/* ---------------------------------------------------------------- Preise */
.web-kopf { padding: 4rem 0 2rem; text-align: center; }
.web-kopf .web-lead { margin: 0 auto; }
.web-umschalter { display: inline-flex; margin-top: 1.8rem; padding: 4px; border-radius: 999px; background: var(--bg-surface); border: 1px solid var(--border-color); }
.web-umschalter button { border: 0; background: none; color: var(--text-secondary); font: inherit; font-weight: 600; padding: 0.5rem 1.2rem; border-radius: 999px; cursor: pointer; }
.web-umschalter button.aktiv { background: var(--accent-primary); color: #fff; }
.web-preise { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; align-items: stretch; }
.web-paket { position: relative; display: flex; flex-direction: column; gap: 1rem; background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); }
.web-paket.empfohlen { border: 2px solid var(--coral); box-shadow: var(--shadow); }
.web-paket-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: 0.78rem;
  font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 999px; }
.web-paket h2 { font-size: 1.35rem; }
.web-preis b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.web-preis span { color: var(--text-muted); margin-left: 0.3rem; }
.web-preis small { display: block; color: var(--success-text); font-weight: 600; margin-top: 0.2rem; }
.web-preis[hidden] { display: none; }
.web-grenzen, .web-liste { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.web-grenzen { padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
.web-grenzen li, .web-liste li { display: flex; align-items: flex-start; gap: 0.5rem; line-height: 1.4; }
.web-liste .ic { color: var(--success-text); flex-shrink: 0; margin-top: 2px; }
.web-paket .web-liste { flex: 1; font-size: 0.94rem; }
.web-mehr summary { cursor: pointer; color: var(--accent-primary); font-weight: 600; }
.web-mehr p { margin-top: 0.5rem; color: var(--text-secondary); line-height: 1.6; white-space: pre-line; }
.web-leer { text-align: center; max-width: 36rem; margin: 0 auto; }
.web-leer p { margin: 0.8rem 0 1.4rem; }
.web-faq { max-width: 46rem; margin: 4rem auto 0; }
.web-faq h2 { text-align: center; margin-bottom: 1.4rem; }
.web-faq details { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.7rem; }
.web-faq summary { cursor: pointer; font-weight: 600; }
.web-faq details p { margin-top: 0.6rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------------------------------------------------------------- Registrierung */
.web-reg { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.web-reg-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.web-reg-info .web-liste { margin: 1.6rem 0; }
.web-reg-form { padding: 2rem; }
.web-reg-form:hover { transform: none; }
.web-form-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.web-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 0.6rem; font-weight: 400 !important; color: var(--text-secondary); }
.web-check input { width: auto !important; margin-top: 3px; }
.web-versteckt { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.web-erfolg { text-align: center; padding: 1.5rem 0; }
.web-erfolg .web-karte-icon { margin: 0 auto 1rem; background: var(--success-bg); color: var(--success-text); }
.web-erfolg p { margin: 0.6rem 0 1.5rem; color: var(--text-secondary); }

/* ---------------------------------------------------------------- Fußzeile */
.web-footer { border-top: 1px solid var(--border-color); background: var(--bg-surface); padding: 2rem 0; font-size: 0.92rem; }
.web-footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; line-height: 1.6; }
.web-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.web-footer a { color: var(--text-secondary); text-decoration: none; }
.web-footer a:hover { color: var(--accent-primary); }

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 980px) {
  .web-hero-inner { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 4rem; }
  .web-mock { transform: none; max-width: 560px; }
  .web-raster, .web-raster-4 { grid-template-columns: repeat(2, 1fr); }
  .web-reg { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .web-wrap { padding: 0 16px; }
  .web-header-inner { gap: 0.5rem; }
  .web-nur-desktop { display: none !important; }
  .web-menu-btn { display: inline-flex; }
  .web-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--bg-surface); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow); padding: 0.5rem 16px 1rem; }
  .web-nav.offen { display: flex; }
  .web-nav > a { padding: 0.85rem 0; border-bottom: 1px solid var(--border-subtle); }
  .web-nav-mobil { display: flex; gap: 0.6rem; padding-top: 1rem; }
  .web-nav-mobil .btn { flex: 1; justify-content: center; }
  .web-raster, .web-raster-4, .web-schritte, .web-form-zwei { grid-template-columns: 1fr; }
  .web-mock-kacheln { grid-template-columns: repeat(2, 1fr); }
  .web-sektion { padding: 3.5rem 0; }
  .web-reg-form { padding: 1.4rem; }
  .brand-subline { display: none; }
}

/* ---------------------------------------------------------------- Rechtstexte (Fußzeile + Modaldialog) */
.web-footer-recht { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle); font-size: 0.86rem; }
.web-footer-recht nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.web-modal { width: min(760px, calc(100vw - 32px)); max-height: min(85vh, 900px); margin: auto; padding: 0; border: 1px solid var(--border-color);
  border-radius: 16px; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-lg); overflow: hidden; }
.web-modal[open] { display: flex; flex-direction: column; }
.web-modal::backdrop { background: rgba(6, 13, 26, 0.6); backdrop-filter: blur(3px); }
/* Seite hinter offenem Dialog nicht mitscrollen lassen */
html:has(dialog.web-modal[open]) { overflow: hidden; }
.web-modal-inhalt, .web-matrix-scroll { overscroll-behavior: contain; }
.web-modal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-color); }
.web-modal-kopf h2 { font-size: 1.3rem; }
.web-modal-kopf .icon-btn { font-size: 1.6rem; line-height: 1; }
.web-modal-inhalt { overflow-y: auto; padding: 1.2rem 1.4rem 1.6rem; line-height: 1.65; color: var(--text-secondary); font-size: 0.95rem; }
.web-modal-inhalt h3 { color: var(--text-primary); font-size: 1.02rem; margin: 1.3rem 0 0.4rem; }
.web-modal-inhalt h3:first-child { margin-top: 0; }
.web-modal-inhalt p + p { margin-top: 0.6rem; }
.web-modal-inhalt a { color: var(--accent-primary); }
.web-modal-inhalt .web-modal-abschnitt { color: var(--text-primary); font-size: 1.2rem; margin: 2rem 0 0.2rem; padding-top: 1.4rem; border-top: 1px solid var(--border-color); }

/* ---------------------------------------------------------------- Größeres Logo im Website-Kopf */
.web-header-inner { height: 84px; }
.web-brand .logo-img { width: 52px; height: 52px; border-radius: 12px; }
.web-brand .brand-name { font-size: 1.7rem; }
.web-brand .brand-subline { font-size: 0.95rem; }
@media (max-width: 760px) {
  .web-header-inner { height: 72px; }
  .web-nav { top: 72px; }
  .web-brand .logo-img { width: 42px; height: 42px; }
  .web-brand .brand-name { font-size: 1.35rem; }
  .web-brand .brand-subline { display: block; font-size: 0.78rem; }
}

/* ---------------------------------------------------------------- Funktionsübersicht (Modal auf der Preise-Seite) */
.web-preis-steuerung { display: flex; justify-content: center; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.web-preis-steuerung .web-umschalter { margin-top: 0; }
.web-matrix-btn { border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4rem; }
.web-modal-breit { width: min(1280px, calc(100vw - 32px)); max-height: calc(100vh - 48px); height: calc(100vh - 48px); }
/* Breites Modal: nur die Tabelle scrollt (ein Scrollbereich, Kopfzeile bleibt stehen) */
.web-modal-breit .web-modal-inhalt { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.web-matrix-scroll { overflow: auto; flex: 1; min-height: 0; margin-top: 1rem; border: 1px solid var(--border-color); border-radius: 12px; }
.web-matrix { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.web-matrix th, .web-matrix td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border-subtle); text-align: center; vertical-align: middle; }
.web-matrix th { position: sticky; top: 0; background: var(--table-header-bg); color: var(--text-primary); white-space: nowrap; }
.web-matrix th:first-child, .web-matrix td:first-child { text-align: left; min-width: 240px; }
.web-matrix td strong { color: var(--text-primary); }
.web-matrix td small { display: block; color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; margin-top: 2px; }
.web-matrix tr.gruppe td { background: var(--bg-surface-elevated); color: var(--text-primary); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase; }
.web-matrix input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; vertical-align: middle;
  border: 2px solid var(--border-input); border-radius: 5px; background: var(--bg-surface); opacity: 1; cursor: default; position: relative; }
.web-matrix input[type="checkbox"]:checked { background: var(--success-text); border-color: var(--success-text); }
.web-matrix input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
[data-theme="dark"] .web-matrix input[type="checkbox"]:checked::after { border-color: #0b1322; }

/* ---------------------------------------------------------------- Kostenlose Monate + Preis-Vorschau auf der Startseite */
.web-gratis { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); font-weight: 700; font-size: 0.88rem; }
.web-preis .web-danach { display: block; margin: 0 0 -0.2rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.web-paket-kurz { text-decoration: none !important; color: inherit; gap: 0.7rem; padding: 1.6rem; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.web-paket-kurz:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.web-paket-kurz h3 { font-size: 1.25rem; }
.web-paket-kurz p { flex: 1; font-size: 0.94rem; line-height: 1.5; }
.web-mehr-link { color: var(--accent-primary); font-weight: 600; }
