@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-display: swap; src: url("fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/libre-baskerville-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 600; font-display: swap; src: url("fonts/libre-baskerville-latin-600-normal.woff2") format("woff2"); }

/* Colors: the Figma collection "Semantic Colors", mode "Light". The name is the Figma variable name in kebab case. */
:root {
  color-scheme: light dark;
  --color-text-very-subtle: #77797e;
  --color-text-inverted-very-subtle: #a0a2a6;
  --color-text-subtle: #4f5154;
  --color-text-inverted-subtle: #c0c1c4;
  --color-text-default: #313235;
  --color-text-inverted-default: #d5d6d7;
  --color-text-bold: #19191a;
  --color-text-inverted-bold: #eaeaeb;
  --color-text-very-bold: #000000;
  --color-text-inverted-very-bold: #fafafa;
  --color-text-dark-subtle: #4f5154;
  --color-text-dark-default: #313235;
  --color-text-dark-bold: #000000;
  --color-text-light-subtle: #c0c1c4;
  --color-text-light-default: #eaeaeb;
  --color-text-light-bold: #fafafa;
  --color-text-action: #020e27;
  --color-text-success: #1d7239;
  --color-text-info: #073288;
  --color-text-warning: #886e07;
  --color-text-alert: #810e34;
  --color-background-default: #ffffff;
  --color-background-inverted-default: #000000;
  --color-background-elevated: #fafafa;
  --color-background-box: #eaeaeb;
  --color-background-action: #000000;
  --color-background-action-highlight: #313235;
  --color-background-success: #f6fef9;
  --color-background-info: #f5f8fe;
  --color-background-warning: #fefdf5;
  --color-background-alert: #fef5f8;
  --color-border-very-subtle: #eaeaeb;
  --color-border-inverted-very-subtle: #19191a;
  --color-border-subtle: #d5d6d7;
  --color-border-inverted-subtle: #313235;
  --color-border-default: #c0c1c4;
  --color-border-inverted-default: #4f5154;
  --color-border-bold: #a0a2a6;
  --color-border-inverted-bold: #77797e;
  --color-border-very-bold: #77797e;
  --color-border-inverted-very-bold: #a0a2a6;
  --color-border-action-highlight: #19191a;
  --color-border-action: #000000;
  --color-border-success: #e8fcef;
  --color-border-info: #e7eefe;
  --color-border-warning: #fef9e7;
  --color-border-alert: #fee7ee;

  --font-sans: "Inter", sans-serif;
  --font-heading: "Inter Tight", "Inter", sans-serif;
  --font-serif: "Libre Baskerville", serif;

  /* The Figma text styles, for the font shorthand: font: var(--text-h-1) */
  --text-title-xl: 600 64px/68px var(--font-heading);
  --text-title-l: 600 48px/52px var(--font-heading);
  --text-title-m: 600 34px/40px var(--font-heading);
  --text-h-1: 600 26px/32px var(--font-heading);
  --text-h-2: 600 22px/28px var(--font-heading);
  --text-h-3: 600 18px/24px var(--font-heading);
  --text-h-4: 600 14px/20px var(--font-heading);
  --text-h-5: 600 11px/16px var(--font-heading);
  --text-p-xl: 400 22px/32px var(--font-serif);
  --text-p-xl-bold: 600 22px/32px var(--font-serif);
  --text-p-l: 400 18px/28px var(--font-serif);
  --text-p-m: 400 16px/24px var(--font-serif);
  --text-p-m-bold: 600 16px/24px var(--font-serif);
  --text-p-s: 400 14px/20px var(--font-serif);
  --text-p-s-bold: 600 14px/20px var(--font-serif);
  --text-label-2xl: 400 22px/28px var(--font-sans);
  --text-label-2xl-bold: 600 22px/28px var(--font-sans);
  --text-label-xl-bold: 600 18px/24px var(--font-sans);
  --text-label-l: 400 16px/24px var(--font-sans);
  --text-label-l-bold: 600 16px/24px var(--font-sans);
  --text-label-m: 400 14px/20px var(--font-sans);
  --text-label-m-bold: 600 14px/20px var(--font-sans);
  --text-label-s: 400 12px/16px var(--font-sans);
  --text-label-s-bold: 600 12px/16px var(--font-sans);

  --gutter: 20px;
}

/* Mode "Dark" */
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-very-subtle: #a0a2a6;
    --color-text-inverted-very-subtle: #77797e;
    --color-text-subtle: #c0c1c4;
    --color-text-inverted-subtle: #4f5154;
    --color-text-default: #d5d6d7;
    --color-text-inverted-default: #313235;
    --color-text-bold: #eaeaeb;
    --color-text-inverted-bold: #19191a;
    --color-text-very-bold: #fafafa;
    --color-text-inverted-very-bold: #000000;
    --color-text-dark-subtle: #4f5154;
    --color-text-dark-default: #313235;
    --color-text-dark-bold: #000000;
    --color-text-light-subtle: #c0c1c4;
    --color-text-light-default: #eaeaeb;
    --color-text-light-bold: #fafafa;
    --color-text-action: #ffffff;
    --color-text-success: #a3f5be;
    --color-text-info: #9ebdfa;
    --color-text-warning: #fae89e;
    --color-text-alert: #fa9ebd;
    --color-background-default: #000000;
    --color-background-inverted-default: #ffffff;
    --color-background-elevated: #19191a;
    --color-background-box: #313235;
    --color-background-action: #ffffff;
    --color-background-action-highlight: #eaeaeb;
    --color-background-success: #145229;
    --color-background-info: #052461;
    --color-background-warning: #614f05;
    --color-background-alert: #5c0a25;
    --color-border-very-subtle: #313235;
    --color-border-inverted-very-subtle: #eaeaeb;
    --color-border-subtle: #4f5154;
    --color-border-inverted-subtle: #d5d6d7;
    --color-border-default: #77797e;
    --color-border-inverted-default: #c0c1c4;
    --color-border-bold: #a0a2a6;
    --color-border-inverted-bold: #a0a2a6;
    --color-border-very-bold: #c0c1c4;
    --color-border-inverted-very-bold: #77797e;
    --color-border-action-highlight: #eaeaeb;
    --color-border-action: #ffffff;
    --color-border-success: #1d7239;
    --color-border-info: #052461;
    --color-border-warning: #886e07;
    --color-border-alert: #810e34;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-background-default); color: var(--color-text-bold); font: var(--text-label-l); }

/* Page frame */
.page { max-width: 1400px; margin: 0 auto; border-inline: 1px solid var(--color-border-subtle); }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; }
.button {
  display: inline-flex; align-items: center; padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: var(--text-label-l-bold); text-decoration: none; white-space: nowrap;
}
.button.primary { background: var(--color-background-action); color: var(--color-text-inverted-very-bold); }
.button.primary:hover { background: var(--color-background-action-highlight); }
.button:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.button.secondary {
  padding: 7px 15px; border: 1px solid var(--color-border-action);
  background: var(--color-background-default); color: var(--color-text-action);
}
.button.secondary:hover { background: var(--color-background-box); }
.button.tertiary { background: none; color: var(--color-text-action); }
.button.tertiary:hover { background: var(--color-background-box); }
.top .button.tertiary { margin-left: auto; }
.top .button.tertiary + .button { margin-left: 8px; }
/* On a phone a header or footer row with the waiting list button shows only the icon of the logo and the short
   button; only when even that does not fit, the about link of the header goes too, which the footer has as well.
   A row without the waiting list button keeps the whole logo, which links to the page of the city. */
