/* Farben, Schriften und Abstände kommen aus /theme.css (im Admin einstellbar). Schriftdateien: /fonts.css */
:root {
  --bg: #121415;
  --fg: #f1efe8;
  --accent: #ff6500;
  --teal: #0091b9;
  --gap: 14px;
  --serif: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --hw: 600;
  --hls: -.05em;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bg2: color-mix(in srgb, var(--bg), var(--fg) 7%);
  --line: color-mix(in srgb, var(--bg), var(--fg) 16%);
  --mute: color-mix(in srgb, var(--fg) 58%, var(--bg));
  --soft: color-mix(in srgb, var(--fg) 82%, var(--bg));
  --ice: #bae4f0;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; background: var(--bg); }
body { font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 4vw, 56px); transition: background .4s, padding .4s; color: var(--fg); }
.nav:not(.solid) { color: #f6f4ee; }
.nav.solid { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); padding-block: 14px; border-bottom: 1px solid var(--line); }
.brand em, .hero h1 em { font-style: normal; font-weight: 300; color: var(--accent); letter-spacing: -.03em; }
.brand { position: relative; z-index: 2; font-family: var(--serif); font-weight: var(--hw); font-size: 1.6rem; letter-spacing: var(--hls); line-height: 1; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav nav a { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .78; transition: opacity .3s; position: relative; }
.nav nav a:hover { opacity: 1; }
.nav nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.nav nav a:hover::after { width: 100%; }

/* Hero */
.hero { color: var(--hero-fg, #f6f4ee); position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: -4%; background: color-mix(in srgb, var(--bg), var(--teal) 25%) center/cover no-repeat; transform: scale(1.06); animation: focus 2.2s var(--ease) both, drift 24s ease-in-out infinite alternate; will-change: transform, filter; }
@keyframes focus { from { filter: blur(26px) brightness(1.3); } to { filter: none; } }
@keyframes drift { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 30%, transparent) 0%, color-mix(in srgb, var(--bg) 5%, transparent) 40%, color-mix(in srgb, var(--bg) 94%, transparent) 100%); }
.hero-text { position: relative; padding: 0 clamp(20px, 4vw, 56px) clamp(48px, 9vh, 96px); width: 100%; }
.eyebrow { font-size: .85rem; letter-spacing: .5em; text-transform: uppercase; color: var(--ice); margin-top: 18px; }
.hero h1 { font-family: var(--serif); font-weight: var(--hw); font-size: clamp(3rem, 11vw, 9.5rem); line-height: .95; letter-spacing: var(--hls); overflow: hidden; padding-bottom: .08em; }
.scroll { display: inline-flex; gap: 10px; margin-top: 34px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.scroll span { display: inline-block; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero-text > * { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease) forwards; }
.hero-text > :nth-child(2) { animation-delay: .2s; }
.hero-text > :nth-child(3) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Galerie */
.gallery-sec { padding: clamp(60px, 10vw, 140px) clamp(16px, 4vw, 56px) 60px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: end; margin-bottom: 40px; }
h2 { font-family: var(--serif); font-weight: var(--hw); font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: calc(var(--hls) * .6); line-height: 1.1; }
h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 14px; background: var(--accent); border-radius: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: none; border: 1px solid var(--line); color: var(--mute); padding: 7px 16px; border-radius: 99px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.chip:hover { color: var(--fg); border-color: var(--teal); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.albums { display: flex; gap: var(--gap); overflow-x: auto; margin: -8px 0 34px; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.album { flex: 0 0 clamp(210px, 24vw, 310px); aspect-ratio: 4 / 3; position: relative; overflow: hidden; cursor: pointer; scroll-snap-align: start; background: var(--bg2); border: 0; padding: 0; color: #f6f4ee; text-align: left; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s; }
.album:hover img { transform: scale(1.06); filter: brightness(.7); }
.album::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.78)); z-index: 1; }
.album .t { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; }
.album b { display: block; font-family: var(--serif); font-weight: var(--hw); font-size: 1.25rem; line-height: 1.2; }
.album small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }
.album.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.active-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: -10px 0 30px; color: var(--soft); }
.active-filter p { max-width: 60ch; color: var(--mute); }
.active-filter button { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 99px; padding: 5px 14px; cursor: pointer; font-size: .78rem; transition: border-color .3s, color .3s; }
.active-filter button:hover { border-color: var(--accent); color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: var(--gap); align-items: start; padding-bottom: 120px; }
.col { display: flex; flex-direction: column; gap: var(--gap); will-change: transform; }
.card { --fg: #f6f4ee; margin: 0; position: relative; overflow: hidden; cursor: none; background: var(--bg2); clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); color: var(--fg); }
.card.in { clip-path: inset(0); }
html.no-cursor .card, .card.coarse { cursor: zoom-in; }
@media (pointer: coarse) { .card { cursor: zoom-in; } }
.grid.uniform .card { aspect-ratio: 4 / 5 !important; }
.grid.uniform .card img { height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 14px; pointer-events: none; opacity: 0; transform: scale(1.07); transition: opacity .35s, transform .6s var(--ease);
  --c: var(--accent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 26px 2px no-repeat, linear-gradient(var(--c), var(--c)) top left / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 26px 2px no-repeat, linear-gradient(var(--c), var(--c)) top right / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 26px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 26px 2px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 2px 26px no-repeat; }
.card:hover::after { opacity: 1; transform: none; }
.card .idx { position: absolute; top: 18px; left: 20px; font-size: .72rem; letter-spacing: .24em; color: var(--ice); opacity: 0; transform: translateY(-6px); transition: all .5s var(--ease); }
.card:hover .idx { opacity: 1; transform: none; }
.card img { display: block; width: 100%; height: auto; transform: scale(1.18); filter: blur(22px) brightness(1.15); transition: transform 1.6s var(--ease), filter 1.5s var(--ease); }
.card.in img { transform: scale(1); filter: none; }
.card.in:hover img { transform: scale(1.05); filter: brightness(.65) saturate(1.1); }
.card figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transform: translateY(10px); transition: all .5s var(--ease); pointer-events: none; }
.card:hover figcaption, .card:focus-visible figcaption { opacity: 1; transform: none; }
.card figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.card figcaption span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.empty { color: var(--mute); text-align: center; padding: 60px 0; }

/* Über mich / Kontakt */
.about, .contact { padding: clamp(60px, 10vw, 140px) clamp(20px, 4vw, 56px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 30px 60px; }
.about p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.55; white-space: pre-line; max-width: 46ch; color: var(--soft); }
.contact p { color: var(--mute); grid-column: 2; }
.links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 18px 44px; }
.links a { display: grid; gap: 2px; font-size: 1.1rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.links a small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.links a:hover { color: var(--accent); border-color: var(--accent); }
.contact h2 { grid-row: 1 / span 3; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 30px clamp(20px, 4vw, 56px) 40px; color: var(--mute); font-size: .78rem; letter-spacing: .1em; border-top: 1px solid var(--line); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 90%, #000); display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); height: 100dvh; animation: fade .35s; }
.lb[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { display: grid; place-items: center; padding: 56px 24px; min-width: 0; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 112px); object-fit: contain; animation: zoom .5s var(--ease); }
@keyframes zoom { from { opacity: 0; transform: scale(.97); } }
.lb-info { border-left: 1px solid var(--line); padding: 70px 28px 28px; overflow-y: auto; background: var(--bg); }
.lb-info h3 { font-family: var(--serif); font-weight: var(--hw); font-size: 1.8rem; line-height: 1.15; margin-bottom: 8px; }
.lb-info .cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.lb-info p { color: var(--soft); margin: 18px 0; white-space: pre-line; }
.lb-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .85rem; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.lb-info dt { color: var(--mute); }
.lb-info dd { margin: 0; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lb-tags button { background: none; border: 1px solid var(--line); color: var(--soft); border-radius: 99px; padding: 3px 12px; font-size: .78rem; cursor: pointer; transition: all .3s; }
.lb-tags button:hover { border-color: var(--accent); color: var(--accent); }
.lb-tags button.al { border-color: color-mix(in srgb, var(--teal) 60%, var(--line)); }
.lb-close, .lb-nav { position: absolute; z-index: 2; background: none; border: 0; color: var(--fg); cursor: pointer; font-size: 1.6rem; opacity: .6; transition: opacity .3s; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 16px; right: 20px; }
.lb-nav { top: 50%; font-size: 3rem; padding: 12px 18px; transform: translateY(-50%); }
.lb-nav.prev { left: 6px; }
.lb-nav.next { right: 346px; }

/* Cursor, Fortschritt */
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; scale: .3; transition: opacity .3s, scale .45s var(--ease); }
.cur.on { opacity: 1; scale: 1; }
html.no-cursor .cur { display: none; }
.prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* Mikro-Animationen */
.hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(70%) rotate(4deg); filter: blur(10px); animation: charIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 250ms); }
@keyframes charIn { to { opacity: 1; transform: none; filter: none; } }
.brand em { display: inline-block; transition: transform .5s var(--ease); }
.brand:hover em { transform: translateX(3px) skewX(-8deg); }
h2 { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
h2.in { opacity: 1; transform: none; }
h2::after { transform: scaleX(0); transform-origin: left; transition: transform 1s .35s var(--ease); }
h2.in::after { transform: scaleX(1); }
.w { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.about.in .w { opacity: 1; transform: none; filter: none; }
.mag { transition: translate .35s var(--ease), background .3s, color .3s, border-color .3s, opacity .3s; will-change: translate; }
.lb-info > * { opacity: 0; animation: rise .7s var(--ease) forwards; }

@media (max-width: 860px) {
  .lb { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-stage img { max-height: calc(100dvh - 38vh - 70px); }
  .lb-info { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; max-height: 38vh; }
  .lb-info h3 { font-size: 1.4rem; }
  .lb-nav.next { right: 6px; }
  .lb-nav { top: 35%; }
  .about, .contact { grid-template-columns: 1fr; }
  .contact p, .links { grid-column: 1; }
  .contact h2 { grid-row: auto; }
}
@media (max-width: 560px) { .grid, .col { gap: 8px; } }

/* Ruhige Darstellung: Systemeinstellung "weniger Bewegung" oder im Admin ausgeschaltet */
html.calm * { animation: none !important; transition: none !important; }
html.calm { scroll-behavior: auto; }
html.calm .card { clip-path: none !important; }
html.calm .card img { transform: none !important; filter: none !important; }
html.calm .reveal, html.calm .hero-text > *, html.calm .hero h1 .ch, html.calm .w, html.calm h2, html.calm .lb-info > * { opacity: 1 !important; transform: none !important; filter: none !important; }
html.calm h2::after { transform: none !important; }
html.calm .hero-bg { transform: scale(1.06); }

/* Helle Hintergründe: Hero-Text dunkel, weil das Bild unten ins Helle ausläuft */
html[data-light] .eyebrow { color: var(--teal); }
html[data-light] .hero-shade { background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 25%, transparent) 0%, transparent 35%, color-mix(in srgb, var(--bg) 96%, transparent) 100%); }

/* Footer-Links, Rechtstexte */
.legal-links { display: flex; gap: 22px; }
.legal-links a { transition: color .3s; }
.legal-links a:hover { color: var(--accent); }
.legal { max-width: 780px; margin: 0 auto; padding: clamp(110px, 16vh, 160px) clamp(20px, 4vw, 40px) 80px; min-height: 70vh; }
.legal h1 { font-family: var(--serif); font-weight: var(--hw); font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: var(--hls); line-height: 1.05; margin-bottom: 40px; }
.legal h1::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 18px; background: var(--accent); border-radius: 2px; }
.legal h2 { font-size: 1.25rem; margin: 38px 0 10px; opacity: 1; transform: none; letter-spacing: 0; }
.legal h2::after { display: none; }
.legal p { color: var(--soft); margin: 0 0 16px; white-space: pre-line; }
.legal a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.legal a:hover { border-bottom-color: var(--accent); }

