/* ===== Modern compact SPA-style event page (SPA tabs + stable background + iOS-safe hero) =====
   Fixes requested:
   - Background NEVER repeats
   - Background gradient stays “fixed” in one place (static) -> fixed on desktop
   - iOS fallback: fixed is buggy on iOS -> scroll there (still no-repeat)
   - Remove “gradient end band” by NOT sizing gradients to a limited px-height
   - Ensure spacing between .grid and next .card section (Rechtliches)
   - Provide codex “wide card” styling to match kv .item cards
   - Kontakt: balanced, same height image/info, no sticky-to-edge, mail wraps safely
*/

:root{
  --bg: #0b0b10;

  --panelA: rgba(255,255,255,.060);
  --panelB: rgba(255,255,255,.040);

  --line:  rgba(255,255,255,.12);
  --text:  rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --faint: rgba(255,255,255,.55);

  --shadow: 0 14px 46px rgba(0,0,0,.48);
  --radius: 18px;
  --focusRing: 0 0 0 4px rgba(255,255,255,.16);

  --maxw: 1120px;
  --pad: 18px;

  --gap: 18px;
  --cardPad: 18px;
  --sectionPad: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* IMPORTANT: static, non-repeating layered background */
  background-color: var(--bg);
  background-image:
    radial-gradient(1600px 1050px at 50% -320px,
      rgba(255,255,255,.11) 0%,
      rgba(255,255,255,.075) 20%,
      rgba(255,255,255,.040) 40%,
      rgba(255,255,255,.020) 58%,
      rgba(255,255,255,.010) 70%,
      rgba(255,255,255,0) 88%
    ),
    radial-gradient(1400px 1100px at 50% 42%,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.14) 55%,
      rgba(0,0,0,.32) 85%,
      rgba(0,0,0,.44) 100%
    );

  /* never tile */
  background-repeat: no-repeat, no-repeat;

  /* keep anchored */
  background-position: 50% 0%, 50% 50%;

  /* keep stable on viewport (desktop) */
  background-attachment: fixed, fixed;

  /* do NOT set background-size to a limited px height -> avoids “end band” */
}

/* iOS: background-attachment: fixed is unreliable -> fall back to scroll, still no-repeat */
@supports (-webkit-touch-callout: none){
  body{
    background-attachment: scroll, scroll;
  }
}

/* Links */
a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.24);
  transition: border-color .14s ease, opacity .14s ease, color .14s ease;
}
a:hover{ border-bottom-color: rgba(255,255,255,.52); }
a:focus-visible{
  outline: none;
  box-shadow: var(--focusRing);
  border-radius: 10px;
}

/* Layout helpers */
.container{
  width: min(var(--maxw), calc(100vw - 2*var(--pad)));
  margin: 0 auto;
}
.stack{ display:flex; flex-direction:column; gap: 14px; }
.row{ display:flex; gap: 12px; flex-wrap:wrap; align-items:center; }
.spacer{ height: 16px; }

h1,h2,h3{ margin:0; letter-spacing: -.015em; }
h1{ font-size: clamp(28px, 3.8vw, 46px); line-height: 1.08; }
h2{ font-size: 20px; color: var(--text); }
h3{ font-size: 15.5px; color: var(--text); }
p{ margin:0; color: var(--muted); }
small{ color: var(--faint); }

