:root{
  --bg:#000;
  --page-edge:#4f4d49;
  --text: rgba(255,255,255,0.88);
  --text-strong:#fff;
  --muted: rgba(255,255,255,0.72);
  --hair: rgba(255,255,255,0.12);
  --btn: rgba(255,255,255,0.10);
  --btn-hover: rgba(255,255,255,0.16);
  --radius: 16px;
  --header-offset: 0px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      var(--page-edge) 0,
      var(--page-edge) max(0px, calc((100vw - (var(--content-max, 1100px) + (var(--content-pad, 48px) * 2))) / 2)),
      var(--bg) max(0px, calc((100vw - (var(--content-max, 1100px) + (var(--content-pad, 48px) * 2))) / 2)),
      var(--bg) min(100vw, calc((100vw + (var(--content-max, 1100px) + (var(--content-pad, 48px) * 2))) / 2)),
      var(--page-edge) min(100vw, calc((100vw + (var(--content-max, 1100px) + (var(--content-pad, 48px) * 2))) / 2)),
      var(--page-edge) 100%
    );
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size:18px;
  line-height:1.7;
}

a{color:inherit}
a:hover{opacity:.92}

header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.header-inner{
  width:100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px 14px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}


.menu-toggle{
  display:none;
  border:1px solid var(--hair);
  background: rgba(255,255,255,0.04);
  color: var(--text-strong);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
  cursor:pointer;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
  gap:8px;
}

.nav a{
  text-decoration:none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size:20px;
  color: rgba(255,255,255,0.86);
  border: 1px solid transparent;
}
.nav a:hover{background: var(--btn)}
.nav a.active{
  border-color: var(--hair);
  background: rgba(255,255,255,0.08);
  color: var(--text-strong);
}

.nav-social{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--hair);
}

.nav .nav-social-link{
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}

.nav .nav-social-link:hover{
  background: rgba(255,255,255,0.12);
  opacity: 1;
}

.nav-social svg{
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.88);
}

main{
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 0;
}

.section{
  width:100%;
  margin: 0 auto;
  padding: 24px 0 12px;
}

h1,h2,h3{
  margin:0 0 10px 0;
  color: var(--text-strong);
  letter-spacing: 0.02em;
  line-height:1.15;
}
h1{font-size: clamp(34px, 4.2vw, 56px);}
h2{font-size: clamp(22px, 2.2vw, 30px);}
h3{font-size: 20px;}

.claim{margin: 0 0 14px 0; color: var(--text);}
.muted{color: var(--muted)}

.card{
  width:100%;
  border:1px solid var(--hair);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 18px 18px;
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.06);
  text-decoration:none;
  color: var(--text-strong);
  cursor:pointer;
}
.btn:hover{background: var(--btn-hover)}
.btn.primary{background: rgba(255,255,255,0.12);}

footer{
  margin-top: 30px;
  padding: 14px 22px 26px;
  border-top: 1px solid var(--hair);
  color: rgba(255,255,255,0.70);
}
footer .footer-inner{
  max-width:1120px;
  margin:0 auto;
}

#legal-details{
  margin-top: 12px;
  border:1px solid var(--hair);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
}
#legal-details summary{
  cursor:pointer;
  font-weight:700;
  color: rgba(255,255,255,.85);
  list-style:none;
}
#legal-details summary::-webkit-details-marker{display:none}
#legal-details[open] summary{margin-bottom:10px}

.legal-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}

/* Trailer full-bleed */
.full-bleed{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}
.video-wrap{
  border-top:1px solid var(--hair);
  border-bottom:1px solid var(--hair);
  background: rgba(255,255,255,0.02);
}
video{width:100%; height:auto; display:block;}

