/* ==========================================================================
   freiklang – Stylesheet
   Farben & Schrift nach Styleguide_freiklang.pdf:
   Salbei #BECFCE · Papier #EDEDE6 · Text 70 % Schwarz · Vollkorn (italic)
   ========================================================================== */

@font-face { font-family: "Vollkorn"; src: url("../assets/fonts/Vollkorn-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../assets/fonts/Vollkorn-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../assets/fonts/Vollkorn-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../assets/fonts/Vollkorn-SemiboldItalic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --sage: #BECFCE;
  --sage-deep: #A9BFBD;
  --paper: #EDEDE6;
  --white: #FAFAF7;
  --ink: #4D4D4D;            /* 70 % Schwarz */
  --ink-soft: #77787A;
  --line: rgba(77, 77, 77, .18);
  --shade: rgba(28, 32, 32, .55);

  --font: "Vollkorn", Georgia, "Times New Roman", serif;
  --gap: clamp(10px, 1.3vw, 18px);
  --radius: clamp(14px, 1.6vw, 24px);
  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(17px, 1.05vw + 10px, 20px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
.fk { font-style: italic; text-transform: lowercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Logo: SVG als Maske → nimmt die Textfarbe an (weiß oder 70 % Schwarz) */
.logo-mark {
  display: block;
  aspect-ratio: 481.89 / 482.304;
  background: currentColor;
  -webkit-mask: url("../assets/logo/freiklang.svg") center / contain no-repeat;
          mask: url("../assets/logo/freiklang.svg") center / contain no-repeat;
}

/* ─────────────────────────── Navigation ─────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  color: var(--ink);
  transition: transform .55s var(--ease), opacity .55s var(--ease), background-color .4s, color .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(237, 237, 230, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: opacity .4s;
}
.nav[data-state="hero"] { color: #fff; }
.nav[data-state="hero"]::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav__logo { justify-self: start; width: 54px; display: block; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 44px); font-style: italic; font-size: 1.12em; }
.nav__links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__contact { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s; }
.nav__contact:hover, .nav__contact[aria-expanded="true"] { background: rgba(127, 127, 127, .16); }
.nav__contact svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }

/* ─────────────────────────── Kontakt-Popup ─────────────────────────── */
.contact {
  position: fixed; z-index: 60;
  top: calc(var(--nav-h) + env(safe-area-inset-top) + 8px); right: var(--pad);
  width: min(360px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  background: var(--sage); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(30, 40, 40, .45);
  transform-origin: top right;
  animation: pop .35s var(--ease);
}
.contact[hidden] { display: none; }
.contact__kicker { font-style: italic; font-size: .85em; margin-bottom: .2em; }
.contact__title { font-style: italic; font-weight: 400; font-size: 2em; line-height: 1.1; margin: 0 0 .5em; }
.contact__lines { font-size: 1.1em; }
.contact__lines a { text-decoration: none; border-bottom: 1px solid currentColor; }
.contact__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.contact__close:hover { background: rgba(255, 255, 255, .35); }
.contact__close svg, .modal__close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.social { list-style: none; margin: 1.2em 0 0; padding: 1em 0 0; border-top: 1px solid rgba(77, 77, 77, .25); display: grid; gap: .45em; }
.social a { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font-style: italic; }
.social a:hover { text-decoration: underline; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(-8px); } }

/* ─────────────────────────── Hero ─────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; background: #8fa3a6; }
.hero__media { position: absolute; inset: -8% 0 0 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 55, 60, .25) 0%, rgba(40, 55, 60, .05) 40%, rgba(40, 55, 60, .35) 100%); }
.hero__content {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--nav-h) var(--pad) 12vh;
  will-change: transform, opacity;
}
.hero__logo { width: min(64vw, 46vh, 440px); margin: 0 0 .5em; filter: drop-shadow(0 2px 20px rgba(0, 0, 0, .12)); }
.hero__tagline { font-style: italic; font-size: clamp(1.15em, 2.2vw, 1.7em); margin: 0 0 .3em; letter-spacing: .01em; }
.hero__names { font-style: italic; font-size: .95em; opacity: .9; }
.hero__names span { margin: 0 .4em; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 28px; height: 44px; margin-left: -14px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 2px; animation: scrollhint 2.2s infinite var(--ease); }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ─────────────────────────── Sections ─────────────────────────── */
.sec {
  position: relative;
  margin-top: calc(var(--radius) * -1.6);
  padding: clamp(28px, 5vw, 70px) var(--pad) clamp(70px, 9vw, 140px);
  border-radius: calc(var(--radius) * 1.6) calc(var(--radius) * 1.6) 0 0;
  overflow: clip;
  scroll-margin-top: 0;
  box-shadow: 0 -18px 40px -30px rgba(30, 40, 40, .35);
}
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec__head { max-width: var(--maxw); margin: 0 auto; pointer-events: none; }
.sec__title {
  margin: 0 0 clamp(8px, 1vw, 16px);
  font-style: italic; font-weight: 400;
  font-size: clamp(45px, 10.5vw, 161px);
  line-height: .9; letter-spacing: -.03em;
  color: var(--sage-deep);
  white-space: nowrap;
  will-change: transform;
}
.sec--white .sec__title { color: var(--sage); }

/* ─────────────────────────── Kachel-Raster ─────────────────────────── */
.grid-wrap { max-width: var(--maxw); margin: 0 auto; container-type: inline-size; }
.grid {
  --cols: 4;
  --cell: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: minmax(calc(var(--cell) * .86), auto);
  grid-auto-flow: dense;
  column-gap: var(--gap);
  row-gap: calc(var(--gap) * 2.2);
}
.tile { --span: 1; --rows: 1; grid-column: span var(--span); grid-row: span var(--rows); }
.tile.half { --span: 2; }
.tile.threequarter { --span: 3; }
.tile.full { --span: 4; }
.tile.tall { --rows: 2; }

@media (max-width: 960px) {
  .grid { --cols: 2; grid-auto-rows: minmax(calc(var(--cell) * .9), auto); }
  .tile.full, .tile.threequarter { --span: 2; }
}
@media (max-width: 560px) {
  .grid { row-gap: var(--gap); }
  .tile.quarter.t-text, .tile.quarter.t-audio { --span: 2; }
  .tile.half.tall.t-text, .tile.threequarter.tall.t-text { --rows: 1; }
}

/* Kachel-Grundform */
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--sage);
  opacity: 0; transform: translateY(48px) scale(.985);
  transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .4s;
  translate: 0 var(--py, 0px);
}
.tile.is-in { opacity: 1; transform: none; }
.tile.is-clickable { cursor: pointer; }
.tile.is-clickable:hover { box-shadow: 0 22px 50px -28px rgba(30, 40, 40, .55); }
.tile.tone-paper { background: var(--paper); }
.tile.tone-white { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.tile.tone-sage { background: var(--sage); }
.tile.tone-ink { background: var(--ink); color: var(--paper); }
.sec--paper .tile.tone-paper { background: transparent; }
.sec--white .tile.tone-white { background: var(--paper); box-shadow: none; }

/* Bild / Video */
.tile__media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.tile__media img, .tile__media video {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
  transform: translateY(var(--ip, 0px));
  transition: scale 1.1s var(--ease);
}
.tile.is-clickable:hover .tile__media img, .tile.is-clickable:hover .tile__media video { scale: 1.035; }
.tile.overlay .tile__media::after, .tile.t-video .tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 25, 25, 0) 45%, rgba(20, 25, 25, .62) 100%);
}

