:root{
  --bg:#f5f7fb;
  --card:#fff;
  --text:#0f172a;
  --muted:#475569;
  --brand:#2563eb;
  --brand2:#1d4ed8;
  --ok:#16a34a;
  --border:#e2e8f0;
  --shadow:0 10px 30px rgba(15,23,42,.10);
  --radius:16px;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);line-height:1.55}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.nav{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:16px;flex-wrap:nowrap}
.logo{display:flex;align-items:center;gap:10px}
.logo img{height:34px;width:auto}
.badge{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted)}

/* helper wrappers */
.actions{display:flex;gap:10px;flex-wrap:wrap}
.footer-inner{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;align-items:center}
.footer-links{display:flex;gap:12px;flex-wrap:wrap}

/* Responsive navigation (mobile-friendly, like the app) */
.nav-toggle{display:none;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px;cursor:pointer;gap:5px;width:48px;height:48px;box-shadow:0 2px 8px rgba(0,0,0,0.08)}
.nav-toggle-bar{display:block;width:22px;height:3px;background:var(--brand);border-radius:2px;flex-shrink:0;transition:transform 0.2s, opacity 0.2s}

.nav-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.nav-link{color:var(--muted)}
.nav-link.active{font-weight:700;color:var(--text)}
.nav-cta{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

@media (max-width:900px){
  .nav{flex-wrap:wrap}
  .badge{display:none}
  .nav-toggle{display:inline-flex}
  .nav-toggle:hover{background:#f8fafc;border-color:var(--brand)}
  .nav-toggle:active{transform:scale(0.95)}
  .nav-links{display:none;width:100%;padding-top:10px;border-top:1px solid var(--border)}
  .nav-links.open{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .nav-link{padding:10px 6px}
  .nav-cta{justify-content:stretch}
  .nav-cta .btn{width:100%}
}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:none;border-radius:999px;padding:12px 18px;background:var(--brand);color:#fff;font-weight:600;cursor:pointer}
.btn:hover{background:var(--brand2);text-decoration:none}
.btn.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}
.btn.secondary:hover{background:#f8fafc}

.hero{padding:28px 0 10px}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:22px;align-items:stretch}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-card{padding:22px}
.h1{font-size:34px;line-height:1.15;margin:0 0 12px}
.sub{font-size:16px;color:var(--muted);margin:0 0 18px}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:16px}
.kpi{padding:12px;border:1px solid var(--border);border-radius:14px;background:#fff}
.kpi strong{display:block;font-size:16px}
.kpi span{display:block;font-size:12px;color:var(--muted)}
.section{padding:22px 0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:900px){.grid{grid-template-columns:1fr}}
.feature{padding:16px}
.feature h3{margin:0 0 8px;font-size:16px}
.feature p{margin:0;color:var(--muted);font-size:14px}
.footer{padding:22px 0;color:var(--muted);font-size:13px}
.footer a{color:var(--muted)}
.small{font-size:13px;color:var(--muted)}
.list{margin:10px 0 0;padding-left:18px;color:var(--muted)}

/* Pricing */
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:900px){.pricing{grid-template-columns:1fr}}
.price-card{padding:18px;position:relative}
.price-title{margin:0 0 6px;font-size:16px}
.price-tag{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--muted)}
.price-amount{font-size:30px;line-height:1.1;font-weight:800;margin:10px 0 2px}
.price-sub{margin:0;color:var(--muted);font-size:13px}
.price-list{margin:12px 0 0;padding-left:18px;color:var(--muted)}
.price-list li{margin:6px 0}
.price-card.recommended{border:2px solid var(--brand)}
.price-card .recommended-badge{position:absolute;top:14px;right:14px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;padding:6px 10px;border-radius:999px}
.comparison{margin-top:14px}
.comparison .card{padding:16px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border:1px solid var(--border);padding:10px;vertical-align:top}
.table th{background:#fff;text-align:left;font-size:13px}
.table td{font-size:13px;color:var(--muted)}

/* extra mobile polishing for small phones */
@media (max-width:520px){
  .container{padding:0 12px}
  .nav{flex-wrap:nowrap}
  .hero{padding:18px 0 8px}
  .hero-grid{gap:14px}
  .hero-card{padding:16px}
  .h1{font-size:24px;line-height:1.12}
  .sub{font-size:15px}
  .kpis{grid-template-columns:1fr}
  .actions .btn{width:100%}
  .btn{width:100%}
  .nav{gap:10px}
  .logo img{height:30px}
  .footer-inner{flex-direction:column;align-items:flex-start}
  .footer-links{width:100%;gap:10px}
}

/* ultra small phones */
@media (max-width:380px){
  .h1{font-size:22px}
  .hero-card{padding:14px}
  .kpi{padding:10px}
}

/* ==============================================================================
   iOS SAFARI FIXES
   ============================================================================== */

/* iOS Safari: Bounce-Scrolling verhindern */
html {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

/* iOS Safari: 100vh Fix (Adressleiste berücksichtigen) */
html, body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
}

/* iOS Safari: Safe Areas für Notch/Dynamic Island */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Footer: Platz für Home-Indikator auf neueren iPhones */
.footer, footer {
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}

/* ==============================================================================
   INPUT-ZOOM-FIX (iOS)
   ============================================================================== */

input,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"] {
  font-size: 16px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ==============================================================================
   TOUCH-TARGET-GRÖSSEN (mindestens 44x44px)
   ============================================================================== */

a[href],
button,
input[type="submit"],
input[type="button"],
.btn,
.nav-link,
.nav-toggle,
select,
[role="button"] {
  min-height: 44px;
}

/* Checkbox/Radio Labels größer machen */
input[type="checkbox"] + label,
input[type="radio"] + label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

/* Links in Footer besser klickbar */
.footer-links a {
  padding: 10px 6px;
  display: inline-flex;
  align-items: center;
}

/* ==============================================================================
   VERBESSERTE TOUCH-INTERAKTIONEN
   ============================================================================== */

/* Tap-Highlight entfernen */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* Schnellere Touch-Reaktion */
a, button, .btn {
  touch-action: manipulation;
}

/* Aktiver Zustand für Touch */
.btn:active, a:active, button:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* ==============================================================================
   SCROLL-VERBESSERUNGEN
   ============================================================================== */

/* Smooth Scrolling (aber nicht für Reduced Motion) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Horizontales Scrollen in Tabellen */
.table-wrapper, .comparison {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ==============================================================================
   BARRIEREFREIHEIT (A11Y)
   ============================================================================== */

/* Fokus-Ring für Tastaturnutzer */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Fokus-Ring nicht für Mausklicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced Motion: Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn, .card, input, select, textarea {
    border-width: 2px;
  }
}

/* ==============================================================================
   LANDSCAPE-MODUS
   ============================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 12px 0 6px; }
  .section { padding: 14px 0; }
  .hero-card { padding: 14px; }
}

/* ==============================================================================
   PRINT-STYLES
   ============================================================================== */

@media print {
  .nav, .nav-toggle, .btn, footer, .actions {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