/* Mobile */
@media (max-width: 860px){
  body{font-size:16.5px; line-height:1.65;}

  .header-inner{
    padding: 14px 16px 12px;
    gap: 10px;
  }

  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .nav{
    display:none;
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }

  .nav.open{display:flex}
  .nav a{width:100%; justify-content:center; font-size:18px; padding: 12px 14px;}
  .nav-social{
    width: 100%;
    justify-content: center;
    margin: 4px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .nav .nav-social-link{
    width: 44px;
    height: 44px;
    padding: 0;
  }
  main{padding: 22px 16px 0;}
}

/* --- Layout Optimierung Dez 2025 --- */
.site-wrapper, .content, main {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 48px;
    padding-right: 48px;
}

header {
    text-align: center;
    padding: 48px 0 32px;
}

header img, .logo img {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 24px;
    display: block;
}

nav {
    margin-top: 16px;
}

nav ul {
    justify-content: center;
    gap: 32px;
}

nav a {
    font-size: 1.1rem;
}

.trailer video {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
}


/* --- Banner exakt so breit wie Menüband --- */
header {
    max-width: 1100px;
    margin: 0 auto;
}

header img, .logo img {
    width: 100%;
    max-width: 100%;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
}


/* === FINALE HEADER-FIX: Bild = Menübreite === */
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

header {
    text-align: center;
}

header img,
.logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 24px;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
}

main,
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.trailer video {
    width: 100%;
    display: block;
}



/* === Layout Harmonisierung: Header/Nav/Main exakt gleich breit === */
:root{
  --container: 1200px;
  --gutter: 56px;
}

@media (max-width: 1024px){
  :root{ --gutter: 20px; }
}

/* Ein Container für Header, Nav, Content, Footer */
.header-inner,
main,
footer .footer-inner,
.content,
.site-wrapper{
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
}

/* === Typografie: ruhiger Fliesstext / Blocksatz (nur Desktop) === */
p, .claim, .muted{
  text-align: left;
  text-wrap: pretty;
}

@media (min-width: 900px){
  p, .claim, .muted{
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }
}

/* Auf sehr schmalen Screens bleibt linksbündig für bessere Lesbarkeit */
@media (max-width: 520px){
  p, .claim, .muted{
    text-align: left !important;
    hyphens: manual;
  }
}