hr{
  border:0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

/* Card */
.card{
  background: linear-gradient(180deg, var(--panelA) 0%, var(--panelB) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  background-clip: padding-box;
}

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  background: rgba(11,11,16,.70);
  border-bottom: 1px solid rgba(255,255,255,.10);

  transform: translateZ(0);
  will-change: transform;
}
.topbar__inner{
  padding: 12px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width: 0;
  flex: 1 1 260px;
}
.brand strong{ font-size: 13px; color: var(--text); }
.brand span{ font-size: 12px; color: var(--muted); }

/* Tabs */
.tabs{
  display:flex;
  gap: 8px;
  flex: 1 1 100%;
  justify-content:flex-start;
  flex-wrap: wrap;
}
.tab{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  padding: 9px 11px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}
.tab:hover{ background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.tab:active{ transform: translateY(1px); }
.tab[aria-selected="true"]{
  background: rgba(255,255,255,.92);
  color: #0b0b10;
  border-color: rgba(255,255,255,.35);
}
.tab:focus-visible{ outline:none; box-shadow: var(--focusRing); }

@media (max-width: 560px){
  .tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar{ display:none; }
  .tab{ white-space: nowrap; }
}

.tab, .btn, a, button{ -webkit-tap-highlight-color: transparent; }

/* Hero */
.hero{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  isolation: isolate;
  min-height: 380px;
}
.hero__bg{
  position:absolute;
  inset:0;
  background: url("assets/header.jpg") center/cover no-repeat;
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero__shade{
  position:absolute;
  inset:0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.38) 45%,
      rgba(0,0,0,.62) 70%,
      rgba(11,11,16,.96) 100%
    ),
    radial-gradient(1000px 320px at 50% 0%,
      rgba(255,255,255,.12) 0%,
      rgba(255,255,255,0) 68%
    );
  background-repeat:no-repeat, no-repeat;
  background-position: 50% 0%, 50% 0%;
  background-size: 100% 100%, 100% 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero__content{
  position: relative;
  z-index: 2;
  padding: 22px 20px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  justify-content: flex-end;
  min-height: inherit;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
}
.dot{
  width:6px;height:6px;border-radius:999px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.hero__note{
  margin-top: 2px;
  max-width: 64ch;
  color: rgba(255,255,255,.80);
  font-size: 13.5px;
  line-height: 1.55;
}
.hero__note strong{ color: rgba(255,255,255,.95); }

.hero__meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.90);
  font-size: 12.5px;
}

.btnrow{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 6px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .01em;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}
.btn:hover{ border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{ outline:none; box-shadow: var(--focusRing); }

.btn--primary{
  background: rgba(255,255,255,.94);
  color:#0b0b10;
  border-color: rgba(255,255,255,.35);
}
.btn--primary:hover{ background: rgba(255,255,255,1); }
.btn--ghost{
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
}

@media (max-width: 560px){
  .hero{ min-height: 560px; }
  .hero__content{ padding: 18px 14px; gap: 16px; }
  .btn{ padding: 11px 13px; }
  .pill{ padding: 9px 12px; }
}

/* Main area */
.page{ padding: 18px 0 22px; }

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  column-gap: var(--gap);
  row-gap: 22px;
  align-items:start;
  margin-bottom: 22px;
}

/* IMPORTANT: spacing between grid and next card section (Rechtliches) */
.grid + .card{
  margin-top: 22px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; row-gap: 24px; }
  .grid + .card{ margin-top: 24px; }
}

@media (max-width: 560px){
  .grid{ margin-bottom: 18px; }
}

/* Sections */
.section{ padding: 0; }
.section__header{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 12px;
  padding: var(--sectionPad) var(--cardPad);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  background-clip: padding-box;
}
.section__header small{
  opacity: .75;
  transform: translateY(-1px);
}
.section__body{
  padding: var(--cardPad);
  padding-top: 18px;
}

/* KV grid */
.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 4px;
  align-items: start;
}
@media (max-width: 560px){
  .kv{ grid-template-columns: 1fr; }
}
.kv .item{
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height: 96px;
}
@media (max-width: 560px){
  .kv .item{ min-height: unset; }
}
.kv .item strong{
  display:block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}