/* Text in Kacheln */
.tile__body {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(16px, 2.1vw, 30px);
}
.t-text .tile__body, .t-audio .tile__body { justify-content: flex-start; }
.tile.overlay .tile__body, .t-video .tile__body { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.tile__kicker { font-style: italic; font-size: .82em; opacity: .85; margin: 0 0 .25em; }
.tile__title { font-style: italic; font-weight: 400; font-size: clamp(1.35em, 2.1vw, 2.1em); line-height: 1.08; margin: 0 0 .35em; letter-spacing: -.005em; }
.tile.quarter .tile__title { font-size: clamp(1.2em, 1.55vw, 1.6em); }
.tile.full .tile__title { font-size: clamp(1.8em, 3.6vw, 3.4em); }
.tile__text { font-size: .95em; }
.tile__text .lead, .modal .lead { font-style: italic; font-size: clamp(1.25em, 2.3vw, 2.15em); line-height: 1.25; margin-bottom: .6em; }
.tile.full.t-text .tile__body { padding-block: clamp(10px, 2vw, 30px); max-width: 1100px; }
.tile.full.t-text .tile__text { font-size: clamp(1em, 1.2vw, 1.2em); }
.t-text .tile__body > .tile__title:first-child { margin-top: auto; }
.tile .plain { list-style: none; margin: 0; padding: 0; }
.tile .plain li { padding: .25em 0; border-bottom: 1px solid rgba(237, 237, 230, .2); }
.contact-lines { font-size: 1.15em; font-style: italic; margin-top: 1em; }

.tile__link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: auto; align-self: flex-start;
  padding: .5em 1.05em; border-radius: 999px; border: 1px solid currentColor;
  text-decoration: none; font-style: italic; font-size: .92em;
  transition: background-color .3s, color .3s;
}
.tile__text + .tile__link { margin-top: 1.1em; }
.t-text .tile__body .tile__link { margin-top: auto; }
.t-text .tile__text { margin-bottom: 1.2em; }
.tile__link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tone-ink .tile__link:hover { background: var(--paper); color: var(--ink); }