@media (max-width: 480px) {
  .top:has(.button.secondary) .logo, .bottom-top:has(.button.secondary) .logo { width: 27px; overflow: hidden; }
  /* The logo keeps its width, so the box cuts it off after the icon; a page that fits its images into their box
     (img max-width: 100%) would shrink the whole logo into the box instead */
  .top .logo img, .bottom-top .logo img { max-width: none; }
  .button .long { display: none; }
}
@media (max-width: 280px) { .top .button.tertiary { display: none; } }
/* Below the narrowest phone a long word („Hilfeleistungslöschgruppenfahrzeug“) or button text would make the page
   wider than the window: words break, with a hyphen where the language allows it */
@media (max-width: 320px) {
  body { hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: anywhere; }
  .button { white-space: normal; }
}

/* Header, row 1: the weather of the city. <city>/weather.js writes the place and the days into the link.
   The row is positioned, so that it also cuts off the absolute screen reader texts of the days, which would make
   the page wider than a phone window. */
.weather-bar {
  position: relative; display: flex; align-items: center; height: 44px; padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  border-bottom: 1px solid var(--color-border-subtle); background: var(--color-background-elevated);
  color: var(--color-text-default); font: var(--text-label-m);
}
.weather { display: flex; align-items: center; color: inherit; text-decoration: none; }
.wx-place, .wx-day { display: flex; align-items: center; gap: 6px; }
.wx-day { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--color-border-subtle); }
.wx-place, .wx-temp { color: var(--color-text-very-bold); font: var(--text-label-m-bold); }
.wx-min::before { content: " / "; }

