/*
Theme Name: SY Amelie
Theme URI: https://sea-motion.de
Author: Frank Voßgätter
Description: Individuelles Theme für SY Amelie – Segeln, Tauchen, unabhängiges Leben auf See. Großflächige Fotos, ruhige Typografie, Farben aus dem Logo. Zweisprachig (DE/EN) über Polylang.
Version: 2.0
Requires PHP: 7.4
Text Domain: sy-amelie
*/

/* =========================================================
   SCHRIFT: Public Sans, lokal ausgeliefert (SIL Open Font License,
   assets/fonts/OFL.txt) – keine Verbindung zu Google Fonts.
   ========================================================= */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/public-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/public-sans-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/public-sans-latin-800-italic.woff2") format("woff2"); }

/* =========================================================
   DESIGN TOKENS
   Farben aus dem SY-Amelie-Logo.
   ========================================================= */
:root {
  --color-bg:     #FFFFFF;
  --color-ink:    #0B1F2A; /* fast Schwarz mit Petrol-Stich – Überschriften */
  --color-text:   #4A5560; /* Fließtext */
  --color-deep:   #0D5679; /* dunkles Petrol – Fußzeile, dunkle Flächen */
  --color-mid:    #10819F; /* Haupt-Blau – Links */
  --color-bright: #11B8BE; /* Türkis – Akzent, Buttons */
  --color-mist:   #AAE7DF; /* helles Mint – Akzent auf dunklem Grund */
  --color-fog:    #BAC1C3; /* Grau – Linien, Meta-Text */
  --color-sand:   #F4F7F7; /* sehr helle Fläche */

  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1280px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 88px;
}

/* =========================================================
   RESET & BASICS
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-mid); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-bright); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-bright);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin: 0 0 1.25rem;
}
h1 { font-size: clamp(2.6rem, 6vw + 0.5rem, 5.75rem); }
h2 { font-size: clamp(2.1rem, 4vw + 0.5rem, 4.25rem); }
h3 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.1rem); letter-spacing: -0.015em; line-height: 1.15; }
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--color-bright);
}
h3 a { color: inherit; text-decoration: none; }
h3 a:hover { color: var(--color-mid); }

p { margin: 0 0 1.25rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--flush { padding-bottom: var(--section); padding-top: var(--section); }
.section--deep { background: var(--color-deep); color: rgba(255,255,255,.82); }
.section--deep h2 { color: #fff; }

.lede { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); line-height: 1.6; max-width: 60ch; }
.meta {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--color-text);
  margin-bottom: .75rem;
}
.placeholder { color: var(--color-fog); font-style: italic; }

/* Kleine Zeile über Überschriften: "—— Über mich" */
.kicker {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: var(--color-bright);
}
.kicker--right { justify-content: flex-end; }
.kicker--right::before { order: 2; }
.kicker--light { color: #fff; }
.kicker--light::before { background: var(--color-mist); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--right { text-align: right; }

/* =========================================================
   BUTTONS & LINKS
   ========================================================= */
.btn {
  display: inline-block;
  padding: .95rem 1.6rem;
  background: var(--color-bright);
  border: 1px solid var(--color-bright);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--color-mid); border-color: var(--color-mid); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.9); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--color-ink); }