/* „mehr"-Knopf auf klickbaren Kacheln */
.tile__more {
  position: absolute; top: clamp(10px, 1.2vw, 16px); right: clamp(10px, 1.2vw, 16px); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(250, 250, 247, .88); color: var(--ink);
  transition: transform .4s var(--ease), background-color .3s;
}
.tile__more svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.tile.is-clickable:hover .tile__more { transform: rotate(90deg); background: #fff; }

/* Play-Symbol für Video-Vorschaubilder */
.tile__play {
  position: absolute; left: clamp(12px, 1.4vw, 20px); top: clamp(12px, 1.4vw, 20px); width: 56px; height: 56px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9);
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .45s var(--ease);
}
.tile__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; display: block; }
.tile.is-clickable:hover .tile__play { transform: scale(1.1); }

/* Ton-Anzeige bei Videos */
.tile__sound {
  position: absolute; right: clamp(10px, 1.2vw, 16px); bottom: clamp(10px, 1.2vw, 16px); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(20, 25, 25, .35); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tile__sound svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tile__sound .off { display: block; line-height: 0; }
.tile__sound .on { display: none; line-height: 0; }
.tile.is-unmuted .tile__sound .on { display: block; }
.tile.is-unmuted .tile__sound .off { display: none; }
.tile.t-video .tile__body { padding-right: 70px; }

/* Covers mit Bildunterschrift */
.tile.caption { background: var(--paper); }
.tile.caption .tile__media { inset: 0 0 4.2em 0; border-radius: 0 0 var(--radius) var(--radius); }
.tile.caption .tile__media img { top: 0; height: 100%; }
.tile.caption .tile__body { justify-content: flex-end; padding-bottom: 1em; padding-top: 0; }
.tile.caption .tile__kicker { margin: 0; }
.tile.caption .tile__title { margin: 0; font-size: 1.3em; }

/* ─────────────────────────── Audio-Player ─────────────────────────── */
.tracks { list-style: none; margin: .4em 0 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.track:last-child { border-bottom: 1px solid var(--line); }
.track__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.track__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.track__btn svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.track__btn .play, .track__btn .pause { display: flex; }   /* keine Textzeile → Symbol sitzt genau in der Mitte */
.track__btn .pause { display: none; }
.track.is-playing .track__btn .play { display: none; }
.track.is-playing .track__btn .pause { display: block; }
.track__title { font-style: italic; line-height: 1.2; }
.track__note { display: block; font-size: .78em; opacity: .7; font-style: normal; }
.track__time { font-size: .8em; opacity: .75; font-variant-numeric: tabular-nums; }
.track__bar { grid-column: 2 / 4; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; display: none; cursor: pointer; }
.track.is-active .track__bar { display: block; }
.track__bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ─────────────────────────── Story-Popup ─────────────────────────── */
.modal {
  width: min(1240px, calc(100vw - 2 * var(--pad)));
  max-width: none; max-height: calc(100svh - 48px);
  padding: 0; border: 0; border-radius: calc(var(--radius) * 1.2);
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(20, 30, 30, .6);
  overflow: hidden;
}
.modal[open] { display: flex; animation: modalin .5s var(--ease); }
.modal::backdrop { background: rgba(60, 75, 75, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fade .4s; }
@keyframes modalin { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(250, 250, 247, .9); color: var(--ink);
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .25);
}
.modal__close:hover { background: #fff; }
.modal__body { display: grid; grid-template-columns: 1fr; width: 100%; overflow: auto; overscroll-behavior: contain; }
.modal__body.has-media { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); overflow: hidden; }
.modal__media { position: relative; background: var(--paper); min-height: 320px; }
.modal__text { padding: clamp(24px, 4vw, 56px); overflow: auto; }
.modal__body:not(.has-media) .modal__text { max-width: 820px; margin: 0 auto; }
.modal__kicker, .modal .kicker { font-style: italic; color: var(--ink-soft); margin-bottom: .6em; }
.modal__title { font-style: italic; font-weight: 400; font-size: clamp(2em, 4vw, 3.4em); line-height: 1.05; margin: 0 0 .5em; padding-right: 48px; letter-spacing: -.01em; }
.modal__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }
.modal__links a { padding: .5em 1.1em; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-style: italic; font-size: .92em; }
.modal__links a:first-child, .modal__links a:hover { background: var(--ink); color: var(--paper); }
.modal h3 { font-style: italic; font-weight: 400; font-size: 1.35em; margin: 1.6em 0 .4em; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: .8em 0 .8em 5.6em; border-top: 1px solid var(--line); }
.timeline b { position: absolute; left: 0; top: .55em; width: 4em; font-style: italic; font-weight: 400; font-size: 1.3em; line-height: 1.2; color: var(--sage-deep); }
.tracklist { width: 100%; border-collapse: collapse; font-size: .88em; }
.tracklist td { padding: .45em .3em; border-top: 1px solid var(--line); vertical-align: top; }
.tracklist td:first-child { width: 2.2em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tracklist td:last-child { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tracklist .by { display: block; font-size: .85em; color: var(--ink-soft); font-style: italic; }

/* Slideshow */
.slides { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.slides__track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.slides__track figure { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; }
.slides__track img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.slides__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 250, 247, .85); color: var(--ink); z-index: 2; }
.slides__nav svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.slides__nav.prev { left: 14px; } .slides__nav.next { right: 14px; }
.slides__count { position: absolute; left: 18px; bottom: 14px; color: #fff; font-style: italic; font-size: .85em; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.slides__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.slides__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(40, 50, 50, .45); }
.slides__dots button[aria-current="true"] { background: #fff; }

/* Externe Videos mit Datenschutz-Hinweis */
.embed { position: absolute; inset: 0; display: flex; flex-direction: column; }
.embed__stage { position: relative; flex: 1; }
.embed__stage iframe, .embed__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }
.embed__consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; cursor: pointer; }
.embed__consent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.embed__consent div { position: relative; max-width: 420px; padding: 20px; }
.embed__consent .tile__play { position: relative; left: auto; top: auto; margin: 0 auto 14px; }
.embed__consent small { display: block; font-size: .78em; opacity: .9; line-height: 1.4; }
.embed__tabs { display: flex; gap: 6px; padding: 10px; background: var(--paper); overflow-x: auto; }
.embed__tabs button { flex: none; padding: .35em .9em; border-radius: 999px; border: 1px solid rgba(77, 77, 77, .35); color: var(--ink); font-style: italic; font-size: .85em; }
.embed__tabs button[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─────────────────────────── Footer ─────────────────────────── */
.footer { position: relative; margin-top: calc(var(--radius) * -1.6); border-radius: calc(var(--radius) * 1.6) calc(var(--radius) * 1.6) 0 0; background: var(--sage); color: var(--ink); padding: clamp(40px, 6vw, 80px) var(--pad) calc(40px + env(safe-area-inset-bottom)); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: start; font-size: .92em; }
.footer__logo { width: clamp(110px, 12vw, 170px); color: #fff; }
.footer__tagline { font-style: italic; font-size: 1.4em; line-height: 1.2; }
.footer a { text-decoration: none; border-bottom: 1px solid rgba(77, 77, 77, .4); }
.footer a:hover { border-color: currentColor; }
.noscript { padding: 120px var(--pad); text-align: center; }

/* ─────────────────────────── Mobil ─────────────────────────── */
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .nav { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav__logo { width: 38px; }
  .nav__links { justify-content: center; gap: clamp(10px, 4vw, 22px); font-size: 1em; }
  .contact { left: 12px; right: 12px; width: auto; }
  .modal { width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; margin: 0; }
  .modal__body.has-media { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; overflow: auto; }
  .modal__body.has-media .modal__media { min-height: 0; height: calc(100vw / 1.5); }   /* 3:2 bei voller Breite – feste Höhe, damit das Bild den Text nicht überdeckt */
  .modal__text { overflow: visible; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
  .tile.t-video .tile__body { padding-right: clamp(16px, 2.1vw, 30px); padding-bottom: 64px; }
}
@media (max-width: 380px) {
  .nav__links { font-size: .92em; gap: 9px; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { opacity: 1; transform: none; translate: none; transition: none; }
  .tile__media img, .tile__media video { transform: none; }
  .hero__scroll span { animation: none; }
}

/* Ganzes Bild zeigen (z. B. runde Porträts) */
.tile.fit-contain { background: transparent; }
.sec--white .tile.fit-contain { background: transparent; }
.tile.fit-contain .tile__media { inset: 7% 9% 5.4em; overflow: visible; }   /* sonst wird der Schatten seitlich abgeschnitten */
.tile.fit-contain .tile__media img { top: 0; height: 100%; object-fit: contain; transform: none; }
.tile.fit-contain.is-clickable:hover .tile__media img { scale: 1.03; }
.tile.fit-contain .tile__body { align-items: center; text-align: center; }
.tile.fit-contain.is-clickable:hover { box-shadow: none; }
.tile.fit-contain .tile__more { background: var(--white); }
.tile.fit-contain .tile__media img { filter: drop-shadow(0 14px 22px rgba(30, 40, 40, .18)); }
.modal__body.has-media { min-height: min(78svh, 660px); }
@media (max-width: 760px) { .modal__body.has-media { min-height: 0; } }
@media (max-aspect-ratio: 4/5) { .hero__media img { object-position: 14% 65%; } }

/* Popup „nur Fotos“: große Ansicht ohne Text */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.modal.is-photos {
  width: min(1480px, calc(100vw - 2 * var(--pad))); height: calc(100svh - 2 * clamp(16px, 4vh, 48px)); max-height: none;
  margin: auto; border-radius: calc(var(--radius) * 1.2); background: var(--paper);
}
@media (max-width: 760px) {
  .modal.is-photos { width: calc(100vw - 24px); height: calc(100svh - 24px); border-radius: var(--radius); }
}
.modal.is-photos::backdrop { background: rgba(60, 75, 75, .45); }
.modal.is-photos .modal__body { height: 100%; overflow: hidden; margin: 0; }
.modal.is-photos .modal__media { height: 100%; min-height: 0; background: transparent; }
.modal.is-photos .slides__track figure { padding: 0; }
.modal .slides__track img.is-landscape { object-fit: cover; }   /* Querformat-Fotos füllen die Bildfläche, ohne dunkle Ränder */

/* Popup-Text: schmale, dezente Scrollleiste, die innerhalb der runden Ecken und unter dem Schließen-Knopf bleibt */
.modal__body, .modal__text { scrollbar-width: thin; scrollbar-color: rgba(77, 77, 77, .28) transparent; }
.modal__body:not(.has-media) { margin: 64px 8px clamp(14px, 2vw, 26px) 0; }
.modal__body:not(.has-media) .modal__text { padding-top: 0; }
.modal__body.has-media .modal__text { margin: 64px 8px clamp(14px, 2vw, 26px) 0; padding-top: 0; }
.modal__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--paper); }

/* Logo in der Navigation: nur der Schriftzug (ohne Kreis) */
.logo-word {
  display: block; aspect-ratio: 416.424 / 169.761; background: currentColor;
  -webkit-mask: url("../assets/logo/freiklang-schriftzug.svg") center / contain no-repeat;
          mask: url("../assets/logo/freiklang-schriftzug.svg") center / contain no-repeat;
}
.nav__logo { width: 84px; }
@media (max-width: 760px) {
  .nav__logo { width: 60px; }
  .modal__body.has-media .modal__text { margin: 0; padding-top: clamp(24px, 4vw, 56px); }
  .modal__body:not(.has-media) { margin: 64px 0 0; }
}

/* Nachweis Grafik / Fotos im Footer: klein und zurückhaltend */
.footer__credits { margin-top: 1.4em; font-size: .78em; opacity: .7; }

/* Fotograf:in auf dem Bild (Feld „credit“) */
.tile__credit, .modal__credit {
  position: absolute; z-index: 3; right: 12px; bottom: 9px; margin: 0;
  font-size: 11px; font-style: italic; letter-spacing: .02em; color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45); pointer-events: none;
}
.modal__credit { right: 18px; bottom: 14px; font-size: 12px; }

/* Dreiviertel-Kacheln: Titel groß wie bei voller Breite (z. B. „stü“ beim Trailer) */
.tile.threequarter .tile__title { font-size: clamp(1.8em, 3.6vw, 3.4em); }

/* Popup Text + Bild (Desktop): breiteres Format, Bildfläche 3:2 wie die meisten Fotos.
   Die Höhe richtet sich nach dem Bild, der Text scrollt daneben. */
@media (min-width: 1100px) {
  .modal:has(.modal__body.has-media):not(.is-photos) { width: min(1440px, calc(100vw - 2 * var(--pad))); }
  .modal__body.has-media { min-height: 0; grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); }
  .modal__body.has-media .modal__media { min-height: 0; aspect-ratio: 3 / 2; max-height: calc(100svh - 48px); }
  .modal__body.has-media .modal__text { contain: size; }   /* Text bestimmt die Höhe nicht mit */
}

/* Tablet: Bild (3:2) über dem Text, das ganze Popup scrollt */
@media (min-width: 761px) and (max-width: 1099px) {
  .modal__body.has-media { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; overflow: auto; }
  .modal__body.has-media .modal__media { min-height: 0; height: calc(min(1240px, 100vw - 2 * var(--pad)) / 1.5); }   /* 3:2 bei voller Popup-Breite */
  .modal__body.has-media .modal__text { margin: 0; padding-top: clamp(24px, 4vw, 48px); overflow: visible; }
}

/* Slideshow: Bild immer genau so groß wie die Bildfläche (sonst wird ein quadratisches
   Bild bei fester 3:2-Fläche so hoch wie breit und unten abgeschnitten) */
.slides__track figure { grid-template: 100% / 100%; }

/* Bildnachweis in der Slideshow (je Bild) */
.slides__track figure { position: relative; }
.slides__credit {
  position: absolute; right: 14px; bottom: 12px; margin: 0; z-index: 2;
  font-size: 11px; font-style: italic; letter-spacing: .02em; color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5); pointer-events: none;
}
/* Nachweis neben ganz gezeigten Bildern (runde Porträts, Hochformat): dunkle Schrift auf hellem Grund */
.slides__track figure:has(img:not(.is-landscape)) .slides__credit { color: var(--ink-soft); text-shadow: none; }
.tile.fit-contain .tile__credit { color: var(--ink-soft); text-shadow: none; }
.tile.fit-contain .tile__credit { right: 0; bottom: -2px; }   /* Ecke unter dem ganz gezeigten Bild */

/* Footer: vier Blöcke vertikal zentriert, gleiche Abstände dazwischen */
.footer__inner { grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; column-gap: clamp(24px, 4vw, 64px); }
.footer__col { display: flex; flex-direction: column; gap: .7em; }
.footer__col p { margin: 0; }
.footer__credits { margin-top: 0; }
@media (max-width: 960px) {
  .footer__inner { grid-template-columns: repeat(2, auto); row-gap: 32px; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 28px; }
  .footer__logo { grid-column: auto; }
}
