/*
   MGN24, Schluessel- und Tueroeffnungsservice Duesseldorf.
   Farben stammen aus dem Logo: Signalgelb und Schwarz.
   Schrift: Archivo (Ueberschriften), IBM Plex Sans (Text), beide self-hosted.
*/

@import url("_schriften.css");

:root {
  --gelb: #FAE41E;
  --gelb-warm: #F2D400;
  --gelb-text: #6B5C00;
  --tinte: #0E0F11;
  --tinte-2: #17191D;
  --tinte-3: #23262B;
  --papier: #F6F5F2;
  --papier-2: #EBE9E3;
  --text: #17191D;
  --text-weich: #4A4F55;
  --text-hell: #F6F5F2;
  --text-hell-weich: #B7BDC5;
  --linie: #D9D6CE;
  --linie-dunkel: #2E3238;
  --anzeige: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --lauf: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --breite: 74rem;
  --schatten: 0 1.5rem 3rem rgba(14, 15, 17, .09);
  --rund: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--lauf);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--anzeige);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.5rem + 3.9vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.3vw, 3.05rem); }
h3 { font-size: clamp(1.16rem, 1.05rem + .5vw, 1.42rem); letter-spacing: -.01em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
  border-radius: 2px;
}

.huelle {
  width: min(100% - 2.6rem, var(--breite));
  margin-inline: auto;
}

.nur-lesen {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------- Signalband */

.band {
  height: .6rem;
  background: repeating-linear-gradient(115deg,
    var(--gelb) 0 1.1rem, var(--tinte) 1.1rem 2.2rem);
}

/* ---------------------------------------------------- Kopf */

.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--tinte);
  border-bottom: 1px solid var(--linie-dunkel);
}

.kopf-reihe {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 4.4rem;
  padding-block: .55rem;
}

.kopf-logo img { width: clamp(8.6rem, 22vw, 11.5rem); height: auto; }

.kopf-nav {
  display: none;
  margin-left: auto;
  gap: 1.35rem;
  font-size: .93rem;
  font-weight: 500;
}

.kopf-nav a {
  color: var(--text-hell-weich);
  text-decoration: none;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}

.kopf-nav a:hover, .kopf-nav a[aria-current="page"] {
  color: var(--text-hell);
  border-bottom-color: var(--gelb);
}

.kopf-ruf {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: .8rem;
}

.kopf-ruf .offen {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-hell-weich);
  font-weight: 600;
  white-space: nowrap;
}

.punkt {
  display: inline-block;
  width: .5rem; height: .5rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--gelb);
  box-shadow: 0 0 0 0 rgba(250, 228, 30, .6);
  animation: puls 2.4s ease-out infinite;
}

@keyframes puls {
  70% { box-shadow: 0 0 0 .55rem rgba(250, 228, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 228, 30, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .punkt { animation: none; }
}

@media (min-width: 62rem) {
  .kopf-nav { display: flex; }
  .kopf-ruf { display: flex; margin-left: 1.6rem; }
}

/* ---------------------------------------------------- Knoepfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .005em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--rund);
  transform: skewX(-9deg);
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.knopf > span { display: inline-block; transform: skewX(9deg); }

.knopf-signal { background: var(--gelb); color: var(--tinte); }
.knopf-signal:hover { background: #FFF04A; transform: skewX(-9deg) translateY(-2px); }

.knopf-tinte { background: var(--tinte); color: var(--text-hell); }
.knopf-tinte:hover { background: var(--tinte-3); transform: skewX(-9deg) translateY(-2px); }

.knopf-rand-hell { border-color: var(--linie-dunkel); color: var(--text-hell); }
.knopf-rand-hell:hover { border-color: var(--gelb); }

.knopf-rand { border-color: #C9C5BB; color: var(--text); }
.knopf-rand:hover { border-color: var(--tinte); }

.knopf-klein { padding: .7rem 1.1rem; font-size: .92rem; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------------------------------------------------- Abschnitte */

.abschnitt { padding-block: clamp(3.4rem, 2rem + 5vw, 6.5rem); }
.abschnitt-eng { padding-block: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); }

.dunkel { background: var(--tinte); color: var(--text-hell); }
.dunkel h1, .dunkel h2, .dunkel h3 { color: var(--text-hell); }
.dunkel p { color: var(--text-hell-weich); }

.sand { background: var(--papier-2); }

.kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gelb-text);
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: .55rem;
  background: var(--gelb);
  transform: skewX(-16deg);
  flex: none;
}

