/* Ethical Saving gUG — Stylesheet v2 (Politur).
   Statisches CSS, keine Build-Pipeline noetig. Plesk-tauglich. */

:root {
  --bg: #f7f9fc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --text: #0b1220;
  --text-2: #1e293b;
  --muted: #475569;
  --faint: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #0ea5e9;
  --accent-2: #38bdf8;
  --accent-dark: #0369a1;
  --accent-soft: #e0f2fe;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --dark: #0b1220;
  --dark-2: #111c30;
  --dark-3: #1e293b;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 12px 30px -8px rgba(15, 23, 42, .08);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, .06), 0 24px 50px -12px rgba(15, 23, 42, .18);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -100px, rgba(14,165,233,.05), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(14,165,233,.25); color: var(--text); }

/* Skip link a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  line-height: 1.15; font-weight: 800; color: var(--text);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); letter-spacing: -.015em; margin-top: 0; }
h3 { font-size: 1.18rem; letter-spacing: -.005em; }
p { color: var(--muted); }
a { color: var(--accent-dark); text-decoration: none; transition: color .15s var(--ease); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.05rem; color: var(--text);
  text-decoration: none; white-space: nowrap; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -4px rgba(14,165,233,.55);
}
.brand .logo svg { width: 22px; height: 22px; }
.brand small { color: var(--faint); font-weight: 600; font-size: .72rem; display: block; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 9px 13px; border-radius: 8px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent-dark); }

.lang-switch {
  display: flex; gap: 2px; border: 1px solid var(--border);
  border-radius: 9px; overflow: hidden; margin-left: 8px; background: #fff;
}
.lang-switch a {
  padding: 7px 11px; font-size: .78rem; font-weight: 700;
  color: var(--faint); letter-spacing: .04em;
}
.lang-switch a.active { background: var(--accent); color: #fff; }
.lang-switch a:hover { text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 0;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), background .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  color: #fff; box-shadow: 0 6px 18px -4px rgba(14,165,233,.55);
}
.btn-primary:hover { box-shadow: 0 10px 26px -6px rgba(14,165,233,.7); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); border-color: var(--border-strong); }
.btn-light {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px);
}
.btn-light:hover { background: rgba(255,255,255,.25); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  font-size: 26px; cursor: pointer; color: var(--text); padding: 4px 8px;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px; margin: 0; display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .lang-switch { margin: 8px 0 0 0; align-self: flex-start; }
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(56,189,248,.32), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(14,165,233,.20), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  color: #e2e8f0;
  padding: 96px 0 110px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 80%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,165,233,.14); color: #7dd3fc;
  border: 1px solid rgba(125,211,252,.28);
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,.04); }
}
.hero p.lead { font-size: 1.22rem; color: #cbd5e1; max-width: 58ch; margin: 20px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: .85rem; color: var(--faint); }

/* Smaller hero variant on inner pages */
.hero.hero-sm { padding: 72px 0 78px; }

/* ============ Sections ============ */
section { padding: 82px 0; }
section.alt {
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, transparent 100%);
  position: relative;
}
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent-dark); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; background: var(--accent-soft); border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 4px 0 14px; }
.lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }

/* ============ Grids & Cards ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-dark));
  opacity: 0; transition: opacity .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card:hover::before { opacity: 1; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--accent-soft);
  color: var(--accent-dark);
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  box-shadow: 0 6px 14px -8px rgba(14,165,233,.5);
  transition: transform .25s var(--ease);
}
.card:hover .ico { transform: scale(1.05) rotate(-2deg); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: .98rem; }

.pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.info { background: var(--accent-soft); color: var(--accent-dark); }

/* lists */
.checklist, .crosslist { list-style: none; padding: 0; margin: 0; }
.checklist li, .crosslist li { position: relative; padding: 9px 0 9px 34px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5l4.5 4.5L20 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}
.crosslist li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/></svg>") center/11px no-repeat;
}

/* ============ Flow / Steps ============ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 16px; } }
.flow .step {
  padding: 24px; position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s var(--ease);
}
.flow .step:hover { transform: translateY(-2px); }
.flow .step .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; margin-bottom: 14px;
  box-shadow: 0 6px 14px -4px rgba(14,165,233,.5);
}
.flow .step h3 { margin: 0 0 6px; }
.flow .step p { margin: 0; font-size: .95rem; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat {
  text-align: center; padding: 28px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat .big {
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-dark));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; letter-spacing: -.02em;
  margin-bottom: 6px;
}
.stat .lbl { color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* ============ Architecture diagram embed ============ */
.diagram {
  margin: 24px 0 8px;
  background: transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(14,165,233,.25);
}
.diagram svg { display: block; width: 100%; height: auto; }

/* ============ CTA banner ============ */
.cta {
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff; border-radius: var(--radius-lg); padding: 56px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(14,165,233,.45);
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.92); max-width: 54ch; margin: 10px auto 28px; }

/* ============ Table ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.cmp {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
table.cmp th, table.cmp td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--border); font-size: .95rem;
}
table.cmp th {
  background: var(--bg-alt); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp tbody tr { transition: background .15s var(--ease); }
table.cmp tbody tr:hover { background: var(--surface-2); }
table.cmp td strong { color: var(--text); }

/* ============ Forms ============ */
.form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
}
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: var(--text); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; font-size: .95rem;
  background: #fff; color: var(--text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form input:hover, .form textarea:hover, .form select:hover { border-color: var(--border-strong); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { font-size: .82rem; color: var(--faint); margin-top: 8px; }
.form button { margin-top: 22px; }

/* ============ Prose (legal pages) ============ */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 42px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }

/* ============ Disclaimer ============ */
.disclaimer {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: 14px;
  padding: 18px 22px; font-size: .92rem; color: #92400e; margin: 26px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.disclaimer::before {
  content: "i"; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: #92400e; color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; font-style: italic;
}
.disclaimer strong { color: #78350f; }

/* ============ Footer ============ */
.site-footer {
  background: var(--dark); color: #94a3b8;
  padding: 60px 0 30px; margin-top: 0;
  background-image:
    radial-gradient(600px 300px at 90% 0%, rgba(14,165,233,.08), transparent 60%);
}
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #e2e8f0; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 16px;
}
.site-footer a {
  color: #94a3b8; display: block; padding: 5px 0;
  font-size: .92rem; transition: color .15s var(--ease);
}
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #64748b; }
.site-footer .legal {
  border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: #64748b;
}

/* ============ Misc / utilities ============ */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ============ Reveal-on-scroll animation ============ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .eyebrow::before { animation: none; }
  * { transition: none !important; }
}