.kv .item span{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Lists (base) */
ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
li{ margin: 8px 0; }

/* Notice */
.notice{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  border-radius: 16px;
  padding: 14px;
}
.notice strong{ color: rgba(255,255,255,.96); }

/* Form embed */
.formwrap{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  overflow:hidden;
}
.formwrap iframe{
  width:100%;
  height: min(70vh, 720px);
  border:0;
}

/* Tab panels visibility */
.tabpanels [role="tabpanel"]{ display:none; }
.tabpanels [role="tabpanel"][data-active="true"]{ display:block; }
.tabpanels [role="tabpanel"].active{ display:block; }

/* Studio Galerien - aktive Galerie anzeigen */
.studio-gallery { display: none; }
.studio-gallery.active { display: block; }

/* Sidebar spacing */
aside.card .section__body > * + *{ margin-top: 16px; }
aside.card hr{ margin: 18px 0; }

/* ===== Codex: wide-card block so typography matches kv items ===== */
.codex-block{
  margin-top: 6px;
}
.codex-card{
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.codex-card > strong{
  display:block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}
.codex-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.72);
}
.codex-list li{
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
}
.codex-list li strong{
  color: rgba(255,255,255,.90);
  font-weight: 800;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; scroll-behavior:auto !important; }
}

/* Small screens */
@media (max-width: 520px){
  .page{ padding: 14px 0 22px; }
  .grid{ row-gap: 24px; }
  .spacer{ height: 16px; }
  .section__body{ padding: 16px; padding-top: 16px; }
  .grid + .card{ margin-top: 20px; }
}

/* iOS-only: simplify card background to reduce compositing artifacts (optional) */
@supports (-webkit-touch-callout: none){
  .card{
    background: rgba(255,255,255,.055);
    box-shadow: 0 10px 34px rgba(0,0,0,.40);
  }
  .section__header{
    background: rgba(255,255,255,.035);
  }
}

