/* Edge/Chromium: clip schneidet stärker ab als „hidden“ (kein horizontales Scrollen durch Schatten/Subpixel) */
html {
    overflow-x: clip;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@supports not (overflow: clip) {
    html {
        overflow-x: hidden;
    }
}

/* Body / Vorschau / Admin-Link (liegen außerhalb .dj-page) */
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #050505;
    overflow-x: clip;
    max-width: 100%;
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

#page-root {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    min-width: 0;
}

@supports not (overflow: clip) {
    #page-root {
        overflow-x: hidden;
    }
}

body.preview-body {
    background: #000;
}

a.secret-login {
    display: block;
    text-align: center;
    padding: 16px max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    color: #333;
    text-decoration: none;
    font-size: clamp(0.72rem, 2.2vw, 0.85rem);
    transition: color 0.25s ease;
    min-height: 44px;
    line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
    a.secret-login:hover {
        color: #ff3366;
    }
}

/* Gemeinsame Styles — geräteadaptiv, Farben über CSS-Variablen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }
    .dj-page .hero h1 {
        animation: none;
    }
    .dj-page .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .dj-page .gig-card,
    .dj-page .btn {
        transition: none;
    }
}

.dj-page {
    --primary-color: #ff3366;
    --secondary-color: #7b2cbf;
    --page-bg: #050505;
    --surface-bg: #080808;
    --page-pad-x: clamp(12px, 4vw, 28px);
    --section-pad-y: clamp(48px, 10vw, 100px);
    background-color: var(--page-bg);
    color: #ffffff;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Kein horizontales Außenpadding: sonst wirkt das Hero-Bild schmaler — links/rechts dunkle „Balken“ (v. a. in Edge sichtbar) */
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
}

@supports not (overflow: clip) {
    .dj-page {
        overflow-x: hidden;
    }
}

/* Jeder CMS-Block: kein horizontales „Auslaufen“ (Backdrop-Blur / Effekte in Edge) */
.dj-page .cms-block {
    max-width: 100%;
    overflow-x: clip;
    min-width: 0;
}

@supports not (overflow: clip) {
    .dj-page .cms-block {
        overflow-x: hidden;
    }
}

.dj-page .hero {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) var(--page-pad-x) 32px;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.35), rgba(5, 5, 5, 0.92)),
        var(--hero-bg-image, url('https://images.unsplash.com/photo-1516873240891-4bf014598ab4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80')) center/cover;
    /* Nicht „fixed“: verursacht oft einen extra horizontalen Scrollbalken (v. a. Chrome/Edge + Windows) */
    background-attachment: scroll;
}

@supports not (overflow: clip) {
    .dj-page .hero {
        overflow-x: hidden;
    }
}

.dj-page .hero.compact {
    min-height: auto;
    height: auto;
    padding: clamp(48px, 12vw, 100px) var(--page-pad-x);
    background-attachment: scroll;
}

.dj-page .hero h1 {
    font-size: clamp(1.85rem, 6.5vw + 0.5rem, 5rem);
    font-weight: 900;
    /* weniger extra Breite durch Letterspacing (Edge) */
    letter-spacing: clamp(0.5px, 0.55vw, 6px);
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(255, 51, 102, 0.45);
    margin-bottom: clamp(8px, 2vw, 14px);
    line-height: 1.05;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    overflow-x: clip;
    animation: pulseGlow 3s infinite alternate;
}

@supports not (overflow: clip) {
    .dj-page .hero h1 {
        overflow-x: hidden;
    }
}

.dj-page .hero p.genres {
    font-size: clamp(0.85rem, 2.2vw + 0.35rem, 1.2rem);
    font-weight: 300;
    letter-spacing: clamp(1px, 0.35vw, 3px);
    margin-bottom: clamp(24px, 5vw, 40px);
    color: #d1d1d1;
    max-width: min(36rem, 100%);
    line-height: 1.45;
}

.dj-page .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.dj-page .btn {
    background: transparent;
    color: #fff;
    border: 2px solid var(--primary-color);
    padding: max(14px, 0.9em) clamp(22px, 5vw, 40px);
    font-size: clamp(0.85rem, 1.8vw + 0.4rem, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.25vw, 2px);
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    display: inline-block;
    min-height: 44px;
    min-width: min(100%, 12rem);
    line-height: 1.2;
    text-align: center;
}