.dunkel .kicker { color: var(--gelb); }

.lead {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-weich);
  max-width: 46ch;
}

.dunkel .lead { color: var(--text-hell-weich); }

/* ---------------------------------------------------- Held, hell */

.held {
  position: relative;
  background: var(--papier);
  color: var(--text);
  overflow: hidden;
}

.held-inhalt { padding-block: clamp(2.6rem, 1.8rem + 4.4vw, 5.4rem); }

.held-raster { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 3.4rem); }

@media (min-width: 62rem) {
  .held-raster { grid-template-columns: 1.02fr .98fr; align-items: center; }
}

.held h1 { max-width: 15ch; }

/* Gelb traegt auf Hell keine Schrift (1,19:1). Es wird deshalb zum Marker
   hinter dunkler Schrift, das ist auch naeher an der Wortmarke. */
.held h1 .aus {
  color: var(--tinte);
  background: var(--gelb);
  padding: 0 .16em .04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.held .lead { margin-top: 1.5rem; max-width: 44ch; }

.held .knopfreihe { margin-top: 2.2rem; }

/* Das Bild sitzt auf einem gelben Schiefer, dem Zeichen der Wortmarke. */
.held-bild-feld { position: relative; }

.held-bild-feld::before {
  content: "";
  position: absolute;
  inset: 1.3rem -1.1rem -1.3rem 1.1rem;
  background: var(--gelb);
  transform: skewX(-3deg);
  z-index: 0;
}

.held-bild-feld img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--rund);
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.6rem;
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--linie);
  list-style: none;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-weich);
}

.marken li { display: flex; align-items: center; gap: .55rem; }

.marken li::before {
  content: "";
  width: .75rem; height: .75rem;
  background: var(--gelb);
  transform: skewX(-16deg);
  flex: none;
}

.dunkel .marken { border-top-color: var(--linie-dunkel); color: var(--text-hell-weich); }

/* Kopfblock der Unterseiten, ebenfalls hell */
.kopfblock {
  background: var(--papier);
  padding-block: 2.2rem clamp(2.4rem, 1.6rem + 3vw, 4rem);
}

.kopfblock h1 { max-width: 19ch; }
.kopfblock .lead { margin-top: 1.3rem; }

/* ---------------------------------------------------- Raster */

.raster { display: grid; gap: 1.5rem; }

@media (min-width: 46rem) {
  .raster-2 { grid-template-columns: repeat(2, 1fr); }
  .raster-3 { grid-template-columns: repeat(3, 1fr); }
  .raster-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .raster-4 { grid-template-columns: repeat(4, 1fr); }
}

.zwei-spalten {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

@media (min-width: 58rem) {
  .zwei-spalten { grid-template-columns: 1.05fr .95fr; }
  .zwei-spalten.bild-links > :first-child { order: 2; }
}

/* ---------------------------------------------------- Karten */

.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.7rem 1.6rem 1.8rem;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
}

.karte h3 { margin-bottom: .15rem; }
.karte p { font-size: .98rem; color: var(--text-weich); }

.karte-link { text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.karte-link:hover { transform: translateY(-3px); box-shadow: var(--schatten); }

.karte-link .mehr {
  margin-top: auto;
  padding-top: .8rem;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--text);
}

.karte-link .mehr::after { content: " \203A"; }

.karte-nummer {
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .1em;
  color: var(--gelb-text);
}

.dunkel .karte {
  background: var(--tinte-2);
  border-color: var(--linie-dunkel);
}

.dunkel .karte p { color: var(--text-hell-weich); }
.dunkel .karte-nummer { color: var(--gelb); }

/* ---------------------------------------------------- Zahlenband */

.zahlen { display: grid; gap: 1.4rem; }

@media (min-width: 46rem) {
  .zahlen { grid-template-columns: repeat(3, 1fr); }
}

.zahl {
  padding: 1.6rem 1.5rem;
  background: var(--tinte-2);
  border-left: .35rem solid var(--gelb);
}

.zahl b {
  display: block;
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.8rem + 3.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gelb);
}

.zahl span {
  display: block;
  margin-top: .55rem;
  font-weight: 600;
  color: var(--text-hell);
}

.zahl small {
  display: block;
  margin-top: .3rem;
  font-size: .92rem;
  color: var(--text-hell-weich);
}

/* ---------------------------------------------------- Ablauf */