.btn--outline { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn--outline:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.btn--small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-mid);
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--color-mist); }
.link-arrow--light:hover { color: #fff; }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "←"; }

/* =========================================================
   KOPFZEILE
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(11,31,42,.08);
  transition: background-color .3s, box-shadow .3s;
}
.has-hero .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border-bottom-color: rgba(255,255,255,.25);
}
.has-hero .site-header.is-scrolled { position: fixed; }
.site-header.is-scrolled {
  inset: 0 0 auto;
  background: rgba(255,255,255,.97);
  border-bottom-color: rgba(11,31,42,.08);
  box-shadow: 0 4px 24px rgba(11,31,42,.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  margin-right: auto;
}
.site-logo__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}
.site-logo__text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: var(--color-ink);
}
.has-hero .site-header:not(.is-scrolled) .site-logo__text { color: #fff; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.primary-nav a:not(.btn) {
  position: relative;
  display: block;
  padding-block: .4rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-bright);
  transform: scaleX(0);
  transition: transform .25s;
}
.primary-nav a:not(.btn):hover::after,
.primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.has-hero .site-header:not(.is-scrolled) .primary-nav a:not(.btn) { color: #fff; }

.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: .75rem; font-size: .85rem; font-weight: 600; }
.lang-switch a { text-decoration: none; color: inherit; }
.has-hero .site-header:not(.is-scrolled) .lang-switch a { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--color-ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; right: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.has-hero .site-header:not(.is-scrolled) .nav-toggle__bars,
.has-hero .site-header:not(.is-scrolled) .nav-toggle__bars::before,
.has-hero .site-header:not(.is-scrolled) .nav-toggle__bars::after { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); background: var(--color-ink) !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--color-ink) !important; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-logo__img { width: 46px; height: 46px; }
  .nav-toggle { display: block; z-index: 60; }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: var(--header-h) var(--gutter) 2rem;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 1.1rem; }
  .primary-nav a:not(.btn),
  .has-hero .site-header:not(.is-scrolled) .primary-nav a:not(.btn) {
    color: var(--color-ink);
    font-size: 1.6rem;
    letter-spacing: -.01em;
    text-transform: none;
    font-weight: 800;
  }
  .lang-switch { display: none; }
}

/* =========================================================
   STARTSEITE: BÜHNE
   ========================================================= */
.hero, .page-hero, .cta {
  position: relative;
  color: #fff;
  background-color: var(--color-deep);
  background-image: var(--bg-m);
  background-size: cover;
  background-position: center;
}
@media (min-width: 901px) {
  .hero, .page-hero, .cta { background-image: var(--bg); }
}
.hero::before, .page-hero::before, .cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,30,44,.72) 0%, rgba(7,30,44,.35) 55%, rgba(7,30,44,.05) 100%),
    linear-gradient(180deg, rgba(7,30,44,.45) 0%, rgba(7,30,44,0) 28%);
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) 4.5rem;
  background-position: 60% center;
}
.hero__inner { position: relative; }
.hero__kicker {
  font-style: italic;
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 1.5rem;
}
.hero__title {
  color: #fff;
  font-size: clamp(3rem, 7.5vw + .5rem, 7.25rem);
  line-height: .98;
  margin-bottom: 2rem;
  max-width: 13ch;
}
.hero__title em { color: var(--color-mist); }
.hero__lede {
  font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem);
  line-height: 1.65;
  max-width: 46ch;
  color: rgba(255,255,255,.92);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.35);
}
.stats__item { text-align: center; }
.stats dt {
  font-size: clamp(2rem, 3vw + .5rem, 3.25rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.02em;
}
.stats dd { margin: .5rem 0 0; font-style: italic; color: rgba(255,255,255,.85); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 14px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scroll-hint 1.8s infinite;
}
@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Unterseiten-Bühne */
.page-hero {
  min-height: clamp(380px, 62vh, 640px);
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero__inner { position: relative; }
.page-hero h1 { color: #fff; margin: 0; max-width: 16ch; }

/* =========================================================
   ZWEISPALTIG: TEXT + BILD
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split__text .lede { margin-bottom: 2rem; }

/* =========================================================
   LOGBUCH: BERICHTE IN VOLLER BREITE
   ========================================================= */
.feature { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.feature__media {
  display: block;
  height: clamp(320px, 62vw, 760px);
  background-color: var(--color-sand);
  background-size: cover;
  background-position: center;
  transition: filter .3s;
}
a.feature__media:hover { filter: brightness(1.06); }
.feature__body { padding-top: 1.75rem; max-width: calc(820px + 2 * var(--gutter)); margin-left: 0; }
@media (min-width: 1281px) {
  .feature__body { margin-left: calc((100vw - var(--container)) / 2); }
}
.feature__body > p:not(.meta) { max-width: 65ch; }

/* =========================================================
   VIDEO (dunkler Abschnitt) & CONSENT-GATE
   ========================================================= */
.section--deep .consent-gate { margin-block: 2rem; }
.consent-gate {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #072030;
  overflow: hidden;
}
.consent-gate__inner small { font-size: .8rem; opacity: .8; }
.track-map { margin-top: 1rem; }
.track-frame {
  position: relative;
  width: 100%;
  height: 70vw;
  min-height: 480px;
  max-height: 820px;
  background: var(--color-deep);
}
.track-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.track-link { margin-top: 1.5rem; }
.consent-gate__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.consent-gate__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
}
.consent-gate__inner p { margin: 0; font-weight: 700; font-size: 1.15rem; max-width: 40ch; }
.consent-gate button {
  padding: .9rem 1.5rem;
  background: var(--color-bright);
  border: 0;
  color: #fff;
  font: 600 1rem var(--font);
  cursor: pointer;
  border-radius: 2px;
}
.consent-gate button:hover { background: var(--color-mid); }
.consent-gate iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   KARTEN (Mehr entdecken)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card { display: block; text-decoration: none; color: var(--color-text); }
.card__media { display: block; overflow: hidden; margin-bottom: 1.25rem; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__media img { transform: scale(1.04); }
.card__title {
  display: block;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.015em;
  color: var(--color-ink);
  margin-bottom: .35rem;
}
.card__title::after { content: " →"; color: var(--color-bright); }
.card__text { display: block; }

/* =========================================================
   KONTAKT-BAND
   ========================================================= */
.cta {
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: left;
}
.cta__inner { position: relative; }
.cta h2 { color: #fff; max-width: 14ch; }
.cta h2 em { color: var(--color-mist); }
.cta p { max-width: 46ch; color: rgba(255,255,255,.9); font-size: 1.15rem; margin-bottom: 2rem; }

/* =========================================================
   BEITRAGSLISTE
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 760px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card__media { display: block; overflow: hidden; margin-bottom: 1.25rem; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card h3 { font-size: 1.5rem; margin-bottom: .75rem; }

.pagination, .nav-links { display: flex; gap: .75rem; margin-top: 3rem; font-weight: 600; }
.page-numbers { padding: .4rem .8rem; text-decoration: none; border: 1px solid var(--color-fog); color: var(--color-ink); }
.page-numbers.current { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

/* =========================================================
   INHALT (Seiten & Beiträge)
   ========================================================= */
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); margin-top: 3rem; }
.entry-content h3 { margin-top: 2.25rem; }
.entry-content img, .entry-content figure { margin-block: 2rem; }
.entry-content figure img { margin-block: 0; }
@media (max-width: 600px) {
  /* Bildreihen aus eingefügtem HTML (Inline-Breite 40 %) auf dem Handy in voller Breite */
  .entry-content figure[style*="width"] { width: 100% !important; }
}
.entry-content figcaption { font-size: .85rem; color: var(--color-fog); margin-top: .4rem; }
.js-lightbox .entry-content img, .entry-content.js-lightbox img { cursor: zoom-in; }
.entry-content .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-bright);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-ink);
}
.entry-content--wide { margin-top: 2.5rem; }
.legal h2 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); letter-spacing: -.01em; margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }

