/* Rinify – Dark-Tech-Design, ohne Framework und ohne externe Ressourcen */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f172a;          /* Slate 900 */
  --bg-tief: #0b1222;
  --karte: #1e293b;       /* Slate 800 */
  --rand: #334155;        /* Slate 700 */
  --text: #e2e8f0;
  --text-leise: #94a3b8;
  --weiss: #fff;
  --cyan: #0ea5e9;
  --cyan-hell: #38bdf8;
  --blau: #3b82f6;
  --gruen: #22c55e;
  --radius: 1rem;
  --radius-gross: 1.5rem;
  --breite: 72rem;
  --schatten-glow: 0 0 0 1px rgba(56,189,248,.35), 0 8px 30px -6px rgba(14,165,233,.55);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--cyan-hell); }
a:hover { color: var(--weiss); }
h1, h2, h3 { color: var(--weiss); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan-hell); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--breite)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--cyan); color: var(--bg); padding: .6rem 1rem; border-radius: 0 0 .5rem 0; font-weight: 700; }
.skip:focus { left: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verlauf {
  background: linear-gradient(90deg, var(--cyan-hell), var(--blau));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .75rem 1.4rem;
  border-radius: .75rem; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primaer { background: var(--cyan); color: var(--weiss); box-shadow: var(--schatten-glow); }
.btn-primaer:hover { background: var(--cyan-hell); color: var(--bg); box-shadow: 0 0 0 1px rgba(56,189,248,.6), 0 10px 40px -4px rgba(56,189,248,.7); }
.btn-rahmen { background: rgba(30,41,59,.6); color: var(--weiss); border-color: var(--rand); }
.btn-rahmen:hover { border-color: var(--cyan-hell); color: var(--weiss); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.live-punkt { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: var(--gruen); flex: none; }
.live-punkt::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gruen);
  animation: puls 1.8s ease-out infinite;
}
@keyframes puls { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51,65,85,.6);
}
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.marke { display: inline-flex; align-items: center; gap: .55rem; color: var(--weiss); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.marke:hover { color: var(--weiss); }
.marke-logo { width: 2rem; height: 2rem; border-radius: .6rem; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan-hell), var(--blau)); color: var(--bg); box-shadow: 0 0 18px -2px rgba(56,189,248,.6); }
.marke-logo .ico { width: 1.15rem; height: 1.15rem; stroke-width: 2.4; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--text-leise); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--weiss); }
.nav .btn { min-height: 2.6rem; padding: .5rem 1rem; font-size: .925rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(4rem, 9vw, 7rem); }
.abschnitt-kopf { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.abschnitt-kopf p { color: var(--text-leise); font-size: 1.1rem; }
.kicker { display: inline-block; color: var(--cyan-hell); font-weight: 650; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .75rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 80%;
  background: radial-gradient(ellipse at 30% 40%, rgba(14,165,233,.22), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.16), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; margin-bottom: 1.5rem;
  border: 1px solid rgba(56,189,248,.35); border-radius: 999px;
  background: rgba(14,165,233,.1); color: var(--cyan-hell);
  font-size: .875rem; font-weight: 600;
}
.badge .ico { width: 1rem; height: 1rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-leise); max-width: 36rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-fakten { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--text-leise); font-size: .95rem; }
.hero-fakten li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-fakten .ico { color: var(--cyan-hell); width: 1.05rem; height: 1.05rem; }

/* ---------- Vorher/Nachher-Slider ---------- */
.vergleich {
  --pos: 50%;
  position: relative; aspect-ratio: 1376 / 768;
  border-radius: var(--radius-gross); overflow: hidden;
  border: 1px solid var(--rand);
  box-shadow: 0 30px 80px -30px rgba(14,165,233,.45);
  background: var(--karte);
  touch-action: pan-y;            /* senkrecht scrollen bleibt möglich, waagerecht zieht der Regler */
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vergleich .vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vergleich-linie {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-50%);
  background: var(--cyan-hell); box-shadow: 0 0 14px rgba(56,189,248,.9);
  pointer-events: none;
}
.vergleich-griff {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--cyan-hell);
  border: 2px solid var(--cyan-hell); box-shadow: 0 0 24px rgba(56,189,248,.7);
  cursor: ew-resize;
}
.vergleich-griff .ico { width: 1.4rem; height: 1.4rem; }
.vergleich-label {
  position: absolute; top: .9rem; padding: .3rem .7rem; border-radius: .5rem;
  background: rgba(15,23,42,.75); color: var(--weiss); font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}