/* Menü auf kleinen Bildschirmen */
.burger { display: none; position: relative; z-index: 2; width: 40px; height: 40px; background: none; border: 0; color: inherit; cursor: pointer; }
.burger::before, .burger::after { content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger::before { top: 15px; } .burger::after { top: 23px; }
body.menu-open .burger::before { top: 19px; transform: rotate(45deg); }
body.menu-open .burger::after { top: 19px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav nav { position: fixed; inset: 0; z-index: 1; background: var(--bg); color: var(--fg); flex-direction: column; justify-content: center; align-items: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
  .nav nav a { font-size: 1.15rem; opacity: 1; }
  body.menu-open .nav nav { opacity: 1; pointer-events: auto; }
  body.menu-open .nav { color: var(--fg); }
  body.menu-open { overflow: hidden; }
}
.nav nav a[aria-current] { opacity: 1; }

/* Seiten aus Blöcken */
body.nohero #page { padding-top: 76px; }
.embed { display: block; }
.blk { padding: clamp(46px, 7vw, 100px) clamp(20px, 4vw, 56px); }
.blk-text, .blk-columns, .blk-quote, .blk-button, .blk-image { margin-inline: auto; }
.blk-text { max-width: 900px; } .blk-text.w-narrow { max-width: 700px; } .blk-text.w-wide { max-width: 1200px; }
.blk-text.a-center, .blk-button.a-center { text-align: center; }
.blk-text h2 { margin-bottom: 22px; }
.blk-text.a-center h2::after { margin-inline: auto; }
.rich p { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--soft); white-space: pre-line; margin: 0 0 1.1em; max-width: 64ch; }
.a-center .rich p { margin-inline: auto; }
.rich h3 { font-family: var(--serif); font-weight: var(--hw); font-size: 1.4rem; margin: 1.5em 0 .4em; line-height: 1.2; }
.rich a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.blk-image { padding-block: clamp(16px, 3vw, 40px); max-width: 1400px; }
.blk-image.w-normal { max-width: 900px; } .blk-image.w-full { max-width: none; padding-inline: 0; }
.blk-image img, .blk-columns img { display: block; width: 100%; height: auto; }
.blk-image figcaption { color: var(--mute); font-size: .88rem; margin-top: 10px; }
.blk-columns { max-width: 1250px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.blk-columns.side-left figure { order: -1; } .blk-columns figure { margin: 0; }
.blk-button { display: flex; max-width: 1250px; padding-block: 24px; } .blk-button.a-center { justify-content: center; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 99px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--accent); transition: transform .35s var(--ease), background .3s, color .3s; }
.btn-solid { background: var(--accent); color: #fff; } .btn-outline { color: var(--fg); } .btn-outline:hover { background: var(--accent); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.blk-quote { max-width: 960px; text-align: center; margin: 0 auto; }
.blk-quote p { font-family: var(--serif); font-weight: var(--hw); font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.22; letter-spacing: calc(var(--hls) * .5); }
.blk-quote cite { display: block; margin-top: 18px; color: var(--mute); font-style: normal; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; }
.blk-spacer { padding: 0; }
hr.blk-divider { border: 0; border-top: 1px solid var(--line); margin: 0 clamp(20px, 4vw, 56px); padding: 0; }
@media (max-width: 860px) { .blk-columns { grid-template-columns: 1fr; } .blk-columns.side-left figure { order: 0; } }
html.calm .blk.reveal { opacity: 1 !important; transform: none !important; }