/* Mein Schiff: Grundriss, Datentabelle, Ausstattungslisten */
.ship-plan { margin-block: 2rem; }
.ship-plan a { display: block; cursor: zoom-in; }
.ship-plan img { width: 100%; height: auto; margin: 0; }
.ship-plan figcaption { font-size: .9rem; color: var(--color-fog); margin-top: .5rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: .7rem 0; border-bottom: 1px solid var(--color-fog); }
.spec-table th { width: 36%; padding-right: 1rem; color: var(--color-ink); font-weight: 600; }
.spec-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.spec-list li { position: relative; padding: .45rem 0 .45rem 1.4rem; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--color-bright); }

.contact-list { list-style: none; margin: 2rem 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(11,31,42,.12);
  font-size: 1.15rem;
  color: var(--color-ink);
}
.contact-list span { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text); align-self: center; }

/* Seiten ohne Bühne (Archiv, Suche, 404) */
body:not(.has-hero) #main.section { padding-top: calc(var(--section) * .75); }

/* =========================================================
   FUSSZEILE
   ========================================================= */
.site-footer {
  background: var(--color-deep);
  color: rgba(255,255,255,.8);
  padding-top: clamp(4rem, 8vw, 6rem);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-mist); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer__logo {
  width: 72px; height: 72px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  margin-bottom: 1.25rem;
}
.site-footer__claim { max-width: 32ch; font-size: 1.1rem; }
.legal-links { list-style: none; margin: 0; padding: 0; }
.legal-links li + li { margin-top: .4rem; }
.site-footer__bottom {
  margin-top: 3.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* =========================================================
   FOTOGALERIE: ALBEN & VOLLBILD
   ========================================================= */
.albums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
}
@media (min-width: 700px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .albums { grid-template-columns: repeat(3, 1fr); } }
.album-card { display: block; text-decoration: none; color: var(--color-text); }
.album-card__media { display: block; overflow: hidden; margin-bottom: 1.1rem; background: var(--color-sand); }
.album-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.album-card:hover .album-card__media img { transform: scale(1.04); }
.album-card__meta { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .35rem; }
.album-card__title { display: block; font-weight: 800; font-size: 1.6rem; letter-spacing: -.015em; line-height: 1.15; color: var(--color-ink); }
.album-card__title::after { content: " →"; color: var(--color-bright); }

.entry-content--album { margin-bottom: 3rem; }
.entry-content--album > p { max-width: 65ch; }
/* Galerie-Block als gleichmäßiges Raster (überschreibt die WordPress-Standardgalerie) */
.entry-content--album .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem !important;
  margin-block: 2rem;
}
@media (min-width: 700px) {
  .entry-content--album .wp-block-gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem !important; }
}
.entry-content--album .wp-block-gallery > figure.wp-block-image {
  width: auto !important;
  margin: 0 !important;
  display: block !important;
}
.entry-content--album .wp-block-gallery > figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.entry-content--album .wp-block-gallery > figure.wp-block-image figcaption {
  position: static !important;
  background: none !important;
  color: var(--color-text) !important;
  text-shadow: none !important;
  font-size: .85rem;
  padding: .4rem 0 0 !important;
  margin: 0 !important;
  max-height: none !important;
  text-align: left;
}
.entry-content--album > figure.wp-block-image { margin-block: 1.5rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 20, 30, .96);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__figure img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lightbox__figure figcaption { color: rgba(255,255,255,.85); font-size: .95rem; margin-top: .75rem; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font: 300 3rem/1 var(--font);
  cursor: pointer;
  padding: .5rem 1rem;
  opacity: .8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox__close { top: .5rem; right: .5rem; }
.lightbox__prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: .25rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; }
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { display: none; } /* auf dem Handy wischen */
}
