/* Velober – Nachbau des Google-Sites-Designs (Stand Oktober 2026). */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/lato-latin-700-italic.woff2") format("woff2"); }

:root {
  --text: rgb(33, 33, 33);
  --text-soft: rgba(0, 0, 0, 0.64);
  --accent: rgb(21, 178, 186);
  --accent-dark: rgb(17, 145, 152);
  --accent-soft: rgba(21, 178, 186, 0.1);
  --surface: rgb(243, 243, 243);
  --line: rgb(211, 211, 211);
  --width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 80px; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

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

/* --- Navigationsleiste über dem Seitenkopf -------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; padding: 4px; background: rgba(255, 255, 255, 0.92); border-radius: 50%; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; }

/* Breite Bildschirme: waagerechte Leiste mit aufklappenden Untermenüs */
.nav--wide { margin-left: auto; }
.nav--wide > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.nav--wide li { position: relative; }
.nav--wide > ul > li > a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}
.nav--wide > ul > li > a:hover,
.nav--wide > ul > li > a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

.nav--wide li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 8px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  display: none;
}
.nav--wide li ul ul { top: -8px; left: 100%; }
.nav--wide li:hover > ul,
.nav--wide li:focus-within > ul { display: block; }
.nav--wide li ul a {
  display: block;
  padding: 8px 18px;
  color: var(--text);
  font-size: 15px;
}
.nav--wide li ul a:hover,
.nav--wide li ul a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.nav--wide li ul li.has-children > a::after { content: " ›"; color: var(--text-soft); }

/* Schmale Bildschirme: Menü-Knopf mit ausklappbarer Liste */
.nav--narrow { display: none; margin-left: auto; }
.nav--narrow summary {
  list-style: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 6px 10px;
  color: #fff;
}
.nav--narrow summary::-webkit-details-marker { display: none; }
.nav--narrow > ul {
  position: absolute;
  right: 12px;
  top: 64px;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 8px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.nav--narrow ul ul { padding-left: 16px; }
.nav--narrow a { display: block; padding: 8px 18px; color: var(--text); }
.nav--narrow a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }

/* --- Seitenkopf mit Foto und Titel --------------------------------------- */

.hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 32px 56px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url("../images/kopf.jpg") center / cover no-repeat;
}

.hero h1 {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

/* --- Inhalt --------------------------------------------------------------- */

.content { width: min(var(--width), 100%); margin: 0 auto; padding: 24px 32px 48px; }
.content:empty { display: none; }

.block { padding: 24px 0; }
.block + .block { padding-top: 0; }

.block h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 400; line-height: 1.2; margin: 0 0 16px; }
.block h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 400; line-height: 1.25; margin: 0 0 14px; }
.block h3 { font-size: 20px; font-weight: 700; margin: 26px 0 8px; }
.block p { margin: 0 0 14px; }
.block .note { color: var(--text-soft); font-size: 15px; margin-top: 26px; }

.block figure { margin: 0; }
.block figure img { display: block; margin: 0 auto; border-radius: 2px; }

/* Abschnitte mit zwei Bildern nebeneinander */
.block:has(> figure + figure) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* Bild links, Text rechts (Startseite) */
.block--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.block--center { text-align: center; }

.button {
  display: inline-block;
  padding: 12px 28px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.button:hover { color: #fff; background: var(--accent-dark); }

/* --- Fußbereich ----------------------------------------------------------- */

.site-footer {
  padding: 32px;
  text-align: center;
  color: var(--text-soft);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.site-footer p { margin: 4px 0; }

/* --- Fehlerseite ---------------------------------------------------------- */

.error-page { max-width: 640px; margin: 120px auto; padding: 0 24px; text-align: center; }

/* --- Schmale Bildschirme -------------------------------------------------- */

@media (max-width: 900px) {
  .site-header { padding: 10px 16px; }
  .nav--wide { display: none; }
  .nav--narrow { display: block; }
  .hero { min-height: 280px; padding: 96px 20px 40px; }
  .content { padding: 16px 20px 40px; }
  .block--split, .block:has(> figure + figure) { grid-template-columns: 1fr; gap: 24px; }
}