.vergleich-label.links { left: .9rem; }
.vergleich-label.rechts { right: .9rem; color: var(--cyan-hell); }
.symbolbild { position: absolute; bottom: .6rem; right: .8rem; font-size: .72rem; color: rgba(255,255,255,.75); text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none; }
.vergleich-hinweis { margin: .8rem 0 0; color: var(--text-leise); font-size: .85rem; text-align: center; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 920px) { .bento { grid-template-columns: 1fr; } }
.karte {
  position: relative; overflow: hidden;
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-gross);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color .2s ease, transform .2s ease;
}
.karte:hover { border-color: rgba(56,189,248,.5); transform: translateY(-2px); }
.karte::after {
  content: ""; position: absolute; right: -40%; top: -40%; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(14,165,233,.14), transparent 70%); pointer-events: none;
}
.karte-ico {
  width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: rgba(14,165,233,.12); border: 1px solid rgba(56,189,248,.3); color: var(--cyan-hell);
}
.karte-ico .ico { width: 1.45rem; height: 1.45rem; }
.karte p { color: var(--text-leise); margin: 0; }
.karte-zahl { display: block; margin-top: 1.25rem; font-size: 2rem; font-weight: 800; color: var(--weiss); letter-spacing: -0.03em; }
.karte-zahl small { font-size: .95rem; font-weight: 600; color: var(--text-leise); }

/* ---------- Preisrechner ---------- */
.rechner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .rechner { grid-template-columns: 1fr; } }
.rechner-eingabe, .rechner-ergebnis { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: clamp(1.5rem, 3vw, 2.25rem); }
.regler-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.regler-kopf label { font-weight: 650; color: var(--weiss); }
.regler-wert { font-size: 1.6rem; font-weight: 800; color: var(--cyan-hell); font-variant-numeric: tabular-nums; }
input[type="range"] {
  --fuellung: 22%;
  -webkit-appearance: none; appearance: none; width: 100%; height: .5rem; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--cyan) var(--fuellung), var(--rand) var(--fuellung));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--weiss); border: 3px solid var(--cyan); box-shadow: 0 0 16px rgba(56,189,248,.8);
}
input[type="range"]::-moz-range-thumb {
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--weiss); border: 3px solid var(--cyan); box-shadow: 0 0 16px rgba(56,189,248,.8);
}
.regler-skala { display: flex; justify-content: space-between; color: var(--text-leise); font-size: .8rem; margin-top: .5rem; }
.hilfe { color: var(--text-leise); font-size: .875rem; margin: 1rem 0 0; }
.option {
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  margin-top: 1.75rem; padding: 1rem 1.1rem;
  border: 1px solid var(--rand); border-radius: var(--radius); background: rgba(15,23,42,.5);
}
.option label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 600; color: var(--weiss); flex: 1 1 14rem; }
.option small { display: block; color: var(--text-leise); font-weight: 450; }
input[type="checkbox"] { width: 1.3rem; height: 1.3rem; accent-color: var(--cyan); flex: none; }
.anzahl { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-leise); font-size: .9rem; }
.anzahl input { width: 4.25rem; }
.rechner-ergebnis { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, rgba(14,165,233,.16), rgba(30,41,59,1) 55%); border-color: rgba(56,189,248,.35); }
.ergebnis-label { color: var(--text-leise); font-size: .95rem; margin-bottom: .35rem; }
.ergebnis-preis { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; color: var(--weiss); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-bottom: 1rem; }
.ergebnis-details { list-style: none; margin: 0 0 1.25rem; padding: 0; color: var(--text-leise); font-size: .925rem; }
.ergebnis-details li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--rand); }
.ergebnis-details li span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.ergebnis-hinweis { font-size: .875rem; color: var(--text-leise); margin-bottom: 1.25rem; }

