/* ==========================================================================
   SoftyGo – Stylesheet
   Aufbau: 1 Schrift · 2 Variablen · 3 Basis · 4 Layout · 5 Header
           6 Buttons · 7 Hero · 8 Abschnitte · 9 Karten · 10 Formular
           11 Rechtstexte · 12 Footer · 13 Animationen · 14 Responsive
   ========================================================================== */

/* ---------- 1. Schrift (lokal, kein Google) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Variablen ---------- */
:root {
  /* Farben (Pflichtenheft Kap. 5 – Blau an das echte Logo angepasst: #00b4ff) */
  --bg: #0a0b0d;
  --bg-2: #0f1115;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #00a3ef;
  --blue-light: #33c3ff;
  --blue-glow: rgba(0, 163, 239, 0.35);
  --white: #f5f7fa;
  --muted: #9aa3b2;
  --danger: #ff6b6b;
  --success: #4fe3a1;

  /* Schrift */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstandsraster (8er-Raster) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  /* Form */
  --radius-s: 12px;
  --radius: 22px;
  --radius-l: 32px;
  --maxw: 1180px;
  --header-h: 64px;

  /* Bewegung */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t: 350ms;
}

/* ---------- 3. Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

main {
  flex: 1;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--blue);
  color: var(--bg);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

p {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--blue);
  color: var(--bg);
  border-radius: var(--radius-s);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--s-2);
  color: var(--bg);
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.wrap--narrow {
  max-width: 760px;
}

.section {
  position: relative;
  padding: var(--s-8) 0;
}

.section--stage {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-2);
  color: var(--blue-light);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.headline {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
}

.headline--m {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.lead {
  max-width: 34ch;
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.text-blue {
  background: linear-gradient(120deg, var(--blue-light), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Hintergrund-Glow (blaue, weichgezeichnete Flächen) */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- 5. Header (Glas-Navigation) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 11, 13, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(10, 11, 13, 0.6);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--s-2);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: var(--surface-strong);
}

.nav-links .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    box-shadow var(--t) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #03131c;
  box-shadow: 0 8px 30px -8px var(--blue-glow);
}

.btn--primary:hover {
  background: var(--blue-light);
  color: #03131c;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px var(--blue-glow);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.center .btn-row {
  justify-content: center;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: var(--s-6) 0;
}

.hero .glow--1 {
  width: 900px;
  height: 900px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--s-5);
}

.hero-logo {
  width: min(440px, 90%);
  margin-bottom: var(--s-3);
}

.hero .lead {
  color: var(--white);
  opacity: 0.85;
}

.hero-claim {
  margin-top: var(--s-1);
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(440px, 100%);
  filter: drop-shadow(0 30px 80px rgba(0, 163, 239, 0.35));
  will-change: transform;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-pill[data-state="open"] .status-dot {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.status-pill[data-state="closed"] .status-dot {
  background: var(--danger);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: var(--s-3);
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
}

.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue-light);
  animation: scroll-hint 2s var(--ease) infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 8. Abschnitte ---------- */
.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.statement .glow {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

.claims {
  display: grid;
  gap: var(--s-2);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.claims span:nth-child(2) {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-strong);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--s-2);
  color: var(--blue-light);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: var(--s-1);
}

.step p {
  color: var(--muted);
}

/* ---------- 9. Karten ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.card {
  position: relative;
  overflow: hidden;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.card--wide {
  grid-column: 1 / -1;
}

.card--accent {
  border-color: rgba(79, 200, 255, 0.25);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(31, 163, 230, 0.28), transparent 55%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-3);
  padding: 12px;
  border-radius: 14px;
  background: rgba(31, 163, 230, 0.14);
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--s-2);
}

.card p {
  color: var(--muted);
}

.card .address {
  color: var(--white);
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.5;
}

.card .btn-row {
  margin-top: var(--s-3);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.hours td {
  text-align: right;
  color: var(--white);
}

.hours th {
  color: var(--muted);
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours tr.is-today th,
.hours tr.is-today td {
  color: var(--blue-light);
  font-weight: 600;
}

.note {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- 10. Formular ---------- */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s-7) 0 var(--s-5);
}

.page-head .glow {
  width: 700px;
  height: 700px;
  top: -350px;
  left: 50%;
  transform: translateX(-50%);
}

.form-card {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.field .req {
  color: var(--blue-light);
}

.field .hint {
  color: var(--muted);
  font-size: 0.8125rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7383;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(79, 200, 255, 0.15);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field .error {
  display: none;
  color: var(--danger);
  font-size: 0.8125rem;
}

.field.is-invalid .error {
  display: block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.checkbox input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--blue);
}

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.form-actions .note {
  margin: 0;
}

.alert {
  margin-bottom: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-s);
  border: 1px solid;
}

.alert--error {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
  color: #ffc9c9;
}

.result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--s-4);
  padding: 18px;
  border-radius: 50%;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-icon--ok {
  background: rgba(79, 227, 161, 0.12);
  stroke: var(--success);
}

.result-icon--error {
  background: rgba(255, 107, 107, 0.12);
  stroke: var(--danger);
}

/* ---------- 11. Rechtstexte ---------- */
.legal {
  padding-bottom: var(--s-7);
}

.legal h2 {
  margin: var(--s-5) 0 var(--s-2);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: var(--s-4) 0 var(--s-1);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 var(--s-2);
  color: #c9cfd8;
  font-style: normal;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 6px;
}

.todo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 196, 0, 0.14);
  color: #ffd666;
  font-size: 0.875em;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-4);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-4);
}

.footer-grid img {
  height: 28px;
  width: auto;
  margin-bottom: var(--s-2);
}

.footer-grid h2 {
  margin-bottom: var(--s-2);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

/* ---------- 13. Animationen ---------- */
/* Nur aktiv, wenn JS läuft (Klasse "js" am <html>) – ohne JS bleibt alles sichtbar */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-visual img {
    transform: none !important;
  }

  .scroll-hint {
    display: none;
  }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .btn-row {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(240px, 60%);
  }

  .scroll-hint {
    display: none;
  }

  .steps,
  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 58px;
  }

  .wrap {
    padding: 0 var(--s-2);
  }

  .section {
    padding: var(--s-7) 0;
  }

  .section--stage {
    min-height: 70vh;
  }

  .card,
  .form-card {
    padding: var(--s-3);
    border-radius: var(--radius);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-links .label,
  .nav-links .hide-sm {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .brand img {
    height: 26px;
  }

  .btn {
    width: 100%;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media print {
  .site-header,
  .scroll-hint,
  .glow {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
