/* Norvik – gemeinsame Gestaltung (Hauptseite und Winterdienst).
   Farben wie sicherheit.norvik24.de: tiefes Marineblau, Stahlblau als Akzent.
   Keine externen Schriften, keine Cookies. Das kleine Skript (skript.js) ist nur Zierde. */

:root {
  --brand-50: #f2f5fa;
  --brand-100: #e2e8f2;
  --brand-200: #c3cede;
  --brand-300: #93a5c0;
  --brand-500: #3c5178;
  --brand-600: #2a3c5d;
  --brand-700: #1d2c46;
  --brand-800: #131f33;
  --brand-900: #0b1424;
  --brand-950: #060b16;
  --accent-400: #6b95e8;
  --accent-500: #3f6fd4;
  --accent-600: #2d55ad;
  --radius: 18px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--schrift);
  color: var(--brand-800);
  background: #fff;
  line-height: 1.65;
  hyphens: auto;
  overflow-wrap: break-word;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.huelle { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }

.sprung { position: absolute; left: -999px; top: 0; background: var(--brand-900); color: #fff; padding: .6rem 1rem; z-index: 100; }
.sprung:focus { left: 0; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-100);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.logo img { display: block; height: 2.6rem; width: auto; }
.kopf-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; font-size: .98rem; }
.kopf-nav a { text-decoration: none; color: var(--brand-700); }
.kopf-nav a:not(.knopf):hover { color: var(--accent-600); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.55rem; border-radius: 999px; border: 2px solid var(--accent-500);
  background: var(--accent-500); color: #fff; font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: background .15s, border-color .15s, transform .1s;
}
.knopf:hover { background: var(--accent-600); border-color: var(--accent-600); }
.knopf:active { transform: scale(.98); }
.knopf-klein { padding: .5rem 1.15rem; font-size: .95rem; color: #fff !important; }
.knopf-hell { background: transparent; color: var(--brand-800); border-color: var(--brand-200); }
.knopf-hell:hover { background: var(--brand-50); border-color: var(--brand-300); }
.textlink { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 2px; }
.textlink:hover { border-bottom-color: #fff; }

/* ---------- Held mit Bild ---------- */
.held {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(82vh, 40rem); display: flex; align-items: center;
  padding: 5rem 0;
  background: var(--brand-900) center / cover no-repeat;
}
.held::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 11, 22, .92) 0%, rgba(6, 11, 22, .72) 38%, rgba(6, 11, 22, .15) 80%),
    linear-gradient(0deg, rgba(6, 11, 22, .55), transparent 40%);
}
.held-start { background-image: url("/bilder/hero.webp"); }
.kicker { margin: 0 0 1rem; color: var(--accent-400); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.held h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }
.held-text { margin: 1.4rem 0 0; max-width: 36rem; font-size: 1.1rem; color: #d3dcec; }
.held-knoepfe { margin-top: 2.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 5rem 0; }
.abschnitt-hell { background: var(--brand-50); }
.abschnitt h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.01em; line-height: 1.2; color: var(--brand-900); }
.abschnitt-text { margin: .9rem 0 0; max-width: 40rem; color: var(--brand-600); }
.abschnitt-kopf { margin-bottom: 2.4rem; }

/* ---------- Kacheln und Karten (am Handy seitlich wischen) ---------- */
.kacheln { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .kacheln { grid-template-columns: repeat(3, 1fr); } }
.kacheln-4 { grid-template-columns: 1fr; }
@media (min-width: 52rem) { .kacheln-4 { grid-template-columns: repeat(2, 1fr); } }

