/* Shared Nachtstudio page anatomy, with existing dynamic content. */
[data-night-page] {
  --night-panel: #09152ed9;
  --night-border: #317d9c;
}
[data-night-page] :is(.sendeplan-hero,.tm-hero,.legal-hero) h1 {
  color:#f7f8ff;
  font-family:"Bricolage Grotesque",Arial,sans-serif;
  font-style:italic;
  font-weight:800;
  text-transform:none;
}
[data-night-page] .legal-title .grad {
  color:#f7f8ff !important;
  background:none !important;
  -webkit-text-fill-color:currentColor;
}
[data-night-page] .legal-title > span + span,
[data-night-page] .legal-hero-art,
[data-night-page] .legal-hero .eyebrow,
[data-night-page="team"] .tm-hero .hr-chip { display:none; }
[data-night-page] .legal-hero-grid { grid-template-columns:minmax(0,1fr); }
[data-night-page] .legal-hero { border-bottom:1px solid #21e5f68c; }
[data-night-page] .legal-hero .legal-lead { color:#c9d7ed; }
body.theme-nachtstudio.hr-showcase .site-main[data-night-page] :is(.legal-contact,.legal-body,.night-legal-configured,.contact-info,.contact-form-card) {
  border:1px solid var(--night-border) !important;
  background:var(--night-panel) !important;
}
[data-night-page] :is(.legal-contact,.legal-block) :is(h3,h4) { color:#f7f8ff; }
[data-night-page] :is(.legal-contact,.legal-block) :is(h3,h4)::after {
  content:""; display:block; width:4rem; height:2px; margin-top:.42rem; background:#1bdced;
}
[data-night-page] .night-legal-configured {
  grid-column:1/-1;
  margin-bottom:1rem;
  padding:clamp(1rem,2vw,1.55rem);
}
.night-legal-text { white-space:pre-wrap; overflow-wrap:anywhere; }
[data-night-page="impressum"] .night-legal-content { max-width:870px !important; }
[data-night-page="impressum"] .legal-grid { grid-template-columns:minmax(0,1fr); gap:.75rem; }
[data-night-page="impressum"] .legal-contact { min-height:0; }
[data-night-page="datenschutz"] .night-legal-content {
  display:grid; grid-template-columns:minmax(175px,1fr) minmax(0,3.5fr); gap:clamp(.9rem,2.2vw,1.8rem);
}
.night-privacy-index {
  align-self:start;
  display:grid;
  gap:.4rem;
  padding:1rem;
  background:var(--night-panel);
  border:1px solid #1bdced;
  border-radius:12px;
}
.night-privacy-index h2 { margin:0 0 .32rem; }
.night-privacy-index a { padding:.4rem .45rem; color:#e9f8ff; }
.night-privacy-index a:is(:focus-visible,:hover) { color:#21e5f6; text-decoration:underline; }
.night-privacy-sections { border-inline-start:1px solid #21e5f677; padding-inline-start:clamp(.8rem,2vw,1.65rem); }
.night-privacy-sections :is(.legal-block,.legal-grid)[id] { scroll-margin-top:1rem; }
[data-night-page="kontakt"] .legal-hero .container { position:relative; }
body.theme-nachtstudio [data-night-page="kontakt"] .legal-hero {
  background:linear-gradient(90deg,#08132bef 20%,#11163093 55%,#10112638),url("../img/showcase/nachtstudio-clean-studio.webp") right 51% / cover no-repeat !important;
}
[data-night-page="kontakt"] .contact-grid { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
[data-night-page="kontakt"] :is(.contact-form-card,.contact-info) { padding:clamp(1rem,2vw,1.5rem); }
[data-night-page="kontakt"] .contact-info h3 { margin:0 0 .5rem; }
[data-night-page="kontakt"] .contact-form-card button {
  width:min(100%,280px);
  border:1px solid #21e5f6;
  color:#fff;
  background:linear-gradient(180deg,#096e85,#063848);
  box-shadow:0 0 13px #09d1ea5c;
}
[data-night-page="sendeplan"] .night-page-accent { display:block; color:#c583f5; }
[data-night-page="sendeplan"] .sp-tabs {
  display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:0;
  margin:1rem 0;
  border:1px solid #21e5f6;
  border-radius:11px;
  overflow:hidden;
  background:#07142bd9;
}
[data-night-page="sendeplan"] .sp-tab { justify-content:center; padding:.55rem .2rem; border-radius:0; border:0; min-width:0; }
[data-night-page="sendeplan"] .sp-tab + .sp-tab { border-inline-start:1px solid #21e5f655; }
[data-night-page="sendeplan"] .sp-tab.is-active { box-shadow:inset 0 0 13px #00efff85; }
[data-night-page="sendeplan"] .sp-grid {
  display:grid; grid-template-columns:minmax(0,1fr); gap:0;
  margin-bottom:1.3rem;
  padding:.65rem;
  border:1px solid #21e5f6;
  border-radius:12px;
  background:#081328df;
}
.night-schedule-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.5rem; padding:.3rem .55rem .6rem; }
.night-schedule-heading h2 { margin:0; }
.night-schedule-heading > span { font-size:.9rem; color:#c9daf4; }
[data-night-page="sendeplan"] .sp-card {
  display:grid; grid-template-columns:70px minmax(0,1fr);
  border:0; border-top:1px solid #405878;
  border-radius:0;
  padding:.35rem;
  background:transparent; box-shadow:none;
}
[data-night-page="sendeplan"] .sp-card:hover { transform:none; }
[data-night-page="sendeplan"] .sp-card.is-live:not(.is-cancelled) {
  border:1px solid #d477ff;
  border-radius:8px;
  background:linear-gradient(110deg,#66269d,#35155a);
}
[data-night-page="sendeplan"] .sp-card-photo { align-self:start; height:60px; border-radius:7px; aspect-ratio:auto; }
[data-night-page="sendeplan"] .sp-card-photo :is(.sp-live-badge,.sp-flag) { font-size:.52rem; padding:.15rem .22rem; inset:auto .1rem .12rem; }
[data-night-page="sendeplan"] .sp-card-body { padding:.2rem .55rem; gap:.28rem; }
[data-night-page="sendeplan"] .sp-card-title { font-size:1.05rem; }
[data-night-page="sendeplan"] .sp-card-desc { margin:0; }
[data-night-page="sendeplan"] .sp-card-actions { margin-top:.2rem; }
body.theme-nachtstudio.hr-showcase .site-main[data-night-page="team"] .tm-card {
  border:1px solid #21e5f6 !important;
  background:linear-gradient(160deg,#0b1834,#100d23) !important;
  box-shadow:0 5px 16px #02061799;
}
[data-night-page="team"] .tm-card__photo { aspect-ratio:1.52; }
[data-night-page="team"] .tm-card__body { padding:.8rem 1rem; }
[data-night-page="team"] .tm-card__name { font-style:italic; }
[data-night-page="team"] .tm-card__show { border-top:1px solid #21e5f6b3; padding-top:.52rem; }
@media(min-width:760px) {
  [data-night-page="sendeplan"] .sp-card-body { display:grid; grid-template-columns:minmax(130px,.28fr) minmax(0,1fr); column-gap:.65rem; }
  [data-night-page="sendeplan"] .sp-card-body > :not(.sp-card-time) { grid-column:2; }
}
@media(max-width:760px) {
  [data-night-page="datenschutz"] .night-legal-content,
  [data-night-page="kontakt"] .contact-grid { grid-template-columns:minmax(0,1fr); }
  .night-privacy-sections { padding:0; border:0; }
  .night-privacy-sections .legal-grid { grid-template-columns:minmax(0,1fr) !important; }
  [data-night-page="sendeplan"] .sp-tab-live { display:none; }
  [data-night-page="sendeplan"] .sp-tab { flex-direction:column; gap:.1rem; }
}

/* Existing account forms get the split studio layout from the demos. */
body.night-auth .night-auth-bar {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.55rem 1.5rem;
  padding:.55rem max(1rem,calc((100% - 1180px)/2));
  background:#07152c; border-bottom:1px solid #21e5f6;
  position:relative; z-index:1;
}
.night-auth-bar img { display:block; width:clamp(110px,15vw,170px); }
.night-auth-bar nav { display:flex; gap:.3rem 1rem; flex-wrap:wrap; }
.night-auth-bar nav a { color:#fff; font-size:.92rem; font-weight:700; text-decoration:none; padding:.5rem 0; }
.night-auth-bar nav a:is([aria-current="page"],:hover,:focus-visible) { box-shadow:inset 0 -2px #21e5f6; }
body.night-auth .au-wrap { min-height:min(730px,82vh); }
body.night-auth .au-info {
  background:linear-gradient(90deg,#050e2594,#07112a6e 70%,#0e1739),url("../img/showcase/nachtstudio-clean-studio.webp") 75% center / cover no-repeat;
}
body.night-auth .au-panel { padding-block:1.4rem; }
body.night-auth .au-card h2 { width:fit-content; padding-bottom:.3em; border-bottom:3px solid #21e5f6; font-style:italic; }
body.night-auth .night-auth-footer {
  position:relative; z-index:1;
  border-top:1px solid #8e57c2;
  padding:.75rem 1rem;
  color:#edf4ff; text-align:center;
}
.night-auth-footer a { margin-inline:.4rem; color:#8bf7ff; }
@media(max-width:980px) { body.night-auth .au-wrap { min-height:0; } }

[data-night-page="team"] .tm-group > .hr-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(.75rem,1.45vw,1.35rem);
}
[data-night-page="team"] .tm-card__body { display:flex; flex-direction:column; }
[data-night-page="team"] .tm-card__name { order:-1; margin:0 0 .24rem; }
[data-night-page="team"] .tm-card__role { color:#d6e8f5; }
[data-night-page="team"] .tm-card__show strong { color:#21e5f6; }
@media(max-width:820px) { [data-night-page="team"] .tm-group > .hr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { [data-night-page="team"] .tm-group > .hr-grid { grid-template-columns:1fr; } }

body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-hero__inner { text-align:left; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-hero__sub { margin:0; max-width:none; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] :is(.nw-eyebrow,.nw-hero__stats,.nw-featured__flag) { display:none; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-hero__title { margin:0 0 .42rem; font-style:italic; text-transform:none; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-grad { color:#cd84ff; background:none; -webkit-text-fill-color:currentColor; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-layout { grid-template-columns:minmax(0,1fr); gap:.85rem; padding-block:1rem; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured {
  position:relative; isolation:isolate; display:block;
  border:1px solid #24dff3; background:#0c1831; border-radius:13px; margin:0 0 1rem;
}
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__media {
  position:absolute; inset:0 0 0 39%; z-index:-2; min-height:0;
}
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg,#07152c 38%,#08142d99 55%,transparent 88%);
}
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__body { max-width:64%; min-height:230px; padding:1.2rem; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] :is(.nw-featured__body h2,.nw-card__body h3) { font-style:italic; color:#fff; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-card {
  display:grid; grid-template-columns:minmax(88px,.65fr) minmax(0,1fr);
  border:1px solid #3689ac !important;
  border-radius:12px;
  opacity:1; transform:none;
}
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-card__media { aspect-ratio:auto; min-height:100%; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-card__media img { position:absolute; inset:0; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-card__body { padding:.82rem; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-card__day { display:none; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-sidebar { position:static; }
@media(max-width:700px) {
  body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-grid { grid-template-columns:minmax(0,1fr); }
  body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__body { max-width:none; min-height:0; }
  body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured::after { background:linear-gradient(90deg,#07152cf9,#07152cab); }
}

body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured {
  box-shadow:0 0 17px #20d8ef40;
}
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__media { inset-inline-start:36%; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__body { max-width:56%; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__body p { line-height:1.42; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-month { margin-bottom:1.25rem; }
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-month__head {
  opacity:1; transform:none; margin-bottom:.55rem;
}
body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-filterbar { position:static; }
.nw-night-archive { border:1px solid #376b93; border-radius:10px; background:#0c1831; padding:.5rem .8rem; }
.nw-night-archive summary { color:#40e2f0; font-weight:750; cursor:pointer; padding:.25rem; }
.nw-night-archive .nw-archive { margin-top:.5rem; }
@media(max-width:700px) {
  body.theme-nachtstudio.hr-showcase [data-night-page="news"] .nw-featured__body { max-width:none; }
}