.ablauf {
  display: grid;
  gap: 1.4rem;
  counter-reset: schritt;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 52rem) {
  .ablauf { grid-template-columns: repeat(4, 1fr); }
}

.ablauf li {
  position: relative;
  padding-top: 3.4rem;
  border-top: 2px solid var(--linie);
}

.ablauf li::before {
  counter-increment: schritt;
  content: counter(schritt, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gelb-text);
}

.ablauf h3 { margin-bottom: .4rem; }
.ablauf p { font-size: .98rem; color: var(--text-weich); }

/* ---------------------------------------------------- Gebiet */

.orte {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.orte li {
  padding: .35rem .75rem;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  font-size: .9rem;
  font-weight: 500;
}

/* ---------------------------------------------------- Fragen */

.fragen { border-top: 1px solid var(--linie); }

.frage { border-bottom: 1px solid var(--linie); }

.frage summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.35;
  list-style: none;
}

.frage summary::-webkit-details-marker { display: none; }

.frage summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gelb-text);
  flex: none;
}

.frage[open] summary::after { content: "\2212"; }

.frage .antwort { padding: 0 0 1.3rem; max-width: 62ch; color: var(--text-weich); }

/* ---------------------------------------------------- Ruf-Feld */

.ruffeld {
  display: grid;
  gap: 1.8rem;
  padding: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
  background: var(--gelb);
  color: var(--tinte);
  border-radius: var(--rund);
}

@media (min-width: 54rem) {
  .ruffeld { grid-template-columns: 1.2fr .8fr; align-items: center; }
}

.ruffeld h2 { max-width: 20ch; }
.ruffeld p { color: rgba(14, 15, 17, .82); }

.rufnummer {
  display: inline-block;
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: clamp(1.85rem, 1.2rem + 2.9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--tinte);
  text-decoration: none;
  border-bottom: .28rem solid var(--tinte);
}

.rufnummer:hover { border-bottom-color: rgba(14, 15, 17, .4); }

/* ---------------------------------------------------- Text-Inseln */

.fliess { max-width: 66ch; }
.fliess h2 { margin-top: 2.9rem; margin-bottom: .85rem; }
.fliess h2:first-child { margin-top: 0; }
.fliess h3 { margin-top: 2.1rem; margin-bottom: .45rem; }
.fliess ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.fliess li { margin-bottom: .5rem; }
.fliess a { color: var(--text); text-decoration-color: var(--gelb-warm); text-decoration-thickness: .18em; text-underline-offset: .18em; }

.krumen {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--text-weich);
}

.krumen a { text-decoration: none; }
.krumen a:hover { text-decoration: underline; }
.krumen li + li::before { content: "\203A"; margin-right: .4rem; }

.dunkel .krumen { color: var(--text-hell-weich); }

/* ---------------------------------------------------- Preistafel */

.tafel { width: 100%; border-collapse: collapse; margin: 1.6rem 0; }
.tafel th, .tafel td { padding: .9rem .6rem; text-align: left; border-bottom: 1px solid var(--linie); }
.tafel th { font-family: var(--anzeige); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.tafel td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------- Fuss */

.fuss { background: var(--tinte); color: var(--text-hell-weich); padding-block: 3.4rem 2.4rem; }
.fuss a { color: var(--text-hell-weich); text-decoration: none; }
.fuss a:hover { color: var(--gelb); }

.fuss-raster { display: grid; gap: 2.2rem; }

@media (min-width: 52rem) {
  .fuss-raster { grid-template-columns: 1.3fr 1fr 1fr; }
}

.fuss h2 {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-hell);
  margin-bottom: 1rem;
}

.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .5rem; }
.fuss img { width: 10.5rem; margin-bottom: 1.1rem; }

.fuss-zeile {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linie-dunkel);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  font-size: .88rem;
}

/* ---------------------------------------------------- Rufleiste unten */

.rufleiste {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  background: var(--tinte);
  border-top: 2px solid var(--gelb);
}

.rufleiste a {
  flex: 1;
  padding: .95rem .6rem;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: .98rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-hell);
}

.rufleiste a.haupt { background: var(--gelb); color: var(--tinte); }

@media (min-width: 62rem) {
  .rufleiste { display: none; }
}

body { padding-bottom: 3.6rem; }

@media (min-width: 62rem) {
  body { padding-bottom: 0; }
}

/* ---------------------------------------------------- Einblenden */

.rv { opacity: 0; transform: translateY(1.1rem); transition: opacity .6s ease, transform .6s ease; }
.rv.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
