/* sphyr.de — Carbacan Design System
   Brand: Carbacan-Blau #007dc8 + Navy #022a6a, Display-Font DigitalSansEF (wie carbacan.com),
   Body Inter. Self-hosted, keine externen CDNs. */

@font-face {
  font-family: 'DigitalSansEF';
  src: url('/assets/fonts/DigitalSansEF-Medium.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #007dc8;          /* Carbacan-Blau (Primär) */
  --brand-dark: #005fa3;     /* Hover / kräftiger */
  --navy: #022a6a;           /* Carbacan Dunkelblau — Hero/Footer */
  --navy-2: #002259;         /* Gradient-Ende */
  --brand-light: #e8f3fb;    /* helle Fläche */
  --brand-light-2: #d3e8f7;  /* Sekundär-Hover */
  --accent: #9bdaff;         /* Hellblau-Akzent */
  --ink: #14233b;
  --ink-soft: #51607a;
  --line: #e3eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f9fd;
  --danger: #b91c1c;
  --ok: #15803d;
  --radius: 8px;
  --radius-sm: 6px;
  --font-display: 'DigitalSansEF', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--navy); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 28px;
  letter-spacing: -0.02em; color: var(--navy); line-height: 1;
}
.logo::before {
  content: ""; width: 30px; height: 30px; flex: none;
  background: url(/assets/sphyr-mark-navy.svg) center / contain no-repeat;
}
.logo .logo-dot { display: none; }
.logo:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.site-header nav a:hover { color: var(--brand); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; border: 1px solid transparent; cursor: pointer;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 16px;
  padding: 12px 24px; transition: background .15s ease, border-color .15s ease, transform .05s ease;
  font-family: var(--font-body); line-height: 1.25;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: var(--brand-light); color: var(--brand) !important; border-color: var(--brand-light-2); }
