/* ============================================ */
/* Kulturtragflächen – Sanfte Modernisierung v3 */
/* Ergänzt bestehende Styles behutsam.          */
/* Kein Hero-CTA, kein Info-Box-Override,       */
/* kein Footer-Override.                        */
/* ============================================ */

/* --- Grün-Palette als CSS Custom Properties --- */
:root {
    --green-primary: #7cfb30;
    --green-dark: #5ab822;
    --green-deeper: #3d8a14;
    --green-soft: #a8f06a;
    --green-pale: #d4f5b5;
    --green-bg: rgba(124, 251, 48, 0.08);
    --green-glow: 0 0 20px rgba(124, 251, 48, 0.15);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.3s;
}

/* ============================================ */
/* Custom Scrollbar – Green Accent (seitenweit) */
/* ============================================ */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7cfb30, #5cc420);
    border-radius: 5px;
    border: 2px solid #1a1a1a;
    min-height: 40px;
    transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8fff45, #6ae020);
}

/* Dark scrollbar thumb for light/green backgrounds */
body.scrollbar-dark::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #232323, #444);
}

body.scrollbar-dark::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #333, #555);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #7cfb30 #1a1a1a;
}

html.scrollbar-dark {
    scrollbar-color: #232323 #1a1a1a;
}

/* Track always slightly visible when page is scrollable */
@supports selector(::-webkit-scrollbar) {
    html {
        overflow-y: scroll;
    }
}


/* ============================================ */
/* 1. Schrift-Vereinheitlichung                 */
/* h1 → Bebas Neue Pro (bold, Berlin Style)    */
/* h2 → AmaticSC (Handschrift bleibt)          */
/* h3 → Bebas Neue Pro                          */
/* Fließtext → Inter                            */
/* ============================================ */

h1 {
    font-family: "bebas-neue-pro", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

h2 {
    font-family: "AmaticSC", sans-serif;
    font-weight: normal;
    text-transform: uppercase;
}

h3 {
    font-family: "bebas-neue-pro", sans-serif;
}

/* Fließtext: Inter für bessere Lesbarkeit */
p, li, td, th, dd, dt,
.text-container p,
.news-front-body p,
.news-front-spell,
.subslider p,
.front-buehne-image-content,
.field--name-body p,
.node-meta,
.legal-page p,
.legal-page li,
.about-page p {
    font-family: 'Inter', 'bebas-neue-pro', sans-serif;
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: #232323;
}

/* Buttons: Bebas Neue Pro passend zum Logo */
button,
.button,
.action a,
#infolink,
.impressionen-cta-btn {
    font-family: "bebas-neue-pro", sans-serif;
}

/* Button-Overrides: AmaticSC aus style.css → Bebas Neue Pro */
.button.green button,
.button.white button,
#block-views-block-kulturtragfestival-block-1 .info a {
    font-family: "bebas-neue-pro", sans-serif;
    font-weight: 600;
}

/* Kulturtragfestival: h3 auf Bebas Neue Pro */
#block-views-block-kulturtragfestival-block-1 .info h3,
#block-views-block-kulturtragfestival-block-1 .view-footer h3 {
    font-family: "bebas-neue-pro", sans-serif;
}

