:root {
    --blue: #5DA2D5;
    --blue-dark: #2F6F9F;
    --blue-deep: #255D87;
    --yellow: #F3D250;
    --light: #ECECEC;
    --paper: #FFFFFF;
    --text: #2D343A;
    --muted: #64717A;
    --max: 1180px;
    --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
.site-width { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position: fixed; left: 10px; top: -80px; z-index: 9999; background:#fff; padding:10px 14px; }
.skip-link:focus { top: 10px; }

/* =========================================================
   Globaler Kopf
   ========================================================= */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e4e8eb;
}
.site-header-inner {
    width: min(1240px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 315px;
    color: var(--blue-dark);
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', serif;
}
.brand img { width: 50px; height: 43px; }
.brand-text { display:flex; flex-direction:column; line-height:1.18; font-size:18px; }
.brand-text strong { font-weight:600; }

.main-nav { margin-left:auto; }
.main-nav ul { display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.main-nav li { margin:0; padding:0; }
.main-nav a {
    display:block;
    padding: 26px 12px 21px;
    color:#111;
    text-decoration:none;
    font-size:14px;
    border-bottom:3px solid transparent;
    transition:color .18s ease, border-bottom-color .18s ease;
}
.main-nav a:hover,
.main-nav a:focus {
    color:var(--blue-dark);
    border-bottom-color:var(--yellow);
}
.main-nav a.menu-current,
.main-nav a.active {
    color:var(--blue-dark);
    border-bottom-color:var(--blue);
}
.main-nav ul ul { display:none; }

.header-request {
    flex: 0 0 auto;
    display:inline-flex;
    gap:8px;
    align-items:center;
    justify-content:center;
    min-width:112px;
    padding:10px 18px;
    border-radius:24px;
    background:var(--blue);
    color:#fff;
    text-decoration:none;
    font-family:Georgia, 'Times New Roman', serif;
    font-weight:600;
}
.header-request:hover { background:var(--blue-dark); color:#fff; }
.nav-toggle { display:none; border:0; background:transparent; padding:9px; cursor:pointer; }
.nav-toggle > span:not(.sr-only) { display:block; width:26px; height:2px; margin:5px 0; background:var(--blue-dark); }

.page-shell { padding-top: var(--header-h); }

/* =========================================================
   Startseite – Block 5 / WYSIWYG Hero

   Erwartete CMS-Struktur:
   <div class="hero-media">
     <img class="hero-image" ...>
     <p class="hero-subtitle">...</p>
   </div>
   <h1 class="hero-title">...</h1>
   ========================================================= */
.home-hero {
    position: relative;
    background:#dce3e7;
    overflow:hidden;
}
.home-hero-content {
    position: relative;
    min-height: 380px;
    overflow: hidden;
}
.home-hero-content .hero-media {
    position:absolute;
    inset:0;
    overflow:hidden;
}
.home-hero-content .hero-media::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(18,44,67,.90) 0%, rgba(18,44,67,.68) 30%, rgba(18,44,67,.15) 58%, rgba(18,44,67,0) 78%);
    pointer-events:none;
}
.home-hero-content .hero-image {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:50% 48%;
}
.home-hero-content .hero-title {
    position:absolute;
    z-index:3;
    top:70px;
    left:max(40px, calc((100vw - var(--max))/2));
    width:min(650px, 58vw);
    margin:0;
    color:#fff;
    font:400 50px/1.08 Georgia, 'Times New Roman', serif;
    letter-spacing:-.5px;
}
.home-hero-content .hero-title::after {
    content:"";
    display:block;
    width:64px;
    height:3px;
    margin-top:24px;
    background:var(--yellow);
}
.home-hero-content .hero-subtitle {
    position:absolute;
    z-index:3;
    left:max(40px, calc((100vw - var(--max))/2));
    top:248px;
    width:min(520px, 48vw);
    margin:0;
    color:#fff;
    font-size:17px;
    line-height:1.45;
}
/* Falls CKEditor das Bild in einen Absatz packt, nimmt dieser keinen eigenen Platz ein. */
.home-hero-content .hero-media p { margin:0; }

/* =========================================================
   Startseite – Block 6 / OneForAll
   Der konkrete OFA-Loop wird gemeinsam im Backend eingetragen.
   ========================================================= */
.home-offers {
    position:relative;
    z-index:5;
    margin-top:-22px;
    padding-bottom:28px;
}
.offer-grid {
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
}
.offer-card {
    overflow:hidden;
    background:#fff;
    border:1px solid #e4e7e9;
    border-radius:8px;
    box-shadow:0 6px 20px rgba(33,55,72,.10);
}
.offer-card-image { height:168px; overflow:hidden; }
.offer-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.offer-card-body { position:relative; padding:26px 18px 18px; }
.offer-card-icon {
    position:absolute;
    top:-24px;
    left:16px;
    width:48px;
    height:48px;
    border:3px solid #fff;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:var(--blue);
    color:#fff;
    font-size:23px;
}
.offer-card-icon::before {
    content:"";
    display:block;
    width:27px;
    height:27px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
}
.offer-card-icon--ferienwohnung::before { background-image:url('img/icon-bed.svg'); }
.offer-card-icon--monteur::before { background-image:url('img/icon-worker.svg'); }
.offer-card-icon--bike::before { background-image:url('img/icon-bike.svg'); }
.offer-card h2, .offer-card h3 {
    margin:4px 0 8px;
    color:var(--blue-dark);
    font:600 20px/1.2 Georgia, 'Times New Roman', serif;
}
.offer-card p { margin:0 0 14px; font-size:14px; line-height:1.42; }
.offer-card .more-link {
    display:inline-block;
    padding:6px 13px;
    border:1px solid var(--blue);
    border-radius:6px;
    text-decoration:none;
    font:600 14px Georgia, 'Times New Roman', serif;
}

/* =========================================================
   Startseite – Block 7 / Althausen, Block 8 / Ausstattung,
   Block 18 / Bewertungen, Block 9 / Anfrage. Inhalte kommen getrennt aus dem CMS.
   ========================================================= */
.home-althausen { padding:0 0 8px; background:#fff; }
.home-althausen h2, .home-amenities h2, .home-reviews h2, .home-request h2 {
    color:var(--blue-dark);
    font:600 27px/1.2 Georgia, 'Times New Roman', serif;
}
.home-intro-copy h2 { margin:0 0 10px; }
.home-intro-copy p { margin:0 0 6px; }
.home-intro {
    display:grid;
    grid-template-columns:260px 1fr;
    gap:28px;
    align-items:center;
    padding:0 26px 24px;
}
.home-intro-graphic { text-align:center; color:var(--blue-dark); }
.home-intro-graphic img { display:block; max-height:125px; width:auto; margin:0 auto; background:transparent; mix-blend-mode:multiply; }

.home-amenities { padding:0 0 10px; }
.amenities {
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    margin:0 0 20px;
    gap:0;
    border-radius:9px;
    overflow:hidden;
    background:linear-gradient(90deg, #f5f8fa, #e9f3fa);
}
.amenity { min-height:92px; padding:14px 8px 10px; text-align:center; background:transparent; border-right:1px solid #cbdce8; }
.amenity:last-child { border-right:0; }
.amenity-icon {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    margin:0 auto 2px;
    border-radius:0;
    background-color:transparent;
    background-repeat:no-repeat;
    background-position:center;
    background-size:38px 38px;
}
.amenity-icon--wifi { background-image:url('img/amenity-wifi.svg'); }
.amenity-icon--kitchen { background-image:url('img/amenity-kitchen.svg'); }
.amenity-icon--linen { background-image:url('img/amenity-linen.svg'); }
.amenity-icon--parking { background-image:url('img/amenity-parking.svg'); }
.amenity-icon--bike { background-image:url('img/amenity-bike.svg'); }
.amenity-icon--washer { background-image:url('img/amenity-washer.svg'); }
.amenity-icon--dryer { background-image:url('img/amenity-dryer.svg'); }
.amenity strong { display:block; margin-top:6px; color:var(--blue-deep); font-family:Georgia, 'Times New Roman', serif; }
.amenity small { display:block; font-size:12px; }


/* =========================================================
   Startseite – Block 18 / Bewertungen
   Ruhiger, editierbarer WYSIWYG-CTA zwischen Ausstattung und Anfrage.
   Optionales Markup im WYSIWYG:
   .reviews-cta / .reviews-cta-copy / .reviews-cta-actions
   .reviews-cta-button / .reviews-cta-link
   ========================================================= */
.home-reviews { padding:0 0 12px; }
.home-reviews .reviews-cta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:18px 22px;
    border:1px solid #d5e2ec;
    border-radius:9px;
    background:linear-gradient(90deg, #f7fafc 0%, #eef5f9 100%);
}
.home-reviews .reviews-cta-copy { flex:1 1 auto; min-width:0; }
.home-reviews .reviews-cta h2 { margin:0 0 5px; font-size:23px; }
.home-reviews .reviews-cta p { margin:0; line-height:1.45; }
.home-reviews .reviews-cta-actions {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.home-reviews .reviews-cta-button,
.home-reviews .reviews-cta-link {
    display:inline-block;
    padding:8px 14px;
    border:1px solid var(--blue);
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
}
.home-reviews .reviews-cta-button {
    color:#fff;
    background:var(--blue);
}
.home-reviews .reviews-cta-button:hover,
.home-reviews .reviews-cta-button:focus {
    color:#fff;
    background:var(--blue-dark);
    border-color:var(--blue-dark);
}
.home-reviews .reviews-cta-link {
    color:var(--blue-dark);
    background:#fff;
}
.home-reviews .reviews-cta-link:hover,
.home-reviews .reviews-cta-link:focus {
    color:var(--blue-deep);
    border-color:var(--blue-deep);
}

@media (max-width: 700px) {
    .home-reviews .reviews-cta {
        display:block;
        padding:16px;
    }
    .home-reviews .reviews-cta-actions {
        margin-top:12px;
    }
}

.home-request { padding:0 0 12px; }
.home-cta,
.start-cta {
    position:relative;
    min-height:120px;
    margin:0;
    padding:25px 255px 23px 235px;
    border-radius:10px;
    overflow:hidden;
    color:#fff;
    text-align:center;
    background-image:url('img/cta-final-reference.jpg');
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    box-shadow:0 1px 0 rgba(25,70,100,.08);
}
.home-cta h2,
.start-cta h2 {
    margin:0 0 12px;
    color:#fff;
    font-weight:400;
    text-shadow:0 1px 3px rgba(0,0,0,.20);
}
.home-cta h2::after,
.start-cta h2::after {
    content:'';
    display:block;
    width:58px;
    height:3px;
    margin:9px auto 0;
    border-radius:2px;
    background:var(--yellow);
}
.home-cta p,
.start-cta p { margin:0; text-shadow:0 1px 2px rgba(0,0,0,.18); }
.home-cta .cta-button,
.start-cta .start-cta__button {
    position:absolute;
    right:68px;
    top:36px;
    display:inline-block;
    padding:13px 21px;
    border-radius:8px;
    background:var(--yellow);
    color:#27536e;
    text-decoration:none;
    font-weight:700;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
}
.home-cta .cta-button:hover,
.start-cta .start-cta__button:hover { filter:brightness(.97); }

/* =========================================================
   Unterseiten / Altbestand
   ========================================================= */
.legacy-content { padding-top:34px; padding-bottom:50px; }
.content-layout { display:grid; grid-template-columns:minmax(0, 2fr) minmax(260px, 1fr); gap:32px; }
.content-layout-wide { grid-template-columns:1fr; }
.main-content img, .sidebar img, .wide-top img, .wide-bottom img { max-width:100%; height:auto; }
.sidebar { padding-left:28px; border-left:1px solid #ddd; }
.wide-top { margin-bottom:24px; }
.wide-bottom { margin-top:30px; }

/* =========================================================
   Footer – Struktur im Template; Inhalte werden spaeter globalisiert.
   ========================================================= */
.site-footer { margin-top:0; }
.footer-panorama {
    position:relative;
    height:230px;
    background:#5f7480 url('img/footer-final-reference.jpg') center center / cover no-repeat;
    overflow:hidden;
}
.footer-panorama-shade {
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,
        rgba(20,36,44,.04) 0%,
        rgba(20,36,44,.05) 38%,
        rgba(20,36,44,.28) 57%,
        rgba(20,36,44,.52) 100%);
}
.footer-panorama-title {
    position:absolute;
    z-index:2;
    top:28px;
    right:max(32px, calc((100vw - var(--max))/2 + 50px));
    width:500px;
    text-align:center;
    color:#fff;
    text-shadow:0 2px 6px rgba(0,0,0,.35);
}
.footer-panorama-title span { display:block; font:italic 19px Georgia, 'Times New Roman', serif; }
.footer-panorama-title strong { display:block; font:400 42px/1.12 Georgia, 'Times New Roman', serif; letter-spacing:6px; }
.footer-panorama-title small { display:block; margin-top:3px; font:600 11px Georgia, 'Times New Roman', serif; letter-spacing:6px; }
.footer-main { background:var(--blue-deep); color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.7fr .8fr .8fr; gap:0; }
.footer-col { min-height:102px; padding:11px 18px; border-right:1px solid rgba(255,255,255,.32); }
.footer-col:last-child { border-right:0; }
.footer-col h2 { margin:0 0 6px; color:#fff; font:600 15px Georgia, 'Times New Roman', serif; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col li { margin:2px 0; font-size:12.5px; }
.footer-col li::before { content:'›'; margin-right:7px; color:#dceef8; }
.footer-col a { color:#fff; text-decoration:none; }
.footer-col a:hover { text-decoration:underline; }
.footer-brand { display:flex; gap:9px; align-items:center; margin-bottom:6px; font-family:Georgia, 'Times New Roman', serif; }
.footer-brand img { width:39px; height:34px; }
.footer-contact address { display:flex; flex-direction:column; gap:2px; font-style:normal; font-size:10.5px; line-height:1.28; }
.footer-bottom { background:#245878; color:#e9f3f8; border-top:1px solid rgba(255,255,255,.22); }
.footer-bottom-inner { min-height:24px; display:flex; align-items:center; justify-content:center; gap:18px; font-size:9.5px; }
.footer-heart { color:var(--yellow); font-size:15px; }

/* =========================================================
   Breakpoint 1024px
   - Hero-Text bleibt VOLLSTAENDIG auf dem Bild.
   - Nur Schrift, Abstaende und Bildausschnitt werden angepasst.
   ========================================================= */
@media (max-width: 1024px) {
    :root { --header-h:64px; }
    .site-header-inner { width:calc(100% - 28px); gap:12px; }
    .brand { min-width:0; flex:1; }
    .brand img { width:42px; height:36px; }
    .brand-text { font-size:16px; }
    .header-request { margin-left:auto; padding:9px 14px; min-width:98px; }
    .nav-toggle { display:block; order:3; }
    .main-nav {
        display:none;
        position:absolute;
        top:var(--header-h);
        left:0;
        right:0;
        background:#fff;
        border-top:1px solid #e2e7ea;
        box-shadow:0 10px 25px rgba(0,0,0,.12);
    }
    .main-nav.is-open { display:block; }
    .main-nav ul { display:block; }
    .main-nav a { padding:12px 24px; border-bottom:1px solid #edf0f2; }

    .home-hero-content { min-height:340px; }
    .home-hero-content .hero-title {
        top:58px;
        left:32px;
        width:620px;
        max-width:64vw;
        font-size:40px;
    }
    .home-hero-content .hero-subtitle {
        left:32px;
        top:225px;
        width:500px;
        max-width:54vw;
        font-size:15px;
    }
    .home-hero-content .hero-image { object-position:54% 48%; }

    .offer-grid { gap:16px; }
    .offer-card-image { height:145px; }
    .offer-card p { font-size:13px; }

    .home-intro { grid-template-columns:190px 1fr; padding-inline:8px; }
    .amenities { grid-template-columns:repeat(4, 1fr); }
    .home-cta, .start-cta { padding:24px 185px 22px 38px; }
    .home-cta .cta-button, .start-cta .start-cta__button { right:32px; }

    .footer-panorama { height:210px; background-position:center center; }
    .footer-panorama-title { top:30px; right:28px; width:450px; }
    .footer-grid { grid-template-columns:1.5fr .85fr .85fr; }
}

/* =========================================================
   Breakpoint 768px
   - Die H1 wird NICHT geloescht.
   - Sie verlaesst nur das Bild und erscheint direkt darunter.
   - Auf dem Foto bleibt der Untertitel erhalten.
   ========================================================= */
@media (max-width: 768px) {
    .site-width { width:calc(100% - 28px); }
    .brand-text { font-size:15px; }
    .header-request span:last-child { display:none; }
    .header-request { min-width:auto; width:42px; height:42px; padding:0; }

    .home-hero { background:#fff; overflow:visible; }
    .home-hero-content { min-height:0; overflow:visible; background:#fff; }
    .home-hero-content .hero-media {
        position:relative;
        inset:auto;
        height:285px;
    }
    .home-hero-content .hero-media::after {
        background:linear-gradient(0deg, rgba(18,44,67,.72) 0%, rgba(18,44,67,.20) 44%, rgba(18,44,67,0) 72%);
    }
    .home-hero-content .hero-image { object-position:58% 48%; }
    .home-hero-content .hero-subtitle {
        left:24px;
        right:24px;
        top:auto;
        bottom:22px;
        width:auto;
        max-width:560px;
        font-size:15px;
    }
    .home-hero-content .hero-title {
        position:relative;
        top:auto;
        left:auto;
        width:auto;
        max-width:none;
        margin:0;
        padding:24px 22px 32px;
        color:var(--blue-dark);
        background:#fff;
        text-align:center;
        font-size:34px;
        line-height:1.12;
    }
    .home-hero-content .hero-title::after { margin:16px auto 0; }

    .home-offers { margin-top:-8px; }
    .offer-grid { grid-template-columns:1fr 1fr; }
    .offer-card:last-child { grid-column:1 / -1; width:calc(50% - 8px); justify-self:center; }

    .home-intro { grid-template-columns:1fr; gap:8px; text-align:center; }
    .home-intro-graphic img { max-height:100px; }
    .amenities { grid-template-columns:repeat(3, 1fr); }
    .home-cta, .start-cta { padding:25px 24px 78px; background-position:center center; }
    .home-cta .cta-button, .start-cta .start-cta__button { top:auto; bottom:18px; right:50%; transform:translateX(50%); }

    .content-layout { grid-template-columns:1fr; }
    .sidebar { padding-left:0; border-left:0; border-top:1px solid #ddd; padding-top:24px; }

    .footer-panorama { height:200px; background-position:center center; }
    .footer-panorama-title { top:36px; right:18px; width:390px; }
    .footer-panorama-title strong { font-size:38px; }

    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-contact { grid-column:1 / -1; border-right:0; border-bottom:1px solid rgba(255,255,255,.25); }
    .footer-col:nth-child(2) { border-right:1px solid rgba(255,255,255,.32); }
    .footer-col:nth-child(3) { border-right:0; }
}

/* =========================================================
   Breakpoint 640px
   - Untertitel bleibt auf dem Bild und wird etwas kleiner.
   - H1 bleibt darunter voll sichtbar.
   - Keine Textinformation wird verworfen.
   ========================================================= */
@media (max-width: 640px) {
    .site-header-inner { width:calc(100% - 20px); }
    .brand img { width:38px; height:32px; }
    .brand-text { font-size:13px; }
    .brand-text span { white-space:nowrap; }

    .home-hero-content .hero-media { height:245px; }
    .home-hero-content .hero-image { object-position:61% 48%; }
    .home-hero-content .hero-subtitle { left:18px; right:18px; bottom:18px; font-size:13px; line-height:1.4; }
    .home-hero-content .hero-title { padding:20px 16px 28px; font-size:28px; }

    .home-offers { margin-top:0; padding-top:0; }
    .offer-grid { grid-template-columns:1fr; gap:18px; }
    .offer-card:last-child { grid-column:auto; width:auto; }
    .offer-card-image { height:180px; }

    .amenities { grid-template-columns:1fr 1fr; }

    .footer-panorama { height:205px; background-position:32% center; }
    .footer-panorama-title { top:104px; left:14px; right:14px; width:auto; }
    .footer-panorama-title span { font-size:16px; }
    .footer-panorama-title strong { font-size:31px; letter-spacing:4px; }
    .footer-panorama-title small { font-size:10px; letter-spacing:4px; }
    .footer-grid { grid-template-columns:1fr; }
    .footer-contact { grid-column:auto; }
    .footer-col,
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) { min-height:0; border-right:0; border-bottom:1px solid rgba(255,255,255,.25); padding:18px 20px; }
    .footer-col:last-child { border-bottom:0; }
    .footer-bottom-inner { padding:8px 0; text-align:center; }
}

@media (max-width: 430px) {
    .brand-text span { display:none; }
    .amenities { grid-template-columns:1fr; }
    .home-hero-content .hero-media { height:220px; }
    .home-hero-content .hero-title { font-size:25px; }
}


/* =========================================================
   Gemeinsame Unterseiten – Bloecke 10 bis 17
   Die Detailgestaltung wird Abschnitt fuer Abschnitt aufgebaut.
   ========================================================= */
.subpage-hero {
    position:relative;
    background:#dce3e7;
    overflow:hidden;
}
.subpage-hero-content {
    position:relative;
    min-height:310px;
    overflow:hidden;
}
/* Erwartete WYSIWYG-Struktur in Block 10:
   <div class="subhero-media">
     <img class="subhero-image" ...>
     <p class="subhero-subtitle">...</p>
   </div>
   <h1 class="subhero-title">...</h1>
*/
.subpage-hero-content .subhero-media {
    position:absolute;
    inset:0;
    overflow:hidden;
}
.subpage-hero-content .subhero-media::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(18,44,67,.88) 0%, rgba(18,44,67,.62) 31%, rgba(18,44,67,.10) 62%, rgba(18,44,67,0) 82%);
    pointer-events:none;
}
.subpage-hero-content .subhero-image {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:40% 60%;
}
.subpage-hero-content .subhero-title {
    position:absolute;
    z-index:3;
    top:62px;
    left:max(40px, calc((100vw - var(--max))/2));
    width:min(700px, 62vw);
    margin:0;
    color:#fff;
    font:400 43px/1.1 Georgia, 'Times New Roman', serif;
}
.subpage-hero-content .subhero-title::after {
    content:"";
    display:block;
    width:64px;
    height:3px;
    margin-top:20px;
    background:var(--yellow);
}
.subpage-hero-content .subhero-subtitle {
    position:absolute;
    z-index:3;
    left:max(40px, calc((100vw - var(--max))/2));
    top:206px;
    width:min(610px, 55vw);
    margin:0;
    color:#fff;
    font-size:16px;
    line-height:1.45;
}
.subpage-hero-content .subhero-media p { margin:0; }

.subpage-glance,
.subpage-options,
.subpage-description,
.subpage-media-prices,
.subpage-groups,
.subpage-request {
    position:relative;
}
.subpage-glance { background:#eef5f8; }
.subpage-glance > .site-width { padding-top:18px; padding-bottom:18px; }
.subpage-options > .site-width,
.subpage-description > .site-width,
.subpage-media-prices > .site-width,
.subpage-groups > .site-width { padding-top:38px; padding-bottom:38px; }
.subpage-request { padding:0 0 26px; }

/* =========================================================
   Unterseite – Block 11 / Auf einen Blick
   ========================================================= */
.subpage-facts {
    display:grid;
    grid-template-columns:repeat(6, minmax(0,1fr));
    background:#eef5f8;
    border:1px solid #d9e7ef;
    border-radius:10px;
    overflow:hidden;
}
.subpage-fact {
    min-height:78px;
    padding:13px 10px 11px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    border-right:1px solid #cbdde8;
}
.subpage-fact:last-child { border-right:0; }
.subpage-fact strong {
    display:block;
    color:var(--blue-deep);
    font:600 16px/1.15 Georgia, 'Times New Roman', serif;
}
.subpage-fact span {
    display:block;
    margin-top:4px;
    color:#4e5d66;
    font-size:12px;
    line-height:1.25;
}

/* =========================================================
   Unterseite – Block 12 / OneForAll Buchungsoptionen
   ========================================================= */
.booking-options-grid {
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:24px;
    align-items:stretch;
}
.booking-option-card {
    min-width:0;
    background:#fff;
    border:1px solid #dce5ea;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(28,58,78,.08);
    display:flex;
    flex-direction:column;
}
.booking-option-image {
    position:relative;
    height:215px;
    overflow:hidden;
    background:#e8eef1;
}
.booking-option-image img {
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center 55%;
}
.booking-option-body {
    flex:1;
    padding:20px 20px 18px;
    display:flex;
    flex-direction:column;
}
.booking-option-body h2 {
    margin:0 0 9px;
    color:var(--blue-deep);
    font:600 23px/1.18 Georgia, 'Times New Roman', serif;
}
.booking-option-occupancy {
    display:inline-block;
    align-self:flex-start;
    margin:0 0 13px;
    padding:5px 9px;
    border-radius:999px;
    background:#eef5f8;
    color:var(--blue-deep);
    font-size:12px;
    font-weight:700;
    line-height:1.2;
}
.booking-option-text {
    margin:0 0 15px;
    color:var(--text);
    font-size:14px;
    line-height:1.5;
}
.booking-option-price {
    margin:auto 0 0;
    padding-top:12px;
    color:var(--blue-deep);
    font:700 19px/1.2 Georgia, 'Times New Roman', serif;
}
.booking-option-note {
    margin:10px 0 0;
    padding-top:10px;
    border-top:1px solid #e6edf1;
    color:#5e6a72;
    font-size:12px;
    line-height:1.45;
}

@media (max-width:1024px) {
    .subpage-facts { grid-template-columns:repeat(3, minmax(0,1fr)); }
    .subpage-fact { border-bottom:1px solid #cbdde8; }
    .subpage-fact:nth-child(3n) { border-right:0; }
    .subpage-fact:nth-last-child(-n+3) { border-bottom:0; }
    .booking-options-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width:700px) {
    .subpage-facts { grid-template-columns:repeat(2, minmax(0,1fr)); }
    .subpage-fact:nth-child(3n) { border-right:1px solid #cbdde8; }
    .subpage-fact:nth-child(2n) { border-right:0; }
    .subpage-fact:nth-last-child(-n+3) { border-bottom:1px solid #cbdde8; }
    .subpage-fact:nth-last-child(-n+2) { border-bottom:0; }
    .booking-options-grid { grid-template-columns:1fr; gap:18px; }
    .booking-option-image { height:230px; }
}

@media (max-width:430px) {
    .subpage-fact { min-height:72px; padding:10px 8px; }
    .subpage-fact strong { font-size:14px; }
    .subpage-fact span { font-size:11px; }
    .booking-option-body { padding:17px 16px 16px; }
    .booking-option-body h2 { font-size:21px; }
}


@media (max-width:1024px) {
    .subpage-hero-content { min-height:285px; }
    .subpage-hero-content .subhero-title { top:52px; left:32px; max-width:68vw; font-size:36px; }
    .subpage-hero-content .subhero-subtitle { top:188px; left:32px; max-width:60vw; font-size:15px; }
}

@media (max-width:768px) {
    .subpage-hero { background:#fff; overflow:visible; }
    .subpage-hero-content { min-height:0; overflow:visible; background:#fff; }
    .subpage-hero-content .subhero-media { position:relative; inset:auto; height:260px; }
    .subpage-hero-content .subhero-media::after {
        background:linear-gradient(0deg, rgba(18,44,67,.70) 0%, rgba(18,44,67,.18) 44%, rgba(18,44,67,0) 74%);
    }
    .subpage-hero-content .subhero-subtitle {
        left:22px; right:22px; top:auto; bottom:20px; width:auto; max-width:600px; font-size:14px;
    }
    .subpage-hero-content .subhero-title {
        position:relative; top:auto; left:auto; width:auto; max-width:none; margin:0;
        padding:22px 20px 28px; color:var(--blue-dark); background:#fff; text-align:center; font-size:31px;
    }
    .subpage-hero-content .subhero-title::after { margin:15px auto 0; }
}

@media (max-width:640px) {
    .subpage-hero-content .subhero-media { height:225px; }
    .subpage-hero-content .subhero-subtitle { left:18px; right:18px; bottom:17px; font-size:13px; }
    .subpage-hero-content .subhero-title { padding:19px 16px 25px; font-size:27px; }
}


/* =========================================================
   Unterseite – Bloecke 14 + 15 + 16
   Galerie + Sonderkonstellationen links / Preise rechts
   Desktop: 62 / 38, Tablet: 58 / 42
   Mobil: Preise -> Sonderkonstellationen -> Galerie
   ========================================================= */
.subpage-media-prices {
    background:#f8fafb;
}
.subpage-media-prices-grid {
    display:grid;
    grid-template-columns:minmax(0, 1.63fr) minmax(330px, 1fr);
    grid-template-areas:
        "gallery prices"
        "groups  prices";
    column-gap:28px;
    row-gap:24px;
    align-items:start;
}
.subpage-media-prices-grid.has-gallery:not(.has-prices):not(.has-groups),
.subpage-media-prices-grid.has-prices:not(.has-gallery):not(.has-groups),
.subpage-media-prices-grid.has-groups:not(.has-gallery):not(.has-prices) {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"single";
}
.subpage-media-prices-grid.has-gallery.has-prices:not(.has-groups) {
    grid-template-areas:"gallery prices";
}
.subpage-media-prices-grid.has-gallery.has-groups:not(.has-prices) {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"gallery" "groups";
}
.subpage-media-prices-grid.has-prices.has-groups:not(.has-gallery) {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"prices" "groups";
}
.subpage-gallery-panel { grid-area:gallery; min-width:0; }
.subpage-prices-panel { grid-area:prices; min-width:0; }
.subpage-groups-panel { grid-area:groups; min-width:0; }
.subpage-media-prices-grid > :only-child { grid-area:single; }

/* MiniSlides selbst bekommt im Backend die Klasse "subpage-gallery". */
.subpage-gallery-panel .minislides.subpage-gallery {
    width:100%;
    max-width:none !important;
    margin:0 !important;
}
.subpage-gallery-panel .subpage-gallery .msdescription {
    margin:0 0 14px;
}
.subpage-gallery-panel .subpage-gallery .msdescription h2 {
    margin:0;
    color:var(--blue-deep);
    font:600 27px/1.2 Georgia, 'Times New Roman', serif;
}
.subpage-gallery-panel .subpage-gallery .swiper {
    aspect-ratio:16 / 9;
    width:100%;
    height:auto;
    overflow:hidden;
    border-radius:10px;
    background:#e7edf0;
    box-shadow:0 8px 24px rgba(28,58,78,.08);
}
.subpage-gallery-panel .subpage-gallery .swiper-wrapper,
.subpage-gallery-panel .subpage-gallery .swiper-slide { height:100%; }
.subpage-gallery-panel .subpage-gallery .swiper-slide img,
.subpage-gallery-panel .subpage-gallery .swiper-img {
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center center;
}
.subpage-gallery-panel .subpage-gallery .swiper-button-prev,
.subpage-gallery-panel .subpage-gallery .swiper-button-next {
    color:#fff;
    width:38px;
    height:38px;
    border-radius:50%;
    background:rgba(23,76,112,.62);
    --swiper-navigation-size:22px;
}
.subpage-gallery-panel .subpage-gallery .swiper-button-prev { left:14px; }
.subpage-gallery-panel .subpage-gallery .swiper-button-next { right:14px; }
.subpage-gallery-panel .subpage-gallery .swiper-pagination-bullet { background:#fff; opacity:.60; }
.subpage-gallery-panel .subpage-gallery .swiper-pagination-bullet-active { background:var(--yellow); opacity:1; }
.subpage-gallery-panel .subpage-gallery .swiper-caption {
    position:absolute;
    left:0; right:0; bottom:0;
    padding:30px 18px 16px;
    color:#fff;
    background:linear-gradient(0deg, rgba(9,38,58,.75), rgba(9,38,58,0));
    font-size:13px;
    line-height:1.35;
    pointer-events:none;
}

/* Preise */
.subpage-prices-panel {
    align-self:start;
    padding:24px 24px 22px;
    border:1px solid #dce5ea;
    border-radius:10px;
    background:#fff;
    box-shadow:0 8px 24px rgba(28,58,78,.08);
}
.subpage-prices-panel h2 {
    margin:0 0 18px;
    color:var(--blue-deep);
    font:600 27px/1.2 Georgia, 'Times New Roman', serif;
}
.subpage-prices-panel h3 {
    margin:20px 0 9px;
    color:var(--blue-deep);
    font:600 18px/1.25 Georgia, 'Times New Roman', serif;
}
.subpage-prices-panel p,
.subpage-prices-panel li { font-size:13px; line-height:1.5; }
.subpage-prices-panel small { color:#64727a; font-size:11.5px; }
.subpage-prices-panel .price-list { margin:0; padding:0; }
.subpage-prices-panel .price-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    align-items:baseline;
    padding:9px 0;
    border-bottom:1px solid #e7edf0;
}
.subpage-prices-panel .price-row:last-child { border-bottom:0; }
.subpage-prices-panel .price-row > span { min-width:0; }
.subpage-prices-panel .price-row > strong {
    color:var(--blue-deep);
    white-space:nowrap;
    text-align:right;
    font:700 15.5px/1.2 Georgia, 'Times New Roman', serif;
}
.subpage-prices-panel .price-conditions {
    margin-top:18px;
    padding-top:4px;
    border-top:1px solid #dfe7eb;
}
.subpage-prices-panel .price-conditions p { margin:10px 0; }
.subpage-prices-panel .price-note {
    margin:16px 0 0;
    padding:12px 14px;
    border-radius:8px;
    background:#eef5f8;
    color:#4e5d66;
}
.subpage-prices-panel .price-note > strong {
    color:var(--blue-deep);
    font-family:Georgia, 'Times New Roman', serif;
}

/* Block 16 – Sonderkonstellationen direkt unter dem Slider */
.subpage-groups-panel {
    padding:22px 24px;
    border:1px solid #dce5ea;
    border-radius:10px;
    background:#fff;
    box-shadow:0 8px 24px rgba(28,58,78,.06);
}
.subpage-groups-panel h2 {
    margin:0 0 9px;
    color:var(--blue-deep);
    font:600 24px/1.2 Georgia, 'Times New Roman', serif;
}
.subpage-groups-panel .special-options__intro {
    margin:0 0 16px;
    color:#51616b;
    font-size:13.5px;
}
.special-options__grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 16px;
}
.special-option {
    position:relative;
    padding:10px 12px 10px 18px;
    border-left:3px solid #9cc7e6;
    background:#f7fafc;
    border-radius:0 7px 7px 0;
}
.special-option strong {
    display:block;
    margin-bottom:3px;
    color:var(--blue-deep);
    font:600 14px/1.25 Georgia, 'Times New Roman', serif;
}
.special-option span,
.special-option p {
    display:block;
    margin:0;
    color:#52616a;
    font-size:12.5px;
    line-height:1.4;
}
.subpage-groups-panel .special-options__note {
    margin:14px 0 0;
    color:#59666d;
    font-size:12.5px;
}

/* Block 17 – Anfrage ueber volle Inhaltsbreite */
.subpage-request {
    padding:0 0 28px;
    background:#fff;
}
.subpage-request > .site-width { padding-top:10px; }
.subpage-request .start-cta,
.subpage-request .home-cta { width:100%; }

@media (max-width:1024px) {
    .subpage-media-prices-grid {
        grid-template-columns:minmax(0, 1.38fr) minmax(300px, 1fr);
        column-gap:22px;
        row-gap:20px;
    }
    .subpage-prices-panel { padding:21px 20px; }
    .subpage-groups-panel { padding:20px; }
}

@media (max-width:768px) {
    .subpage-media-prices-grid,
    .subpage-media-prices-grid.has-gallery.has-prices:not(.has-groups),
    .subpage-media-prices-grid.has-gallery.has-groups:not(.has-prices),
    .subpage-media-prices-grid.has-prices.has-groups:not(.has-gallery) {
        grid-template-columns:1fr;
        grid-template-areas:
            "prices"
            "groups"
            "gallery";
        gap:20px;
    }
    .subpage-gallery-panel .subpage-gallery .swiper { aspect-ratio:16 / 9; }
    .special-options__grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:480px) {
    .subpage-media-prices > .site-width { padding-top:26px; padding-bottom:28px; }
    .subpage-prices-panel,
    .subpage-groups-panel { padding:18px 16px; }
    .subpage-prices-panel h2,
    .subpage-gallery-panel .subpage-gallery .msdescription h2 { font-size:23px; }
    .subpage-groups-panel h2 { font-size:21px; }
    .special-options__grid { grid-template-columns:1fr; }
    .subpage-gallery-panel .subpage-gallery .swiper-button-prev,
    .subpage-gallery-panel .subpage-gallery .swiper-button-next {
        width:34px;
        height:34px;
        --swiper-navigation-size:19px;
    }
}

/* =========================================================
   Unterseite – Block 13 / Beschreibung & Beispiele
   ========================================================= */
.accommodation-description__intro {
    max-width:900px;
    margin:0 auto 28px;
    text-align:center;
}
.accommodation-description__intro h2,
.booking-examples h2 {
    margin:0 0 12px;
    color:var(--blue-deep);
    font:600 30px/1.2 Georgia, 'Times New Roman', serif;
}
.accommodation-description__intro p {
    margin:0;
    color:var(--text);
    font-size:15px;
    line-height:1.65;
}
.accommodation-overview {
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:24px;
    margin-top:24px;
}
.accommodation-overview__item {
    position:relative;
    padding:24px 24px 22px;
    background:#fff;
    border:1px solid #dce5ea;
    border-radius:10px;
    box-shadow:0 7px 22px rgba(28,58,78,.06);
}
.accommodation-overview__label {
    display:inline-flex;
    align-items:center;
    margin:0 0 10px;
    color:var(--blue-deep);
    font-size:13px;
    font-weight:700;
    line-height:1;
    letter-spacing:.05em;
}
.accommodation-overview__label::before { content:'['; margin-right:5px; color:#8caec1; font-weight:400; }
.accommodation-overview__label::after  { content:']'; margin-left:5px;  color:#8caec1; font-weight:400; }
.accommodation-overview__item h3 {
    margin:0 0 12px;
    color:var(--blue-deep);
    font:600 23px/1.25 Georgia, 'Times New Roman', serif;
}
.accommodation-overview__item p {
    margin:0 0 11px;
    color:var(--text);
    font-size:14px;
    line-height:1.6;
}
.accommodation-overview__item p:last-child { margin-bottom:0; }
.booking-examples {
    margin-top:38px;
    padding-top:32px;
    border-top:1px solid #d5e1e8;
}
.booking-examples > h2 { text-align:center; }
.booking-examples__grid {
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:16px;
    margin-top:22px;
}
.booking-example {
    padding:18px 16px 16px;
    background:#f6fafc;
    border:1px solid #dbe8ef;
    border-radius:9px;
}
.booking-example strong {
    display:block;
    margin-bottom:5px;
    color:var(--blue-deep);
    font:600 17px/1.25 Georgia, 'Times New Roman', serif;
}
.booking-example span {
    display:block;
    margin-bottom:9px;
    color:#557180;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
}
.booking-example p {
    margin:0;
    color:var(--text);
    font-size:13px;
    line-height:1.5;
}
.accommodation-description__note {
    max-width:900px;
    margin:24px auto 0;
    padding:14px 18px;
    border-left:3px solid var(--yellow);
    background:#fbfcfd;
    color:#4f5f68;
    font-size:13px;
    line-height:1.55;
}

@media (max-width:1024px) {
    .booking-examples__grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width:700px) {
    .accommodation-description__intro { text-align:left; }
    .accommodation-description__intro h2,
    .booking-examples h2 { font-size:26px; text-align:left; }
    .accommodation-overview { grid-template-columns:1fr; gap:16px; }
    .accommodation-overview__item { padding:20px 18px 18px; }
    .booking-examples { margin-top:30px; padding-top:26px; }
    .booking-examples__grid { grid-template-columns:1fr; gap:12px; }
}

/* =========================================================
   Kontaktseite – MPForm / Buchungsanfrage (Section 81)

   Erwartete MPForm-Layoutstruktur:
   Kopfzeile:   <div class="mpform-grid">
   Feldschleife:<div class="mpform-item {CLASSES}"> ... </div>
   Fusszeile:   </div><div class="submitbox">{SUBMIT}</div>

   Wichtig: MPForm vergibt Klassen wie mpform_date, mpform_email,
   mpform_select und mpform_checkbox sowohl fuer Feldtypen als auch
   ueber {CLASSES} am Wrapper. Die folgenden Regeln neutralisieren
   deshalb feste Breiten/Hintergruende des Modul-CSS gezielt nur am
   aeusseren .mpform-item.
   ========================================================= */

/* ---------- Grundrahmen ---------- */
div.mpform {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

div.mpform form {
    width: 100%;
    margin: 0;
}

/* Falls spaeter Fieldsets verwendet werden */
div.mpform fieldset {
    width: 100%;
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #dce5ea;
    border-radius: 10px;
    background: #fff;
}

div.mpform legend {
    margin: 0 0 12px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--blue-deep);
    font-weight: 700;
}

/* ---------- Zweispaltiges Formularraster ---------- */
div.mpform .mpform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

/*
   Entscheidender Reset gegen das originale MPForm-CSS:
   .mpform_date = 120px, .mpform_email/.mpform_select = 410px,
   .mpform_checkbox = 24px usw. duerfen den GRID-WRAPPER nicht
   dimensionieren oder grau hinterlegen.
*/
div.mpform .mpform-grid > .mpform-item {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Volle Breite innerhalb des zweispaltigen Rasters */
div.mpform .mpform-item.fid6,
div.mpform .mpform-item.fid11,
div.mpform .mpform-item.fid12,
div.mpform .mpform-item.fid14,
div.mpform .mpform-item.captcha,
div.mpform .mpform-grid > .form-privacy-note {
    grid-column: 1 / -1;
}

/* ---------- Feldtitel und Eingabebereich ---------- */
div.mpform .mpform-item .questionbox,
div.mpform .mpform-item .answerbox {
    clear: none;
    float: none;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

div.mpform .mpform-item .questionbox {
    margin: 0 0 4px;
    color: var(--text);
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

div.mpform .mpform-item .answerbox {
    margin: 0;
}

/* Pflichtstern */
div.mpform span.mpform_required {
    margin-left: 2px;
    color: #a53232;
    font-weight: 700;
}

/* ---------- Klartext-Hilfe statt Hilfe-Icon ---------- */
div.mpform .mpform_help {
    display: none !important;
}

div.mpform .mpform-helptext {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.35;
}

div.mpform .mpform-helptext:empty {
    display: none;
}

div.mpform .mpform-helptext .help_txt {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ---------- Eingabefelder ---------- */
div.mpform input.mpform_text,
div.mpform input.mpform_email,
div.mpform input.mpform_date,
div.mpform select.mpform_select,
div.mpform textarea.mpform_textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #c9d2d8;
    border-radius: 7px;
    background: #fff !important;
    background-image: none !important;
    color: var(--text);
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
}

div.mpform textarea.mpform_textarea {
    min-height: 105px;
    resize: vertical;
}

div.mpform input:focus,
div.mpform select:focus,
div.mpform textarea:focus {
    outline: none;
    border-color: var(--blue-dark);
    box-shadow: none !important;
}

/* ---------- Datumsfelder mit Kalendersymbol ---------- */
div.mpform .mpform-item.mpform_date .answerbox table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

div.mpform .mpform-item.mpform_date .answerbox td {
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

div.mpform .mpform-item.mpform_date .answerbox td:first-child {
    width: auto;
}

div.mpform .mpform-item.mpform_date .answerbox td:last-child {
    width: 30px;
    padding-left: 6px;
    text-align: right;
}

div.mpform .mpform-item.mpform_date input.mpform_date {
    width: 100% !important;
    min-width: 0;
}

div.mpform .mpform_date_img {
    display: inline-block;
    width: auto;
    max-width: 22px;
    height: auto;
    margin: 0;
    border: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* ---------- Datenschutz ---------- */
div.mpform .mpform-grid > .form-privacy-note {
    width: 100%;
    max-width: none;
    margin: 2px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #e2e8eb;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

div.mpform .mpform-grid > .form-privacy-note p,
div.mpform .form-privacy-note p {
    margin: 0;
}

div.mpform .mpform-item.fid14 .answerbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

div.mpform input.mpform_checkbox,
div.mpform input.mpform_err_checkbox {
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--blue-dark);
}

div.mpform .mpform_checkbox_label,
div.mpform .mpform_err_checkbox_label {
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.45;
}

/* ---------- Captcha ---------- */
div.mpform .mpform-item.captcha {
    width: 100% !important;
}

div.mpform .captcha_table {
    width: auto;
    max-width: 100%;
    margin: 0;
    border-collapse: collapse;
}

div.mpform .captcha_table td {
    padding: 2px 4px;
    font-size: 13px;
    vertical-align: middle;
}

div.mpform .captcha_table td:first-child {
    padding-left: 0;
}

div.mpform .captcha_table input {
    width: 70px;
    box-sizing: border-box;
    padding: 7px 8px;
    border: 1px solid #c9d2d8;
    border-radius: 6px;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    font: inherit;
}

/* ---------- Absenden ---------- */
div.mpform div.submitbox {
    clear: both;
    float: none;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 16px 0 0;
    padding: 0;
    text-align: left;
}

div.mpform div.submitbox input,
div.mpform input.mpform_submit {
    width: auto;
    min-width: 190px;
    margin: 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: #fff;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

div.mpform div.submitbox input:hover,
div.mpform input.mpform_submit:hover {
    background: var(--blue-dark);
}

/* ---------- Fehler und Erfolg ---------- */
div.mpform .mpform_err_date,
div.mpform .mpform_err_email,
div.mpform .mpform_err_textarea,
div.mpform .mpform_err_text,
div.mpform .mpform_err_select {
    border-color: #b3261e !important;
    background: #fff5f5 !important;
}

div.mpform div.mpform_missing {
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid #b3261e;
    border-radius: 7px;
    background: #fff5f5;
    color: #8a1f19;
    font-weight: 600;
}

div.mpform_results {
    margin: 20px 0;
    padding: 18px 20px;
    border: 1px solid #8aae8a;
    border-radius: 10px;
    background: #f4faf4;
}

/* =========================================================
   Kontaktseite – Sidebar (PageID 25)
   ========================================================= */
.body25 .main-content,
.body25 .sidebar {
    min-width: 0;
}

.body25 .sidebar .contact-intro,
.body25 .sidebar .contact-sidebar-card {
    width: 100%;
    padding: 20px 20px 18px;
    border: 1px solid #dce5ea;
    border-radius: 10px;
    background: #f7fafc;
}

.body25 .sidebar .contact-intro h2,
.body25 .sidebar .contact-sidebar-card h2 {
    margin: 0 0 14px;
    color: var(--blue-deep);
    font: 600 22px/1.2 Georgia, 'Times New Roman', serif;
}

.body25 .sidebar .contact-intro p,
.body25 .sidebar .contact-sidebar-card p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.body25 .sidebar .contact-intro p:last-child,
.body25 .sidebar .contact-sidebar-card p:last-child {
    margin-bottom: 0;
}

.body25 .sidebar .contact-intro a,
.body25 .sidebar .contact-sidebar-card a {
    overflow-wrap: anywhere;
    text-decoration: none;
}

.body25 .sidebar .contact-intro a:hover,
.body25 .sidebar .contact-sidebar-card a:hover {
    text-decoration: underline;
}

/* Bild in einem weiteren Sidebar-WYSIWYG, z. B. Jodokuskirche */
.body25 .sidebar img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
}

/* =========================================================
   Kontaktseite / MPForm – Responsive
   ========================================================= */
@media (max-width: 700px) {
    div.mpform .mpform-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 12px;
    }

    div.mpform .mpform-item.fid6,
    div.mpform .mpform-item.fid11,
    div.mpform .mpform-item.fid12,
    div.mpform .mpform-item.fid14,
    div.mpform .mpform-item.captcha,
    div.mpform .mpform-grid > .form-privacy-note {
        grid-column: 1;
    }

    div.mpform input.mpform_text,
    div.mpform input.mpform_email,
    div.mpform input.mpform_date,
    div.mpform select.mpform_select,
    div.mpform textarea.mpform_textarea {
        font-size: 16px;
    }

    div.mpform div.submitbox input,
    div.mpform input.mpform_submit {
        width: 100%;
    }

    div.mpform .captcha_table {
        width: 100%;
    }

    div.mpform .captcha_table td {
        font-size: 12px;
    }
}

/* =========================================================
   Althausen – kompaktere OneByOne-Typografie (PageID 24)
   Version 1.2.9

   Wichtig:
   Die im OneByOne-Backend eingestellten Spaltenbreiten (z. B.
   60/40, 40/60, 50/50, 33/33/33) werden hier bewusst NICHT
   ueberschrieben. Das Backend bleibt fuer die Aufteilung massgeblich.
   ========================================================= */
.body24 .obo_global_headline {
    margin: 12px 10px 6px;
    color: var(--blue-deep);
    font: 600 22px/1.25 Georgia, 'Times New Roman', serif;
}

.body24 .obo_unit h3 {
    margin: 10px 0 5px;
    color: var(--blue-deep);
    font: 600 17px/1.3 Georgia, 'Times New Roman', serif;
}

/* Keine zusaetzliche obere Luecke am Beginn einer OneByOne-Spalte. */
.body24 .obo_unit > h3:first-child,
.body24 .obo_unit > div > h3:first-child {
    margin-top: 0;
}

@media (max-width: 700px) {
    .body24 .obo_global_headline {
        margin: 10px 0 5px;
        font-size: 20px;
    }

    .body24 .obo_unit h3 {
        font-size: 16px;
    }
}

/* =========================================================
   Althausen – Zeitleistenbox „Althausen im Wandel der Zeit“
   PageID 24 / OneByOne-Inhalt mit Klasse .althausen-facts
   Version 1.3.0

   Ziel:
   - rechte 40%-Spalte der Geschichtssektion optisch als ruhige Infobox
   - kompaktere Typografie und geringere Absatzabstaende
   - optische Hoehe naeher an die linke Textspalte bringen

   Wichtig:
   Die im OneByOne-Backend gewaehlte Aufteilung (aktuell 60/40)
   bleibt unangetastet. Es werden keine Spaltenbreiten im Template
   festgelegt oder ueberschrieben.
   ========================================================= */
.body24 .althausen-facts {
    box-sizing: border-box;
    padding: 13px 15px 11px;
    border: 1px solid #d5e2ec;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fafc 0%, #eef5f9 100%);
    font-size: 14px;
    line-height: 1.42;
}

.body24 .althausen-facts h3 {
    margin: 0 0 9px;
    font-size: 16px;
    line-height: 1.25;
}

.body24 .althausen-facts p {
    margin: 0 0 7px;
}

.body24 .althausen-facts p:last-child {
    margin-bottom: 0;
}

.body24 .althausen-facts strong {
    color: var(--blue-deep);
    font-weight: 700;
}

@media (max-width: 568px) {
    .body24 .althausen-facts {
        margin-top: 4px;
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* =========================================================
   Mobile Fliesstext-Optimierung
   Nur Smartphones bis 768px:
   - Impressum (PageID 2)
   - Anfahrt & Lage (PageID 3)
   - Datenschutz (PageID 20)
   - Althausen (PageID 24)

   Nur p-Elemente innerhalb des normalen Seiteninhalts.
   Tablet/Desktop oberhalb 768px bleiben unveraendert.
   ========================================================= */
@media (max-width: 768px) {
    .body2 .legacy-content p,
    .body3 .legacy-content p,
    .body20 .legacy-content p,
    .body24 .legacy-content p {
        hyphens: auto;
        -webkit-hyphens: auto;
        text-wrap: pretty;
    }
}