/* ===== Rechtliches kompakter (Impressum + Datenschutzerklärung) ===== */
[aria-label="Rechtliches"]{
  box-shadow: 0 10px 34px rgba(0,0,0,.40);
}
[aria-label="Rechtliches"] .section__header{
  padding: 14px var(--cardPad);
}
[aria-label="Rechtliches"] .section__body{
  padding: 16px var(--cardPad);
  padding-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
[aria-label="Rechtliches"] p{
  color: rgba(255,255,255,.66);
}
[aria-label="Rechtliches"] h3{
  font-size: 14px;
  margin-top: 12px;
}
[aria-label="Rechtliches"] .section__body p + p{
  margin-top: 8px;
}
[aria-label="Rechtliches"] ul{
  margin-top: 8px;
  padding-left: 16px;
}
[aria-label="Rechtliches"] li{
  margin: 6px 0;
}
[aria-label="Rechtliches"] a{
  border-bottom-color: rgba(255,255,255,.16);
}
[aria-label="Rechtliches"] a:hover{
  border-bottom-color: rgba(255,255,255,.30);
}
@media (max-width: 560px){
  [aria-label="Rechtliches"] .section__header{
    padding: 12px 16px;
  }
  [aria-label="Rechtliches"] .section__body{
    padding: 14px 16px;
    font-size: 13px;
  }
}

/* ===== Contact block (balanced, not too wide, equal height) ===== */

.section__body.contact{
  gap: 16px;
}

/* Keep the contact row from becoming "too wide" inside the card */
.contact__row{
  /* center and cap width for nicer balance */
  width: min(860px, 100%);
  margin: 0 auto;

  display: grid;

  /* left ~35% (clamped), right takes the rest */
  grid-template-columns: clamp(120px, 35%, 360px) 1fr;

  gap: 18px;
  align-items: stretch; /* IMPORTANT: make both columns same row height */

  /* Make clickable for flyout */
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact__row:hover{
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Prevent overflow issues in grid children */
.contact__row > *{
  min-width: 0;
}

/* Portrait: stable size + rounded + defines row height */
.contact__portrait{
  display: block;          /* avoids inline-image baseline weirdness */
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;     /* gives a stable rectangle */
  object-fit: cover;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

/* Info card: same height as portrait */
.contact__info{
  height: 100%;            /* IMPORTANT: stretch to row height */
  padding: 16px 18px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);

  display: flex;
  flex-direction: column;
  justify-content: center; /* visually balanced vs image */
  gap: 12px;
}

.contact__name{
  margin: 0;
  line-height: 1.35;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.contact__name strong{
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  letter-spacing: -0.01em;
}

.contact__info p{
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
}

.contact__info strong{
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

/* allow long mail addresses to wrap without breaking layout */
.contact__info a{
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-bottom-color: rgba(255,255,255,.28);
}

/* helper text */
.section__body.contact small{
  width: min(860px, 100%);
  margin: 0 auto;
  color: rgba(255,255,255,.60);
  line-height: 1.45;
}

/* Mobile: stack, keep portrait as full-width rectangle */
@media (max-width: 560px){
  .contact__row{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact__portrait{
    aspect-ratio: 16 / 10;
  }
  .contact__info{
    padding: 14px 14px;
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 720px){
  .contact__row{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact__media,
  .contact__portraitWrap{
    height: 320px;
  }
  .contact__card,
  .contact__info{
    padding: 14px 14px;
  }
  .contact__name{ font-size: 18px; }
}

/* ===== Contact Flyout Modal ===== */

.contact__flyout{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact__flyout[style*="display: block"],
.contact__flyout.active{
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.contact__flyout__overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact__flyout__content{
  position: relative;
  z-index: 1001;
  background: linear-gradient(180deg, var(--panelA) 0%, var(--panelB) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.contact__flyout.active .contact__flyout__content{
  transform: scale(1);
}

.contact__flyout__image{
  position: relative;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.2);
}

.contact__flyout__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__flyout__details{
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
}

.contact__flyout__details .contact__name{
  font-size: 16px;
  margin-bottom: 8px;
}

.contact__flyout__details .contact__name strong{
  font-size: 28px;
  display: block;
  margin-bottom: 4px;
}

.contact__flyout__details p{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
}

.contact__flyout__details strong{
  color: rgba(255,255,255,.88);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact__flyout__details a{
  color: rgba(255,255,255,.85);
  border-bottom-color: rgba(255,255,255,.32);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.contact__flyout__details a:hover{
  border-bottom-color: rgba(255,255,255,.6);
  opacity: 1;
}

.contact__flyout__close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1002;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.contact__flyout__close:hover{
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.1);
}

.contact__flyout__close:active{
  transform: scale(0.95);
}

/* Mobile: Stack flyout content vertically */
@media (max-width: 768px){
  .contact__flyout__content{
    grid-template-columns: 1fr;
    max-height: 95vh;
  }

  .contact__flyout__image{
    min-height: 300px;
    max-height: 40vh;
  }

  .contact__flyout__details{
    padding: 24px;
    gap: 16px;
  }

  .contact__flyout__details .contact__name strong{
    font-size: 24px;
  }

  .contact__flyout__details p{
    font-size: 14px;
  }
}

@media (max-width: 560px){
  .contact__flyout{
    padding: 12px;
  }

  .contact__flyout__content{
    border-radius: 18px;
  }

  .contact__flyout__details{
    padding: 20px;
  }

  .contact__flyout__close{
    width: 36px;
    height: 36px;
    font-size: 24px;
    top: 12px;
    right: 12px;
  }
}

/* ===== WhatsApp Community CTA (refined, dark-UI aligned) ===== */

.wa-join{
  align-self: flex-start;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 999px;

  /* WhatsApp green, slightly muted for dark UI */
  background: linear-gradient(
    180deg,
    #2fe070 0%,
    #25d366 100%
  );

  color: #ffffff; /* FIX: white text */
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: .01em;

  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 10px 28px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.35);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

.wa-join:hover{
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.45);
  filter: brightness(1.02);
}

.wa-join:active{
  transform: translateY(0);
  filter: brightness(.98);
}

.wa-join:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(37,211,102,.35),
    0 14px 36px rgba(0,0,0,.55);
}

.wa-join__icon{
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}

/* Mobile: full-width CTA */
@media (max-width: 560px){
  .wa-join{
    width: 100%;
    justify-content: center;
  }
}

/* ===== Studio Gallery ===== */
/* ===== STUDIO GALERIEN: Mit .gallery-viewer Struktur ===== */
.studio-tabs {
  margin-top: 20px;
}

.studio-tabs__buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  align-items: center;
}

.studio-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  position: relative;
  display: flex;
  align-items: center;
}

.studio-tab:hover {
  color: var(--text);
}

.studio-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.studio-gallery {
  display: none;
  width: 100%;
}

.studio-gallery.active {
  display: block;
}

.studio-tabs {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 24px;
}

.gallery-viewer {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.gallery-main {
  display: none;
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  background: rgba(0,0,0,.2);
  overflow: hidden;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  cursor: zoom-in;
}

.gallery-counter {
  display: none;
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.4);
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
}

.gallery-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  flex-align: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}

.gallery-nav--prev {
  left: 12px;
}

.gallery-nav--next {
  right: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
  padding: 14px;
  background: transparent;
}

.gallery-thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  padding: 0;
  display: block;
}

.gallery-thumb:hover {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}

.gallery-thumb.active {
  border-color: var(--text);
  background: rgba(255,255,255,.15);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 560px){
  .studio-gallery__grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .studio-gallery h3{
    font-size: 14px;
    margin-bottom: 12px;
  }
}

/* ===== STUDIO GALERIE TABS ===== */
.studio-tabs {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.studio-tabs__buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.studio-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.studio-tab:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
}

.studio-tab[aria-selected="true"] {
  background: rgba(255,255,255,.92);
  color: #0b0b10;
  border-color: rgba(255,255,255,.35);
  font-weight: 800;
}

.studio-tab:focus-visible {
  outline: none;
  box-shadow: var(--focusRing);
}

.studio-tab.active {
  background: rgba(255,255,255,.92);
  color: #0b0b10;
  border-color: rgba(255,255,255,.35);
  font-weight: 800;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.gallery-grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  background: rgba(0,0,0,.2);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.gallery-grid-item:focus-visible {
  outline: none;
  box-shadow: var(--focusRing);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

.gallery-viewer {
  position: relative;
  background: transparent;
  border-radius: var(--radius);
  overflow: visible;
  aspect-ratio: auto;
  max-width: 100%;
}

.gallery-main {
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s cubic-bezier(.25, .46, .45, .94);
}

.gallery-image.zoomed {
  transform: scale(1.5);
}

/* Navigation Buttons - ONLY in modal */
#gallery-zoom-modal .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all .2s ease;
  z-index: 10;
}

#gallery-zoom-modal .gallery-nav:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-50%) scale(1.1);
}

#gallery-zoom-modal .gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

#gallery-zoom-modal .gallery-nav--prev {
  left: 12px;
}

#gallery-zoom-modal .gallery-nav--next {
  right: 12px;
}

/* Zoom Button */
.gallery-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .2s ease;
  z-index: 10;
}

.gallery-zoom:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.1);
}

.gallery-zoom:active {
  transform: scale(0.95);
}

.gallery-zoom.active {
  background: rgba(255,255,255,.92);
  color: #0b0b10;
  border-color: rgba(255,255,255,.35);
}

/* Counter */
.gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.92);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 2px;
}

.gallery-thumb {
  appearance: none;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all .2s ease;
  padding: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  border-color: rgba(255,255,255,.35);
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 0 0 2px rgba(255,255,255,.2);
}

.gallery-thumb:focus-visible {
  outline: none;
  box-shadow: var(--focusRing);
}

/* Zoom Container für große Ansicht */
.gallery-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-zoom-modal.active {
  display: flex;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all .2s ease;
  z-index: 10;
}

.modal-nav:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.modal-nav--prev {
  left: 20px;
}

.modal-nav--next {
  right: 20px;
}

.gallery-zoom-modal__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom-modal__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-zoom-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all .2s ease;
  z-index: 10;
}

.gallery-zoom-modal__close:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.35);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .gallery-viewer {
    aspect-ratio: 16 / 12;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .gallery-zoom {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .gallery-thumbs {
    padding: 12px 8px;
  }

  .gallery-thumb {
    width: 50px;
    height: 50px;
  }
}
