/* Gemeinschaft Kalvarienberg – Grunddesign, Bootstrap 5, TYPO3 */
:root {
  --primary:#34483c; --primary-dark:#25372d; --accent:#79684e;
  --gold:#d9b66e; --sandstone:#e0d3bf; --background:#f4f0e7;
  --page-background:var(--background); --text:#302c27; --text-light:#655e55; --white:#fff;
  --font-headline:"Playfair Display",Georgia,serif;
  --font-body:"Source Sans 3",system-ui,sans-serif;
  --font-menu:"Montserrat",system-ui,sans-serif;
  --bs-primary:var(--primary); --bs-primary-rgb:52,72,60;
  --bs-body-font-family:var(--font-body); --bs-body-font-size:17px;
  --bs-body-line-height:1.7; --bs-body-color:var(--text); --bs-body-bg:var(--background);
  --bs-link-color:var(--primary); --bs-link-color-rgb:52,72,60;
  --bs-link-hover-color:var(--accent); --bs-link-hover-color-rgb:121,104,78;
}
html { scroll-padding-top:20px; }
body { font-family:var(--bs-body-font-family); font-size:var(--bs-body-font-size); line-height:var(--bs-body-line-height); color:var(--bs-body-color); background:var(--bs-body-bg); }
h1,h2,h3,h4 { font-family:var(--font-headline); color:var(--primary); line-height:1.2; font-weight:500; }
h1 { font-size:clamp(2.2rem,4vw,3.8rem); }
h2 { font-size:clamp(1.7rem,3vw,2.7rem); }
h3 { font-size:clamp(1.25rem,2vw,1.7rem); }
a { color:var(--primary); text-decoration-color:var(--accent); }
a:hover { color:var(--accent); }
::selection { background:var(--primary); color:#fff; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.frame-header { margin-bottom:1.5rem; }
.frame-header .element-subheader { color:var(--accent); font-size:clamp(1.1rem,2vw,1.6rem); font-weight:400; }
.frame-header::after { content:""; display:block; width:58px; height:2px; background:var(--accent); margin-top:1rem; }
.btn-primary { --bs-btn-color:#fff; --bs-btn-bg:var(--primary); --bs-btn-border-color:var(--primary); --bs-btn-hover-color:#fff; --bs-btn-hover-bg:var(--primary-dark); --bs-btn-hover-border-color:var(--primary-dark); --bs-btn-active-color:#fff; --bs-btn-active-bg:var(--primary-dark); --bs-btn-active-border-color:var(--primary-dark); --bs-btn-focus-shadow-rgb:52,72,60; --bs-btn-disabled-bg:var(--primary); --bs-btn-disabled-border-color:var(--primary); }
.btn-outline-primary { --bs-btn-color:var(--primary); --bs-btn-border-color:var(--primary); --bs-btn-hover-bg:var(--primary); --bs-btn-hover-border-color:var(--primary); --bs-btn-hover-color:#fff; --bs-btn-active-bg:var(--primary-dark); --bs-btn-active-border-color:var(--primary-dark); --bs-btn-active-color:#fff; --bs-btn-focus-shadow-rgb:52,72,60; --bs-btn-disabled-color:var(--primary); --bs-btn-disabled-border-color:var(--primary); }
.button,.more,input[type="submit"]:not(.btn) { display:inline-block; padding:.7rem 1.25rem; border:1px solid var(--primary); border-radius:3px; background:var(--primary); color:#fff; text-decoration:none; }
.button:hover,.more:hover,input[type="submit"]:not(.btn):hover { background:var(--primary-dark); color:#fff; }
.blau,.waldgruen { background:var(--primary); color:#fff; }
:is(.blau,.waldgruen) :is(h1,h2,h3,h4,a) { color:#fff; }
.grau,.sandstein { background:var(--sandstone); }
.pergament { background:var(--background); }
.card { --bs-card-bg:#fff; --bs-card-border-color:var(--sandstone); --bs-card-border-radius:4px; }
/* Seitentitel */
main#main { margin-top:0; padding-top:0; }
.headerimage-outer { margin-top:0; }
.page-title { background:var(--background); padding:clamp(30px,5vw,65px) 0; margin-bottom:clamp(25px,4vw,60px); border-bottom:1px solid var(--sandstone); }
.page-title h1 { margin:0; font-size:clamp(2rem,3.5vw,3.5rem); font-weight:400; letter-spacing:-.025em; }
.page-title h1::after { content:""; display:block; width:75px; height:3px; background:var(--accent); margin-top:20px; }
.back-button { display:inline-flex; align-items:center; gap:12px; margin-top:40px; color:var(--primary); text-decoration:none; }
#pageid1 .back-button { display:none; }
/* Footer */
.site-footer { background:linear-gradient(160deg,var(--primary),var(--primary-dark)); color:#fff; margin-top:clamp(3rem,6vw,5rem); }
.footer-container { width:min(calc(100% - 40px),1320px); margin-inline:auto; }
.footer-main { padding:clamp(2.5rem,5vw,5rem) 0; }
.footer-main .footer-container { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2.5rem; }
.site-footer :is(h1,h2,h3,h4) { color:#fff; }
.footer-heading { font-family:var(--font-body); font-size:1.1rem; font-weight:600; letter-spacing:.12em; }
.footer-heading::after,.footer-accent-line { content:""; display:block; width:58px; height:2px; background:var(--gold); margin:1.5rem 0; }
.site-footer a { color:var(--background); text-decoration:none; }
.site-footer a:hover { color:var(--sandstone); text-decoration:underline; }
.footer-links,.footer-legal { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.6rem; }
.footer-contact-item { display:flex; gap:.75rem; margin-bottom:1rem; }
.footer-contact-content { display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
.footer-contact-icon,.footer-links i,.footer-social i { color:var(--gold); width:22px; text-align:center; flex-shrink:0; }
.footer-logo { display:block; background:var(--background); border-radius:6px; padding:18px 22px; }
.footer-logo img { display:block; width:100%; max-width:360px; height:auto; }
.footer-bottom { background:var(--primary-dark); border-top:1px solid #d9b66e66; padding:1.2rem 0; }
.footer-bottom-inner,.footer-legal { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; }
.footer-copyright { margin:0; font-size:.9rem; }
.footer-menu { background:var(--sandstone); line-height:3rem; }
.contact-map-wrapper { overflow:hidden; border:1px solid var(--sandstone); border-radius:4px; }
.contact-map-wrapper iframe { display:block; width:100%; height:clamp(320px,45vw,520px); border:0; }
@media(max-width:767.98px) { .footer-main .footer-container { grid-template-columns:1fr; gap:2rem; } .page-title { padding:30px 0; margin-bottom:25px; } }
/* TYPO3: Vollbreite, Slider und Frames */
.hunderter :is(.megazeil,.ce-outer,.ce-row,.ce-gallery,.ce-textpic,.image) { width:100% !important; }
.hunderter,.hunderter .frame-container-default { max-width:100% !important; padding:0 !important; }
.hunderter :is(.container,.ce-column,.frame) { padding:0 !important; }
.hunderter :is(.frame,.frame-container-default) { margin:0; }
.hunderter .frame { width:100%; height:auto; }
.hunderter .ce-gallery[data-ce-columns="3"] .ce-column { width:33.33333% !important; }
.hunderter .ce-gallery img { width:100%; padding:0; }
.hunderter .textmedia { gap:0; }
.hunderter hr { height:0; padding:2% 0; background:none !important; }
.headerimage { position:relative; width:100%; overflow:hidden; margin-bottom:.5%; }
.headerimage :is(.carousel-image,.carousel-image picture,.carousel-image img) { display:block; width:100%; }
.headerimage .carousel-image { z-index:1; }
.headerimage :is(.carousel-content-inner,.frame-container) { min-width:100% !important; max-width:none !important; padding:0; margin:0; }
.headerimage .carousel-content { height:inherit; }
.headerimage .frame { padding:0; }
.headerimage .carousel .item { height:auto; }
.headerimage .carousel-text p { text-align:center; background:#ffffff8c; font-size:clamp(1.5rem,4vw,3rem); padding:1% .5%; }
.frame-space-before-extra-small { margin-top:.5rem !important; }
.frame-space-before-small { margin-top:1rem !important; }
.frame-space-before-medium { margin-top:2rem !important; }
.frame-space-before-large { margin-top:3rem !important; }
.frame-space-after-extra-small { margin-bottom:.5rem !important; }
.frame-space-after-small { margin-bottom:1rem !important; }
.frame-space-after-medium { margin-bottom:2rem !important; }
.frame-space-after-large { margin-bottom:3rem !important; }
:is(.frame-custom-22,.frame-custom-27) .gallery-item img { width:80%; }
:is(.frame-custom-23,.frame-custom-28) .gallery-item img { width:60%; }
:is(.frame-custom-24,.frame-custom-29) .gallery-item img { width:40%; }
:is(.frame-custom-25,.frame-custom-30) .gallery-item img { width:20%; }
:is(.frame-custom-26,.frame-custom-31) .gallery-item img { width:10%; }
:is(.frame-custom-27,.frame-custom-28,.frame-custom-29,.frame-custom-30,.frame-custom-31) .gallery-item img { display:block; margin-inline:0; }


/* =========================================================
   PERMANENTE AKTIONSBUTTONS
   ========================================================= */

.floating-actions {
    position: fixed;
    right: 20px;
    top: 40%;
    z-index: 1030;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-actions .action-button {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 60px;
    padding: 15px 24px;

    border: 2px solid rgba(255,255,255,.8);
    border-radius: 8px;

    color: #fff !important;
    font-family: var(--font-menu, system-ui, sans-serif);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;

    box-shadow: 0 5px 25px rgba(0,0,0,.18);

    transition: transform .25s ease,
                box-shadow .25s ease,
                background .25s ease;
}

/* Spenden – Gold */

.floating-actions .action-donate {
    background: linear-gradient(135deg, #a8792e, #80551c);
}

/* Mitgliedschaft – Waldgrün */

.floating-actions .action-member {
    background: linear-gradient(135deg, #4e6852, #25372d);
}

/* Icons */

.floating-actions .action-button i {
    width: 28px;
    font-size: 25px;
    text-align: center;
}

/* Hover */

.floating-actions .action-button:hover {
    transform: translateX(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.floating-actions .action-button:focus-visible {
    outline: 3px solid #c7a76a;
    outline-offset: 3px;
}

/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 767.98px) {

    .floating-actions {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        flex-direction: row;
        gap: 6px;

        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));

        background: rgba(244,240,231,.96);
        box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    }

    .floating-actions .action-button {
        flex: 1;
        justify-content: center;
        gap: 8px;

        min-height: 48px;
        padding: 10px 5px;

        font-size: 13px;
        border: 0;
        border-radius: 5px;
        box-shadow: none;
    }

    .floating-actions .action-button i {
        width: auto;
        font-size: 19px;
    }

    .floating-actions .action-button:hover {
        transform: none;
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-actions .action-button {
        transition: none;
    }
}


/* =========================================================
   KALVARIENBERG – HERO SLIDER
   ========================================================= */

#carousel-2 {
    position: relative;
    overflow: hidden;
    background: #34483c;
}

#carousel-2 .carousel-item {
    position: relative;
    height: clamp(520px, 43vw, 780px);
    min-height: 0;
}

/* Hintergrundbild */

#carousel-2 .carousel-backgroundimage-container,
#carousel-2 .carousel-backgroundimage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#carousel-2 .carousel-backgroundimage {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dunkelgrüner Verlauf */

#carousel-2 .carousel-backgroundimage-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(30, 52, 42, .94) 0%,
        rgba(30, 52, 42, .80) 22%,
        rgba(30, 52, 42, .45) 43%,
        rgba(30, 52, 42, .08) 65%,
        transparent 85%
    );
}

/* Position des Textes */

#carousel-2 .carousel-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 100%;
    height: 100%;
    padding: 0;
}

#carousel-2 .carousel-content-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: min(calc(100% - 140px), 1440px);
    max-width: 1440px;
    height: 100%;

    margin: 0 auto;
    padding: 45px 0;
}

#carousel-2 .carousel-text-inner {
    width: 56%;
    max-width: 780px;
    padding: 0;

    background: transparent !important;
    text-align: left !important;
}

/* Obertitel */

#carousel-2 .carousel-text-inner::before {
    content: "St. Johann ob Hohenburg";

    display: block;
    width: fit-content;

    margin-bottom: 28px;
    padding-bottom: 15px;

    border-bottom: 3px solid #d9b66e;

    color: #f4f0e7;

    font-family: var(--font-headline, Georgia, serif);
    font-size: clamp(17px, 1.5vw, 24px);
    font-style: italic;
    letter-spacing: .04em;
}

/* Hauptüberschrift */

#carousel-2 .carousel-header {
    display: block !important;

    margin: 0 0 28px;
    padding: 0;

    background: transparent !important;
    color: #fffaf0 !important;

    font-family: var(--font-headline, Georgia, serif) !important;
    font-size: clamp(38px, 4vw, 76px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.08;
    letter-spacing: -.025em;

    text-align: left !important;
    text-transform: none;

    text-shadow: 0 3px 20px rgba(0,0,0,.2);
}

#carousel-2 .carousel-header::after {
    display: none;
}

/* Unterüberschrift */

#carousel-2 .carousel-subheader {
    display: block !important;

    max-width: 650px;
    margin: 0;
    padding: 0;

    background: transparent !important;
    color: #f4f0e7 !important;

    font-family: var(--font-headline, Georgia, serif);
    font-size: clamp(19px, 1.75vw, 30px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.45;

    text-align: left !important;
    text-transform: none;
}

/* =========================================================
   SLIDER – NAVIGATIONSPFEILE
   ========================================================= */

#carousel-2 .carousel-control {
    position: absolute;
    top: 50%;
    bottom: auto;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;

    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;

    background: rgba(37,55,45,.65);
    color: #fff;

    opacity: 1;
    transform: translateY(-50%);
    transition: background .25s ease;
}

#carousel-2 .carousel-control-prev {
    left: 18px;
}

#carousel-2 .carousel-control-next {
    right: 18px;
}

#carousel-2 .carousel-control:hover {
    background: #34483c;
}

/* =========================================================
   SLIDER – INDIKATOREN
   ========================================================= */

#carousel-2 .carousel-indicators {
    bottom: 20px;
    gap: 10px;
    margin-bottom: 0;
    z-index: 5;
}

#carousel-2 .carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;

    flex: 0 0 10px;
    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #fff !important;
    border-radius: 50% !important;

    background: rgba(255,255,255,.75) !important;
    background-image: none !important;

    opacity: 1;
    box-shadow: none;
    text-indent: 0;
    font-size: 0;
}

#carousel-2 .carousel-indicators button span {
    display: none;
}