/* === V6: Logo/Banner exakt Containerbreite === */
.brand{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.brand img{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display:block;
}

/* Nav ebenfalls exakt Containerbreite */
.nav{
  width: 100%;
}

/* etwas Luft unter Logo */
.header-inner{ gap: 14px; padding-top: 22px; padding-bottom: 16px; }


/* === V7: Inhalt exakt so breit wie Banner & Menü (gleicher Container) === */
main, .section, .card, footer .footer-inner, .header-inner{
  max-width: var(--container) !important;
}


/* === V7: Fliesstext-Rhythmus === */
.claim{ margin: 0 0 14px 0; }
.section .muted{ font-size: 1.02em; }
.section p{ margin-top: 0; }



/* === V8: Keynote Layout mit Foto rechts (Desktop) === */
.keynote-hero { padding-top: 10px; }
.keynote-layout{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.keynote-image{
  display:flex;
  justify-content:flex-end;
}

.keynote-image img{
  width: 100%;
  max-width: 420px;
  height: auto;
  display:block;
  border-radius: 14px;
  filter: grayscale(100%);
  opacity: 0.98;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}

.keynote-image img:hover{
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile: Foto unter Text */
@media (max-width: 900px){
  .keynote-layout{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .keynote-image{
    justify-content: center;
  }
  .keynote-image img{
    max-width: 320px;
  }
}


/* === V9: Banner ~60% der bisherigen Grösse (Logo + Header-Höhe) === */
.header-inner{ padding-top: 14px !important; padding-bottom: 12px !important; }
.brand img{
  width: 60% !important;
  max-width: 60% !important;
  height: auto !important;
  margin-bottom: 14px !important;
}
@media (max-width: 900px){
  .brand img{ width: 78% !important; max-width: 78% !important; }
}

/* === V9: Keynote-Bild so hoch wie Titel+Text (strecken) === */
.keynote-layout{ align-items: stretch !important; }
.keynote-text{ align-self: stretch; }
.keynote-image{ align-self: stretch; align-items: stretch; }
.keynote-image img{
  height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain;
}

/* === V9: Social Icons === */
.social-links{
  display:flex;
  gap:8px;
  align-items:center;
  margin-top: 14px;
}
.social-links a{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.social-links a:hover{ background: rgba(255,255,255,0.10); }
.social-links svg{ width:18px; height:18px; fill: rgba(255,255,255,0.9); }

/* === V10: Keynote Foto exakt so hoch wie Textblock links === */
.keynote-layout{ align-items: stretch !important; }
.keynote-text{ align-self: stretch; }
.keynote-image{
  align-self: stretch;
  height: 100%;
  display:flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.keynote-image img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 14px;
}
@media (max-width: 900px){
  .keynote-image{ height: auto; }
  .keynote-image img{ height: auto !important; width: 100% !important; object-fit: contain !important; }
  .figure-hover.figure-logo-only{
    max-width: 320px;
    margin-left: 0;
  }
  .figure-hover.figure-logo-only img.keynote-logo-image{
    max-width: 320px !important;
  }
  .keynote-logo-link{
    justify-content: center;
  }
  .keynote-site-preview{
    width: min(480px, calc(100vw - 24px));
    border-radius: 22px;
  }
  .keynote-site-preview-frame{
    transform: scale(0.4);
  }
  .keynote-site-preview-fallback{
    right: 10px;
    bottom: 10px;
    font-size: 0.66rem;
  }
}

/* === V10: Trailer Video immer Container-breit (auch beim Abspielen) === */
.video-wrap{
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding-left: var(--gutter, 56px);
  padding-right: var(--gutter, 56px);
}
@media (max-width: 1024px){
  .video-wrap{ padding-left: 20px; padding-right: 20px; }
}
.video-wrap video{
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* === V11: Bild-Beschriftung beim Hover (Caption Overlay) === */
.figure-hover{
  position: relative;
  width: 100%;
  height: 100%;
}

.figure-hover img{
  display:block;
  width:100%;
  height:100%;
}

.figure-hover.figure-logo-only{
  width: 100%;
  max-width: none;
  height: auto;
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 0;
  overflow: visible;
}

.keynote-logo-link{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.keynote-logo-link::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
  z-index: 40;
}

.keynote-logo-link:focus-visible{
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 10px;
  border-radius: 24px;
}

.figure-hover.figure-logo-only img.keynote-logo-image{
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border-radius: 0;
  filter: none;
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease;
}

.keynote-site-preview{
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(630px, calc(100vw - 32px));
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    #050505;
  box-shadow:
    0 24px 48px rgba(0,0,0,0.32),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: 50;
}

.keynote-site-preview-frame{
  width: 1200px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  transform: scale(0.525);
  pointer-events: none;
  background: #111;
}

.keynote-site-preview-fallback{
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.keynote-logo-link:hover .keynote-logo-image,
.keynote-logo-link:focus-visible .keynote-logo-image,
.keynote-logo-link:focus .keynote-logo-image{
  opacity: 0;
}

.keynote-logo-link:hover::before,
.keynote-logo-link:focus-visible::before,
.keynote-logo-link:focus::before{
  opacity: 1;
}

.keynote-logo-link:hover .keynote-site-preview,
.keynote-logo-link:focus-visible .keynote-site-preview,
.keynote-logo-link:focus .keynote-site-preview{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.figure-hover.figure-logo-only .caption{
  display: none;
}

.figure-hover .caption{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.figure-hover:hover .caption,
.figure-hover:focus-within .caption{
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: Caption immer sichtbar (dezent), da kein Hover */
@media (hover: none){
  .figure-hover .caption{
    opacity: 1;
    transform: none;
    background: rgba(0,0,0,0.58);
  }
}

/* Header Tooltip (kleine Beschriftung beim Hover) */
.brand{
  position: relative;
}
.brand .brand-tooltip{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: -10px;
  translate: 0 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
  z-index: 5;
}
.brand:hover .brand-tooltip{ opacity: 1; }
@media (max-width: 600px){
  .brand .brand-tooltip{
    white-space: normal;
    width: min(92vw, 520px);
    text-align: center;
  }
}

/* === V12: Accessibility (Skip-Link + Fokus sichtbar) === */
.skip-link{
  position:absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);
  text-decoration:none;
  transform: translateY(-140%);
  transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

:focus-visible{
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 4px;
}

/* === V15: Trailer Video – bessere Einbettung + Beschriftung === */
.trailer-figure{
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

.trailer-figure video{
  width: 100% !important;
  height: auto !important;
  max-height: 68vh;
  display: block;
}

.trailer-figure .caption{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.trailer-figure:hover .caption,
.trailer-figure:focus-within .caption{
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: Caption immer sichtbar (dezent), da kein Hover */
@media (hover: none){
  .trailer-figure .caption{
    opacity: 1;
    transform: none;
    background: rgba(0,0,0,0.58);
  }
  .trailer-figure video{
    max-height: none;
  }
}

/* Layout: two columns (text + portrait) */
.two-col{display:block}
@media (min-width: 900px){
  .two-col{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start}
}
.portrait-card{border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);padding:12px}
.portrait-card img{display:block;width:100%;height:auto;border-radius:999px;border:2px solid rgba(255,255,255,.18);background:#000}
.portrait-card figcaption{font-size:.95rem;color:rgba(255,255,255,.72);margin-top:10px}

/* Social links */
.social a[aria-disabled="true"]{opacity:.45;pointer-events:none}
.social a[aria-disabled="true"] svg{filter:grayscale(1)}

.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}

main h1{margin-top:0}


/* ===== Layout tightening & consistency overrides (v17) ===== */
:root{
  --content-max: 1100px;
  --content-pad: 48px;
}

/* Make header/brand/nav tighter and centered */
header{
  padding: 14px 0 10px !important;
}
header .header-inner{
  max-width: var(--content-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--content-pad) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}
header .brand{
  margin: 0 !important;
}
header .brand img{
  width: 100% !important;
  max-width: 560px !important; /* matches menu width nicely */
  height: auto !important;
  display: block !important;
}
header nav{
  margin-top: 0 !important;
}
header nav ul{
  justify-content: center !important;
  gap: 28px !important;
}
header nav a{
  font-size: 1.05rem !important;
}

/* Reduce whitespace between nav and page title/content */
main.page{
  padding-top: 18px !important;
}
.container{
  max-width: var(--content-max) !important;
  margin: 0 auto !important;
  padding-left: var(--content-pad) !important;
  padding-right: var(--content-pad) !important;
}

/* About title + small portrait on the right */
.page-head-with-avatar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.page-head-with-avatar h1{
  margin: 0;
}
.avatar{
  margin: 0;
  flex: 0 0 auto;
}
.avatar img{
  width: 190px;
  height: 190px;
  border-radius: 999px;
  object-fit: cover;
}

/* Disabled social icons look */
.social a[aria-disabled="true"]{
  opacity: .45;
  pointer-events: none;
}

/* Responsive tweaks */
@media (max-width: 820px){
  :root{ --content-pad: 20px; }
  header .brand img{ max-width: 420px !important; }
  header nav ul{ gap: 18px !important; }
  header nav a{ font-size: 1rem !important; }
  .page-head-with-avatar{ flex-direction: column; align-items: flex-start; }
  .avatar img{ width: 150px; height: 150px; }
}


/* === V18: Fliesstext statt Blocksatz === */
p, li, .content p, .content li, .section p, .section li{
  text-align: left !important;
  text-justify: auto !important;
  hyphens: auto;
}

/* === V22: Kontakt – Buttons neben Titel === */
.contact-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}
.contact-header .contact-buttons{
  display:flex;
  gap:12px;
}
@media (max-width: 768px){
  .contact-header{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* === V23: Kontakt – Buttons rechts neben Titel + Social Icons unten === */
.contact-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.contact-header .btn-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media (max-width: 768px){
  .contact-header{
    flex-direction:column;
    align-items:flex-start;
  }
  .contact-header .btn-row{
    justify-content:flex-start;
    width:100%;
  }
}

/* === V24: Feinschliff – Überschriften ruhiger + weniger Umbruch === */
h1{
  line-height: 1.08;
  letter-spacing: 0.2px;
}
.brand-home-copy h1,
.keynote-text h1,
.blog-hero-copy h1,
.page-title h1,
.contact-header h1,
.page-head-with-avatar h1{
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
}
.page-title{
  margin-top: 0;
}
@media (max-width: 768px){
  .brand-home-copy h1,
  .keynote-text h1,
  .blog-hero-copy h1,
  .page-title h1,
  .contact-header h1,
  .page-head-with-avatar h1{
    font-size: 2.1rem;
  }
}

/* === V24: Einheitliche Inhaltsbreite === */
.container, .content, main{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* === V25: Über mich – grosses Bild rechts wie Keynote === */
.about-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  align-items:flex-start;
}
.about-image img{
  width:100%;
  height:auto;
  border-radius:12px;
}
@media (max-width: 900px){
  .about-layout{
    grid-template-columns:1fr;
  }
}

/* === V28: Go-Live – Accessibility & Konsistenz === */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  z-index:9999;
  border-radius:10px;
  background:#fff;
  color:#000;
}
a:focus-visible, button:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

/* === V29: Design-Feinschliff fuer das neue breite Logo === */
header{
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(38px, 5.5vw, 72px) 0 10px !important;
}

header .header-inner{
  gap: clamp(18px, 2.4vw, 32px) !important;
}

header .brand{
  width: 100%;
  justify-content: center;
}

header .brand img{
  max-width: 980px !important;
  width: min(100%, 980px) !important;
  height: auto !important;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto !important;
}

header .nav{
  justify-content: center !important;
  gap: 4px;
}

body{
  padding-top: var(--header-offset);
}

main{
  padding-top: 18px !important;
}

.section{
  padding-top: 16px !important;
  padding-bottom: 8px !important;
}

.keynote-hero{
  padding-top: 0 !important;
}

.keynote-layout{
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px !important;
  align-items: start !important;
}

.keynote-text{
  max-width: 44rem;
}

.keynote-kicker{
  margin: 0 0 8px;
  color: rgba(255,255,255,0.56);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.keynote-actions{
  margin-top: 16px;
}

.keynote-visual-panel{
  width: min(100%, 360px);
  min-height: 0;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-title{
  margin-bottom: 12px;
  text-align: left;
}

.brewery-logo-panel{
  width: auto !important;
  justify-self: end;
  align-self: flex-start !important;
  height: auto !important;
  min-height: 0;
  display: block !important;
  padding: 0;
  margin: 0 0 0 -8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.brewery-preview-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.brewery-preview-link::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  -webkit-backdrop-filter: brightness(0.3);
  backdrop-filter: brightness(0.3);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
  z-index: 40;
}

.brewery-preview-link:focus-visible{
  outline: 2px solid rgba(255,255,255,0.9);
  outline-offset: 8px;
  border-radius: 24px;
}

.brewery-logo-swap{
  position: relative;
  display: block;
  width: 212px;
  height: 212px;
}

.brewery-logo-panel img.brewery-logo{
  display: block;
  width: 212px !important;
  height: auto !important;
  margin: 0;
  max-width: 212px !important;
  max-height: 360px !important;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  transition: opacity 220ms ease;
}

.brewery-site-preview{
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(318px, calc(100vw - 32px));
  height: min(212px, calc(100vh - 32px));
  display: block;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    #050505;
  box-shadow:
    0 24px 48px rgba(0,0,0,0.32),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
  z-index: 50;
}

.brewery-site-preview-frame{
  width: 960px;
  height: 620px;
  border: 0;
  transform-origin: top left;
  transform: scale(0.33125);
  pointer-events: none;
  background: #111;
}

.brewery-site-preview-fallback{
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

body.brewery-preview-active .brewery-preview-link::before{
  opacity: 1;
}

body.brewery-preview-active .brewery-logo{
  opacity: 0 !important;
}

body.brewery-preview-active .brewery-site-preview{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.brewery-preview-link:hover .brewery-logo,
.brewery-preview-link:focus-visible .brewery-logo,
.brewery-preview-link:focus .brewery-logo{
  opacity: 0 !important;
}

.brewery-preview-link:hover::before,
.brewery-preview-link:focus-visible::before,
.brewery-preview-link:focus::before{
  opacity: 1;
}

.brewery-preview-link:hover .brewery-site-preview,
.brewery-preview-link:focus-visible .brewery-site-preview,
.brewery-preview-link:focus .brewery-site-preview{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.brewery-logo-panel img.brewery-logo:hover{
  transform: none !important;
}

.contact-header{
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
  align-items: flex-start;
}

.contact-header .btn-row{
  justify-content: flex-start !important;
}

.contact-form-section{
  margin-top: 18px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
}

.contact-form-head{
  margin-bottom: 22px;
  max-width: 44rem;
}

.contact-form-kicker{
  margin: 0 0 8px;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.contact-form{
  display: grid;
  gap: 22px;
}

.form-honey{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field{
  display: grid;
  gap: 10px;
}

.form-field span{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.92);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-field span small{
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  font-weight: 500;
}

.form-field-full{
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  color: #fff;
  padding: 15px 18px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea{
  min-height: 190px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder{
  color: rgba(255,255,255,0.36);
}

.form-field input:focus,
.form-field textarea:focus{
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.045);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.contact-form-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 4px;
}

.contact-form-note{
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.95rem;
}

.contact-form-feedback{
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
}

.contact-form-feedback.is-success{
  border-color: rgba(120,220,160,0.35);
  background: rgba(120,220,160,0.08);
}

.contact-form-feedback.is-error{
  border-color: rgba(255,140,140,0.34);
  background: rgba(255,120,120,0.08);
}

.modal-open{
  overflow: hidden;
}

.contact-success-modal{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.contact-success-modal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-success-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}

.contact-success-dialog{
  position: relative;
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    #050505;
  box-shadow: 0 24px 80px rgba(0,0,0,0.62), inset 0 1px 0 rgba(255,255,255,0.10);
  color: var(--text);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 180ms ease;
}

.contact-success-modal.is-open .contact-success-dialog{
  transform: translateY(0) scale(1);
}

.contact-success-dialog:focus{
  outline: none;
}

.contact-success-kicker{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.56);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-success-dialog h2{
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.contact-success-dialog p:not(.contact-success-kicker){
  max-width: 420px;
  margin: 16px auto 26px;
  color: rgba(255,255,255,0.74);
  font-size: 1.02rem;
  line-height: 1.55;
}

.contact-success-close{
  min-width: 156px;
  justify-content: center;
}

h1{
  margin-bottom: 6px;
}

#k-title + .claim{
  text-align: left !important;
  margin-bottom: 18px;
}

.keynote-text h1{
  max-width: 11ch;
  margin-bottom: 8px;
}

.keynote-lead{
  max-width: 28ch;
  font-size: clamp(1.1rem, 1.55vw, 1.28rem);
  line-height: 1.55;
  font-weight: 700;
  color: #fff;
}

.keynote-text .claim{
  line-height: 1.75;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.88);
}

.keynote-phase-inline{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 20px;
}

.keynote-phase-chip{
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
  line-height: 1;
}

.keynote-more{
  color: rgba(255,255,255,0.8);
}

.keynote-more a{
  color: #fff;
  text-decoration-thickness: 1px;
}

.brewery-lead{
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.7;
  font-weight: 700;
  color: #fff;
}

.brewery-layout{
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px !important;
  align-items: start !important;
}

.brewery-more{
  color: rgba(255,255,255,0.8);
}

.brewery-more a{
  color: #fff;
  text-decoration-thickness: 1px;
}

footer{
  margin-top: 20px;
}

@media (max-width: 900px){
  header .brand img{
    max-width: 760px !important;
    width: min(100%, 760px) !important;
    margin-bottom: 2px !important;
  }

  .keynote-layout{
    grid-template-columns: 1fr;
    gap: 18px !important;
  }

  .keynote-text h1{
    max-width: 10ch;
  }

  .keynote-visual-panel{
    width: 100%;
    padding: 0;
  }

  .contact-form-grid{
    grid-template-columns: 1fr;
  }

  .brewery-logo-panel{
    width: auto !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    justify-self: center;
  }

  .brewery-logo-swap{
    width: 170px;
    height: 170px;
  }

  .brewery-logo-panel img.brewery-logo{
    width: 170px !important;
    max-width: 170px !important;
  }

  .brewery-site-preview{
    width: min(255px, calc(100vw - 24px));
    height: min(170px, calc(100vh - 24px));
    border-radius: 22px;
  }

  .brewery-site-preview-frame{
    transform: scale(0.265625);
  }

  .brewery-site-preview-fallback{
    right: 10px;
    bottom: 10px;
    font-size: 0.66rem;
  }
}

/* === V30: Hellere Seitenraender, dunkler Inhaltsbereich === */
header{
  overflow: hidden;
  background: var(--page-edge) !important;
  border-bottom: 0 !important;
}

header::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50vw;
  width: min(100vw, calc(var(--content-max, 1100px) + (var(--content-pad, 48px) * 2)));
  transform: translateX(-50%);
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
  z-index: 0;
}

header .header-inner{
  position: relative;
  z-index: 1;
}

footer{
  border-top: 0 !important;
}

footer .footer-inner{
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

/* === Blog === */
.brand-home{
  display: block;
}

.brand-home-copy{
  padding: 14px 0 4px;
  width: 100%;
  max-width: none;
}

.brand-home-kicker{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.brand-home-copy h1{
  margin-bottom: 16px;
}

.brand-home-copy .claim{
  max-width: min(100%, 72rem);
  margin: 0 0 18px 0;
  line-height: 1.8;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
}

.brand-home-lead{
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

.brand-home-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.brand-home-card{
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.03);
}

.brand-home-card.is-wide{
  grid-column: 1 / -1;
}

.brand-home-card-kicker{
  margin: 0;
  color: rgba(255,255,255,0.56);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.brand-home-card h2{
  margin: 0;
  font-size: 1.28rem;
}

.brand-home-card p{
  margin: 0;
  color: rgba(255,255,255,0.72);
}

.brand-home-card .btn{
  width: fit-content;
  margin-top: auto;
}

.blog-hero{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  padding-top: 6px;
}

.blog-hero::before{
  display: none;
}

.blog-hero > *{
  position: static;
}

.blog-hero-copy{
  padding: 10px 0 2px;
}

.blog-eyebrow{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.blog-hero-copy h1{
  margin-bottom: 8px;
}

.blog-hero-copy .claim{
  max-width: 980px;
  font-size: clamp(1.02rem, 0.98rem + 0.18vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.84);
}

.blog-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.blog-stat{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255,255,255,0.035);
}

.blog-stat strong{
  display: block;
  color: #fff;
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  line-height: 1;
  margin-bottom: 0;
  white-space: nowrap;
}

.blog-stat span{
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  line-height: 1.15;
}

.blog-characters{
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.blog-characters-head{
  max-width: 980px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.blog-characters-head h2{
  margin-bottom: 10px;
}

.blog-characters-head .muted{
  max-width: 88ch;
  margin-bottom: 0;
}

.blog-characters-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-character-card{
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.blog-character-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.blog-character-card.is-active{
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
}

.blog-character-visual{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 12px;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.blog-character-card.is-der-hund .blog-character-visual{
  background: transparent;
}

.blog-character-card.is-der-mensch .blog-character-visual{
  background: transparent;
}

.blog-character-logo{
  display: block;
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
}

.blog-character-card.is-der-mensch .blog-character-logo{
  transform: rotate(-90deg);
}

.blog-character-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-character-eyebrow{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.56);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.blog-character-copy h3{
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 12px;
}

.blog-character-copy p{
  margin: 0;
  color: rgba(255,255,255,0.76);
  max-width: 34ch;
}

.blog-character-footer{
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.blog-character-cta{
  min-width: 210px;
  pointer-events: none;
}

.blog-toolbar{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin: 18px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.blog-search input,
.blog-filter select{
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.035);
  color: #fff;
  padding: 13px 18px;
  font: inherit;
}

.blog-search input::placeholder{
  color: var(--muted);
}

.blog-search input:focus,
.blog-filter select:focus{
  background: rgba(255,255,255,0.05);
}

.blog-results{
  grid-column: 1 / -1;
}

.blog-results-head{
  margin-bottom: 16px;
}

.blog-results-head h2{
  margin-bottom: 8px;
}

.blog-results-kicker{
  margin: 0 0 8px;
  color: rgba(255,255,255,0.56);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.blog-results-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.blog-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.blog-card.is-active{
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
}

.blog-card-cover{
  display: block;
  width: clamp(150px, 36%, 210px);
  height: auto;
  object-fit: contain;
  margin: -4px auto -18px;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.blog-card-topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-pill,
.blog-card-number{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.blog-pill{
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--hair);
  color: #fff;
}

.blog-card-number{
  color: rgba(255,255,255,0.68);
  border: 1px solid var(--hair);
}

.blog-card h2{
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.blog-card p{
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
}

.blog-card-footer{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
}

.blog-readmore{
  min-width: 190px;
  pointer-events: none;
}

.blog-reader{
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 0;
  background: #060606;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}

.blog-reader::backdrop{
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
}

.blog-reader-shell{
  --blog-reader-measure: 45rem;
  padding: 26px 26px 22px;
}

.blog-reader-cover{
  display: block;
  width: min(280px, 100%);
  height: auto;
  object-fit: contain;
  margin: 2px auto 20px;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.blog-reader-topline{
  width: min(100%, var(--blog-reader-measure));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-reader-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.blog-reader-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.blog-reader-year{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1;
}

.blog-reader-detail{
  color: rgba(255,255,255,0.56);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.blog-reader-audio{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.blog-reader-audio:hover{
  background: rgba(255,255,255,0.1);
}

.blog-reader-audio:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.blog-reader-audio[data-state="playing"]{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.2);
}

.blog-reader-audio-mark{
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.blog-reader-audio-mark::before,
.blog-reader-audio-mark::after{
  content: "";
  position: absolute;
}

.blog-reader-audio[data-state="idle"] .blog-reader-audio-mark::before,
.blog-reader-audio[data-state="paused"] .blog-reader-audio-mark::before{
  left: 3px;
  top: 1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}

.blog-reader-audio[data-state="playing"] .blog-reader-audio-mark::before,
.blog-reader-audio[data-state="playing"] .blog-reader-audio-mark::after{
  top: 1px;
  width: 4px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
}

.blog-reader-audio[data-state="playing"] .blog-reader-audio-mark::before{
  left: 2px;
}

.blog-reader-audio[data-state="playing"] .blog-reader-audio-mark::after{
  right: 2px;
}

.blog-reader-close{
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.blog-reader h2{
  width: min(100%, var(--blog-reader-measure));
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  margin-bottom: 18px;
  line-height: 1.06;
  text-wrap: balance;
  text-align: left;
}

.blog-reader-body{
  width: min(100%, var(--blog-reader-measure));
  margin: 0 auto;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding: 0 0 12px;
  font-size: clamp(1.03rem, 0.98rem + 0.22vw, 1.12rem);
  line-height: 1.9;
  letter-spacing: 0.008em;
  text-wrap: pretty;
  hyphens: auto;
}

.blog-reader-body p{
  margin: 0 0 1.35rem;
  color: var(--text);
  white-space: normal;
}

.blog-reader:focus,
.blog-reader:focus-visible,
.blog-reader h2:focus,
.blog-reader h2:focus-visible,
.blog-reader-body:focus,
.blog-reader-body:focus-visible{
  outline: none;
}

.blog-reader-body p:last-child{
  margin-bottom: 0;
}

.blog-reader-body p.is-dialogue{
  padding-left: 0;
}

.story-word{
  border-radius: 0.35em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.story-word.is-speaking{
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.blog-reader-body::-webkit-scrollbar{
  width: 8px;
}

.blog-reader-body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

@media (max-width: 1080px){
  .blog-reader{
    width: min(920px, calc(100vw - 24px));
  }
}

@media (max-width: 900px){
  .brand-home,
  .brand-home-grid{
    grid-template-columns: 1fr;
  }

  .brand-home-card.is-wide{
    grid-column: auto;
  }

  .blog-hero{
    grid-template-columns: 1fr;
  }
  .blog-stat{
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
  }

  .blog-stats,
  .blog-results-grid,
  .blog-characters-grid{
    grid-template-columns: 1fr;
  }

  .blog-toolbar{
    grid-template-columns: 1fr;
  }

  .blog-character-card{
    grid-template-columns: 1fr;
  }

  .blog-character-visual{
    min-height: 220px;
  }

  .blog-card-footer,
  .blog-reader-topline{
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-reader-actions{
    width: 100%;
  }

  .blog-reader-audio,
  .blog-reader-close{
    width: 100%;
    justify-content: center;
  }

  .blog-readmore{
    min-width: 0;
    width: 100%;
  }

  .blog-character-cta{
    min-width: 0;
    width: 100%;
  }

  .blog-reader-shell{
    padding: 18px 16px 14px;
  }
}


/* === V31: Header/Logo optisch mit Inhaltstext bündig === */
:root{
  --logo-align-offset: clamp(34px, 3.6vw, 70px);
}

header .brand{
  width: 100% !important;
  justify-content: center !important;
  overflow: visible !important;
}

header .brand img{
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: translateX(calc(-1 * var(--logo-align-offset))) !important;
}

@media (max-width: 820px){
  :root{
    --logo-align-offset: 0px;
  }

  header .brand img{
    width: 100% !important;
    max-width: 420px !important;
  }
}
