/* Überarbeitete Sektionen: About/Booking, Events, Kontakt, Footer.
   Wird nach style.css geladen und überschreibt das alte Template-CSS gezielt. */

:root {
    /* WCAG-AA-taugliche Rotabstufungen: Flaeche, Hover, Text auf dunkel, Text auf hell. */
    --rm-accent: #d81f10;
    --rm-accent-dark: #b81a0d;
    --rm-accent-on-dark: #ff6f60;
    --rm-accent-on-light: #c41c0e;
    --rm-ink: #16120f;
    --rm-dark: #1f1a17;
    --rm-dark-2: #272120;
    --rm-dark-3: #332b28;
    --rm-light: #f3f0ee;
    --rm-muted: #b3aaa4;
    --rm-radius: 6px;
}

/* ==========================================================================
   0 – Theme: warme Trennflächen statt kaltem Grau
   ========================================================================== */

body {
    background-color: var(--rm-ink);
}

section{
    min-height: 85vh;
}

section,
section.white-bg {
    border-bottom: 24px solid var(--rm-ink);
}

.top-border-me {
    border-top: 24px solid var(--rm-ink);
}

.left-half {
    border-right-color: var(--rm-ink);
}

.right-half {
    border-left-color: var(--rm-ink);
}

/* Dekorativer Fixed-Balken des Templates wird nicht mehr verwendet. */
#bottom-frame {
    display: none !important;
}

/* --------------------------------------------------------------- Navigation */

.navbar-default {
    background-color: transparent;
    border: 0;
    transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}

.navbar-default::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    transition: opacity .35s ease;
}

.navbar-default.is-scrolled {
    background-color: rgba(22, 18, 15, .96);
    box-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.navbar-default.is-scrolled::before {
    opacity: 0;
}

.navbar-default .navbar-brand {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    letter-spacing: 2px;
    font-size: 30px;
    color: #fff;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #fff;
}

.navbar-default .nav li a {
    position: relative;
    z-index: 1;
    padding: 24px 16px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--rm-light);
}

.navbar-default .nav li a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 2px;
    background-color: var(--rm-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.navbar-default .nav li a:hover::after,
.navbar-default .nav li a:focus::after,
.navbar-default .nav li.active a::after {
    transform: scaleX(1);
}

.navbar-default .nav li a.nav-cta {
    margin: 14px 0 14px 12px;
    padding: 11px 22px;
    border-radius: 4px;
    background-color: var(--rm-accent);
    color: #fff !important;
}

.navbar-default .nav li a.nav-cta::after {
    display: none;
}

/* style.css faerbt Nav-Links im Hover per !important rot - hier bewusst ueberschrieben. */
.navbar-default .nav li a.nav-cta:hover,
.navbar-default .nav li a.nav-cta:focus,
.navbar-default .nav li a.nav-cta:active {
    background-color: var(--rm-accent-dark);
    color: #fff !important;
}

.navbar-default .navbar-toggle {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .35);
}

@media (max-width: 767px) {
    .navbar-default .navbar-collapse {
        background-color: rgba(22, 18, 15, .98);
        border-top: 1px solid rgba(255, 255, 255, .08);
        max-height: 78vh;
    }

    .navbar-default .nav li a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .navbar-default .nav li a::after {
        display: none;
    }

    .navbar-default .nav li a.nav-cta {
        margin: 14px 20px 18px;
        text-align: center;
    }

    .navbar-default .navbar-brand {
        font-size: 26px;
    }
}

/* --------------------------------------------------------------------- Hero */

#headerwrap.fullheight {
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Innerer Container darf keine eigene Vollhoehe erzwingen, sonst summieren sich die Hoehen. */
#headerwrap > .container-fluid.fullheight {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

#headerwrap .intro-heading img {
    width: min(62vw, 520px);
    max-width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    #headerwrap.fullheight {
        height: auto !important;
        min-height: 100svh;
        max-height: none !important;
        padding: 80px 0 50px;
    }

    #headerwrap .intro-heading img {
        width: min(72vw, 380px);
    }
}

@media (max-width: 767px) {
    #headerwrap.fullheight {
        min-height: 100svh;
        padding: 76px 0 46px;
    }

    #headerwrap .intro-heading img,
    header .intro-text .intro-heading img {
        width: min(74vw, 330px);
        max-width: none;
    }
}

@media (max-width: 460px) {

    #headerwrap .intro-heading img,
    header .intro-text .intro-heading img {
        width: min(78vw, 290px);
        max-width: none;
    }
}

/* ==========================================================================
   1 – About / Booking (alternierende Bild-Text-Reihen)
   ========================================================================== */

