/* mario.gallery – Stylesheet
   Aufbau: Grundlagen · Kopf · Fuß · Bausteine · Seiten · Barrierefreiheit · Cookie-Hinweis */

/* ---------- Schriften ---------- */
@font-face { font-family: 'Futura'; font-weight: 100; font-style: normal; font-display: swap; src: url('/assets/fonts/FuturaLTProLightCond.woff2') format('woff2'); }
@font-face { font-family: 'Futura'; font-weight: 200; font-style: normal; font-display: swap; src: url('/assets/fonts/FuturaLTProBook.woff2') format('woff2'); }
@font-face { font-family: 'Futura'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/FuturaLTProMediumCond.woff2') format('woff2'); }
/* Gewicht 400/500 (Menü, Buttons, „Weiterlesen“): breite Futura Medium – so zeigt Safari die alte Seite */
@font-face { font-family: 'Futura'; font-weight: 400 500; font-style: normal; font-display: swap; src: url('/assets/fonts/FuturaLTProMedium.woff2') format('woff2'); }
@font-face { font-family: 'Futura'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/FuturaLTProBold.woff2') format('woff2'); }
@font-face { font-family: 'Futura'; font-weight: 700 900; font-style: normal; font-display: swap; src: url('/assets/fonts/FuturaLTProBoldCond.woff2') format('woff2'); }

/* ---------- Grundlagen ---------- */
:root {
  --primary: #2A2F31;
  --secondary: #54595F;
  --text: #1E1C1C;
  --accent: #B2AAA4;
  --accent-hover: #A49E42;
  --footer: #2d2d2d;
  --footer-text: #CFCFC9;
  --wrap: 1140px;
  --font: 'Futura', 'Futura PT', 'Century Gothic', sans-serif;
  --scale: 1;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; overflow-x: clip; }
/* Footer sitzt auch bei kurzen Seiten am unteren Fensterrand */
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: calc(20px * var(--scale));
  font-weight: 100;
  letter-spacing: .3px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; }
body > * { flex-shrink: 0; }
p { margin: 0 0 .9rem; line-height: 38px; }
html { font-size: 16px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font); font-weight: 100; color: var(--primary); line-height: 1; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; border: 0; }
strong, b { font-weight: 400; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 10000; background: var(--primary); color: #fff; padding: 12px 20px; font-size: 15px; font-weight: 400; }
.skip-link:focus { top: 10px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; }
.col-pad { padding: 10px; }

/* Einblend-Animation beim Scrollen */
.reveal { opacity: 0; transition: opacity 1.25s ease; }
.reveal.is-visible { opacity: 1; }

/* ---------- Kopf ---------- */
.site-header { position: relative; z-index: 999; }
.site-header__inner { display: flex; align-items: center; min-height: 88px; height: 100px; }
.site-header__brand { width: 30%; padding: 10px 10px 10px 50px; }
.site-header__brand img { width: 80px; height: 80px; }
.site-header__nav { width: 70%; padding: 10px; display: flex; justify-content: flex-end; }

.main-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav__list a {
  display: block; padding: 13px 30px; line-height: 20px;
  font-size: 14px; font-weight: 400; color: var(--secondary);
}
.main-nav__list a:hover, .main-nav__list a[aria-current="page"] { color: var(--secondary); }

.menu-toggle {
  display: none; width: 33px; height: 33px; padding: .25em; margin: 0 auto;
  background: transparent; border: 0; border-radius: 3px; color: var(--primary); cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus { color: var(--accent); background: #fff; }
.menu-toggle svg { width: 25px; height: 25px; fill: currentColor; display: block; margin: auto; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; }

@media (max-width: 1024px) {
  .site-header { padding: 20px; }
  .site-header__inner { height: auto; }
  .site-header__brand { width: 30%; }
  .site-header__nav { width: 35%; justify-content: center; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; overflow: hidden; max-height: 0; transition: max-height .3s ease;
  }
  .mobile-nav.is-open { max-height: 400px; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav a {
    display: block; padding: 10px 20px; line-height: 20px;
    font-size: 14px; font-weight: 400; letter-spacing: 1.6px; color: var(--text);
  }
  .mobile-nav a:hover, .mobile-nav a:focus { background: #55595c; color: #fff; }
  .mobile-nav a[aria-current="page"] { background: #3f444b; color: #fff; }
}
@media (max-width: 767px) {
  .site-header { padding: 5px; }
  .site-header__brand { width: 70%; padding: 10px 10px 10px 50px; }
  .site-header__nav { width: 30%; }
  .mobile-nav { top: calc(100% + 14px); }
}

/* Kopf liegt auf der Startseite über dem Bild */
.is-home .site-header { position: relative; }

/* ---------- Fuß ---------- */
.to-top-spacer { height: 66px; }
.to-top {
  position: fixed; right: 10px; bottom: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 46px; background: var(--primary); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .3s, color .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover, .to-top:focus { color: #CFCFCF; }
.to-top svg { width: 10px; height: 16px; fill: currentColor; }

.site-footer { background: var(--footer); }
.site-footer__inner { display: flex; align-items: center; min-height: 90px; }
.site-footer__copy { width: 50%; padding: 10px; }
.site-footer__copy p { margin: 0; font-size: 13px; font-weight: 300; line-height: 38px; color: var(--footer-text); }
.site-footer__nav { width: 50%; padding: 10px; }
.footer-nav { display: flex; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.footer-nav a, .footer-nav button { position: relative; display: block; padding: 13px 20px; line-height: 20px; font-size: 20px; font-weight: 100; color: var(--footer-text); }
.footer-nav button { background: none; border: 0; cursor: pointer; font-family: inherit; }
.footer-nav a::after, .footer-nav button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); opacity: 0; transition: opacity .3s;
}
.footer-nav a:hover::after, .footer-nav button:hover::after, .footer-nav a[aria-current="page"]::after { opacity: 1; }
.footer-nav a[aria-current="page"] { color: var(--accent); }
.footer-nav a:hover { color: var(--footer-text); }

@media (max-width: 1024px) {
  .site-footer { padding: 10px 20px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 20px 20px 0; }
  .site-footer__inner { flex-direction: column; align-items: stretch; }
  .site-footer__copy, .site-footer__nav { width: 100%; }
  .site-footer__copy p { line-height: 19px; }
  .footer-nav { justify-content: center; }
}

/* ---------- Bausteine ---------- */
.btn {
  display: inline-block; padding: 12px 24px; line-height: 1;
  font-size: 15px; font-weight: 400; color: #fff; background: var(--accent);
  border: 1px solid #fff; border-radius: 0; cursor: pointer; transition: all .3s;
}
.btn:hover, .btn:focus { background: #fff; color: var(--accent); }
.btn--dark { background: var(--primary); border-color: var(--primary); }

.rule { border: 0; margin: 15px 0; border-top: 4px solid #000; }

/* Galerie */
.gallery-filters { display: flex; flex-wrap: wrap; margin: 0 -5px; padding: 0; list-style: none; }
.gallery-filters button {
  position: relative; margin: 0 5px 18px; padding: 20px; background: none; border: 0;
  font-size: 20px; font-weight: 100; line-height: 20px; color: var(--text); cursor: pointer;
}
.gallery-filters button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent); opacity: 0; transition: opacity .3s;
}
.gallery-filters button:hover::after, .gallery-filters button[aria-pressed="true"]::after { opacity: 1; }

.gallery { --cols: 3; columns: var(--cols); column-gap: 20px; }
.gallery__item { break-inside: avoid; margin: 0 0 20px; }
/* Masonry in Zeilenreihenfolge (per JavaScript positioniert) */
.gallery--grid { columns: auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.gallery.is-masonry { columns: auto; position: relative; }
.gallery.is-masonry .gallery__item { position: absolute; margin: 0; }
.gallery__item[hidden] { display: none; }
.gallery__link { position: relative; display: block; overflow: hidden; border: 4px solid var(--accent); color: #fff; }
.gallery__link img { width: 100%; transition: transform .25s linear; }
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.36); }
.gallery__caption {
  position: absolute; left: 0; bottom: 0; max-width: 100%;
  padding: 40px; font-size: 20px; line-height: 1.2; color: #fff;
  opacity: 0; transition: all .25s linear;
}
.gallery__link:hover .gallery__caption, .gallery__link:focus-visible .gallery__caption { opacity: 1; background: #B2AAA4DE; }
@media (max-width: 1024px) { .gallery { --cols: 2; } }
@media (max-width: 767px) {
  .gallery { --cols: 1; }
  .gallery-filters button { padding: 5px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10000; display: none;
  background: rgba(0, 0, 0, .87); color: #fff; user-select: none;
}
.lightbox.is-open { display: block; }
.lightbox__stage { position: absolute; inset: 60px 60px 70px; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .2s; }
.lightbox__img.is-loading { opacity: .2; }
.lightbox__bar { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; padding: 0 10px; }
.lightbox__count { font-size: 15px; font-weight: 400; color: rgba(255,255,255,.7); padding: 0 10px; }
.lightbox__tools { margin-left: auto; display: flex; }
.lightbox button {
  background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { color: #fff; }
.lightbox button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 60px !important; height: 80px !important; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__prev svg, .lightbox__next svg { width: 28px !important; height: 28px !important; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 18px; padding: 0 20px; }
.lightbox.is-zoomed .lightbox__stage { overflow: auto; display: block; }
.lightbox.is-zoomed .lightbox__img { max-width: none; max-height: none; cursor: zoom-out; }

/* Akkordeon */
.accordion__item { margin-bottom: 10px; border: 1px solid #d4d4d4; }
.accordion__title {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 15px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 800; line-height: 15px; color: var(--primary);
}
.accordion__icon { flex: none; width: 16px; height: 16px; fill: currentColor; margin-left: 10px; }
.accordion--accent .accordion__icon { fill: var(--accent); }
.accordion__icon .minus { display: none; }
.accordion__title[aria-expanded="true"] .plus { display: none; }
.accordion__title[aria-expanded="true"] .minus { display: inline; }
.accordion__panel { padding: 15px; font-size: 16px; font-weight: 400; color: #333; line-height: 1.7; }
.accordion__panel[hidden] { display: none; }
.accordion__panel p { line-height: 38px; }
.accordion__panel strong { font-weight: 800; }
.accordion__panel h2, .accordion__panel h3, .accordion__panel h4 { font-weight: 800; color: var(--primary); margin: 1.2em 0 .6em; line-height: 1.3; }
.accordion__panel h2 { font-size: 26px; }
.accordion__panel h3 { font-size: 21px; }
.accordion__panel h4 { font-size: 18px; }
.accordion__panel ul, .accordion__panel ol { margin: 0 0 1em; padding-left: 1.4em; line-height: 1.8; }
.accordion__panel table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.accordion__panel td, .accordion__panel th { border: 1px solid #d4d4d4; padding: 8px; vertical-align: top; }
.accordion__panel a { word-break: break-word; }

/* ---------- Seiten ---------- */
.page { margin: 40px auto; }

/* Startseite */
/* Bildschirmfüllend: Höhe = sichtbares Fenster (svh berücksichtigt die Adressleiste am Handy) */
.hero { position: relative; margin-top: -100px; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity .5s linear;
}
.hero__slide.is-active { opacity: 1; }
.hero__inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; display: flex; }
.hero__col { width: 50%; padding: 10px; }
.hero__title {
  position: absolute; left: 0; top: 0; z-index: 40; margin-top: -320px; width: 570px; padding: 0;
  font-size: 85px; font-weight: 100; line-height: 1.1em; letter-spacing: 5.2px;
}
/* „01“ sitzt wie im Original 99 px vom linken Fensterrand, unabhängig von der Inhaltsbreite */
.big-number { position: relative; height: 20px; }
.big-number span {
  position: absolute; left: 99px; top: 66px; z-index: 1;
  font-size: 400px; font-weight: 300; line-height: 1; color: #B2AAA421; pointer-events: none;
}
.intro { position: relative; z-index: 2; display: flex; margin: 180px auto; }
.intro__text { width: 80%; margin-left: 20%; padding: 10px; font-size: 28px; }

.book { background: var(--accent); }
.book__inner { display: flex; min-height: 493px; padding: 10px 0; }
.book__side { flex: 0 0 30%; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.book__title { margin-top: 40px; font-size: 85px; line-height: .9em; letter-spacing: 4.8px; color: #fff; }
.book__side p { font-size: 28px; }
.book__cta { margin-top: 20px; }
.book__main { flex: 1 1 70%; padding: 20px; }
.book__main .flipbook { margin-top: 60px; }

.latest { margin: 140px 0; padding: 0 40px; display: flex; }
.latest__main { width: 80%; }
.latest__head { display: flex; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 0 0 40px; }
.latest__line { width: 88%; padding: 15px 0; display: flex; justify-content: flex-end; }
.latest__line span { display: block; width: 25%; border-top: 1px solid #000; }
.latest__label { width: 12%; padding: 10px; text-align: right; font-size: 25px; white-space: nowrap; line-height: 0; }

.teaser { display: flex; align-items: center; min-height: 471px; margin: 80px auto; }
.teaser__posts { width: 66.666%; margin-left: 33.333%; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 35px 30px; }
.post-card { border-top: 4px solid var(--text); }
.post-card__body { padding: 40px 0; }
.post-card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 24px; }
.post-card h3 a { color: var(--secondary); }
.post-card p { font-size: 21px; letter-spacing: 1.3px; line-height: 38px; color: #777; margin-bottom: 32px; }
.post-card .more { font-size: 15px; font-weight: 400; }

@media (max-width: 1024px) {
  .hero__title { margin-top: -320px; }
}
@media (max-width: 767px) {
  .hero { margin-top: -110px; min-height: 480px; overflow: visible; }
  .hero__slides { overflow: hidden; }
  .hero__slide { background-size: cover; }
  .hero__inner { position: static; }
  .hero__col { width: 100%; padding: 0; }
  .hero__col + .hero__col { display: none; }
  .hero__title { position: absolute; top: auto; bottom: 84px; left: 0; right: 0; width: auto; margin: 0; padding: 20px 40px 20px 20px; font-size: 37px; }
  .big-number { padding: 0 10px; }
  .intro__text { width: 100%; margin: 0; }
  .book__inner { flex-wrap: wrap; padding: 0 10px; }
  .book__side { flex: 1 1 100%; }
  .book__main { flex: 1 1 100%; }
  .book .flipbook { min-height: 400px; }
  .book .flipbook__stage { height: 340px; }
  .latest__main { width: 100%; }
  .latest__line { width: 40%; }
  .latest__line span { width: 100%; }
  .latest__label { width: 60%; text-align: center; }
  .teaser__posts { width: 100%; margin: 0; grid-template-columns: 1fr; }
}

/* Atelier */
.atelier { display: flex; margin: 40px auto; }
.atelier__media { width: 50%; padding: 10px; }
.atelier__text { position: relative; width: 50%; padding: 10px; }
.atelier__title {
  position: absolute; left: -1px; top: 0; z-index: 99; padding: 0;
  font-size: 136px; line-height: .9em; letter-spacing: 10px; word-spacing: 2em; pointer-events: none;
}
.atelier__body { margin-top: 300px; padding: 20px 20px 80px; will-change: transform; }
@media (max-width: 767px) {
  .atelier { flex-direction: column; }
  .atelier__media { display: none; }
  .atelier__text { width: 100%; }
  .atelier__title { font-size: 64px; letter-spacing: 5px; word-spacing: .3em; }
  .atelier__body { margin-top: 234px; }
}

/* Künstler */
.anchor-space { height: 20px; margin-top: 40px; }
.artist { display: flex; margin: 0 auto; }
.artist__col { width: 50%; padding: 10px; }
.artist__col:first-child > * + * { margin-top: 20px; }
.artist__lead { margin-top: 100px !important; font-size: 28px; display: flow-root; }
.p-gap { height: 52.4px; }
.artist__cta { margin-top: 40px !important; }
.gallery-page { max-width: 1080px; padding: 10px; }
.artist-spacer { height: 155px; margin-bottom: 40px; }
@media (max-width: 767px) {
  .artist { flex-direction: column-reverse; }
  .artist__col { width: 100%; }
}

/* Kontakt */
.contact { display: flex; margin: 0 auto 110px; padding: 10px 10px 0 8px; }
.contact__info { width: 30%; padding: 10px; }
.contact__info > :not(.sr-only) ~ :not(.sr-only) { margin-top: 20px; }
.contact__info > div { display: flow-root; }
.contact__info p { font-size: 22px; }
.contact__info .rule { margin: 35px 0 !important; }
.contact__form { width: 70%; padding: 10px; }
@media (max-width: 767px) {
  .contact { flex-direction: column; }
  .contact__info, .contact__form { width: 100%; }
}

.form { margin-top: -23px; display: flex; flex-wrap: wrap; margin-left: -5px; margin-right: -5px; }
.form__field { width: 100%; padding: 0 5px; margin-bottom: 29px; }
.form__control {
  display: block; width: 100%; min-height: 40px; padding: 8px 16px;
  font-size: 24px; font-weight: 200; line-height: 58px; letter-spacing: 1.7px; color: var(--text);
  background: #fff; border: 0; border-bottom: 7px solid var(--accent); border-radius: 0; outline: 0;
}
.form__control::placeholder { color: #6d6d6d; opacity: 1; }
.form__control:focus { border-bottom-color: var(--primary); }
textarea.form__control { padding: 5px 14px; min-height: 0; resize: vertical; }
.form__select { position: relative; }
.form__select select { appearance: none; -webkit-appearance: none; background: #f3f3f3; margin: 2px 0 2px 4px; width: calc(100% - 4px); padding: 5px 50px 5px 14px; cursor: pointer; }
.form__select svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-60%); fill: var(--text); pointer-events: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__field--submit { display: flex; justify-content: flex-end; }
.form__submit {
  height: 40px; padding: 0 24px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 400; line-height: 1.4em; letter-spacing: 5.2px; text-transform: uppercase;
}
.form__submit:hover { color: #fff; opacity: .92; }
.form__submit[disabled] { opacity: .6; cursor: wait; }
.form { margin-bottom: -29px; }
.form__message:empty { display: none; }
.form__message { width: 100%; padding: 0 5px; margin: -9px 0 29px; font-size: 18px; line-height: 1.5; }
.form__message.is-ok { color: #5b7a3a; }
.form__message.is-error { color: #a33a3a; }

/* Impressum / Datenschutz */
.legal { margin: 40px auto; padding: 10px; }
.legal__address > div { display: flow-root; }
.legal__address > div + div { margin-top: 20px; }
.legal__address p { font-size: 22px; font-weight: 200; }
.legal .accordion { margin-top: 20px; }
.legal--dsgvo .accordion { margin-top: 34px; }
.legal > .rule { margin: 35px 0 30px; }
.legal--dsgvo { padding: 20px; }
.legal--dsgvo .legal__intro { padding: 0 10px; margin: 0; }
.legal--dsgvo .legal__intro p { font-size: 20px; font-weight: 400; }
.legal--dsgvo .legal__intro strong { font-weight: 700; }
.legal-spacer { height: 50px; }

/* Beitrag / Portfolio-Eintrag */
.entry { display: flex; margin: 80px auto; }
.entry-anchor { height: 20px; margin-top: 80px; }
.entry__media { width: 40%; padding: 10px; }
.entry__main { width: 60%; padding: 10px; }
.entry__title { font-size: 50px; font-weight: 200; text-transform: uppercase; line-height: 1; }
.entry__body { margin: 30px 0 0 -60px; padding: 40px; background: var(--accent); color: #fff; }
.entry__body a { color: #fff; text-decoration: underline; }
.entry__body p:last-child { margin-bottom: 0; }
.entry__body strong { font-weight: 300; }
.entry__body img { margin: 1em 0; }
@media (max-width: 767px) {
  .entry { flex-direction: column; }
  .entry__media:empty { display: none; }
  .entry__media, .entry__main { width: 100%; }
  .entry__main { padding: 30px 10px 10px 30px; }
  .entry__title { font-size: 30px; }
  .entry__body { margin: 20px 0 0; padding: 20px 10px 20px 30px; }
}

/* Archive / 404 */
.archive { margin: 40px auto; padding: 0 10px; }
.archive__title { font-size: 40px; font-weight: 200; margin: 20px 0 40px; line-height: 1.2; }
.archive__item { margin-bottom: 50px; }
.archive__item h2 { font-size: 30px; font-weight: 200; margin-bottom: 15px; line-height: 1.2; }
.archive__item img { margin: 0 0 20px; max-width: 785px; }

/* ---------- Flipbook ---------- */
.flipbook { position: relative; min-height: 560px; background: transparent; color: #fff; }
.flipbook__stage { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; perspective: 2400px; }
.flipbook__spread { position: relative; display: flex; height: 100%; max-height: 100%; }
.flipbook__page { position: relative; height: 100%; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18); overflow: hidden; }
.flipbook__page canvas { display: block; width: 100%; height: 100%; }
.flipbook__page--left::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 30px; background: linear-gradient(to left, rgba(0,0,0,.12), transparent); }
.flipbook__page--right::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 30px; background: linear-gradient(to right, rgba(0,0,0,.12), transparent); }
.flipbook__turn { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4,.1,.3,1); z-index: 5; }
.flipbook__turn > div { position: absolute; inset: 0; backface-visibility: hidden; background: #fff; overflow: hidden; }
.flipbook__turn > div canvas { width: 100%; height: 100%; display: block; }
.flipbook__turn .back { transform: rotateY(180deg); }
.flipbook__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 44px; height: 70px; background: none; border: 0; color: #fff; cursor: pointer; opacity: .85; }
.flipbook__nav:hover { opacity: 1; }
.flipbook__nav[disabled] { opacity: .2; cursor: default; }
.flipbook__nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.flipbook__nav--prev { left: -10px; }
.flipbook__nav--next { right: -10px; }
.flipbook__bar { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; margin: 20px auto 0; width: max-content; max-width: 100%; padding: 4px 8px; background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.flipbook__bar button, .flipbook__bar a { width: 34px; height: 30px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--primary); cursor: pointer; }
.flipbook__bar button:hover, .flipbook__bar a:hover { color: var(--accent); }
.flipbook__bar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.flipbook__count { min-width: 56px; text-align: center; font-size: 12px; font-weight: 400; letter-spacing: .5px; }
.flipbook__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 400; color: #fff; }
.flipbook:fullscreen { background: var(--accent); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.flipbook:fullscreen .flipbook__stage { height: calc(100vh - 120px); }
@media (max-width: 767px) { .flipbook__stage { height: 400px; } }

/* ---------- Barrierefreiheit (Einstellungen) ---------- */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-launcher):not(.a11y-launcher *):not(.notice):not(.notice *):not(.lightbox):not(.lightbox *):not(img):not(canvas) { background-color: transparent !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .site-header, html.a11y-contrast .site-footer, html.a11y-contrast .book, html.a11y-contrast .entry__body, html.a11y-contrast .mobile-nav { background: #000 !important; }
html.a11y-contrast a:not(.a11y-panel a):not(.notice a) { color: #ffeb3b !important; text-decoration: underline !important; }
html.a11y-contrast .hero__slide { opacity: 0 !important; }
html.a11y-contrast .hero__slide.is-active { opacity: .35 !important; }
html.a11y-contrast .site-header__brand img { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast .form__control { background: #000 !important; border-bottom-color: #ffeb3b !important; }
html.a11y-contrast body .big-number span { color: rgba(255,255,255,.08) !important; }
html.a11y-gray main, html.a11y-gray .site-header, html.a11y-gray .site-footer { filter: grayscale(1); }
.site-header, main, .site-footer, .to-top-spacer { zoom: var(--a11y-zoom, 1); }
html.a11y-links a:not(.a11y-panel a):not(.notice a) { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable body *:not(svg):not(svg *) { font-family: Verdana, 'Segoe UI', Arial, sans-serif !important; font-weight: 400 !important; letter-spacing: .02em !important; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 2.2 !important; letter-spacing: .08em !important; word-spacing: .16em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion .reveal { opacity: 1 !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M6 3l30 17-13 3 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-focus :focus { outline: 4px solid #ffb000 !important; outline-offset: 3px !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
}

/* Widget */
.a11y-launcher {
  position: fixed; left: 18px; bottom: 18px; z-index: 9998;
  display: flex; align-items: center; gap: 0; height: 52px; padding: 0 0 0 0;
  background: var(--primary); color: #fff; border: 0; border-radius: 26px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); overflow: hidden; transition: background .2s;
  font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase;
}
.a11y-launcher__icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex: none; }
.a11y-launcher__icon svg { width: 26px; height: 26px; }
.a11y-launcher__label { max-width: 0; white-space: nowrap; overflow: hidden; transition: max-width .35s ease, padding .35s ease; }
.a11y-launcher:hover .a11y-launcher__label, .a11y-launcher:focus-visible .a11y-launcher__label { max-width: 200px; padding-right: 20px; }
.a11y-launcher:hover { background: #3a4043; }
.a11y-launcher.is-active::after { content: ''; position: absolute; top: 9px; left: 37px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--primary); }

.a11y-panel {
  position: fixed; left: 18px; bottom: 82px; z-index: 9999; width: 360px; max-width: calc(100vw - 36px);
  max-height: calc(100vh - 110px); overflow: auto;
  background: #fff; color: var(--text); border-top: 6px solid var(--accent);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  font-family: var(--font) !important; letter-spacing: .3px;
  transform: translateY(12px); opacity: 0; visibility: hidden; transition: all .25s ease;
}
.a11y-panel.is-open { transform: none; opacity: 1; visibility: visible; }
.a11y-panel__head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 6px; }
.a11y-panel__title { font-size: 30px; font-weight: 100; line-height: 1; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.a11y-panel__sub { margin: 6px 0 0; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--secondary); }
.a11y-panel__close { width: 36px; height: 36px; margin: -6px -8px 0 0; background: none; border: 0; cursor: pointer; color: var(--primary); }
.a11y-panel__close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.a11y-panel__section { padding: 14px 22px; border-top: 1px solid #ece9e6; }
.a11y-panel__label { margin: 0 0 10px; font-size: 12px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; color: var(--secondary); }
.a11y-size { display: flex; align-items: center; gap: 10px; }
.a11y-size button { width: 44px; height: 44px; border: 1px solid var(--accent); background: #fff; color: var(--primary); font-size: 20px; font-weight: 400; cursor: pointer; }
.a11y-size button:hover { background: var(--accent); color: #fff; }
.a11y-size output { flex: 1; text-align: center; font-size: 18px; font-weight: 400; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 84px; padding: 12px;
  background: #f6f4f2; border: 1px solid transparent; color: var(--primary); cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 400; line-height: 1.25; letter-spacing: .3px; transition: all .2s;
}
.a11y-opt svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.a11y-opt:hover { border-color: var(--accent); }
.a11y-opt[aria-pressed="true"] { background: var(--primary); color: #fff; }
.a11y-panel__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px 20px; border-top: 1px solid #ece9e6; }
.a11y-reset { background: none; border: 0; padding: 6px 0; color: var(--primary); font-size: 14px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.a11y-panel__note { font-size: 12px; font-weight: 400; color: var(--secondary); text-align: right; line-height: 1.3; max-width: 55%; }
@media (max-width: 767px) {
  .a11y-launcher { left: 12px; bottom: 12px; height: 46px; }
  .a11y-launcher__icon { width: 46px; height: 46px; }
  .a11y-panel { left: 12px; bottom: 68px; max-width: calc(100vw - 24px); }
}

/* ---------- Cookie- und Datenhinweis ---------- */
.notice {
  position: fixed; right: 18px; bottom: 60px; z-index: 9997; width: 400px; max-width: calc(100vw - 36px);
  background: #fff; color: var(--text); box-shadow: 0 18px 50px rgba(0,0,0,.22); border-left: 6px solid var(--accent);
  padding: 22px 24px 20px; transform: translateY(16px); opacity: 0; visibility: hidden; transition: all .3s ease;
}
.notice.is-open { transform: none; opacity: 1; visibility: visible; }
.notice__title { font-size: 26px; font-weight: 100; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.notice p { font-size: 15px; font-weight: 400; line-height: 1.55; margin: 0 0 10px; color: #3b3b3b; }
.notice ul { margin: 0 0 12px; padding: 0; list-style: none; }
.notice li { position: relative; padding-left: 18px; font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 6px; color: #3b3b3b; }
.notice li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--primary); }
.notice details summary { cursor: pointer; font-size: 14px; font-weight: 400; color: var(--primary); margin-bottom: 8px; }
.notice__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.notice__actions a { font-size: 14px; font-weight: 400; color: var(--secondary); text-decoration: underline; text-underline-offset: 4px; }
.notice__ok { padding: 12px 26px; background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 13px; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; }
.notice__ok:hover { background: #3a4043; }
@media (max-width: 767px) { .notice { right: 12px; left: 12px; width: auto; bottom: 66px; } }

@media print {
  .site-header__nav, .to-top, .a11y-launcher, .a11y-panel, .notice, .lightbox { display: none !important; }
}
