:root {
    --ink: #322a34;
    --rose: #9d376b;
    --cream: #faf5f1;
    --line: #e8dcd9
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65
}

a {
    color: inherit
}

header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fffefcf2;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line)
}

nav {
    max-width: 1160px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px
}

.brand {
    font-family: Georgia, serif;
    font-size: 24px;
    font-style: italic;
    color: var(--rose);
    font-weight: bold;
    text-decoration: none
}

.links {
    display: flex;
    gap: 25px
}

.links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px
}

.links a:hover {
    color: var(--rose)
}

.hero {
    min-height: 620px;
    background: linear-gradient(90deg, rgba(30, 15, 25, .7), rgba(30, 15, 25, .08)), url('startbild.jpg') center 39%/cover;
    display: flex;
    align-items: center;
    color: white
}

.hero-inner {
    width: min(1100px, 90%);
    margin: auto
}

.eyebrow {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(44px, 7vw, 85px);
    line-height: 1.08;
    font-weight: 400;
    max-width: 740px;
    margin: 15px 0
}

.hero p {
    max-width: 510px;
    font-size: 19px
}

.btn {
    display: inline-block;
    background: var(--rose);
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 100px;
    padding: 13px 26px;
    font-weight: 650;
    cursor: pointer
}

.btn:hover {
    background: #78264f
}

.wrap {
    max-width: 1120px;
    margin: auto;
    padding: 75px 25px
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 25px
}

h2 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 49px);
    line-height: 1.2;
    margin: 5px 0 15px
}

.muted {
    color: #746a70
}

.intro {
    max-width: 700px;
    font-size: 19px
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px #4c1b3410
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover
}

.card-body {
    padding: 23px
}

.card h3 {
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 8px
}

.band {
    background: #f0e3e6
}

.event {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid var(--line);
    padding: 22px 0
}

.date {
    background: #fff;
    border-radius: 12px;
    padding: 9px;
    text-align: center
}

.day {
    display: block;
    font: 35px Georgia, serif;
    color: var(--rose)
}

.month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.event h3 {
    margin: 0;
    font-size: 21px
}

.event p {
    margin: 3px 0;
    color: #746a70
}

.event button {
    border: 1px solid #d5b9c6;
    background: transparent;
    border-radius: 30px;
    padding: 9px 16px;
    color: var(--rose);
    cursor: pointer
}

.detail {
    grid-column: 2/4;
    margin-top: -8px;
    display: none
}

.event.open .detail {
    display: block
}

.page {
    display: none
}

.page.active {
    display: block
}

.note {
    font-size: 12px;
    color: #7a6c72;
    background: #fff;
    border-left: 3px solid var(--rose);
    padding: 12px 16px;
    margin-top: 25px
}

footer {
    background: #2e2430;
    color: #fff;
    padding: 35px 25px;
    text-align: center;
    font-size: 13px
}

footer a {
    color: #fff
}

@media(max-width:720px) {
    .hero {
        min-height: 570px;
        background-position: 55% center
    }

    .cards {
        grid-template-columns: 1fr
    }

    .card img {
        height: 230px
    }

    .section-head {
        display: block
    }

    .event {
        grid-template-columns: 65px 1fr;
        gap: 12px
    }

    .event button {
        grid-column: 2;
        justify-self: start
    }

    .detail {
        grid-column: 1/3
    }

    .wrap {
        padding: 55px 20px
    }

    .links {
        gap: 14px
    }

    .brand {
        font-size: 20px
    }
}

.admin-wrap {
    max-width: 900px;
    margin: 45px auto;
    padding: 0 20px
}

.panel {
    background: white;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 20px
}

.field {
    display: block;
    margin: 12px 0;
    font-weight: 600
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #d4c4cc;
    border-radius: 8px;
    font: inherit
}