#about-us_and_booking {
    background-color: #1f1f1f;
    border-bottom: 0;
}

.feature-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 60px;
    margin-bottom: 90px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row--reverse {
    flex-direction: row-reverse;
}

.feature-media {
    flex: 1 1 45%;
    min-width: 300px;
    margin: 0;
    display: flex;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
}

.feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    pointer-events: none;
}

.feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform .6s ease;
}

.feature-media:hover img {
    transform: scale(1.05);
}

.feature-content {
    flex: 1 1 45%;
    min-width: 300px;
    align-self: center;
    padding: 10px 0;
}

.feature-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rm-accent-on-dark);
    border-left: 3px solid var(--rm-accent-on-dark);
    padding-left: 12px;
    margin-bottom: 18px;
}

.feature-content h3 {
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0 0 22px;
    color: #fff;
}

.feature-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #cfcfcf;
    margin-bottom: 18px;
}

.feature-facts {
    list-style: none;
    margin: 28px 0 30px;
    padding: 0;
}

.feature-facts li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    font-size: 15px;
    color: var(--rm-light);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.feature-facts li:last-child {
    border-bottom: 0;
}

.feature-facts i {
    color: var(--rm-accent-on-dark);
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.feature-actions {
    margin: 0;
}

@media (max-width: 991px) {
    .feature-row {
        gap: 40px;
        margin-bottom: 60px;
    }

    .feature-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {

    .feature-row,
    .feature-row--reverse {
        flex-direction: column;
        gap: 28px;
        margin-bottom: 55px;
    }

    .feature-media,
    .feature-content {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }

    .feature-media img {
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
}

/* ==========================================================================
   2 – Events (Karten-Grid + Flyer-Viewer)
   ========================================================================== */

#events {
    background-color: #fcfcfc;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 28px;
}

.event-card {
    display: flex;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 31, 16, .5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .13);
}

.event-card .event-date {
    flex: 0 0 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 20px 8px;
    background: linear-gradient(160deg, var(--rm-accent) 0%, var(--rm-accent-dark) 100%);
    color: #fff;
}

.event-card .event-day {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.event-card .event-month {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-card .event-year {
    font-size: 12px;
    opacity: .8;
}

.event-card .event-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
}

.event-card .event-title {
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: var(--rm-dark);
}

.event-card .event-text {
    font-size: 15px;
    line-height: 1.7;
    color: #5f5f5f;
    margin: 0 0 20px;
    white-space: pre-line;
}

.event-card .event-flyer-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 9px 18px;
    font-size: 14px;
}

.event-empty {
    text-align: center;
    font-size: 18px;
    color: #5f5f5f;
    padding: 10px 0 30px;
}

.event-flyer {
    margin-top: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
}

.event-flyer[hidden] {
    display: none;
}

.event-flyer-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
}

.event-flyer-head h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rm-dark);
}

#event-flyer-view {
    height: 75vh;
    min-height: 420px;
}

@media (max-width: 767px) {
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card .event-date {
        flex-basis: 74px;
    }

    .event-card .event-body {
        padding: 20px;
    }

    #event-flyer-view {
        height: 65vh;
        min-height: 320px;
    }
}

/* ==========================================================================
   3 – Kontakt
   ========================================================================== */

#contact {
    background-color: var(--rm-dark);
    background-image: linear-gradient(rgba(0, 0, 0, .78), rgba(0, 0, 0, .88)), url('../img/bgContact.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 0;
}

#contact h2.section-heading,
#contact .contact-card,
#contact p {
    color: var(--rm-light);
}

#contact .contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

#contact .contact-card {
    flex: 1 1 420px;
    background-color: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rm-radius);
    padding: 45px 40px;
}

#contact .contact-card h3 {
    font-size: 22px;
    letter-spacing: 1px;
    margin: 0 0 30px;
    color: #fff;
}

#contact .contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#contact .contact-list li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

#contact .contact-list li:first-child {
    padding-top: 0;
}

#contact .contact-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

#contact .contact-list h4 {
    font-size: 17px;
    margin: 0 0 6px;
    color: #fff;
    letter-spacing: .5px;
}

#contact .contact-list p {
    font-size: 15px;
    line-height: 1.65;
    color: #cfcfcf;
    margin: 0 0 12px;
}

#contact .phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    padding: 9px 18px;
    border: 1px solid var(--rm-accent);
    border-radius: var(--rm-radius);
    transition: background-color .2s ease;
}

#contact .phone-link:hover,
#contact .phone-link:focus {
    background-color: var(--rm-accent);
    text-decoration: none;
}

