@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/dancingscript-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/nunitosans-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/nunitosans-italic.woff2) format('woff2');
}

:root {
  --blau: #4682b4;
  --blau-dunkel: #2f5f86;
  --dunkel: #20303c;
  --text: #33383d;
  --grau: #6b7178;
  --linie: #e3e6ea;
  --hell: #f5f7f9;
  --weiss: #fff;
  --breite: 1100px;
  --lesebreite: 760px;
  --schrift: 'Nunito Sans', 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
  --zier: 'Dancing Script', 'Brush Script MT', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }

h1, h2, h3, h4 { color: var(--dunkel); line-height: 1.25; font-weight: 700; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding-inline: 20px; }
.lesen { max-width: var(--lesebreite); }

/* Header */
.site-header {
  background: var(--dunkel);
  color: var(--weiss);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  font-family: var(--zier);
  font-size: 1.9rem;
  color: var(--weiss);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: #cfe3f3; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  color: var(--weiss);
  text-decoration: none;
  font-weight: 400;
  border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: var(--weiss); }

.social { display: flex; gap: 10px; }
.social a { color: inherit; display: inline-flex; opacity: .9; }
.social a:hover { opacity: 1; color: inherit; }
.social svg { width: 22px; height: 22px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--weiss);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-header .social { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dunkel);
    display: none;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { padding: 12px 8px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--weiss);
  background: var(--dunkel) center / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 40, .65), rgba(20, 30, 40, .05) 60%);
}
.hero .container { position: relative; z-index: 1; padding-block: 48px; }
.hero h1 {
  color: var(--weiss);
  font-family: var(--zier);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin: 0 0 .2em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero p { font-size: 1.25rem; margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }

/* Abschnitte */
.abschnitt { padding-block: 56px; }
.abschnitt.hell { background: var(--hell); }
.abschnitt-titel {
  font-family: var(--zier);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin: 0 0 32px;
  color: var(--blau);
}
.seiten-kopf { padding-block: 48px 8px; text-align: center; }
.seiten-kopf h1 { font-family: var(--zier); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--blau); margin: 0 0 .2em; }
.seiten-kopf p { max-width: 680px; margin: 0 auto; color: var(--grau); }

.wir {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}
.wir figure { margin: 0; }
.wir img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.wir figcaption { font-family: var(--zier); font-size: 1.7rem; color: var(--dunkel); }
.wir-text { max-width: 420px; font-size: 1.15rem; }
.wir-text .unterschrift { font-family: var(--zier); font-size: 2rem; color: var(--blau); display: block; margin-top: 8px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.kachel {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: var(--weiss);
  text-decoration: none;
}
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.kachel:hover img { transform: scale(1.05); }
.kachel span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 18px;
  font-family: var(--zier);
  font-size: 2.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
}
.kachel:hover { color: var(--weiss); }

/* Beitragskarten */
.werkzeuge { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter a {
  padding: 6px 14px;
  border: 1px solid var(--linie);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: .95rem;
}
.filter a:hover { border-color: var(--blau); color: var(--blau); }
.filter a.aktiv { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.suche {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid var(--linie);
  border-radius: 20px;
  min-width: 0;
  width: 240px;
  max-width: 100%;
}
.suche:focus { outline: 2px solid var(--blau); outline-offset: 1px; }

.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.karte {
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .2s;
}
.karte:hover { box-shadow: 0 10px 28px rgba(32, 48, 60, .12); transform: translateY(-2px); color: var(--text); }
.karte-bild { aspect-ratio: 16 / 10; background: var(--hell); overflow: hidden; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-inhalt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.karte h3 { margin: 0; font-size: 1.2rem; }
.karte p { margin: 0; color: var(--grau); font-size: .98rem; flex: 1; }
.meta { font-size: .88rem; color: var(--grau); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.kategorie-label { color: var(--blau); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.leer { text-align: center; color: var(--grau); padding: 40px 0; }
.mehr { text-align: center; margin-top: 32px; }

.button {
  display: inline-block;
  padding: 10px 24px;
  background: var(--blau);
  color: var(--weiss);
  border-radius: 24px;
  text-decoration: none;
  font-weight: 400;
}
.button:hover { background: var(--blau-dunkel); color: var(--weiss); }

/* Beitrag */
.beitrag-kopf { padding-block: 40px 16px; }
.beitrag-kopf h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 8px 0 12px; }
.inhalt { padding-bottom: 48px; }
.inhalt p { margin: 0 0 1.1em; }
.inhalt h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
.inhalt h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.inhalt blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blau);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dunkel);
}
.inhalt ul, .inhalt ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.inhalt figure { margin: 1.6em 0; }
.inhalt figure img { border-radius: 6px; cursor: zoom-in; margin: 0 auto; }
.inhalt figcaption { text-align: center; font-size: .9rem; color: var(--grau); margin-top: 6px; }
.inhalt video { width: 100%; border-radius: 6px; background: #000; margin: 1.6em 0; }

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  margin: 1.6em 0;
}
.galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--hell); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie video { grid-column: 1 / -1; margin: 0; }

.beitrag-fuss { border-top: 1px solid var(--linie); padding-top: 24px; margin-top: 16px; }
.blaettern { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 8px; }
.blaettern a { text-decoration: none; max-width: 48%; }
.blaettern small { display: block; color: var(--grau); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 18, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  color: var(--weiss);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .zu { top: 16px; right: 16px; }
.lightbox .zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .weiter { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .zaehler { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #bbb; font-size: .9rem; }

/* Textseiten */
.textseite { padding-bottom: 56px; }
.textseite .zitat { font-family: var(--zier); font-size: 1.8rem; color: var(--blau); text-align: center; margin: 0 0 1.5em; line-height: 1.35; }
.bildreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 2em 0; }
.bildreihe img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer { background: var(--dunkel); color: #c9d2da; padding-block: 44px 24px; margin-top: 40px; font-size: .95rem; }
.site-footer .spalten { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--zier); color: var(--weiss); font-size: 1.9rem; font-weight: 700; margin: 0 0 8px; }
.site-footer p { margin: 0 0 .5em; }
.site-footer a { color: var(--weiss); }
.site-footer .links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.site-footer .social { margin-top: 12px; }
.site-footer .unten { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #97a3ae; }
@media (max-width: 700px) {
  .site-footer .spalten { grid-template-columns: 1fr; }
}