.kachel {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--brand-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 2px rgba(11, 20, 36, .04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.kachel:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 20, 36, .12); border-color: var(--brand-200); }
.kachel:active { transform: scale(.99); }
.kachel-bild { display: block; aspect-ratio: 16 / 10; background: var(--brand-700) center / cover no-repeat; transition: transform .5s; }
.kachel:hover .kachel-bild { transform: scale(1.03); }
.kachel-rahmen { overflow: hidden; display: block; }
.bild-sicherheit { background-image: url("/bilder/sicherheit.webp"); }
.bild-reinigung { background-image: url("/bilder/reinigung.webp"); }
.bild-winterdienst { background-image: url("/bilder/winterdienst.webp"); }
.kachel-inhalt { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.kachel-titel { font-size: 1.4rem; font-weight: 700; color: var(--brand-900); }
.kachel-text { color: var(--brand-600); flex: 1; font-size: .98rem; }
.kachel-link { margin-top: .7rem; font-weight: 600; color: var(--accent-600); font-size: .98rem; }
.kachel-link span { display: inline-block; transition: transform .2s; }
.kachel:hover .kachel-link span { transform: translateX(4px); }

/* Karte ohne Link (Winterdienst-Leistungen, Vorteile) */
.karte { background: #fff; border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.abschnitt-hell .karte { border-color: transparent; box-shadow: 0 1px 2px rgba(11, 20, 36, .05); }
.karte h3 { margin: 0; font-size: 1.15rem; color: var(--brand-900); }
.karte p { margin: 0; color: var(--brand-600); font-size: .98rem; }
.symbol { width: 2.8rem; height: 2.8rem; border-radius: 12px; background: rgba(63, 111, 212, .1); color: var(--accent-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.symbol svg { width: 1.5rem; height: 1.5rem; }

.vorteile { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .vorteile { grid-template-columns: repeat(2, 1fr); } }

/* Wisch-Reihe am Handy: Karten nebeneinander, nächste Karte ragt ins Bild */
@media (max-width: 51.99rem) {
  [data-swipe][data-swipe] {
    display: flex; gap: 1rem;
    margin-inline: -1.25rem; padding: .25rem 1.25rem 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-swipe][data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe][data-swipe] > * { flex: 0 0 82%; scroll-snap-align: start; }
}
.punkte { display: none; justify-content: center; gap: .5rem; margin-top: .2rem; }
@media (max-width: 51.99rem) { .punkte { display: flex; } }
.punkte button { width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 999px; background: var(--brand-200); cursor: pointer; transition: width .2s, background .2s; }
.punkte button[aria-current="true"] { width: 1.5rem; background: var(--accent-500); }
.hinweis-wischen { display: none; margin: .2rem 0 0; font-size: .85rem; color: var(--brand-500); }
@media (max-width: 51.99rem) { .hinweis-wischen { display: block; } }

/* ---------- Zwei Spalten ---------- */
.zwei-spalten { display: grid; gap: 2.4rem; }
.zwei-spalten > *, .kontakt > *, .bildband > * { min-width: 0; }
@media (min-width: 52rem) { .zwei-spalten { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; } }

/* ---------- Ablauf (nummerierte Schritte) ---------- */
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; counter-reset: s; }
@media (min-width: 52rem) { .schritte { grid-template-columns: repeat(3, 1fr); } }
.schritte li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem; border: 1px solid var(--brand-100); }
.schritte li::before { content: counter(s); display: inline-flex; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent-500); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: .8rem; }
.schritte strong { display: block; color: var(--brand-900); font-size: 1.1rem; margin-bottom: .25rem; }
.schritte span { color: var(--brand-600); font-size: .98rem; }

/* ---------- Fragen ---------- */
.fragen { display: grid; gap: .8rem; max-width: 46rem; }
.fragen details { background: #fff; border: 1px solid var(--brand-100); border-radius: 14px; padding: 0 1.3rem; }
.fragen summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; color: var(--brand-900); display: flex; justify-content: space-between; gap: 1rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-600); transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details p { margin: 0 0 1.2rem; color: var(--brand-600); }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: 2.4rem; }
@media (min-width: 52rem) { .kontakt { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; } }
.wahl { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.wahl a { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--brand-200); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--brand-700); transition: background .15s, border-color .15s; }
.wahl a:hover { background: var(--brand-50); border-color: var(--accent-500); color: var(--accent-600); }
.kontakt-karte { background: var(--brand-900); color: #fff; border-radius: var(--radius); padding: .4rem 1.6rem; }
.kontakt-zeile { display: flex; flex-direction: column; padding: 1.15rem 0; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.kontakt-zeile:last-child { border-bottom: 0; }
.kontakt-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-400); }
.kontakt-wert { font-size: 1.15rem; font-weight: 600; }
a.kontakt-zeile:hover .kontakt-wert { text-decoration: underline; }

/* ---------- Fuß ---------- */
.fuss { background: var(--brand-950); color: var(--brand-300); padding: 1.8rem 0 2rem; font-size: .92rem; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.fuss p { margin: 0; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-klein { flex-basis: 100%; font-size: .82rem; opacity: .8; }

/* ---------- Rechtstexte ---------- */
.recht { padding: 3rem 0 4rem; }
.recht h1 { margin: 0 0 1.5rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.recht h2 { margin: 2rem 0 .5rem; font-size: 1.25rem; }
.recht p, .recht li { max-width: 46rem; color: var(--brand-700); }
.recht a { color: var(--accent-600); }

/* ---------- Dezente Einblendung (nur mit Skript) ---------- */
.js .zeigen { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .zeigen.sichtbar { opacity: 1; transform: none; }

@media (max-width: 40rem) {
  .kopf-nav a:not(.knopf) { display: none; }
  .held { padding: 3.5rem 0 3.75rem; min-height: 34rem; }
  .held::before { background: linear-gradient(0deg, rgba(6, 11, 22, .94) 0%, rgba(6, 11, 22, .78) 55%, rgba(6, 11, 22, .45) 100%); }
  .abschnitt { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .zeigen { opacity: 1; transform: none; }
}

/* ---------- Nur Winterdienst ---------- */
.held-winter { background-image: url("/bilder/winter-hero.webp"); background-position: 60% center; }
.held-winter::before {
  background:
    linear-gradient(90deg, rgba(6, 11, 22, .9) 0%, rgba(6, 11, 22, .6) 42%, rgba(6, 11, 22, .08) 85%),
    linear-gradient(0deg, rgba(6, 11, 22, .5), transparent 40%);
}
.bildband { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .bildband { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.bildband-foto { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(11, 20, 36, .16); aspect-ratio: 4 / 3; background: var(--brand-700) url("/bilder/winter-eingang.webp") center / cover no-repeat; }
.merkliste { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; }
.merkliste li { position: relative; padding-left: 1.7rem; color: var(--brand-700); }
.merkliste li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .9rem; border-radius: 999px; background: rgba(63, 111, 212, .15); box-shadow: inset 0 0 0 4px var(--accent-500); }
@media (max-width: 40rem) {
  .held-winter::before { background: linear-gradient(0deg, rgba(6, 11, 22, .94) 0%, rgba(6, 11, 22, .75) 55%, rgba(6, 11, 22, .4) 100%); }
}

/* ---------- Handy: Foto oben sichtbar, Text darunter ---------- */
@media (max-width: 40rem) {
  .held, .held.held-winter {
    align-items: flex-end; min-height: 35rem; padding: 15rem 0 3rem;
    background-color: var(--brand-950); background-repeat: no-repeat;
    background-size: auto 23rem; background-position: 64% top;
  }
  .held.held-start { background-position: 72% top; }
  .held::before, .held.held-winter::before {
    background: linear-gradient(180deg, rgba(6, 11, 22, .2) 0%, rgba(6, 11, 22, 0) 22%, var(--brand-950) 23rem);
  }
}.held-winter .held-text { max-width: 30rem; }