#contact .phone-link i {
    color: var(--rm-accent-on-dark);
    transition: color .2s ease;
}

#contact .phone-link:hover i {
    color: #fff;
}

#contact .contact-address {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #dcdcdc;
}

#contact .contact-map {
    height: 320px;
    border-radius: var(--rm-radius);
    overflow: hidden;
    margin-bottom: 35px;
}

#contact .contact-map iframe {
    display: block;
}

#contact .opening-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

#contact .opening-hours li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 12px;
    border-radius: 4px;
    color: #dcdcdc;
}

#contact .opening-hours li:nth-child(odd) {
    background-color: rgba(255, 255, 255, .04);
}

#contact .opening-hours li.is-today {
    background-color: rgba(216, 31, 16, .3);
    color: #fff;
    font-weight: 600;
}

#contact .opening-hours .day {
    letter-spacing: .5px;
}

@media (max-width: 767px) {
    #contact .contact-card {
        flex: 1 1 100%;
        padding: 30px 22px;
    }
}

/* ==========================================================================
   4 – Footer
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a !important;
    border-top: 3px solid var(--rm-accent);
    padding: 55px 0 0;
}

.site-footer,
.site-footer p {
    color: var(--rm-muted);
}

.site-footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 40px;
}

.site-footer .footer-col {
    flex: 1 1 240px;
}

.site-footer .footer-brand {
    font-family: 'Vivaldi', cursive, serif;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    margin: 0 0 15px;
}

.site-footer .footer-brand span {
    color: var(--rm-accent-on-dark);
}

.site-footer h4 {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 18px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.site-footer a {
    color: var(--rm-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--rm-accent);
    text-decoration: none;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #4a4a4a;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 17px;
}

.site-footer .footer-social a:hover {
    border-color: var(--rm-accent);
    background-color: var(--rm-accent);
    color: #fff;
}

.site-footer .footer-bottom {
    border-top: 1px solid #332b28;
    padding: 22px 0 26px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.site-footer .footer-bottom p {
    margin: 0;
}

.site-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 40px;
        text-align: center;
    }

    .site-footer .footer-grid {
        gap: 35px;
        text-align: center;
    }

    .site-footer .footer-col {
        flex: 1 1 100%;
    }

    .site-footer .footer-social {
        display: flex;
        justify-content: center;
    }

    .site-footer .footer-social a {
        margin: 0 4px;
    }

    .site-footer .footer-col ul li a {
        display: inline-block;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 14px;
        padding-bottom: 75px;
    }

    .site-footer .footer-legal {
        justify-content: center;
        gap: 14px 18px;
    }
}

/* Footer im Unterseiten-Layout ist fixiert – dort nur die Optik angleichen. */
.site-footer--compact {
    padding: 0;
    border-top-width: 2px;
}

.site-footer--compact .footer-bottom {
    border-top: 0;
    padding: 14px 0;
    justify-content: center;
}

/* ==========================================================================
   5 – Kontrast & Fokus (WCAG AA)
   ========================================================================== */

/* style.css setzt .theme-accent-color per !important; hier kontextabhaengig korrigiert. */
.theme-accent-color {
    color: var(--rm-accent-on-light) !important;
}

.dark-wrapper .theme-accent-color,
#headerwrap .theme-accent-color,
#about-us_and_booking .theme-accent-color,
#events .icon-tabs .theme-accent-color,
#contact .theme-accent-color,
.site-footer .theme-accent-color,
.navbar-default .theme-accent-color {
    color: var(--rm-accent-on-dark) !important;
}

.btn-red,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    border-color: var(--rm-accent);
    background-color: var(--rm-accent);
    color: #fff !important;
}

.btn-red:hover,
.btn-red:focus,
.btn-red:active,
.btn-red.active {
    border-color: var(--rm-accent-dark);
    background-color: var(--rm-accent-dark);
    color: #fff !important;
}

.btn-white {
    border-color: #fff;
    color: #fff !important;
}

.btn-white:hover,
.btn-white:focus {
    background-color: #fff;
    color: #1f1a17 !important;
}

/* Links im Fliesstext duerfen sich nicht allein ueber die Farbe abheben. */
#events .event-empty a,
.feature-content a:not(.btn),
#contact .contact-list p a:not(.phone-link),
.site-footer .footer-bottom a,
.cc-text a,
.cc-details a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a {
    color: #c6bdb7;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--rm-accent-on-dark);
}

.site-footer .footer-bottom .theme-accent-color:hover {
    color: #fff !important;
}

#events .event-card .event-text {
    color: #565150;
}

/* Sichtbarer Tastaturfokus auf allen interaktiven Elementen. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--rm-accent-on-dark);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