.dj-page .btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .dj-page .btn:hover {
        background: var(--primary-color);
        box-shadow: 0 0 25px var(--primary-color);
        transform: scale(1.05);
    }
}

.dj-page .gigs-section {
    padding: var(--section-pad-y) 0;
    text-align: center;
    background-color: var(--page-bg);
}

.dj-page .section-title {
    font-size: clamp(1.35rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 900;
    margin-bottom: clamp(28px, 6vw, 50px);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.4vw, 2px);
    padding: 0 var(--page-pad-x);
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dj-page .section-title span {
    color: var(--primary-color);
}

.dj-page .gigs-container {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 20px);
    width: 100%;
    max-width: min(800px, 100%);
    margin: 0 auto;
    padding: 0 var(--page-pad-x);
}

.dj-page .gig-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(16px, 4vw, 25px);
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 16px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .dj-page .gig-card {
        overflow-x: hidden;
    }
}

@media (hover: hover) and (pointer: fine) {
    .dj-page .gig-card:hover {
        transform: translateY(-6px) scale(1.01);
        border-color: rgba(255, 51, 102, 0.6);
        box-shadow: 0 15px 35px rgba(255, 51, 102, 0.15);
    }
}

.dj-page .gig-date {
    font-size: clamp(1rem, 2.2vw + 0.4rem, 1.2rem);
    font-weight: 900;
    color: #fff;
    flex: 1 1 22%;
    min-width: 0;
}

.dj-page .gig-location {
    font-size: clamp(0.9rem, 1.8vw + 0.35rem, 1.1rem);
    font-weight: 600;
    color: #ddd;
    flex: 2 1 40%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dj-page .gig-genre {
    font-size: clamp(0.75rem, 1.5vw + 0.25rem, 0.9rem);
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 51, 102, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    flex: 0 1 auto;
    text-align: center;
}

@media (max-width: 900px) {
    .dj-page .gig-card {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }

    .dj-page .gig-date,
    .dj-page .gig-location,
    .dj-page .gig-genre {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .dj-page .gig-genre {
        align-self: center;
        width: fit-content;
        max-width: 100%;
    }
}

.dj-page .social-footer {
    padding: clamp(36px, 8vw, 50px) var(--page-pad-x);
    text-align: center;
    background: var(--surface-bg);
    border-top: 1px solid #111;
}

.dj-page .social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 4vw, 24px);
}

.dj-page .social-icons a {
    color: #fff;
    font-size: clamp(1.5rem, 5vw, 2rem);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 4px;
    border-radius: 8px;
}

.dj-page .social-icons a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .dj-page .social-icons a:hover {
        color: var(--primary-color);
        transform: translateY(-4px);
    }
}

.dj-page .social-copy {
    color: #444;
    margin-top: clamp(16px, 4vw, 20px);
    font-size: clamp(0.75rem, 2vw + 0.3rem, 0.9rem);
    line-height: 1.5;
    max-width: 100%;
    padding: 0 var(--page-pad-x);
    overflow-wrap: anywhere;
}

.dj-page .cms-richtext {
    padding: clamp(36px, 8vw, 60px) var(--page-pad-x);
    max-width: min(800px, 100%);
    margin: 0 auto;
    color: #ccc;
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.5vw + 0.4rem, 1.05rem);
}

.dj-page .cms-richtext img,
.dj-page .cms-richtext video,
.dj-page .cms-richtext iframe {
    max-width: 100%;
    height: auto;
}

.dj-page .cms-richtext h2,
.dj-page .cms-richtext h3 {
    color: #fff;
    margin: 1em 0 0.5em;
    font-size: clamp(1.15rem, 2.5vw + 0.5rem, 1.6rem);
}

.dj-page .cms-richtext p {
    margin-bottom: 1em;
}

.dj-page .cms-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #111;
    --banner-target-height: 320px;
}

.dj-page .cms-banner a {
    display: block;
}

.dj-page .cms-banner__media {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: min(var(--banner-target-height, 320px), 55vh);
    height: auto;
}

.dj-page .cms-spacer {
    width: 100%;
}

.dj-page .cms-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 51, 102, 0.35), transparent);
    margin-left: auto;
    margin-right: auto;
    max-width: min(600px, calc(100% - 2 * var(--page-pad-x)));
}