/* Brand-Heading: Farbwechsel wie Logo */
.brand-heading {
    font-family: "bebas-neue-pro", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

.brand-schwarz { color: #232323; }
.brand-gruen { color: #7cfb30; }
.brand-weiss { color: #fff; }

/* Footer-Menüs: AmaticSC (Handschrift) */
#footer-mainmenu ul li a,
.region-footer .menu-wrapper ul li a {
    font-family: "AmaticSC", sans-serif;
    text-transform: uppercase;
}

/* Headermenu CTA-Button (letzter Menüpunkt): Text vertikal zentrieren */
#headermenu .menu-wrapper > ul > li:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================ */
/* 2. Smooth Scrolling                          */
/* ============================================ */

html {
    scroll-behavior: smooth;
}


/* ============================================ */
/* 3. Subtile Transitions auf Links & Buttons   */
/* ============================================ */

a,
button,
.action a,
#infolink {
    transition: color var(--duration) var(--ease-out),
                background var(--duration) var(--ease-out),
                border-color var(--duration) var(--ease-out),
                transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}


/* ============================================ */
/* 4. Grün-Hover-Variationen                    */
/* ============================================ */

.button.green button:hover {
    background: var(--green-dark);
    color: #fff;
    border-color: var(--green-dark);
}

.info a#infolink:hover {
    background: var(--green-dark);
    color: #fff;
    border-color: var(--green-dark);
    transform: translateY(-1px);
}

.action a.active {
    background: var(--green-primary);
}

.action a:hover:not(.active) {
    background: var(--green-bg);
    color: var(--green-dark);
}


/* ============================================ */
/* 5. Bild-Hover-Effekte                        */
/* ============================================ */

.front-buehne-image img,
.news-front-image img {
    transition: transform 0.5s var(--ease-out);
}

.front-buehne:hover .front-buehne-image img,
.news-front-page:hover .news-front-image img {
    transform: scale(1.03);
}

.front-buehne-image,
.news-front-image {
    overflow: hidden;
}


/* ============================================ */
/* 6. News-Bereich: modernes Karten-Layout      */
/* ============================================ */

/* Mehr Seitenabstand */
#block-views-block-news-rund-ums-kulturtragfestival-block-1 .content {
    padding: 0 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid mit mehr Gap und sauberer Proportion */
#block-views-block-news-rund-ums-kulturtragfestival-block-1 .content .view-content {
    gap: 40px;
}

/* News-Karten als saubere Karten */
.news-front-page {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
}

.news-front-page:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Bild sauber einpassen – kein Offset-Hack */
#block-views-block-news-rund-ums-kulturtragfestival-block-1 .news-front-image {
    margin: 0;
    padding-top: 56.25%;
}

#block-views-block-news-rund-ums-kulturtragfestival-block-1 .news-front-image::after {
    display: none;
}

#block-views-block-news-rund-ums-kulturtragfestival-block-1 .news-front-image a img {
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text-Bereich mit Padding in der Karte */
.news-front-page .news-front-inline {
    padding: 20px 24px 0;
}

.news-front-page .news-front-inline h3 {
    font-size: 22px;
    line-height: 1.3;
    padding: 0;
}

.news-front-page .news-front-body {
    padding: 8px 24px 24px;
}

.news-front-page .news-front-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Spell-Text: Handschrift, zentriert, lockerer Untertitel-Vibe */
#block-views-block-news-rund-ums-kulturtragfestival-block-1 .content .view-header .news-front-spell {
    font-family: "AmaticSC", sans-serif;
    font-weight: normal;
    font-size: 36px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 0 35px;
    margin: 0 auto;
    max-width: 700px;
}

#block-views-block-news-rund-ums-kulturtragfestival-block-1 .news-front-spell a {
    color: var(--green-dark);
    text-decoration: none;
    border-bottom: 2px solid var(--green-primary);
}

#block-views-block-news-rund-ums-kulturtragfestival-block-1 .news-front-spell a:hover {
    color: var(--green-primary);
}

/* News-Headline Links sauber */
.news-front-headline a {
    color: inherit;
    text-decoration: none;
}

.news-front-headline a:hover {
    color: var(--green-dark);
}

/* News-Datum */
.news-front-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

@media (max-width: 768px) {
    #block-views-block-news-rund-ums-kulturtragfestival-block-1 .content {
        padding: 0 20px;
    }

    .news-front-page .news-front-inline {
        padding: 16px 16px 0;
    }

    .news-front-page .news-front-body {
        padding: 8px 16px 20px;
    }
}


/* ============================================ */
/* 7. Slider-Pfeile                             */
/* ============================================ */

.imageslider .slick-prev,
.imageslider .slick-next {
    transition: opacity var(--duration) var(--ease-out),
                background var(--duration) var(--ease-out);
}

.imageslider .slick-prev:hover,
.imageslider .slick-next:hover {
    opacity: 0.9;
}


/* ============================================ */
/* 8. Scroll-Reveal-Animationen                 */
/* ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out),
                transform 0.6s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }


/* ============================================ */
/* 9. Impressionen: Hover verfeinert            */
/* ============================================ */

.impressionen-slide-inner img {
    transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out), opacity 0.6s var(--ease-out);
}

.impressionen-slide:hover .impressionen-slide-inner img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.impressionen-cta-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--green-glow);
}


/* ============================================ */
/* 10. Impressionen: Grün-zu-Schwarz Übergang   */
/* Diagonale Farbbalken – grafisch, bold, urban */
/* ============================================ */

.impressionen-page {
    position: relative;
    padding-bottom: 80px;
    margin-top: 40px;
}