#carousel-2 .carousel-indicators button.active {
    background: #d9b66e !important;
    border-color: #d9b66e !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    #carousel-2 .carousel-item {
        height: 560px;
    }

    #carousel-2 .carousel-content-inner {
        width: calc(100% - 110px);
    }

    #carousel-2 .carousel-text-inner {
        width: 75%;
    }

    #carousel-2 .carousel-header {
        font-size: clamp(32px, 5vw, 52px);
    }

    #carousel-2 .carousel-subheader {
        font-size: 22px;
    }
}

/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 767.98px) {

    #carousel-2 .carousel-item {
        height: 540px;
    }

    #carousel-2 .carousel-backgroundimage {
        background-position: 70% center;
    }

    #carousel-2 .carousel-backgroundimage-container::after {
        background: linear-gradient(
            0deg,
            rgba(30,52,42,.96) 0%,
            rgba(30,52,42,.75) 35%,
            rgba(30,52,42,.25) 70%,
            transparent 100%
        );
    }

    #carousel-2 .carousel-content-inner {
        align-items: flex-end;
        width: calc(100% - 50px);
        padding: 30px 0 65px;
    }

    #carousel-2 .carousel-text-inner {
        width: 100%;
        max-width: 100%;
    }

    #carousel-2 .carousel-text-inner::before {
        font-size: 15px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    #carousel-2 .carousel-header {
        font-size: clamp(29px, 7.5vw, 40px);
        margin-bottom: 18px;
    }

    #carousel-2 .carousel-subheader {
        font-size: 18px;
        line-height: 1.4;
    }

    #carousel-2 .carousel-control {
        top: 28%;
        width: 34px;
        height: 34px;
    }

    #carousel-2 .carousel-control-prev {
        left: 10px;
    }

    #carousel-2 .carousel-control-next {
        right: 10px;
    }
}

/* Kompakte Slider-Aktionsbuttons */

@media (min-width: 768px) {

    .slider-actions {
        right: 20px;
        bottom: 30px;
        width: 215px;
        gap: 8px;
    }

    .slider-action {
        min-height: 46px;
        padding: 10px 15px;
        grid-template-columns: 24px 1fr;
        gap: 10px;

        font-size: 14px;
        font-weight: 500;
        border: 0;
        border-radius: 6px;

        box-shadow: 0 3px 12px rgba(0,0,0,.1);
    }
}

.slider-action > i:first-child {
    font-size: 19px;
}

.slider-action .action-arrow {
    display: none;
}

.action-spenden {
    background: linear-gradient(135deg, #b58b42, #96702f);
}

.action-mitglied {
    background: linear-gradient(135deg, #526d57, #34483c);
}

.slider-action:hover {
    transform: translateY(-2px);
}
