/* Outfit Font - Local Hosting */
/* outfit-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/outfit-v15-latin-300.woff2') format('woff2');
}

/* outfit-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/outfit-v15-latin-regular.woff2') format('woff2');
}

/* outfit-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/outfit-v15-latin-500.woff2') format('woff2');
}

/* outfit-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/outfit-v15-latin-600.woff2') format('woff2');
}

/* outfit-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/outfit-v15-latin-700.woff2') format('woff2');
}

:root {
    --primary-yellow: #ebbc26;
    --primary-yellow-light: #f5d56d;
    --secondary-blue: #303f4f;
    --secondary-blue-light: #4a5c6d;
    --accent-green: #4caf50;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --bg-light: #ffffff;
    --bg-offset: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--secondary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-links a {
    color: var(--secondary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.header.scrolled .nav-toggle span {
    background: var(--secondary-blue);
}

/* Hero Logo */
.hero-logo {
    max-width: 150px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    border-radius: var(--radius);
}

/* Hero */
.hero {
    height: 90vh;
    position: relative;
    background-image: url('kita_hero_image_optimized.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -80px;
    /* Offset for transparent header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(48, 63, 79, 0.8) 0%, rgba(235, 188, 38, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--secondary-blue);
}

.btn-primary:hover {
    background: var(--primary-yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(235, 188, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}

/* Contact Strip */
.contact-strip {
    padding: 80px 0;
    background: var(--secondary-blue);
    color: var(--white);
}

.contact-strip a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.contact-strip a:hover {
    color: var(--primary-yellow);
}

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

.contact-card {
    text-align: center;
}

.impressum-card {
    text-align: left;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-yellow);
}

/* News Section */
.news {
    padding: 100px 0;
    background: var(--bg-offset);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-yellow);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.news-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-blue);
}

.news-body {
    line-height: 1.6;
    color: var(--text-dark, #333);
}

.news-body p + p {
    margin-top: 0.75rem;
}

.news-body ul,
.news-body ol {
    margin: 0.6rem 0 0.6rem 1.4rem;
    padding: 0;
}

.news-body li {
    margin-bottom: 0.25rem;
}

.news-body a {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-body a:hover {
    color: var(--primary-yellow);
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--primary-yellow);
    font-weight: 700;
}

/* Info Section / Table */
.info-section {
    padding: 100px 0;
}

.table-container {
    margin-top: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--secondary-blue);
    color: var(--white);
    font-weight: 600;
    text-align: left;
}

tr:last-child td {
    border-bottom: none;
}

.info-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.alternate-bg {
    background: var(--bg-offset);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.group-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.group-header {
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.group-header.krippe {
    background: var(--accent-green);
}

.group-header.kiga {
    background: var(--primary-yellow);
    color: var(--secondary-blue);
}

.group-header.hort {
    background: var(--secondary-blue);
}

.group-body {
    padding: 30px;
}

.time-block {
    margin-bottom: 20px;
}

.time-block strong {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-blue);
}

.time-block ul {
    list-style: none;
    font-size: 0.95rem;
}

.time-block li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}

.time-block li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
}

.group-body .note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Fees Section */
.fee-notice {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-blue);
    box-shadow: var(--shadow);
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.notice-icon svg {
    width: 32px;
    height: 32px;
    color: var(--secondary-blue);
}

#fee-notice-text {
    line-height: 1.55;
}

#fee-notice-text p + p {
    margin-top: 0.5rem;
}

#fee-notice-text ul,
#fee-notice-text ol {
    margin: 0.4rem 0 0.4rem 1.4rem;
    padding: 0;
}

#fee-notice-text a {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: underline;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.fee-table-wrap h3 {
    margin-bottom: 20px;
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 40px;
}

.footer-info .logo-text {
    color: var(--white);
    margin-bottom: 10px;
    display: block;
}

.footer-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Legal View Styles */
.legal-view {
    display: none;
    padding: 140px 0 80px;
    background: var(--bg-light);
    min-height: 80vh;
}

