/*
Theme Name: Felix Reichenauer
Theme URI: https://felixreichenauer.com
Author: faded.works
Description: Portfolio für Felix Reichenauer — Sound Design · Composition · Mix. Monochrom, Vimeo-Loops, Stem-Player. 1:1 nach dem Design-Prototyp.
Version: 2.0.0
Requires PHP: 7.4
License: Proprietary
Text Domain: felixreichenauer
*/

/* ---------- Basis (Werte 1:1 aus dem Prototyp) ---------- */
:root {
  --bg: #050505; --fg: #f2f2f0; --dim: #6d6d6a; --dim2: #5c5c58; --dim3: #57574f; --dim4: #4a4a45; --dim5: #3f3f3c;
  --line: #1a1a18; --line2: #232321; --soft: #cfcfcb; --soft2: #e6e6e3; --body: #b8b8b4; --hover: #8f8f8c;
  --serif: 'Bodoni Moda', Georgia, serif; --mono: 'Space Mono', ui-monospace, monospace;
  --pad-v: clamp(30px, 3.6vw, 44px); --pad-h: clamp(40px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { position: relative; width: 100%; min-height: 100vh; font-family: var(--mono); font-size: 11px; overflow-x: hidden; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--hover); }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
::selection { background: var(--fg); color: var(--bg); }
img { display: block; max-width: 100%; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd, dt { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
[hidden] { display: none !important; }
.fr-dim { color: var(--dim); }
.fr-dim2 { color: var(--dim2); }
.fr-rule { border-top: 1px solid var(--line); }
.fr-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 48px); line-height: 0.95; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.fr-brand { display: flex; flex-direction: column; gap: 10px; }
.fr-brand a, .fr-brand span:first-child { white-space: nowrap; cursor: pointer; }
.fr-brand a { color: var(--fg); }
.fr-legal-links { display: flex; gap: 24px; }
.fr-legal-links a { color: var(--dim3); cursor: pointer; transition: color 220ms ease; }
.fr-legal-links a:hover { color: var(--fg); }
.fr-index { color: var(--fg); cursor: pointer; }
.fr-narrow { display: none; }
@media (max-width: 900px) { .fr-narrow { display: inline; } .fr-wide { display: none !important; } }

/* Seitenwechsel-Blende + Reveal */
.fr-fade { position: fixed; inset: 0; background: var(--bg); z-index: 90; pointer-events: none; opacity: 1; transition: opacity 220ms ease; }
body.is-ready .fr-fade { opacity: 0; }
body.is-leaving .fr-fade { opacity: 1; }
.fr-reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms ease, transform 640ms var(--ease); }
body.is-ready .fr-reveal { opacity: 1; transform: translateY(0); }

/* ---------- Innenseiten: Kopf, scrollender Inhalt, Fuß ---------- */
.fr-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.fr-header { flex-shrink: 0; z-index: 20; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(var(--pad-v) + env(safe-area-inset-top, 0px)) var(--pad-h) var(--pad-v); background: var(--bg); border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; }
.fr-header .fr-brand a:hover { color: var(--hover); }
.fr-nav { display: flex; gap: clamp(16px, 3vw, 28px); color: var(--dim); }
.fr-nav a { color: var(--dim); cursor: pointer; }
.fr-nav a.is-active, .fr-nav a:hover { color: var(--fg); }
.fr-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.fr-footer { flex-shrink: 0; background: var(--bg); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; height: 14px; line-height: 1; box-sizing: content-box; padding: var(--pad-v) var(--pad-h) calc(var(--pad-v) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim3); }

/* ---------- Landing ---------- */
.fr-land { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.fr-land-bg { position: absolute; inset: 0; }
.fr-land-still { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 560ms ease; }
.fr-land-still.is-on { opacity: 1; }
.fr-land-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 100vh; border: 0; pointer-events: none; opacity: 0; transition: opacity 400ms ease; }
.fr-land-bg iframe.is-on { opacity: 1; }
.fr-land-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.66) 44%, rgba(5,5,5,0.42) 100%); }
.fr-land-grid { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--pad-v) + env(safe-area-inset-top, 0px)) var(--pad-h) calc(var(--pad-v) + env(safe-area-inset-bottom, 0px)); }
.fr-land-head { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: space-between; align-items: flex-start; font-size: 11px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; }
.fr-land-head .fr-brand a:hover { color: var(--fg); }
.fr-land-nav { display: flex; gap: 26px; }
.fr-land-nav a { color: var(--fg); cursor: pointer; transition: color 220ms ease; }
.fr-land-nav a:hover { color: var(--hover); }
.fr-land-body { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); grid-template-rows: auto; align-items: center; gap: clamp(24px, 4vw, 56px); }
.fr-land-info { position: static; left: 0; bottom: 0; order: 0; align-self: end; justify-self: start; text-align: left; padding-bottom: clamp(12px, 3vh, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-width: 0; max-width: 34ch; min-height: 150px; opacity: 0; transform: translateY(10px); transition: opacity 340ms ease, transform 340ms ease; }
.fr-land-info.is-on { opacity: 1; transform: translateY(0px); }
.fr-land-title { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 48px); line-height: 1.1; letter-spacing: -0.01em; min-height: 1.1em; }
.fr-land-meta { display: grid; grid-template-columns: 62px 1fr; gap: 9px 20px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.8; color: var(--soft); }
.fr-cue { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.fr-land-list { align-self: center; display: flex; flex-direction: column; gap: 2px; margin-right: clamp(16px, 5vw, 110px); }
.fr-land-row { display: block; cursor: pointer; padding: 5px 0; color: inherit; }
.fr-land-row span { font-family: var(--serif); font-style: italic; font-size: clamp(18px, min(1.7vw, 2.3vh), 26px); line-height: 1.32; display: block; text-align: right; white-space: nowrap; color: #a8a8a3; transition: color 260ms ease; }
.fr-land-list.has-hover .fr-land-row span { color: var(--dim3); }
.fr-land-list .fr-land-row.is-on span { color: var(--fg); }
.fr-land-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; height: 14px; line-height: 1; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim3); }
.fr-touch-cue { display: none !important; text-align: right; line-height: 1.7; }
@media (max-width: 900px) {
  .fr-land-scrim { background: rgba(5,5,5,0.62); }
  .fr-land { height: 100vh; height: 100dvh; }
  .fr-land-bg iframe { height: 100dvh; }
  .fr-land-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; align-items: center; height: 100%; min-height: 0; }
  .fr-land-list { align-self: center; margin-right: 0; gap: 0; min-height: 0; }
  .fr-land-row { padding: 3px 0; }
  .fr-land-row span { font-size: clamp(14px, 4.1vw, 17px); line-height: 1.3; }
  .fr-land-info { position: absolute; left: 0; bottom: 0; order: 2; align-self: end; min-height: 0; padding-bottom: 0; }
  .fr-land-title { font-size: clamp(22px, 5.6vw, 26px); }
  .fr-land-info .fr-cue { display: none; }
  .fr-land-foot { height: auto; align-items: center; gap: 14px; margin-top: 26px; }
  body.is-touch .fr-touch-cue { display: inline !important; font-size: 9px; letter-spacing: 0.16em; line-height: 1; white-space: nowrap; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .fr-land-row span { font-size: clamp(13px, 3.6vw, 15px); line-height: 1.25; }
  .fr-land-row { padding: 2px 0; }
  .fr-land-title { font-size: clamp(20px, 5vw, 24px); }
  .fr-land-foot { margin-top: 18px; }
}
/* Eingeloggt: WP-Adminleiste vom Landing-Viewport abziehen. */
body.admin-bar .fr-land { height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media (max-width: 782px) { body.admin-bar .fr-land { height: calc(100vh - 46px); height: calc(100dvh - 46px); } }

/* ---------- Work ---------- */
.fr-work { padding: var(--pad-v) var(--pad-h) clamp(60px, 7vw, 100px); }
.fr-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(300px, calc((100% - 54px) / 4))), 1fr)); gap: 28px 18px; }
.fr-work-sentinel { height: 1px; }
.fr-tile { cursor: pointer; display: flex; flex-direction: column; gap: 12px; color: var(--fg); opacity: 0; transform: translateY(14px); transition: opacity 480ms ease var(--d, 0ms), transform 640ms var(--ease) var(--d, 0ms); }
body.is-ready .fr-tile { opacity: 1; transform: translateY(0); }
.fr-tile:hover { color: var(--fg); }
.fr-tile-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.fr-tile-still { position: absolute; inset: -1px; background-size: cover; background-position: center; background-color: var(--bg); }
.fr-tile-media iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.fr-tile-media iframe.is-on { opacity: 1; }
.fr-tile-veil { position: absolute; inset: -1px; background: var(--bg); opacity: 0.18; transition: opacity 420ms ease; pointer-events: none; }
.fr-tile.is-hot .fr-tile-veil { opacity: 0; }
.fr-tile-cred { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; flex-direction: column; gap: 5px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); opacity: 0; transform: translateY(6px); transition: opacity 320ms ease, transform 320ms ease; }
.fr-tile.is-hot .fr-tile-cred { opacity: 1; transform: translateY(0px); }
.fr-tile-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.8; }
.fr-tile-title { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-tile-client { color: var(--dim); white-space: nowrap; }

/* ---------- Projekt ---------- */
.fr-detail { padding: var(--pad-v) var(--pad-h) var(--pad-v); }
.fr-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; justify-content: start; }
.fr-film { position: relative; width: 100%; aspect-ratio: var(--ar, 1.7778); overflow: hidden; background: #000; }
.fr-film.is-portrait { width: min(100%, calc((100vh - 180px) * var(--ar, 1.7778))); }
@media (orientation: landscape) and (min-width: 640px) {
  .fr-detail-grid { grid-template-columns: minmax(0, 1fr) clamp(260px, 28vw, 380px); }
  .fr-film, .fr-film.is-portrait { width: min(100%, calc((100vh - 290px) * var(--ar, 1.7778))); }
}
.fr-film-frame iframe { position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border: 0; display: block; background: #000; }
.fr-poster { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; background-color: #000; background-size: cover; background-position: center; outline: none; color: var(--fg); }
.fr-poster:focus { box-shadow: inset 0 0 0 1px var(--hover); }
.fr-poster-label { position: absolute; left: 22px; bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.fr-play-tri { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #f2f2f0; }
.fr-film-error { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 22px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); line-height: 1.8; }
.fr-film-error a { color: var(--fg); }
.fr-film-error a:hover { color: var(--hover); }
.fr-panel { display: flex; flex-direction: column; gap: 18px; position: sticky; top: var(--pad-v); min-width: 0; }
.fr-panel .fr-h1 { margin: 0 0 14px; }
.fr-stems { display: flex; flex-direction: column; gap: 18px; }
.fr-stems-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.fr-stems-play { cursor: pointer; color: var(--fg); outline: none; }
.fr-stems-play:hover { color: var(--hover); }
.fr-stems-play:focus-visible { color: var(--hover); text-decoration: underline; text-underline-offset: 4px; }
.fr-stems-rows { display: flex; flex-direction: column; }
.fr-stem { cursor: pointer; display: grid; grid-template-columns: 56px 1fr 58px; align-items: center; gap: 14px; padding: 9px 0; outline: none; width: 100%; }
.fr-stem-name { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim4); transition: color 220ms ease; }
.fr-stem.is-live .fr-stem-name { color: var(--fg); }
.fr-stem-wave { display: block; width: 100%; height: 22px; color: var(--dim4); opacity: 0.22; transition: opacity 240ms ease, color 220ms ease; cursor: pointer; }
.fr-stem.is-live .fr-stem-wave { color: var(--fg); opacity: 0.85; }
.fr-stem-loading { display: block; height: 22px; background-image: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px); color: var(--dim4); opacity: 0.22; transition: opacity 240ms ease; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.35), #000 22%, rgba(0,0,0,0.55) 47%, #000 68%, rgba(0,0,0,0.3)); mask-image: linear-gradient(90deg, rgba(0,0,0,0.35), #000 22%, rgba(0,0,0,0.55) 47%, #000 68%, rgba(0,0,0,0.3)); }
.fr-stem.is-live .fr-stem-loading { color: var(--fg); opacity: 0.85; }
.fr-stem-state { font-size: 10px; letter-spacing: 0.16em; color: #4f4f4b; text-align: right; text-transform: none; }
.fr-stems-hint { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim5); line-height: 1.9; }
.fr-stems-none { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.fr-stems-none a { cursor: pointer; color: var(--dim4); text-align: right; }
.fr-stems-none a:hover { color: var(--fg); }
.fr-stems-none a:focus-visible { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.fr-credits { display: flex; flex-direction: column; gap: 11px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
.fr-credits > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.fr-credits dt { color: var(--dim2); }
.fr-credits dd { color: var(--fg); }
.fr-detail-nav { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; line-height: 1.7; }
.fr-detail-nav-l { display: flex; gap: 18px; flex-shrink: 0; white-space: nowrap; }
.fr-detail-nav-l a { color: var(--dim); cursor: pointer; outline: none; }
.fr-detail-nav-l a:hover { color: var(--fg); }
.fr-detail-nav-l a:focus-visible { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.fr-detail-next { cursor: pointer; min-width: 0; flex: 1 1 auto; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: baseline; gap: 10px; outline: none; white-space: nowrap; color: var(--fg); }
.fr-detail-next:hover { opacity: 0.7; color: var(--fg); }
.fr-detail-next:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.fr-detail-next .fr-dim { color: var(--dim); flex-shrink: 0; }
.fr-detail-next strong { color: var(--fg); font-weight: 700; }
.fr-detail-next strong:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fr-detail-next strong:last-of-type { flex-shrink: 0; }

/* ---------- About ---------- */
.fr-about { flex: 1; padding: var(--pad-v) var(--pad-h) clamp(44px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 2.6vw, 36px) clamp(32px, 4.5vw, 80px); align-items: start; align-content: center; }
.fr-photo { position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; overflow: hidden; background: #0a0a0a; align-self: end; }
.fr-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr-about-title { align-self: end; }
.fr-about-text { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); min-width: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.fr-prose { display: flex; flex-direction: column; gap: 16px; font-size: 11px; line-height: 1.9; letter-spacing: 0.1em; text-transform: uppercase; text-wrap: pretty; color: var(--soft); max-width: 64ch; }
.fr-sig { width: clamp(80px, 6vw, 96px); height: auto; opacity: 0.75; margin-top: -8px; }
@media (orientation: landscape) and (min-width: 640px) {
  .fr-about { grid-template-columns: clamp(200px, 22vw, 320px) minmax(0, 1.15fr) minmax(0, 1fr); }
  .fr-photo { grid-row: 1 / 3; max-width: 100%; }
  .fr-about-title { grid-column: 2 / 4; }
}
/* Fakten (About / Contact / 404) */
.fr-facts { display: flex; flex-direction: column; min-width: 0; }
.fr-facts-about { border-top: 1px solid var(--line); }
.fr-facts > div:not(.fr-rule) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px clamp(16px, 2vw, 28px); padding: 16px 0; }
@media (min-width: 640px) { .fr-facts > div:not(.fr-rule) { grid-template-columns: clamp(76px, 8vw, 104px) minmax(0, 1fr); } }
.fr-facts-about > div + div { border-top: 1px solid var(--line); }
.fr-facts-top > div { border-top: 1px solid var(--line); }
.fr-facts dt { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim2); line-height: 1.8; }
.fr-facts dd { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.8; color: var(--soft2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-facts dd a { color: var(--soft2); align-self: flex-start; cursor: pointer; transition: color 220ms ease; }
.fr-facts dd a:hover { color: var(--hover); }
.fr-facts dd a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact / 404 ---------- */
.fr-contact { flex: 1; padding: var(--pad-v) var(--pad-h) clamp(44px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 44px) clamp(40px, 6vw, 120px); align-items: start; align-content: center; }
.fr-contact-lead { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.fr-contact-lead .fr-h1 { max-width: 18ch; }
.fr-sub { margin: 0; font-size: 11px; line-height: 1.9; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hover); max-width: 46ch; }
@media (orientation: landscape) and (min-width: 640px) {
  .fr-contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .fr-facts-top { padding-top: 12px; }
}
.fr-mail, .fr-phone { cursor: pointer; unicode-bidi: bidi-override; direction: rtl; display: inline-block; align-self: flex-start; outline: none; }
.fr-mail { color: var(--fg); }
.fr-phone { color: var(--soft2); }
.fr-facts .fr-mail, .fr-facts .fr-phone, .fr-terms-sig .fr-mail { transition: color 220ms ease; }
.fr-mail:hover, .fr-phone:hover { color: var(--hover); }
.fr-mail:focus-visible, .fr-phone:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal (Imprint / Terms / Privacy) ---------- */
.fr-legal { display: contents; }
.fr-legal-lang { padding: 0 var(--pad-h); display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 96px); max-width: 1240px; width: 100%; margin: 0 auto; box-sizing: border-box; align-items: stretch; }
.fr-legal-rail { display: flex; flex-direction: column; gap: 22px; min-height: 0; padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.fr-legal-sub { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); line-height: 1.8; }
.fr-legal-sub-terms { display: flex; flex-direction: column; gap: 4px; }
.fr-seg { display: inline-flex; align-self: flex-start; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--line2); }
.fr-seg button { cursor: pointer; padding: 9px 14px; background: transparent; color: var(--hover); outline: none; }
.fr-seg button[aria-pressed="true"], .fr-seg button.is-on { background: var(--fg); color: var(--bg); }
.fr-seg button:focus-visible { box-shadow: inset 0 0 0 1px var(--hover); }
.fr-seg-consent { letter-spacing: 0.16em; }
.fr-seg-consent button { color: var(--fg); }
.fr-seg-consent button.is-on { background: var(--fg); color: var(--bg); }
.fr-consent-rows { display: flex; flex-direction: column; margin-top: 10px; }
.fr-consent-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.fr-consent-row-labels { display: flex; flex-direction: column; gap: 3px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.fr-consent-row-labels span:first-child { color: var(--dim); }
.fr-consent-row-labels span:last-child { color: var(--fg); }
.fr-toc { display: none; list-style: none; margin: 10px 0 0; padding: 0; flex-direction: column; gap: 5px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim3); line-height: 1.6; }
.fr-toc a { cursor: pointer; display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: inherit; }
.fr-toc a:hover { color: var(--fg); }
.fr-legal-col { display: flex; flex-direction: column; min-height: 0; padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 7vw, 100px); }
.fr-legal-privacy .fr-legal-col { gap: 34px; }
.fr-legal-items { display: flex; flex-direction: column; }
.fr-legal-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px clamp(20px, 3vw, 40px); padding: 22px 0; border-top: 1px solid var(--line); }
.fr-legal-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); line-height: 1.8; padding-top: 3px; }
.fr-legal-item > div { font-size: 13px; line-height: 1.9; color: var(--body); min-width: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.fr-legal-item p { margin: 0; }
.fr-legal-item a { color: var(--fg); text-decoration: none; }
.fr-legal-item a:hover { color: var(--hover); }
.fr-legal-note { margin: 0; font-size: 11px; line-height: 1.8; color: var(--dim3); }
.fr-legal-terms .fr-legal-col { display: block; font-size: 13px; line-height: 1.9; color: var(--body); min-width: 0; }
.fr-terms-intro { display: flex; flex-direction: column; gap: 10px; padding: 0 0 34px; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 13px; }
.fr-terms-intro p { margin: 0; text-wrap: pretty; }
.fr-terms-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px clamp(20px, 3vw, 40px); padding: 30px 0; border-bottom: 1px solid var(--line); }
.fr-terms-head { display: flex; flex-direction: column; gap: 6px; align-self: start; }
.fr-terms-head .fr-num { font-size: 10px; letter-spacing: 0.2em; color: var(--dim3); }
.fr-terms-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; color: var(--fg); text-wrap: balance; }
.fr-terms-items { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fr-terms-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.fr-terms-item .fr-num { font-size: 10px; letter-spacing: 0.16em; color: var(--dim3); padding-top: 6px; }
.fr-terms-item > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fr-terms-item p { margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.fr-terms-item ul { list-style: disc; margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 2px; color: var(--hover); }
.fr-terms-item li { text-wrap: pretty; }
.fr-terms-sig { display: flex; flex-direction: column; padding-top: 28px; line-height: 1.9; color: var(--hover); }
.fr-terms-sig .fr-mail { color: var(--fg); }
@media (min-width: 640px) {
  .fr-legal-item, .fr-terms-sec { grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .fr-legal-lang { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); flex: 1; min-height: 0; overflow: hidden; }
  .fr-legal-rail { overflow-y: auto; scrollbar-width: none; }
  .fr-legal-rail::-webkit-scrollbar { display: none; }
  .fr-legal-col { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; padding-right: 8px; }
  .fr-toc { display: flex; }
  .fr-terms-head { position: sticky; top: 0; background: var(--bg); padding-bottom: 6px; }
}

/* ---------- Index-Menü (schmal) ---------- */
.fr-menu { display: none; }
@media (max-width: 900px) {
  .fr-menu { position: fixed; inset: 0; z-index: 80; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1); display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--pad-v) + env(safe-area-inset-top, 0px)) var(--pad-h) calc(var(--pad-v) + env(safe-area-inset-bottom, 0px)); }
  .fr-menu.is-open { opacity: 1; pointer-events: auto; transition-duration: 380ms; }
}
.fr-menu-head { display: flex; justify-content: space-between; align-items: flex-start; font-size: 11px; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; }
.fr-menu-head .fr-brand span:first-child { cursor: default; }
.fr-menu-links { align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-right: clamp(16px, 5vw, 110px); }
.fr-menu-links a { --md: 200ms; cursor: pointer; padding: 5px 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.32; letter-spacing: -0.01em; color: var(--hover); opacity: 0; transform: translateX(28px); filter: blur(6px); transition: opacity 520ms ease var(--md), transform 720ms var(--ease) var(--md), filter 520ms ease var(--md), color 200ms ease; }
.fr-menu-links a:nth-child(1) { --md: 80ms; }
.fr-menu-links a:nth-child(2) { --md: 40ms; }
.fr-menu-links a:nth-child(3) { --md: 200ms; }
.fr-menu.is-open .fr-menu-links a { opacity: 1; transform: translateX(0px); filter: blur(0px); }
.fr-menu.is-open .fr-menu-links a:nth-child(1) { --md: 140ms; }
.fr-menu.is-open .fr-menu-links a:nth-child(2) { --md: 240ms; }
.fr-menu.is-open .fr-menu-links a:nth-child(3) { --md: 200ms; }
.fr-menu-links a.is-active, .fr-menu-links a:hover { color: var(--fg); }
.fr-menu-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; height: 14px; line-height: 1; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim3); opacity: 0; transition: opacity 420ms ease 0ms; }
.fr-menu.is-open .fr-menu-foot { opacity: 1; transition-delay: 420ms; }
.fr-menu-foot .fr-legal-links a { transition: none; }
.fr-menu-foot .fr-legal-links a:hover { color: var(--dim3); }

/* ---------- Consent-Banner ---------- */
.fr-consent { position: fixed; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); z-index: 85; max-width: min(520px, 38vw, 100%); min-width: min(300px, 100%); background: #0b0b0b; border: 1px solid var(--line2); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.8; color: var(--soft); opacity: 0; transform: translateY(14px); transition: opacity 480ms ease 200ms, transform 640ms var(--ease) 200ms; }
.fr-consent.is-shown { opacity: 1; transform: translateY(0px); }
.fr-consent p { margin: 0; text-wrap: pretty; }
.fr-consent a { cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; outline: none; }
.fr-consent a:hover { color: var(--hover); }
.fr-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fr-btn { cursor: pointer; padding: 10px 16px; border: 1px solid #3a3a37; color: var(--fg); outline: none; background: transparent; }
.fr-btn:hover { border-color: var(--hover); }
.fr-btn:focus-visible { box-shadow: 0 0 0 1px var(--hover); }
.fr-btn-solid { background: var(--fg); color: var(--bg); border: 0; }
.fr-btn-solid:hover { background: var(--soft); border-color: transparent; }