.field textarea {
    min-height: 130px
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.small-btn {
    padding: 7px 12px;
    border-radius: 7px;
    border: 1px solid #d4c4cc;
    background: white;
    cursor: pointer
}

.error {
    color: #a00
}

.success {
    color: #166534
}

.admin-table {
    width: 100%;
    border-collapse: collapse
}

.admin-table td,
.admin-table th {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left
}

@media(max-width:600px) {

    .admin-table td,
    .admin-table th {
        padding: 6px;
        font-size: 13px
    }
}

/* Erweiterung: Tanzangebote */
:root {
    --rose: #bd303b;
    --ink: #28232a
}

.hero {
    background: linear-gradient(90deg, rgba(18, 10, 16, .66), rgba(18, 10, 16, .08)), url('startbild.jpg') center center/cover
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(43px, 6vw, 78px)
}

.hero p {
    max-width: 760px
}

.accent,
.teaser {
    color: #d52c37
}

.hero .accent {
    color: #ff7077
}

.section-kicker {
    color: var(--ink);
    letter-spacing: .06em;
    text-transform: none;
    font-size: clamp(20px, 2.5vw, 29px)
}

.section-kicker .accent {
    color: #d52c37
}

.card-image {
    display: block;
    overflow: hidden
}

.card-image img {
    display: block;
    transition: transform .25s ease
}

.card-image:hover img {
    transform: scale(1.035)
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 210px
}

.card-body .teaser {
    margin: 0 0 15px
}

.text-link {
    margin-top: auto;
    color: var(--rose);
    font-weight: 700;
    text-decoration: none
}

.text-link:hover {
    text-decoration: underline
}

.offer-detail {
    display: grid;
    grid-template-columns: minmax(200px, 340px) 1fr;
    gap: 30px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 90px
}

.offer-detail img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px
}

.offer-detail h3 {
    font: normal clamp(25px, 3vw, 35px) Georgia, serif;
    margin: 0
}

.offer-detail h4 {
    margin: 24px 0 5px
}

.offer-detail .event {
    grid-template-columns: 65px 1fr auto;
    gap: 10px
}

.offer-detail .event .date {
    background: var(--cream)
}

.offer-detail .event h3 {
    font: 600 17px system-ui, sans-serif
}

.offer-detail .event .detail {
    grid-column: 2/4
}

.offer-detail ul {
    padding-left: 23px
}

@media(max-width:720px) {
    .offer-detail {
        grid-template-columns: 1fr
    }

    .offer-detail img {
        max-height: 350px
    }

    .card-body {
        min-height: auto
    }

    .hero {
        background-position: 55% center
    }

    .hero h1 {
        font-size: clamp(40px, 9vw, 60px)
    }
}

.field select {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #d4c4cc;
    border-radius: 8px;
    font: inherit;
    background: white
}

/* Rechtliche Seiten */
.legal-page {
    max-width: 900px;
    min-height: 65vh
}

.legal-page h1 {
    font: normal clamp(34px, 5vw, 56px) Georgia, serif;
    margin: 0 0 25px
}

.legal-page h2 {
    font: normal 27px Georgia, serif;
    margin: 32px 0 10px
}

.legal-page p {
    margin: 8px 0 15px
}

.legal-page a {
    color: var(--rose)
}

footer a {
    margin: 0 5px;
    text-underline-offset: 3px
}

/* Startseiten-Korrektur: Hero-Bild, kompakte Kacheln ohne Detailabschnitt */
.hero {
    background-image: linear-gradient(90deg, rgba(18, 10, 16, .62) 0%, rgba(18, 10, 16, .25) 55%, rgba(18, 10, 16, .06) 100%), url("startbild.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat
}

.card-body {
    min-height: 0
}

.card-body .teaser {
    margin-bottom: 0
}

/* Kachel-Buttons: gleiche Position und Sprung zur Vorschau */
.card {
    display: flex;
    flex-direction: column
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.card-body .teaser {
    margin-bottom: 18px
}

.card-btn {
    margin-top: auto;
    font-size: 14px;
    padding: 10px 17px;
    text-align: center
}

#vorschau {
    scroll-margin-top: 76px
}

html {
    scroll-behavior: smooth
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

/* Update: bündige, kompakte Kachel-Footer statt Pillenbuttons */
.card-body {
    flex: 1;
    align-items: stretch
}

.card-btn,
.card .card-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 10px 8px;
    min-height: 38px;
    box-sizing: border-box;
    border-radius: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    text-align: center;
    white-space: normal
}

.card .card-btn:hover {
    background: #78264f
}

/* Externer Veranstaltungslink: kompakter, eckiger Button */
.event a.event-external-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin-top: 14px;
    padding: 11px 18px;
    background-color: #9d346d;
    color: #fff !important;
    border: 0;
    border-radius: 0;
    font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease;
}