body.is-legal-view main {
    display: none;
}

body.is-legal-view .legal-view {
    display: block;
}

.legal-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 40px;
    text-align: center;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.legal-block h3 {
    font-size: 1.1rem;
    color: var(--primary-yellow);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.legal-block p {
    color: var(--text-main);
    font-size: 1.05rem;
}

.legal-block a {
    color: var(--secondary-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
}

.legal-block a:hover {
    color: var(--primary-yellow);
}

.legal-source {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.legal-nav-back {
    margin-top: 60px;
    text-align: center;
}

.legal-text-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.legal-sub-section {
    margin-bottom: 50px;
}

.legal-sub-section h3 {
    color: var(--secondary-blue);
    font-size: 1.6rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 8px;
    display: inline-block;
}

.legal-sub-section h4 {
    color: var(--secondary-blue);
    font-size: 1.2rem;
    margin: 30px 0 12px;
    font-weight: 600;
}

.legal-sub-section p {
    margin-bottom: 18px;
    color: var(--text-main);
    line-height: 1.7;
}

.legal-sub-section strong {
    color: var(--secondary-blue);
    font-weight: 600;
}

.legal-sub-section a {
    color: var(--secondary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.legal-sub-section a:hover {
    color: var(--primary-yellow);
}

/* =====================================================
   CMS Bilder, Positionierung & Lightbox
   ===================================================== */
.news-card.has-media {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-card.news-pos-left,
.news-card.news-pos-right {
    display: grid;
    grid-template-columns: minmax(140px, 38%) 1fr;
    gap: 24px;
    align-items: start;
}

.news-card.news-pos-right .news-media {
    order: 2;
}

.news-card.news-pos-right .news-card-content {
    order: 1;
}

.news-card.news-pos-bottom .news-media {
    order: 2;
}

.news-card.news-pos-bottom .news-card-content {
    order: 1;
}

.news-media {
    margin: 0;
}

.cms-media-frame {
    position: relative;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid rgba(48, 63, 79, 0.08);
}

.cms-media-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.news-card .cms-media-frame.fit-cover img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-card.news-pos-left .cms-media-frame.fit-cover img,
.news-card.news-pos-right .cms-media-frame.fit-cover img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.cms-media-frame.fit-contain {
    background: #f1f5f9;
    padding: 6px;
}

.cms-media-frame.fit-contain img {
    max-height: 280px;
    object-fit: contain;
    margin: 0 auto;
}

.cms-media-frame.is-clickable {
    cursor: zoom-in;
}

.cms-zoom-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    transition: background 0.2s;
}

.cms-zoom-badge:hover {
    background: rgba(15, 23, 42, 0.92);
}

.cms-media-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

/* Lightbox Dialog */
.lightbox-dialog {
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    max-width: min(92vw, 1000px);
    max-height: 92vh;
    overflow: visible;
}

.lightbox-dialog::backdrop {
    background-color: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: var(--secondary-blue);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--primary-yellow);
    color: var(--secondary-blue);
}

.lightbox-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lightbox-caption:empty {
    display: none;
}

/* =====================================================
   Eigene Bereiche & Subbereiche (4 Layout-Typen)
   ===================================================== */
.custom-rich-text {
    line-height: 1.65;
    color: var(--text-main);
}

.custom-rich-text p + p {
    margin-top: 0.75rem;
}

.custom-rich-text ul,
.custom-rich-text ol {
    margin: 0.5rem 0 0.5rem 1.4rem;
    padding: 0;
}

.custom-rich-text li {
    margin-bottom: 0.25rem;
}

.custom-rich-text a {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.custom-rich-text a:hover {
    color: var(--primary-yellow);
}

/* 1. Karten-Raster */
.custom-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 2. Akkordeon (FAQ / Themen) */
.custom-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.custom-accordion details {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(48, 63, 79, 0.08);
    overflow: hidden;
}

.custom-accordion summary {
    list-style: none;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--secondary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.custom-accordion summary::-webkit-details-marker {
    display: none;
}

.custom-accordion summary:hover {
    background: rgba(235, 188, 38, 0.08);
}

.custom-accordion summary::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--primary-yellow);
    border-bottom: 2.5px solid var(--primary-yellow);
    transform: rotate(-45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.custom-accordion details[open] > summary::before {
    transform: rotate(45deg);
    margin-top: -4px;
}

.custom-accordion details[open] > summary {
    border-bottom: 1px solid #eef2f6;
}

.custom-accordion details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
}

.custom-accordion details:not([open])::details-content {
    block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .custom-accordion details::details-content {
        transition: block-size 0.28s ease-in-out, content-visibility 0.28s ease-in-out;
        transition-behavior: allow-discrete;
    }
}

.accordion-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-body.pos-left,
.accordion-body.pos-right {
    display: grid;
    grid-template-columns: minmax(180px, 36%) 1fr;
    gap: 24px;
    align-items: start;
}

.accordion-body.pos-right .sub-media {
    order: 2;
}

.accordion-body.pos-bottom .sub-media {
    order: 2;
}

/* 3. Tabs / Reiter */
.custom-tabs {
    max-width: 960px;
    margin: 0 auto;
}

.custom-tablist {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    scrollbar-width: thin;
}

.custom-tab-btn {
    position: relative;
    flex: none;
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.custom-tab-btn:hover {
    color: var(--secondary-blue);
}

.custom-tab-btn[aria-selected="true"] {
    color: var(--secondary-blue);
}

.custom-tab-btn[aria-selected="true"]::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px;
    border-block-end: 3px solid var(--primary-yellow);
}

.custom-tab-panel-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-tab-panel-card.pos-left,
.custom-tab-panel-card.pos-right {
    display: grid;
    grid-template-columns: minmax(220px, 40%) 1fr;
    gap: 28px;
    align-items: start;
}

.custom-tab-panel-card.pos-right .sub-media,
.custom-tab-panel-card.pos-bottom .sub-media {
    order: 2;
}

.custom-tab-panel-card .cms-media-frame.fit-cover img {
    max-height: 320px;
    object-fit: cover;
}

/* 4. Text- & Bild-Blöcke */
.custom-media-blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.custom-media-block {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.custom-media-block.pos-left,
.custom-media-block.pos-right {
    display: grid;
    grid-template-columns: minmax(240px, 42%) 1fr;
    gap: 36px;
    align-items: center;
}

.custom-media-block.pos-right .sub-media,
.custom-media-block.pos-bottom .sub-media {
    order: 2;
}

.custom-media-block .cms-media-frame.fit-cover img {
    max-height: 360px;
    object-fit: cover;
}

.custom-media-block h3 {
    color: var(--secondary-blue);
    margin-bottom: 12px;
    font-size: 1.45rem;
}

@media (max-width: 768px) {
    .news-card.news-pos-left,
    .news-card.news-pos-right,
    .accordion-body.pos-left,
    .accordion-body.pos-right,
    .custom-tab-panel-card.pos-left,
    .custom-tab-panel-card.pos-right,
    .custom-media-block.pos-left,
    .custom-media-block.pos-right {
        grid-template-columns: 1fr;
    }

    .news-card.news-pos-right .news-media,
    .accordion-body.pos-right .sub-media,
    .custom-tab-panel-card.pos-right .sub-media,
    .custom-media-block.pos-right .sub-media {
        order: 0;
    }

    .custom-media-block,
    .custom-tab-panel-card {
        padding: 24px;
    }
}

/* =====================================================
   Vorschau-Modus (Preview Mode)
   ===================================================== */
.preview-badge-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.preview-badge-tag.draft {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.preview-badge-tag.scheduled {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.preview-badge-tag.expired {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.preview-floating-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 950;
    background: #1e293b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    max-width: 94vw;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-floating-banner a,
.preview-floating-banner button {
    background: var(--primary-yellow);
    color: #1a1a1a;
    border: none;
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.preview-floating-banner label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