/* ---------- Anfrage ---------- */
.anfrage-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .anfrage-grid { grid-template-columns: 1fr; } }
.anna { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: clamp(1.5rem, 3vw, 2.25rem); }
.anna-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.anna-avatar { position: relative; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan-hell), var(--blau)); color: var(--bg); flex: none; }
.anna-avatar .ico { width: 1.6rem; height: 1.6rem; }
.anna-avatar .live-punkt { position: absolute; right: .1rem; bottom: .1rem; border: 2px solid var(--karte); width: .85rem; height: .85rem; }
.anna-kopf strong { display: block; color: var(--weiss); font-size: 1.1rem; }
.anna-kopf span { color: var(--gruen); font-size: .875rem; font-weight: 600; }
.anna p { color: var(--text-leise); }
.anna .nummer { display: block; margin: 1.25rem 0; font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 800; color: var(--weiss); text-decoration: none; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.anna .nummer:hover { color: var(--cyan-hell); }
.anna .btn { width: 100%; }
.anna .mail { margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rand); font-size: .95rem; }

.formular { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-gross); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } }
.feld { display: grid; gap: .4rem; }
.feld label { font-weight: 600; color: var(--weiss); font-size: .95rem; }
.optional { color: var(--text-leise); font-weight: 450; }
input[type="text"], input[type="tel"], input[type="number"], input[type="email"], input[type="date"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--weiss);
  background: var(--bg); border: 1px solid var(--rand); border-radius: .75rem;
  padding: .8rem .95rem; min-height: 3.1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  color-scheme: dark;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--cyan-hell); box-shadow: 0 0 0 3px rgba(56,189,248,.25); }
input::placeholder, textarea::placeholder { color: #64748b; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.formular-fuss p { margin: 0; color: var(--text-leise); font-size: .85rem; flex: 1 1 16rem; }
.formular-status:empty { display: none; }
.formular-status { padding: .85rem 1rem; border-radius: .75rem; font-weight: 550; }
.formular-status.fehler { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); color: #fecaca; }

/* Bestätigung (Toast) */
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 80;
  width: min(100% - 2rem, 28rem);
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--karte); border: 1px solid rgba(34,197,94,.55);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6), 0 0 30px -8px rgba(34,197,94,.5);
  transform: translate(-50%, 150%); opacity: 0; visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
.toast.zeigen { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast .ico { color: var(--gruen); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.toast strong { display: block; color: var(--weiss); }
.toast p { margin: 0; color: var(--text-leise); font-size: .925rem; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--text-leise); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 0 .2rem; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--rand); background: var(--bg-tief); padding-block: 3rem 2rem; color: var(--text-leise); font-size: .925rem; }
.fuss .wrap { display: grid; gap: 1.5rem; }
.fuss-oben { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.fuss p { margin: .5rem 0 0; }
.fuss-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.fuss-links a { color: var(--text-leise); text-decoration: none; }
.fuss-links a:hover, .fuss-links a[aria-current] { color: var(--weiss); }
.fuss-unten { padding-top: 1.5rem; border-top: 1px solid rgba(51,65,85,.6); font-size: .85rem; }

/* Feste Leiste auf dem Handy */
.aktionsleiste { display: none; }
@media (max-width: 760px) {
  body.mit-leiste { padding-bottom: 4.75rem; }
  .aktionsleiste {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(15,23,42,.92); border-top: 1px solid var(--rand);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .aktionsleiste .btn { min-height: 3rem; padding-inline: .5rem; font-size: .95rem; }
  .toast { bottom: 5.5rem; }
}

/* ---------- Rechtstexte, 404, Formular-Antwort ohne JS ---------- */
.rechtstext { padding-block: clamp(3rem, 7vw, 5rem); }
.rechtstext .wrap { max-width: 48rem; }
.rechtstext h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2.2em; }
.rechtstext p, .rechtstext address { color: var(--text-leise); }
.rechtstext address { font-style: normal; margin-bottom: 1em; }
.zurueck { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; text-decoration: none; }
