/* Product page of Kiezmax. Type, colours and glass follow the citizen app (public/buerger/buerger.css, Carsten
   2026-11-08), so both read as one product. Mobile first: the base rules are for a 375 px phone, wider screens are the
   extension. Fonts under the SIL Open Font License (schrift/LICENSE-*.txt), served from this host only (I-D1). */

@font-face { font-family: Kalam; font-style: normal; font-display: swap; font-weight: 700;
  src: url("schrift/kalam-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Kalam; font-style: normal; font-display: swap; font-weight: 700;
  src: url("schrift/kalam-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Nunito; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("schrift/nunito-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Nunito; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("schrift/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #14181d;
  --gedimmt: #4a5560;
  --grund: #e6f1f2;
  --flaeche: #d9eaec;
  --karte: #ffffff;
  --akzent: #0b5c8c;
  --akzent-hell: #e3eff7;
  --verlauf: linear-gradient(15deg, #0d8f9c -80%, #099faa 100%);
  /* Buttons in the tiles' teal, one step darker for white text at 4.5:1 and more (as in the app). */
  --knopf-ton: #08767f;
  --knopf: linear-gradient(15deg, var(--knopf-ton) 0%, #0b7f8a 100%);
  --knopf-hover: #065e66;
  --rand: rgba(20, 40, 60, .12);
  --schatten: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .08);
  --r-gross: 20px;
  --r-klein: 14px;
  --breite: 72rem;
}

* { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--grund);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Handwriting where text is bold and large, as in the app; a plain fallback, not a comic one. */
h1, h2, h3 { font-family: Kalam, Nunito, system-ui, sans-serif; line-height: 1.2; font-weight: 700; margin: 0; }
p { margin: 0; }
a { color: var(--akzent); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #f0a202; outline-offset: 2px; box-shadow: 0 0 0 2px var(--text); border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* <use> takes its paint from the referencing <svg>, not from the sprite, so the line style is set here. */
svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; padding: .6rem 1rem; background: var(--karte); border-radius: var(--r-klein); }
.skip:focus { left: 1rem; }

.breit { max-width: var(--breite); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .breit { padding: 0 2rem; } }

/* Header on the picture (Carsten, 2026-11-08): no bar, only liquid-glass pills, as on the app's start page. */
.kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.kopf-innen { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.marke, .kopfnav, .app-starten { background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 4px 16px rgba(16, 32, 48, .22); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .marke, .kopfnav, .app-starten { background: rgba(255, 255, 255, .34);
    -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.22); backdrop-filter: blur(22px) saturate(180%) brightness(1.22); }
}
@media (prefers-reduced-transparency: reduce) {
  .marke, .kopfnav, .app-starten { background: #fbfcfd; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.marke { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 4px 14px 4px 4px; color: var(--text);
  text-decoration: none; font-weight: 800; font-size: 1.35rem; }
/* The word mark a little larger (Carsten, 2026-11-09); on the narrowest phones as before, so "App starten" still fits beside it. */
@media (max-width: 359px) { .marke { font-size: 1.15rem; } }
/* Nunito sits high in its line box; the word moves to the optical middle of the pill. */
.marke > span:last-child { padding-top: 3px; }
.marke-zeichen { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--verlauf); color: #fff; }
/* "Kiez" dark, "max" in the logo's teal, as in the app. */
.marke-max { color: #0b7f8a; }
.marke-zeichen svg { width: 1.35rem; height: 1.35rem; }
.kopfnav { display: none; list-style: none; margin: 0; padding: 2px 4px; gap: .1rem; }
.kopfnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 3px .8rem 0; border-radius: 999px; color: var(--text);
  text-decoration: none; font-weight: 700; }
.kopfnav a:hover { background: rgba(255, 255, 255, .55); }
.app-starten { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; min-height: 44px; padding: 3px .6rem 0 1rem;
  color: var(--text); font-weight: 800; text-decoration: none; white-space: nowrap; }
.app-starten svg { width: 1.2rem; height: 1.2rem; margin-top: -3px; }
.app-starten:hover { background: rgba(255, 255, 255, .7); }
.kopf-innen > nav { margin-left: auto; }
@media (min-width: 900px) { .kopfnav { display: flex; } .app-starten { margin-left: 0; } }

/* "Teilen" (I-G4): a glass pill like "App starten"; its list hangs from the header's right edge on a phone and from the
   button on wider screens, the same glass as the app's. Under 480 px only the icon, the word stays for screen readers. */
.teilen > summary { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 3px .9rem 0; list-style: none;
  border-radius: 999px; color: var(--text); font-weight: 800; cursor: pointer; background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 4px 16px rgba(16, 32, 48, .22); }
.teilen > summary::-webkit-details-marker { display: none; }
.teilen > summary svg { width: 1.2rem; height: 1.2rem; margin-top: -3px; }
.teilen > summary:hover, .teilen[open] > summary { background: rgba(255, 255, 255, .95); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .teilen > summary { background: rgba(255, 255, 255, .34);
    -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.22); backdrop-filter: blur(22px) saturate(180%) brightness(1.22); }
}
@media (prefers-reduced-transparency: reduce) { .teilen > summary { background: #fbfcfd; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.kopf-innen { position: relative; }
.teilen-tafel { position: absolute; z-index: 6; top: calc(100% - .2rem); right: 1rem; width: min(15rem, calc(100% - 2rem));
  display: grid; gap: 4px; padding: 8px; border-radius: 22px; background: rgba(251, 252, 253, .97);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 16px 40px rgba(13, 30, 40, .22); }
.teilen-tafel :is(a, button) { display: flex; align-items: center; min-height: 48px; padding: 6px 14px; border-radius: 16px; border: 0;
  margin: 0; width: 100%; color: var(--text); text-decoration: none; font: inherit; font-weight: 700; text-align: left;
  background: rgba(255, 255, 255, .78); cursor: pointer; }
.teilen-tafel :is(a, button):hover { background: #ffffff; }
.teilen-tafel [hidden] { display: none; }
.teilen-status { margin: 0; padding: 0 14px; font-size: .9rem; }
.teilen-status:empty { display: none; }
@media (min-width: 768px) { .teilen { position: relative; } .teilen-tafel { right: 0; top: calc(100% + 6px); width: 15rem; } }
@media (max-width: 479px) {
  .teilen-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .teilen > summary { padding: 0; width: 44px; justify-content: center; }
  .teilen > summary svg { margin-top: 0; }
}
/* Beside "Teilen" and "App starten" the brand's name has no room under 420 px: the round "K!" stays, the name stays for
   screen readers. */
@media (max-width: 419px) {
  .marke > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .marke { padding-right: 4px; }
}

/* Hero: one picture all year (Carsten, 2026-11-09: the Kiezmax van on a sunny square), edge to edge under the header.
   The text sits on its own plate of clear glass (Carsten, 2026-11-08: see more of the picture): 60 % white and a lift of
   the blurred picture; all text on it is the dark text colour, which keeps above 5:1 even over black; opaque without blur
   support or with reduced transparency. */
.held { position: relative; padding-bottom: 2rem; }
.held-bild { height: 16rem; background: #5b4630 var(--held-schmal) center 58% / cover no-repeat;
  --held-schmal: url(bilder/held/stadtplatz-schmal.jpg); --held-breit: url(bilder/held/stadtplatz.jpg); }
.held-tafel {
  position: relative; margin-top: -2.5rem;
  background: var(--karte); border-radius: var(--r-gross); box-shadow: var(--schatten);
  padding: 1.5rem 1.25rem;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .held-tafel { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 8px 28px rgba(16, 32, 48, .22);
    -webkit-backdrop-filter: blur(12px) saturate(160%) brightness(1.15); backdrop-filter: blur(12px) saturate(160%) brightness(1.15); }
  .held-tafel :is(.vorzeile, .lead) { color: var(--text); }
}
@media (prefers-reduced-transparency: reduce) { .held-tafel { background: var(--karte); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.vorzeile { color: var(--akzent); font-weight: 800; font-size: .9rem; letter-spacing: .02em; margin-bottom: .5rem; }
h1 { font-size: 2.1rem; margin-bottom: .75rem; }
.lead { font-size: 1.1rem; color: var(--gedimmt); }
.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.aktionen-mitte { justify-content: center; margin-top: 2rem; }
/* On a phone both hero buttons fit on one line (Carsten, 2026-11-09): tighter sides, and they share the row. */
@media (max-width: 699px) {
  .held-tafel .aktionen { gap: .5rem; }
  .held-tafel .knopf { flex: 1 1 auto; padding: 0 .5rem; }
}
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 0;
  background: var(--knopf); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 12px rgba(8, 118, 127, .28);
}
.knopf:hover { background: var(--knopf-hover); }
.knopf svg { width: 1.2rem; height: 1.2rem; }
.knopf-leise { background: var(--karte); color: var(--knopf-ton); border: 1px solid var(--knopf-ton); box-shadow: none; }
.knopf-leise:hover { background: #e1f1f2; }

@media (min-width: 700px) {
  /* As on a phone, the box stands below the picture and only reaches a little way into it (Carsten, 2026-11-08). */
  .held { padding-bottom: 1rem; }
  .held-bild { height: min(72vh, 42rem); min-height: 28rem; background-image: var(--held-breit); background-position: center 45%; }
  .held-tafel { margin-top: -4.5rem; max-width: 34rem; padding: 1.5rem 2rem; }
  h1 { font-size: 2.9rem; }
}

/* Wide screens (Carsten, 2026-11-08): the box is wide and low, the title on one line. */
@media (min-width: 1100px) {
  .held-tafel { max-width: 50rem; padding: 1.25rem 2rem 1.5rem; }
  .held-tafel h1 { white-space: nowrap; margin-bottom: .5rem; }
  .held-tafel .aktionen { margin-top: 1rem; }
}

/* Sections */
.abschnitt { padding: 3rem 0; }
.abschnitt-flaeche { background: var(--flaeche); }
h2 { font-size: 1.9rem; margin-bottom: .75rem; }
/* Section introductions in black (Carsten, 2026-11-08). */
.einleitung { max-width: 46rem; color: #000000; font-size: 1.05rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .abschnitt { padding: 4.5rem 0; } h2 { font-size: 2.5rem; } }

.raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .raster { grid-template-columns: repeat(3, 1fr); } .raster-klein { grid-template-columns: repeat(4, 1fr); } }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--r-gross); padding: 1.25rem; box-shadow: var(--schatten); }
.karte h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.karte p { color: var(--gedimmt); }
/* Function cards (Carsten, 2026-11-08): a strip of the category's picture, the same as in the app, with the name in
   white on it; a dark fade keeps the white text above 3:1 (large text) wherever the picture is light. */
.karte-bild { overflow: hidden; padding-top: 0; }
.karte-kopf { display: flex; align-items: flex-end; min-height: 7.5rem; margin: 0 -1.25rem .9rem; padding: .6rem 1.25rem;
  background: #5b4630 center / cover no-repeat; background-image: linear-gradient(to top, rgba(20, 16, 10, .62), rgba(20, 16, 10, .1) 55%, transparent 75%), var(--bild); }
.karte-kopf h3 { margin: 0; font-size: 1.75rem; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
[data-bild="termine"] .karte-kopf { --bild: url(bilder/seiten/termine.jpg); }
[data-bild="kiezzeitung"] .karte-kopf { --bild: url(bilder/seiten/kiezzeitung.jpg); }
[data-bild="kiez"] .karte-kopf { --bild: url(bilder/seiten/kiez.jpg); }
[data-bild="wegweiser"] .karte-kopf { --bild: url(bilder/seiten/wegweiser.jpg); }
[data-bild="kiezmarkt"] .karte-kopf { --bild: url(bilder/seiten/kiezmarkt.jpg); }
[data-bild="nachbarschaft"] .karte-kopf { --bild: url(bilder/seiten/nachbarschaft.jpg); }
[data-bild="kummerkasten"] .karte-kopf { --bild: url(bilder/seiten/kummerkasten.jpg); }
[data-bild="melder"] .karte-kopf { --bild: url(bilder/seiten/melder.jpg); }
[data-bild="meine"] .karte-kopf { --bild: url(bilder/seiten/meine.jpg); }
@media (forced-colors: active) { .karte-kopf { background-image: none; } .karte-kopf h3 { color: CanvasText; text-shadow: none; } }

.zusatz { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--r-gross); background: var(--karte); border: 1px solid var(--rand); }
.zusatz h3 { font-size: 1.4rem; margin-bottom: .4rem; }

.liste-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 768px) { .liste-punkte { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.liste-punkte li { background: var(--karte); border-radius: var(--r-klein); padding: 1rem 1.1rem 1rem 2.6rem; position: relative; border: 1px solid var(--rand); }
.liste-punkte li::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.45rem; width: .65rem; height: .65rem;
  border-radius: 50%; background: var(--verlauf);
}
/* The short bold title of each point (Carsten, 2026-11-08): larger, in the headings' handwriting. */
.liste-punkte strong { display: block; margin-bottom: .2rem; font-family: Kalam, Nunito, system-ui, sans-serif; font-size: 1.3rem; line-height: 1.25; }
.liste-punkte li::before { top: 1.55rem; }

/* Footer */
.fuss { background: #14181d; color: #e8eef2; padding: 2rem 0 2.5rem; }
.fuss-innen { display: flex; flex-direction: column; gap: 1rem; }
.fussnav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.fussnav a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .fuss-innen { flex-direction: row; justify-content: space-between; align-items: center; } }