.btn-secondary:hover { background: var(--brand-light-2); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero — Carbacan-Navy */
.hero {
  padding: 88px 0 72px; text-align: center; color: #fff;
  background: radial-gradient(1100px 520px at 50% -12%, #0a4f97 0%, var(--navy) 46%, var(--navy-2) 100%);
}
.hero h1 {
  font-size: 47px; line-height: 1.12; letter-spacing: -1px; color: #fff;
  max-width: 840px; margin: 0 auto 18px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p.sub { font-size: 19px; color: #cadcef; max-width: 710px; margin: 0 auto 32px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .hero-note { margin-top: 18px; font-size: 14px; color: #9dbfe0; }
.hero .btn-primary { background: #fff; color: var(--navy) !important; }
.hero .btn-primary:hover { background: #e9f3fc; }
.hero .btn-secondary {
  background: rgba(255, 255, 255, .10); color: #fff !important; border-color: rgba(255, 255, 255, .4);
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, .18); }

.badge {
  display: inline-block; background: var(--brand-light); color: var(--brand);
  font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px;
}
.badge-muted { background: var(--bg-soft); color: var(--ink-soft); border: 1px solid var(--line); }

/* Sections */
section { padding: 60px 0; }
section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 42px; }
.section-head h2 { font-size: 33px; letter-spacing: -0.5px; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* Pricing cards */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.bundle-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
}
.bundle-card:hover { box-shadow: 0 8px 26px rgba(2, 42, 106, .08); transform: translateY(-2px); }
.bundle-card.highlight { border-color: var(--brand); box-shadow: 0 12px 34px rgba(0, 125, 200, .16); }
.bundle-card .pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 13px; white-space: nowrap; letter-spacing: .2px;
}
.bundle-card h3 { font-size: 20px; margin-bottom: 4px; }
.bundle-card .tagline { font-size: 13.5px; color: var(--ink-soft); min-height: 42px; margin-bottom: 12px; }
.price-line { margin-bottom: 2px; }
.price-line .amount { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -1px; color: var(--navy); }
.price-line .unit { font-size: 13px; color: var(--ink-soft); }
.price-yearly { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.price-yearly strong { color: var(--ink); }
.bundle-card ul { list-style: none; margin: 0 0 18px; flex: 1; }
.bundle-card ul li { padding: 5px 0 5px 24px; position: relative; font-size: 14px; }
.bundle-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }
.bundle-card ul li.plus::before { content: "+"; }
.bundle-card .trial-badge { margin-bottom: 12px; }
.bundle-card .btn { width: 100%; text-align: center; }

.pricing-notes { max-width: 820px; margin: 36px auto 0; font-size: 14px; color: var(--ink-soft); }
.pricing-notes ul { list-style: disc; padding-left: 22px; }
.pricing-notes li { margin: 4px 0; }

/* Volume tier table */
.tier-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.tier-table th, .tier-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: center; }
.tier-table th { background: var(--brand-light); color: var(--navy); font-weight: 600; }

/* Module features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { box-shadow: 0 6px 20px rgba(2, 42, 106, .06); border-color: var(--brand-light-2); }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; color: var(--brand); }
.feature p { font-size: 14px; color: var(--ink-soft); }

/* Footer — Carbacan-Navy */
.site-footer {
  background: var(--navy); color: #b9cce4; padding: 44px 0 38px; margin-top: 56px; font-size: 14px;
}
.site-footer .container::before {
  content: ""; display: block; width: 38px; height: 38px; margin-bottom: 18px;
  background: url(/assets/sphyr-mark-white.svg) left center / contain no-repeat; opacity: .95;
}
.site-footer nav { margin-bottom: 14px; }
.site-footer nav a { margin-right: 16px; color: #d3e2f4; font-weight: 500; }
.site-footer nav a:hover { color: #fff; }
.site-footer a { color: var(--accent); }
.site-footer strong { color: #eaf2fb; }
.footer-cancel { max-width: 780px; margin-bottom: 12px; }

/* Legal pages */
.legal main { max-width: 800px; margin: 0 auto; padding: 40px 20px 60px; }
.legal main h1 { font-size: 31px; margin-bottom: 22px; letter-spacing: -0.5px; }
.legal main h2 { font-size: 21px; margin: 28px 0 10px; }
.legal main h3 { font-size: 16.5px; margin: 20px 0 8px; }
.legal main p { margin-bottom: 12px; }
.legal main ul, .legal main ol { padding-left: 24px; margin-bottom: 12px; }
.legal main li { margin: 4px 0; }
.legal main table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal main th, .legal main td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal main th { background: var(--bg-soft); }
.legal-draft-banner { border-radius: var(--radius-sm); }

/* Signup */
.signup-wrap { max-width: 880px; margin: 0 auto; padding: 44px 20px 60px; }
.signup-wrap h1 { font-size: 33px; letter-spacing: -0.5px; margin-bottom: 6px; }
.signup-wrap .sub { color: var(--ink-soft); margin-bottom: 30px; }
.form-section { margin-bottom: 32px; }
.form-section > h2 { font-size: 19px; margin-bottom: 14px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card label {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 14px;
  cursor: pointer; transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.choice-card label:hover { border-color: var(--brand-light-2); }
.choice-card input:checked + label { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 4px 14px rgba(0, 125, 200, .12); }
.choice-card input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice-card .c-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.choice-card .c-desc { font-size: 12.5px; color: var(--ink-soft); }
.choice-card .c-price { font-size: 14px; font-weight: 600; margin-top: 6px; }
.choice-card .c-trial { font-size: 12px; color: var(--ok); font-weight: 600; }

.interval-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.interval-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.interval-toggle label { padding: 8px 20px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.interval-toggle input:checked + label { background: var(--brand); color: #fff; }

.hr-addon-row {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.hr-addon-row.disabled { opacity: .5; }
.hr-addon-row input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); }
.hr-addon-row .hint { font-size: 12.5px; color: var(--ink-soft); }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 15px; font-family: inherit; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field .help { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.field .field-error { font-size: 13px; color: var(--danger); margin-top: 4px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .field-error { display: block; }

.subdomain-row { display: flex; align-items: center; gap: 0; }
.subdomain-row input { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.subdomain-suffix {
  border: 1px solid var(--line); border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 12px; font-size: 15px; background: var(--bg-soft); color: var(--ink-soft); white-space: nowrap;
}
.subdomain-status { font-size: 13px; margin-top: 5px; min-height: 18px; }
.subdomain-status.ok { color: var(--ok); }
.subdomain-status.bad { color: var(--danger); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.seats-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.seats-row input[type="number"] { width: 110px; }
.tier-hint { font-size: 13.5px; color: var(--ink-soft); }
.tier-hint strong { color: var(--brand); }

.summary-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 24px;
}
.summary-box h2 { font-size: 17px; margin-bottom: 10px; }
.summary-box table { width: 100%; font-size: 14.5px; border-collapse: collapse; }
.summary-box td { padding: 4px 0; }
.summary-box td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.summary-box tr.total td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 16px; color: var(--navy); }
.summary-box .summary-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

.consent { font-size: 14px; }
.consent .consent-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

.form-error {
  display: none; background: #fef2f2; border: 1px solid var(--danger); color: var(--danger);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 14.5px;
}
.form-error.show { display: block; }

/* Checkout result pages */
.result-wrap { max-width: 620px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.result-wrap .icon { font-size: 52px; margin-bottom: 16px; }
.result-wrap h1 { font-size: 31px; margin-bottom: 12px; letter-spacing: -0.5px; }
.result-wrap p { color: var(--ink-soft); margin-bottom: 12px; }
.result-wrap .cta-row { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 33px; }
  .section-head h2 { font-size: 27px; }
  .site-header nav a:not(.btn) { display: none; }
}