.dj-page .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.dj-page .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .dj-page .reveal {
        opacity: 1;
        transform: none;
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 8px rgba(255, 51, 102, 0.35);
    }
    100% {
        /* kleinerer Glow: weniger „Tinte“ außerhalb der Box (manchmal Auslöser für horiz. Scroll in Edge) */
        text-shadow: 0 0 20px rgba(255, 51, 102, 0.75), 0 0 6px rgba(255, 255, 255, 0.35);
    }
}

/* Zweiter Button / Ghost-Button */
.dj-page .btn.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .dj-page .btn.btn-ghost:hover {
        border-color: var(--primary-color);
        color: #fff;
        background: rgba(255, 51, 102, 0.12);
        transform: scale(1.03);
    }
}

/* Überschrift-Block */
.dj-page .cms-heading-wrap {
    padding: clamp(24px, 5vw, 48px) var(--page-pad-x);
    max-width: min(900px, 100%);
    margin: 0 auto;
}

.dj-page .cms-heading-wrap--left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.dj-page .cms-heading-wrap--center {
    text-align: center;
}

.dj-page .cms-heading-wrap--right {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.dj-page .cms-heading-title {
    font-size: clamp(1.4rem, 3.5vw + 0.5rem, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: #fff;
}

.dj-page .cms-heading-wrap h3.cms-heading-title {
    font-size: clamp(1.15rem, 2.5vw + 0.4rem, 1.65rem);
}

.dj-page .cms-heading-accent {
    color: var(--primary-color);
}

/* Bild + Bildunterschrift */
.dj-page .cms-image-block {
    margin: 0 auto;
    max-width: min(900px, 100%);
    padding: 0 var(--page-pad-x);
}

.dj-page .cms-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

.dj-page .cms-image-block--rounded img {
    border-radius: 14px;
}

.dj-page .cms-image-block figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
}

.dj-page .cms-image-placeholder,
.dj-page .cms-video-placeholder,
.dj-page .cms-hint-inline {
    padding: 32px var(--page-pad-x);
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

/* Zitat */
.dj-page .cms-quote {
    margin: clamp(24px, 5vw, 48px) auto;
    max-width: min(720px, 100%);
    padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 51, 102, 0.06);
    border-radius: 0 12px 12px 0;
    font-size: clamp(1rem, 2vw + 0.35rem, 1.2rem);
    line-height: 1.55;
    color: #ddd;
}

.dj-page .cms-quote p {
    margin: 0 0 12px;
}

.dj-page .cms-quote cite {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--primary-color);
}

/* YouTube / Video */
.dj-page .cms-video-wrap {
    padding: clamp(20px, 4vw, 40px) var(--page-pad-x);
    max-width: 100%;
}

.dj-page .cms-video-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222;
}

.dj-page .cms-video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Button-Zeile */
.dj-page .cms-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: clamp(20px, 4vw, 36px) var(--page-pad-x);
    align-items: center;
}

.dj-page .cms-btn-row--center {
    justify-content: center;
}

.dj-page .cms-btn-row--left {
    justify-content: flex-start;
}

.dj-page .cms-btn-row .btn {
    width: auto;
    min-width: min(100%, 10rem);
}

/* CTA-Streifen */
.dj-page .cms-cta-strip {
    padding: clamp(40px, 8vw, 72px) var(--page-pad-x);
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.08), rgba(123, 44, 191, 0.06));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 100%;
}

.dj-page .cms-cta-strip--center {
    text-align: center;
}

.dj-page .cms-cta-strip--left {
    text-align: left;
}

.dj-page .cms-cta-strip--right {
    text-align: right;
}

.dj-page .cms-cta-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.dj-page .cms-cta-title {
    font-size: clamp(1.35rem, 3vw + 0.5rem, 2rem);
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.dj-page .cms-cta-sub {
    color: #aaa;
    font-size: clamp(0.95rem, 1.5vw + 0.3rem, 1.1rem);
    margin-bottom: 24px;
    max-width: 36rem;
}

.dj-page .cms-cta-strip--center .cms-cta-sub {
    margin-left: auto;
    margin-right: auto;
}

.dj-page .cms-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: inherit;
}

.dj-page .cms-cta-strip--center .cms-cta-actions {
    justify-content: center;
}

.dj-page .cms-cta-strip--right .cms-cta-actions {
    justify-content: flex-end;
}
