:root{
  --bg:#000;
  --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;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  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);
}

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;
  }
  
  .nav.open{display:flex}
  .nav a{width:100%; justify-content:center; font-size:18px; padding: 12px 14px;}
  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; }
.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; }
}

/* === 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 .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{
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.2px;
}
.page-title{
  margin-top: 0;
}
@media (max-width: 768px){
  h1{
    font-size: 1.75rem;
  }
}

/* === 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;
}