.impressionen-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 35px;
    background: linear-gradient(
        135deg,
        #7cfb30  0%,  #7cfb30 14%,
        #52d626 14%,  #52d626 28%,
        #37a41c 28%,  #37a41c 42%,
        #1f6d12 42%,  #1f6d12 56%,
        #0f3a09 56%,  #0f3a09 72%,
        #091f05 72%,  #091f05 86%,
        #111    86%,  #111   100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Verhindere horizontalen Scrollbar durch 100vw-Elemente */
body {
    overflow-x: hidden;
}


/* ============================================ */
/* 11. Archive: Teaser-Karten mit Hover         */
/* ============================================ */

.node--type-news.node--view-mode-teaser {
    transition: transform var(--duration) var(--ease-out),
                box-shadow var(--duration) var(--ease-out);
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.node--type-news.node--view-mode-teaser:last-child {
    border-bottom: none;
}

.node--type-news.node--view-mode-teaser:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.node--type-news .field--name-field-image {
    overflow: hidden;
    border-radius: 4px;
}

.node--type-news .field--name-field-image img {
    transition: transform 0.5s var(--ease-out);
    display: block;
    width: 100%;
    height: auto;
}

.node--type-news:hover .field--name-field-image img {
    transform: scale(1.03);
}

.node--type-news h2 a {
    text-decoration: none;
    color: inherit;
}

.node--type-news h2 a:hover {
    color: var(--green-dark);
}

.node-meta {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}


/* ============================================ */
/* 12. Single/Page: sauberes Artikel-Layout     */
/* ============================================ */

article.post,
article.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    animation: articleFadeIn 0.5s var(--ease-out) both;
}

@keyframes articleFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titel */
article.post h1,
article.page h1 {
    font-size: 48px;
    font-size: 3rem;
    line-height: 1.1;
    color: #232323;
    margin-bottom: 24px;
}

/* Beitragsbild: begrenzte Höhe, abgerundet */
article.post .field--name-field-image,
article.page .field--name-field-image {
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 32px;
    max-height: 400px;
}

article.post .field--name-field-image img,
article.page .field--name-field-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fließtext */
article.post .field--name-body p,
article.page .field--name-body p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

article.post .field--name-body strong,
article.page .field--name-body strong {
    color: #232323;
}

article.post .field--name-body a,
article.page .field--name-body a {
    color: var(--green-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--green-primary);
}

article.post .field--name-body a:hover,
article.page .field--name-body a:hover {
    color: var(--green-primary);
}

/* Datum/Meta */
article.post .node-meta,
article.page .node-meta {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    font-size: 14px;
    color: #999;
}

@media (max-width: 768px) {
    article.post h1,
    article.page h1 {
        font-size: 32px;
        font-size: 2rem;
    }

    article.post .field--name-field-image,
    article.page .field--name-field-image {
        max-height: 260px;
    }
}


/* ============================================ */
/* 13. 404-Seite                                */
/* ============================================ */

.error-404 {
    text-align: center;
    padding: 80px 20px;
    animation: articleFadeIn 0.5s var(--ease-out) both;
}

.error-404 h1 {
    font-size: 72px;
    font-size: 4.5rem;
    color: var(--green-primary);
    margin-bottom: 16px;
}

.error-404 .field--name-body p {
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto 20px;
    color: #555;
}

.error-404 .button.green {
    display: inline-block;
    text-decoration: none;
}


/* ============================================ */
/* 14. Dezente Grün-Akzente                     */
/* ============================================ */

.view-header .main button:hover {
    color: var(--green-dark);
}


/* ============================================ */
/* 15. Selection-Farbe                          */
/* ============================================ */

::selection {
    background: var(--green-pale);
    color: #232323;
}

::-moz-selection {
    background: var(--green-pale);
    color: #232323;
}


/* ============================================ */
/* 16. Subtiler Scrollbar (Webkit)              */
/* ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F2F2F2;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}


/* ============================================ */
/* 17. Pagination (Archive)                     */
/* ============================================ */

.pager .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pager .nav-links a,
.pager .nav-links span {
    font-family: "bebas-neue-pro", sans-serif;
    font-size: 18px;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
}

.pager .nav-links a:hover {
    background: var(--green-bg);
    color: var(--green-dark);
}

.pager .nav-links .current {
    background: var(--green-primary);
    color: #232323;
}


/* ============================================ */
/* 18. Kulturtragfestival-Bereich kompakter     */
/* Kein 100vh, alles enger zusammen             */
/* ============================================ */

#block-views-block-kulturtragfestival-block-1 {
    min-height: auto;
    padding: 40px 25px;
}