.event a.event-external-btn:hover,
.event a.event-external-btn:focus-visible {
    background-color: #78264f;
    color: #fff !important;
    text-decoration: none !important;
}

.event a.event-external-btn:focus-visible {
    outline: 2px solid #78264f;
    outline-offset: 3px;
}

.event .detail.event-link-only {
    display: block;
}

/* Navigation: Social-Media-Icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 30px;
    color: var(--ink);
    text-decoration: none;
    transition: color .2s ease
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--rose)
}

.social-links svg {
    width: 20px;
    height: 20px;
    display: block
}

@media(max-width:820px) {
    nav {
        flex-wrap: wrap;
        gap: 10px
    }

    .nav-right {
        gap: 16px;
        flex-wrap: wrap
    }

    .social-links {
        gap: 10px
    }
}

@media(max-width:520px) {
    nav {
        justify-content: center
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 10px
    }

    .links {
        gap: 15px
    }

    .links a {
        font-size: 13px
    }

    .social-links {
        width: 100%;
        justify-content: center
    }

    .social-links a {
        width: 32px;
        height: 30px
    }
}

/* Footer: Videos erst nach Klick über YouTube laden */
.footer-media {
    padding: 55px 0 45px;
    background: #f9f3f5;
    color: var(--ink)
}

.footer-media h2 {
    font: normal clamp(28px, 4vw, 42px) Georgia, serif;
    margin: 7px 0 25px
}

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

.video-tile {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 9px;
    background: #42243a;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12)
}

.video-launch {
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #673552, #241924);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font: 600 15px system-ui, sans-serif
}

.video-launch:hover,
.video-launch:focus-visible {
    background: linear-gradient(135deg, #9d346d, #42243a)
}

.video-launch:focus-visible {
    outline: 3px solid #e6b5cf;
    outline-offset: -3px
}

.video-play {
    display: grid;
    place-items: center;
    width: 64px;
    height: 45px;
    background: #c52c5b;
    border-radius: 13px;
    font-size: 23px;
    padding-left: 4px
}

.video-tile iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block
}

.audio-feature {
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid #ddcbd4
}

.audio-feature h3 {
    font: normal 23px Georgia, serif;
    margin: 0 0 14px
}

.audio-feature audio {
    display: block;
    width: 100%;
    max-width: 600px
}

.audio-feature p {
    margin: 10px 0 0;
    font-size: 14px
}

.audio-feature a {
    color: var(--rose)
}

@media(max-width:780px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:480px) {
    .video-grid {
        grid-template-columns: 1fr
    }

    .footer-media {
        padding: 38px 0
    }
}

/* Video-Vorschaubilder */
.video-launch {
    position: relative;
    overflow: hidden;
    background: #241924 !important
}

.video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease
}

.video-launch:hover .video-thumb {
    transform: scale(1.045)
}

.video-launch::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, .65));
    pointer-events: none
}

.video-launch .video-play,
.video-launch .video-name {
    position: relative;
    z-index: 1
}

.video-launch .video-play {
    display: grid;
    place-items: center;
    box-shadow: 0 3px 20px #0006
}

/* Vier YouTube-Einbettungen in einer Reihe auf Desktop */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start
}

.video-tile {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
    overflow: hidden
}

.video-tile iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0
}

@media(max-width:900px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:520px) {
    .video-grid {
        grid-template-columns: 1fr
    }
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.video-grid iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

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

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}