/* Header, row 2: stays at the top of the window. Thus the header is no box, or the row sticks only inside it. */
.site-header { display: contents; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 16px 0 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-background-default);
}

/* Header, row 3: the breadcrumb of a city subpage. Only the last item gets shorter. */
.breadcrumb { border-bottom: 1px solid var(--color-border-subtle); color: var(--color-text-default); font: var(--text-label-m); }
.breadcrumb ol { display: flex; align-items: center; gap: 4px; height: 44px; margin: 0; padding: 0 var(--gutter); list-style: none; white-space: nowrap; }
.breadcrumb li { flex: none; }
/* The separator is decoration: the empty alternative text keeps it out of the item; older browsers use the first value */
.breadcrumb li + li::before { content: "›"; content: "›" / ""; margin-right: 4px; color: var(--color-text-very-subtle); }
.breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Footer */
.bottom { padding-top: 40px; color: var(--color-text-default); font: var(--text-label-l); }
.bottom-top { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 16px; }
.bottom-main { display: flex; justify-content: space-between; gap: 40px; padding: 40px var(--gutter); }
.bottom h2 { margin: 0; color: var(--color-text-bold); font: var(--text-label-l-bold); }
.bottom p, .bottom ul { margin: 0; }
.bottom ul { padding: 0; list-style: none; }
.bottom a { color: inherit; }
.about { display: flex; flex-direction: column; gap: 8px; max-width: 469px; }
.bottom-nav { display: flex; gap: 20px; }
.bottom-nav > div { display: flex; flex-direction: column; gap: 8px; width: 160px; }
.bottom-nav ul { display: flex; flex-direction: column; gap: 4px; }
.bottom-nav ul + ul { margin-top: -4px; }
.about a, .bottom-nav a { text-decoration: none; }
.about a:hover, .bottom-nav a:hover { text-decoration: underline; }
.placeholder { color: var(--color-text-very-subtle); }
.footer-image { container-type: inline-size; position: relative; isolation: isolate; overflow: hidden; width: 100%; height: 280px; }
/* The big logo behind the dots: the dots shrink under the cursor and show it. The bottom edge cuts it, as in Figma.
   Figma at 1198px: the ring runs from x 66 to 237 and starts 155px from the top. The logo grows with the width,
   but the edge of the dots does not, so the ring top (8.1cqi below the box top) stays at 155px. */
.footer-image::before {
  content: "";
  position: absolute;
  top: calc(155px - 8.1cqi);
  left: -0.96cqi;
  width: 103.7cqi;
  z-index: -2;
  aspect-ratio: 144 / 40;
  background: var(--color-background-box);
  mask: url(/launch-page/start/img/logo-outline.svg) center / 100% 100% no-repeat;
}
/* The canvas of an interactive halftone (start/halftone.js) behind the content of its section */
.halftone { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 1100px) {
  .bottom-main { flex-direction: column; }
  .bottom-nav { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .page { border-inline: 0; }
  .top { height: 64px; padding: 0 16px 0 4px; }
  .top .logo img, .bottom-top .logo img { width: 126px; height: auto; }
  .button { padding: 6px 12px; font: var(--text-label-m-bold); }
  .button.secondary { padding: 5px 11px; }
  .bottom-top { padding: 16px 16px 16px 10px; }
  .bottom-nav > div { width: calc(50% - 10px); }
  .footer-image { height: 160px; }
  .footer-image::before { top: calc(88px - 8.1cqi); }
}