/* Grid-Rows weniger Höhe */
#block-views-block-kulturtragfestival-block-1 .view-kulturtragfestival {
    grid-template-rows: 80px auto auto auto;
}

/* Tab-Buttons kleiner */
#block-views-block-kulturtragfestival-block-1 .view-header #slide-control-main button {
    height: 65px;
    font-size: 28px;
}

/* Text-Bereich weniger Padding */
#block-views-block-kulturtragfestival-block-1 .view-content {
    padding: 25px 30px 80px 30px;
}

/* Bilder im Slider deutlich kleiner */
#block-views-block-kulturtragfestival-block-1 .image-style-anreise-bild {
    max-height: 260px;
    width: 100%;
    object-fit: cover;
}

/* Bild-Beschreibung kompakter */
#block-views-block-kulturtragfestival-block-1 .front-buehne-image-content {
    font-size: 15px;
    margin: 10px 0 0;
    padding: 0 20px;
}

/* Anreise-Überschriften kleiner */
#block-views-block-kulturtragfestival-block-1 .view-footer h3 {
    font-size: 32px;
    margin: 10px 0 0;
    padding: 0 20px;
}

/* Anreise-Text kompakter */
#block-views-block-kulturtragfestival-block-1 .subslider {
    padding: 0 20px;
}

#block-views-block-kulturtragfestival-block-1 .subslider p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Anreise-Tabs schmaler */
#block-views-block-kulturtragfestival-block-1 .action {
    margin-top: 15px;
}

#block-views-block-kulturtragfestival-block-1 .action a {
    padding: 12px 10px;
    font-size: 15px;
}

/* Info-Box kompakter */
#block-views-block-kulturtragfestival-block-1 .info {
    padding: 20px 30px;
}

#block-views-block-kulturtragfestival-block-1 .info h3 {
    font-size: 28px;
    margin: 0 0 8px;
}

#block-views-block-kulturtragfestival-block-1 .info p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* Slick-Pfeile höher positionieren für kleinere Bilder */
#block-views-block-kulturtragfestival-block-1 .slick-arrow {
    top: 130px;
}

/* Pop-Up Slider Bilder kleiner als Hauptbühne */
.slider-container.popup .image-style-anreise-bild {
    max-height: 220px;
}

/* --- Info-Box: Slide-Animation bei Pop-Up --- */
/* JS verschiebt die Box per DOM ins .view-footer (unter den Slider) */

/* Wenn Info-Box im view-footer sitzt: kein Grid-Positionierung nötig, */
/* sie fließt einfach unter den Slider-Content */
#block-views-block-kulturtragfestival-block-1 .view-footer > .info {
    margin: 20px 0 0;
    transform: none;
    animation: infoSlideIn 0.4s var(--ease-out) both;
}

/* Zurück nach links (wenn zurück im Grid) */
#block-views-block-kulturtragfestival-block-1 .view-kulturtragfestival:not(.popup-active) .info {
    animation: infoSlideLeft 0.4s var(--ease-out) both;
}

@keyframes infoSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes infoSlideLeft {
    from {
        opacity: 0.5;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 960px) {
    #block-views-block-kulturtragfestival-block-1 {
        padding: 20px 10px;
    }

    #block-views-block-kulturtragfestival-block-1 .image-style-anreise-bild {
        max-height: 200px;
    }
}


/* ============================================ */
/* 19. Über-uns Seite                           */
/* ============================================ */

.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.about-page h1 {
    font-size: 72px;
    font-size: 4.5rem;
    color: var(--green-primary);
    margin-bottom: 40px;
}

.about-page h2 {
    color: var(--green-primary);
    margin-top: 50px;
    margin-bottom: 16px;
}

.about-page h2:first-child {
    margin-top: 0;
}

.about-page p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 14px;
}

.about-page a {
    color: var(--green-dark);
    text-decoration: none;
}

.about-page a:hover {
    color: var(--green-primary);
}


/* ============================================ */
/* 20. Legal Pages (Datenschutz, Impressum)     */
/* ============================================ */

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-page h1 {
    font-size: 72px;
    font-size: 4.5rem;
    color: var(--green-primary);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 24px;
    color: #232323;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--green-dark);
    text-decoration: none;
}

.legal-page a:hover {
    color: var(--green-primary);
}
