:root {
    --bg: #F5F9FF;
    --bg-soft: #ffffff;
    --header: #1a1a1b;
    --footer: #1a1a1b;
    --text: #121212;
    --muted: #515151;
    --accent: #000000;
}

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

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.no-js-only {
    display: none;
}

.app-splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.app-loading *:not(.app-splash):not(.app-splash *) {
    animation: none !important;
    transition: none !important;
}

.page {
    flex: 1;
}

/* -----------------------------------
   HEADER WRAPPER (STICKY)
----------------------------------- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

/* -----------------------------------
   HEADER / NAVIGATION
----------------------------------- */
nav {
    background: var(--header);
    padding: 4px 16px; /* kompakter */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Linker Bereich: Logo + Separator + Hotline */
.nav-left {
    display: flex;
    align-items: center;
    gap: 32px; /* harmonischer Abstand */
    min-width: 0;
    flex-shrink: 1;
}

/* LOGO-BILD */
.logo-block {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
}

/* Separator */
.header-separator {
    width: 1px;
    height: 70px; /* schöner proportioniert */
    background: #ffffff88;
    margin: 0 16px;
    flex-shrink: 0;
    align-self: center;
}

/* Hotline */
.header-hotline {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertikal mittig */
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.hl-phone {
    font-size: 15px;
    font-weight: 600;
}

.hl-time {
    font-size: 13px;
    color: var(--muted);
}

/* Rechter Bereich: Menü + Burger */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Menü */
.menu {
    display: flex;
    gap: 16px;
    white-space: nowrap;
}

.menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
}

.menu a:hover {
    opacity: 0.7;
}

.menu-legal-dropdown {
    position: relative;
}

.menu-legal-summary {
    color: var(--text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    list-style: none;
}

.menu-legal-summary::-webkit-details-marker {
    display: none;
}

.menu-legal-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #14181d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px;
    display: grid;
    gap: 6px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    z-index: 3000;
}

.menu-legal-dropdown-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.menu-legal-dropdown-list a:hover {
    opacity: 1;
    border-color: rgba(111, 180, 255, 0.35);
    background: rgba(111, 180, 255, 0.14);
}

.nav-right .menu a,
.nav-right .menu summary,
.mobile-menu a,
.hl-phone,
.hl-time,
footer,
footer a {
    color: #ffffff;
}

.hl-phone-link,
.hl-phone-link:visited,
.hl-phone-link:hover,
.hl-phone-link:active,
.hl-phone-link[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    -webkit-text-fill-color: currentColor;
}

nav {
    background: var(--header);
}

footer {
    background: var(--footer);
}

/* Burger */
.burger {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 5000;
}

.burger div {
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* -----------------------------------
   MOBILE BREAKPOINT
----------------------------------- */
@media (max-width: 1200px) {

    .menu {
        display: none;
    }

    .burger {
        display: flex;
    }

    nav {
        flex-wrap: wrap;
    }

    .header-hotline {
        margin-top: 4px;
    }
}

@media (max-width: 768px) {

    nav {
        padding: 8px 16px;
        gap: 12px;
    }

    .nav-left {
        width: calc(100% - 44px);
        gap: 16px;
    }

    .logo-img {
        height: 72px;
    }

    .header-separator {
        display: none;
    }

    .header-hotline {
        white-space: normal;
        margin-top: 8px;
    }

    .hl-phone {
        font-size: 14px;
    }

    .hl-time {
        font-size: 12px;
    }
}

/* -----------------------------------
   MOBILE SLIDE-IN MENU
----------------------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: #14181d;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.28);
    padding: 88px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: right 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 18, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
}

.mobile-menu.open {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(111, 180, 255, 0.14);
    border-color: rgba(111, 180, 255, 0.28);
    color: #dff0ff;
    transform: translateX(-2px);
}

.mobile-legal-title {
    margin-top: 8px;
    color: #9aa9bd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 10px 0;
}

.mobile-legal-link {
    margin-left: 12px;
}

/* -----------------------------------
   PAGE LAYOUT
----------------------------------- */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 180px 16px 64px;
    overflow-wrap: break-word;
}

/* -----------------------------------
   HOME INTRO ANIMATION
----------------------------------- */
body.home-intro .page > * {
    opacity: 0;
    transform: translateY(14px);
}

body.home-intro.home-intro-active .page > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

body.home-intro.home-intro-active .page > *:nth-child(1) { transition-delay: 0.08s; }
body.home-intro.home-intro-active .page > *:nth-child(2) { transition-delay: 0.20s; }
body.home-intro.home-intro-active .page > *:nth-child(3) { transition-delay: 0.32s; }
body.home-intro.home-intro-active .page > *:nth-child(4) { transition-delay: 0.44s; }
body.home-intro.home-intro-active .page > *:nth-child(5) { transition-delay: 0.56s; }
body.home-intro.home-intro-active .page > *:nth-child(6) { transition-delay: 0.68s; }
body.home-intro.home-intro-active .page > *:nth-child(7) { transition-delay: 0.80s; }
body.home-intro.home-intro-active .page > *:nth-child(8) { transition-delay: 0.92s; }
body.home-intro.home-intro-active .page > *:nth-child(9) { transition-delay: 1.04s; }
body.home-intro.home-intro-active .page > *:nth-child(10) { transition-delay: 1.16s; }
body.home-intro.home-intro-active .page > *:nth-child(11) { transition-delay: 1.28s; }
body.home-intro.home-intro-active .page > *:nth-child(12) { transition-delay: 1.40s; }

@media (prefers-reduced-motion: reduce) {
    body.home-intro .page > *,
    body.home-intro.home-intro-active .page > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -----------------------------------
   HERO
----------------------------------- */
.hero {
    padding: 48px 0;
}

.hero-logo {
    height: 180px;
    width: auto;
    margin: 0 auto 36px auto;
    display: block;
}

.hero-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.hero-sub {
    max-width: 520px;
    color: var(--muted);
}

.btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-decoration: none;
}

button.btn {
    background: transparent;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    transition: opacity 0.2s ease;
}

button.btn:hover {
    opacity: 0.7;
}

/* -----------------------------------
   SECTIONS
----------------------------------- */
section {
    padding: 40px 0;
    border-bottom: 1px solid #d0d8e8;
}

section[id] {
    scroll-margin-top: 190px;
}

#kontaktformular {
    scroll-margin-top: 190px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 140px;
    }

    #kontakt {
        scroll-margin-top: 96px;
    }

    #kontaktformular {
        scroll-margin-top: 96px;
    }
}

h2 {
    font-size: clamp(14px, 4vw, 18px);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
}

.section-text {
    max-width: 640px;
    color: var(--muted);
}

/* -----------------------------------
   LEISTUNGEN
----------------------------------- */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--bg-soft);
    padding: 16px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
}

#leistungen .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.card-price {
    color: var(--accent);
    margin-bottom: 8px;
}

.card-price small {
    display: inline-block;
    min-height: 1.2em;
    font-size: 0.8em;
    color: var(--muted);
    font-weight: normal;
}

.card-price-note-placeholder {
    visibility: hidden;
}

.card-text {
    color: var(--muted);
    font-size: 14px;
    min-height: 140px;
}

/* -----------------------------------
   FORMULAR
----------------------------------- */
form {
    margin-top: 20px;
    max-width: 520px;
}

.kontakt-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
    align-items: stretch;
}

.kontakt-info-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.kontakt-form {
    background: var(--bg-soft);
    padding: 18px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    align-self: stretch;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kontakt-form h2 {
    margin-bottom: 8px;
    margin-top: 0;
}

#kontaktformular .section-text {
    margin-bottom: 10px;
}

.kontakt-form form {
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.kontakt-feedback {
    margin: 0 0 16px 0;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #d0d8e8;
}

.kontakt-feedback-success {
    background: #eef9f0;
    border-color: #cce6d1;
    color: #1f5b2f;
}

.kontakt-feedback-error {
    background: #fff0f0;
    border-color: #f0c9c9;
    color: #8a2626;
}

.kontakt-feedback-title {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kontakt-feedback-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.kontakt-zeiten {
    background: var(--bg-soft);
    padding: 24px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    height: auto;
    align-self: start;
    width: 100%;
}

.ticket-box {
    background: var(--bg-soft);
    padding: 18px 20px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    height: auto;
    width: 100%;
}

.ticket-box-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ticket-box p {
    margin: 0 0 14px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.ticket-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #0f1720;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ticket-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.kontakt-zeiten h2 {
    margin-bottom: 20px;
    margin-top: 0;
}

.service-availability-inline {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    background: #f5f9ff;
}

.service-availability-inline-title {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.service-availability-inline-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.service-availability-inline-range {
    margin: 8px 0 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.service-availability-inline-more {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d0d8e8;
}

.service-availability-inline-more-title {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.service-availability-inline-faq {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-availability-inline-faq-item {
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.service-availability-inline-faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    padding: 9px 10px;
    cursor: pointer;
}

.service-availability-inline-faq-question:hover {
    background: #eef4ff;
}

.service-availability-inline-faq-answer {
    display: none;
    margin: 0;
    padding: 0 10px 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-line;
}

.service-availability-inline-faq-item.open .service-availability-inline-faq-answer {
    display: block;
}

.zeiten-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zeiten-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d8e8;
}

.zeiten-item .zeiten-info {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.zeiten-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zeiten-tag {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zeiten-uhrzeit {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
}

.zeiten-info {
    padding: 12px;
    background: #ffffff;
    border-left: 2px solid var(--accent);
    border-radius: 2px;
    margin-top: 4px;
}

.zeiten-info p {
    margin: 0;
    font-size: 12px;
    color: var(--accent);
    line-height: 1.4;
}

.zeiten-hinweis {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #d0d8e8;
}

.zeiten-hinweis h3 {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    margin: 0 0 12px 0;
    color: var(--text);
}

.zeiten-hinweis p {
    color: var(--muted);
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.5;
}

.zeiten-hinweis a {
    color: var(--accent);
    text-decoration: none;
}

.zeiten-hinweis a:hover {
    text-decoration: underline;
}

.hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.today-time-inline {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.kontakt-zeiten p {
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d0d8e8;
    color: var(--text);
    margin-bottom: 12px;
    border-radius: 4px;
}

textarea {
    min-height: 64px;
}

.kontakt-form textarea[name="nachricht"] {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow-y: auto;
    resize: none;
}

#kontaktformular input,
#kontaktformular select,
#kontaktformular textarea {
    margin-bottom: 8px;
    padding: 9px;
}

#kontaktformular .checkbox-label {
    margin-bottom: 8px;
}

#kontaktformular textarea[name="nachricht"] {
    margin-bottom: 8px;
}

#kontaktformular .checkbox-label:first-of-type {
    margin-top: 14px;
}

#kontaktformular .kontakt-altcha-wrap {
    margin: 6px 0 10px;
}

#kontaktformular .form-hint {
    margin-top: 6px;
}

.kontakt-form--auto-height textarea[name="nachricht"] {
    resize: none;
    overflow-y: auto;
}

.kontakt-form-field {
    display: block;
}

.kontakt-form-field-label {
    display: block;
    margin: 0 0 6px 0;
    font-size: 13px;
    color: var(--text);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.kontakt-altcha-wrap {
    margin: 8px 0 16px;
}

.required {
    color: #ff4444;
    font-weight: bold;
}

.form-hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 12px;
    margin-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

.notice-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 24, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10010;
    padding: 16px;
}

.notice-modal.open {
    opacity: 1;
    visibility: visible;
}

.notice-modal-box {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.notice-modal.open .notice-modal-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notice-modal-box h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice-modal-box p {
    margin: 0 0 12px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.notice-modal-ticket-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px 0;
    padding: 10px 16px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notice-modal-ticket-button:hover {
    opacity: 0.93;
    transform: translateY(-1px);
}

.ticket-preview {
    margin: 0 0 14px 0;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    overflow: hidden;
}

.ticket-preview-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f9ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ticket-preview-summary::-webkit-details-marker { display: none; }

.ticket-preview-summary::before {
    content: '▶';
    font-size: 10px;
    color: var(--muted);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.ticket-preview[open] .ticket-preview-summary::before {
    transform: rotate(90deg);
}

.ticket-preview-body {
    padding: 12px 14px;
    border-top: 1px solid #d0d8e8;
}

.ticket-preview-dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(80px, 140px) 1fr;
    gap: 6px 12px;
}

.ticket-preview-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0;
    padding-top: 2px;
}

.ticket-preview-value {
    font-size: 13px;
    color: var(--text);
    margin: 0;
    word-break: break-word;
}

.ticket-preview-value--message {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
}

.notice-modal-dynamic {
    margin: 0 0 14px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f5f9ff;
    border: 1px solid #d0d8e8;
}

.notice-modal-dynamic-success {
    background: #eef9f0;
    border-color: #cce6d1;
    color: #1f5b2f;
}

.notice-modal-dynamic-error {
    background: #fff0f0;
    border-color: #f0c9c9;
    color: #8a2626;
}

.notice-modal-alert .notice-modal-box {
    max-width: 460px;
}

.notice-modal-alert .notice-modal-dynamic {
    margin-bottom: 0;
}

.notice-modal-dynamic-title {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.notice-modal-dynamic-text {
    margin: 0;
    white-space: pre-line;
}

.notice-modal-blocks {
    max-height: min(52vh, 420px);
    overflow: auto;
    padding-right: 6px;
}

.notice-modal-blocks:empty {
    display: none;
}

.notice-modal-blocks .blog-block-image-wrap,
.notice-modal-blocks .blog-block-image {
    margin: 0;
}

.notice-modal-blocks .blog-block-image {
    max-height: min(46vh, 420px);
    object-fit: contain;
}

.home-availability-modal-intro {
    margin-bottom: 14px;
}

.home-availability-modal-content {
    margin-bottom: 18px;
}

.home-availability-modal-range {
    margin: 10px 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.home-availability-modal-more {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #d0d8e8;
}

.home-availability-modal-faq {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-availability-modal-faq-item {
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.home-availability-modal-faq-question {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 12px;
    cursor: pointer;
}

.home-availability-modal-faq-question:hover {
    background: #f5f9ff;
}

.home-availability-modal-faq-answer {
    display: none;
    margin: 0;
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.home-availability-modal-faq-item.open .home-availability-modal-faq-answer {
    display: block;
}

.notice-modal-button {
    margin-top: 6px;
}

.notice-modal-button:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .notice-modal-box {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-modal,
    .notice-modal-box {
        transition: none;
    }

    .notice-modal-box {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 800px) {
    .kontakt-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #kontaktformular textarea[name="nachricht"] {
        min-height: 140px;
    }
}

/* -----------------------------------
   FOOTER
----------------------------------- */
footer {
    background: var(--footer);
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
    color: #ffffff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
}

.footer-link-button {
    border: 0;
    background: transparent;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin: 0 8px;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.footer-link-button:hover {
    opacity: .86;
}

/* -----------------------------------
   BUTTONS IN CARDS
----------------------------------- */
.btn-card {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.card-payment {
    margin: 12px 0 16px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.card-payment small {
    font-size: 0.75em;
    color: var(--muted);
    line-height: 1.4;
}

.payment-notice {
    margin-top: 24px;
    padding: 16px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    text-align: center;
}

.payment-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
}

/* -----------------------------------
   EXTERNAL WARNING PAGE
----------------------------------- */
.external-warning-card {
    max-width: 760px;
    margin: 32px auto;
}

.external-warning-title {
    margin-top: 0;
    font-size: clamp(24px, 5.2vw, 36px);
    overflow-wrap: break-word;
}

.external-warning-target {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.external-warning-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.external-warning-actions .btn {
    margin-top: 0;
}

.external-warning-countdown {
    margin-top: 14px;
}

/* -----------------------------------
   TRUST SECTION
----------------------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    background: var(--bg-soft);
    padding: 20px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    text-align: center;
}

.trust-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.trust-icon i {
    display: inline-block;
}

.trust-title {
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 14px;
}

.trust-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* -----------------------------------
   FAQ SECTION
----------------------------------- */
.faq-list {
    margin-top: 24px;
}

#faq.faq-align-left {
    text-align: left;
}

#faq.faq-align-center {
    text-align: center;
}

#faq.faq-align-right {
    text-align: right;
}

.faq-item {
    background: var(--bg-soft);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #d0d8e8;
    border-radius: 4px;
    text-align: inherit;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    color: var(--text);
    gap: 12px;
}

.faq-question-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2a3a52;
    width: 1.2em;
    flex: 0 0 auto;
}

.faq-question::after {
    content: "▼";
    font-size: 12px;
    transition: transform 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: none;
    text-align: inherit;
}

.faq-item.open .faq-answer {
    display: block;
}

/* -----------------------------------
   LEGAL PAGES
----------------------------------- */
.legal-page h1 {
    font-size: clamp(24px, 6vw, 48px);
    margin-bottom: 10px;
    letter-spacing: 0.06em;
}

.legal-intro {
    color: var(--muted);
    margin-bottom: 16px;
}

.legal-card {
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.legal-card-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #1a2640;
    margin: 0 0 10px;
}

.legal-card p {
    margin: 0 0 10px 0;
    color: var(--muted);
    line-height: 1.6;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-dropdown-form {
    margin: 12px 0 18px;
    padding: 12px;
    border: 1px solid #d8e3f0;
    border-radius: 8px;
    background: #f8faff;
}

.legal-dropdown-label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #334;
}

.legal-dropdown-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.legal-dropdown-select {
    width: min(100%, 560px);
    padding: 10px 12px;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #1f2a3a;
}

.legal-withdrawal-form {
    display: grid;
    gap: 10px;
    max-width: none;
}

.legal-withdrawal-form .admin-field {
    display: grid;
    gap: 6px;
}

.legal-withdrawal-form .admin-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #334;
}

.legal-withdrawal-form input,
.legal-withdrawal-form textarea {
    width: 100%;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1f2a3a;
    background: #fff;
}

.legal-withdrawal-form textarea {
    resize: vertical;
}

.legal-withdrawal-trigger-wrap {
    margin-top: 12px;
}

.legal-withdrawal-trigger {
    width: min(100%, 340px);
}

.withdrawal-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 28px 16px;
}

.withdrawal-modal-box {
    max-width: 860px;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    margin: 12px 0;
}

.withdrawal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #d0d8e8;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.withdrawal-modal-header h3 {
    margin: 0;
    font-size: 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1f2a3a;
}

.withdrawal-modal-close {
    border: 1px solid #cad6eb;
    background: #fff;
    color: #1f2a3a;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    line-height: 1;
    font-size: 24px;
    cursor: pointer;
}

.withdrawal-modal-intro {
    margin: 0;
    padding: 14px 18px 0;
    color: #475469;
}

.legal-withdrawal-form-modal {
    padding: 14px 18px 18px;
    gap: 14px;
}

.legal-withdrawal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.legal-withdrawal-span-2 {
    grid-column: span 2;
}

.legal-withdrawal-checkbox-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    background: #f9fbff;
}

.legal-withdrawal-checkbox-row input {
    margin-top: 1px;
}

.legal-withdrawal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-withdrawal-cancel {
    background: #fff;
    color: #334;
    border: 1px solid #c8d3e8;
}

.legal-withdrawal-submit {
    min-width: 210px;
}

.legal-withdrawal-form .checkbox-row {
    font-size: 14px;
    color: #334;
}

.legal-withdrawal-form .checkbox-row input {
    margin-top: 2px;
}

.legal-card .admin-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
}

.legal-card .admin-alert-success {
    background: #eef9f0;
    color: #1f5b2f;
    border: 1px solid #cce6d1;
}

.legal-card .admin-alert-error {
    background: #fff0f0;
    color: #8a2626;
    border: 1px solid #f0c9c9;
}

@media (max-width: 840px) {
    .legal-withdrawal-grid {
        grid-template-columns: 1fr;
    }

    .legal-withdrawal-span-2 {
        grid-column: auto;
    }

    .legal-withdrawal-submit,
    .legal-withdrawal-cancel {
        width: 100%;
    }

    .legal-withdrawal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Tabellen im Impressum/Legal scrollbar statt overflow */
.legal-card table,
.card table {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

/* Lange URLs und Pre-Elemente brechen um */
.legal-card a,
.legal-card pre {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.legal-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}

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

.legal-page.legal-anim-enabled > * {
    opacity: 0;
    animation: legalFadeRise var(--legal-anim-duration, 560ms) ease-out forwards;
}

.legal-page.legal-anim-enabled > *:nth-child(1) { animation-delay: calc(var(--legal-anim-step, 110ms) * 1); }
.legal-page.legal-anim-enabled > *:nth-child(2) { animation-delay: calc(var(--legal-anim-step, 110ms) * 2); }
.legal-page.legal-anim-enabled > *:nth-child(3) { animation-delay: calc(var(--legal-anim-step, 110ms) * 3); }
.legal-page.legal-anim-enabled > *:nth-child(4) { animation-delay: calc(var(--legal-anim-step, 110ms) * 4); }
.legal-page.legal-anim-enabled > *:nth-child(5) { animation-delay: calc(var(--legal-anim-step, 110ms) * 5); }
.legal-page.legal-anim-enabled > *:nth-child(6) { animation-delay: calc(var(--legal-anim-step, 110ms) * 6); }
.legal-page.legal-anim-enabled > *:nth-child(7) { animation-delay: calc(var(--legal-anim-step, 110ms) * 7); }
.legal-page.legal-anim-enabled > *:nth-child(8) { animation-delay: calc(var(--legal-anim-step, 110ms) * 8); }
.legal-page.legal-anim-enabled > *:nth-child(9) { animation-delay: calc(var(--legal-anim-step, 110ms) * 9); }
.legal-page.legal-anim-enabled > *:nth-child(10) { animation-delay: calc(var(--legal-anim-step, 110ms) * 10); }

@media (prefers-reduced-motion: reduce) {
    .legal-page.legal-anim-enabled > * {
        opacity: 1;
        animation: none;
    }
}

.hero-secondary-btn {
    margin-left: 10px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 20px;   /* oder 24px, 28px – je nach Geschmack */
    margin-left: 0;       /* Browser-Standard entfernen */
}

.legal-page li {
    margin-bottom: 6px;   /* bessere Lesbarkeit */
}

/* -----------------------------------
   AGB-VERSIONIERUNG
----------------------------------- */
.agb-version-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f4f8ff;
    border: 1px solid #d0ddf0;
    border-radius: 8px;
    font-size: 13px;
    color: #445;
}

.agb-version-label {
    font-weight: 700;
    color: #2a3f6b;
}

.agb-version-date {
    color: #607;
}

.agb-version-archived {
    background: #fff3cd;
    color: #7b5800;
    border: 1px solid #f5d97a;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agb-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.agb-pdf-download:hover {
    opacity: 0.75;
}

.agb-pdf-download:hover {
    background: #0f3490;
    color: #fff;
}

.legal-blocks {
    margin-bottom: 32px;
}

.blog-block-section {
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    padding: 18px 22px 18px;
    margin: 0 0 16px;
}

.blog-block-section-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a2640;
    margin: 0 0 10px;
    padding: 0;
}

.blog-block-section p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #2c3a50;
}

.agb-version-archive {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #d8e4f0;
}

.agb-version-archive-title {
    font-size: 16px;
    color: #334;
    margin-bottom: 12px;
}

.agb-version-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.agb-version-archive-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #f8faff;
    border: 1px solid #d8e3f0;
    border-radius: 6px;
    font-size: 14px;
}

.agb-version-archive-item.is-current {
    background: #f0f8f2;
    border-color: #c4dfc8;
}

.agb-version-archive-item a:first-child {
    flex: 1;
    color: #1a3a6b;
    text-decoration: none;
    font-weight: 500;
}

.agb-version-archive-item a:first-child:hover {
    text-decoration: underline;
}

.agb-version-archive-date {
    font-weight: 400;
    color: #667;
    font-size: 12px;
    margin-left: 6px;
}

.agb-version-archive-current {
    background: #4caf50;
    color: #fff;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

.agb-version-archive-pdf {
    padding: 4px 10px;
    background: #e8f0fe;
    color: #1a4bb8;
    border: 1px solid #c5d5f8;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
}

.agb-version-archive-pdf:hover {
    background: #d0e0fd;
}

/* -----------------------------------
   BLOG
----------------------------------- */
.blog-page {
    padding-top: 140px;
    width: min(960px, calc(100% - 32px));
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.blog-page > section,
.blog-hero,
.blog-grid,
.blog-detail-card {
    width: 100%;
    max-width: 100%;
}

.blog-detail-section {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.blog-detail-section .blog-detail-card {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

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

.blog-page.blog-anim-subtle .blog-hero,
.blog-page.blog-anim-subtle .blog-list-card,
.blog-page.blog-anim-subtle .blog-detail-card {
    opacity: 0;
    animation: blogRiseIn 560ms ease-out forwards;
}

.blog-page.blog-anim-subtle .blog-hero {
    animation-delay: 40ms;
}

.blog-page.blog-anim-subtle .blog-list-card:nth-child(1) { animation-delay: 120ms; }
.blog-page.blog-anim-subtle .blog-list-card:nth-child(2) { animation-delay: 180ms; }
.blog-page.blog-anim-subtle .blog-list-card:nth-child(3) { animation-delay: 240ms; }
.blog-page.blog-anim-subtle .blog-list-card:nth-child(4) { animation-delay: 300ms; }
.blog-page.blog-anim-subtle .blog-list-card:nth-child(n+5) { animation-delay: 360ms; }

.blog-page.blog-anim-subtle .blog-detail-card {
    animation-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
    .blog-page.blog-anim-subtle .blog-hero,
    .blog-page.blog-anim-subtle .blog-list-card,
    .blog-page.blog-anim-subtle .blog-detail-card {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

.blog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    row-gap: 12px;
    align-items: end;
    border-bottom: 1px solid #d0d8e8;
}

.blog-hero h1 {
    grid-column: 1 / -1;
    font-size: clamp(36px, 5vw, 44px);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.blog-hero .section-text {
    margin: 0;
}

.blog-list-section {
    padding-top: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.blog-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
}

.blog-filter-field {
    display: grid;
    gap: 6px;
}

.blog-filter-label {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.blog-filter-field input,
.blog-filter-field select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.blog-filter-actions {
    display: grid;
    gap: 6px;
    align-content: start;
    margin: 0;
    padding: 0;
}

.blog-filter-label-ghost {
    visibility: hidden;
    user-select: none;
}

.blog-filter-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.blog-filter-actions .btn {
    margin: 0;
    height: 46px;
    min-height: 46px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    vertical-align: middle;
}

.blog-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}

.blog-list-toolbar .btn {
    margin-top: 0;
}

.blog-list-section {
    padding-top: 24px;
}

.blog-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.blog-category-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.blog-category-card {
    display: grid;
    gap: 8px;
}

.blog-category-card h3 {
    margin: 0;
    font-size: 18px;
}

.blog-category-card-count {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-category-card-preview {
    margin: 0;
    padding-left: 18px;
    color: #3e4f66;
    font-size: 13px;
    display: grid;
    gap: 4px;
}

@media (max-width: 900px) {
    .blog-hero {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .blog-hero .section-text {
        grid-column: 1;
    }

    .blog-hero .blog-list-toolbar {
        justify-content: flex-start;
    }

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

    .blog-category-overview {
        grid-template-columns: 1fr;
    }

    .blog-filter-bar {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: clamp(30px, 8vw, 36px);
    }
}

.blog-list-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.blog-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-category-section {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.blog-category-section + .blog-category-section {
    border-top: 1px solid #d0d8e8;
    padding-top: 22px;
}

.blog-category-headline h2 {
    margin-bottom: 6px;
}

.blog-category-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .external-warning-card {
        margin: 18px auto;
    }

    .blog-list-toolbar,
    .blog-category-actions,
    .blog-filter-action-row,
    .external-warning-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .blog-list-toolbar .btn,
    .blog-category-actions .btn,
    .blog-filter-action-row .btn,
    .external-warning-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
    position: static;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d0d8e8;
    border-radius: 999px;
    background: var(--bg-soft);
    box-shadow: none;
    text-shadow: none;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.blog-page-link:hover {
    background: #eef3fb;
    border-color: #bcc9df;
}

.blog-page-link.is-active {
    background: var(--bg-soft);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 900;
    cursor: default;
    pointer-events: none;
    text-decoration: none;
}

.blog-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 28px;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.blog-list-card h2 {
    margin-bottom: 6px;
}

.blog-category-kicker {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #5f6f8c;
}

.blog-list-card .section-text {
    max-width: none;
    flex: 1;
}

.blog-list-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d0d8e8;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-taxonomy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 4px;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-chip-category {
    background: #edf4ff;
    color: #21456f;
}

.blog-chip-tag {
    background: #f6efe2;
    color: #7c5623;
}

.home-blog-section {
    display: grid;
    gap: 20px;
}

.home-blog-after-faq {
    border-top: 1px solid #d0d8e8;
}

.home-blog-head,
.home-blog-category-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.home-blog-featured-grid,
.home-blog-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-blog-category-group {
    display: grid;
    gap: 14px;
}

.home-blog-card h3,
.home-blog-card h4 {
    margin-bottom: 6px;
}

.home-blog-card-compact .section-text {
    min-height: 0;
}

.blog-detail-card {
    background: #ffffff;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    padding: 22px;
}

.blog-detail-header h2 {
    font-size: 24px;
    letter-spacing: 0.04em;
}

.blog-cover-wrap {
    margin: 16px 0 0 0;
}

.blog-cover-source {
    margin: 0;
    text-align: right;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.blog-cover-source a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-detail-byline {
    margin: 12px 0 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.blog-cover {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d0d8e8;
}

.blog-blocks {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.blog-blocks p {
    color: var(--muted);
    line-height: 1.75;
}

.blog-block-heading {
    margin: 6px 0 2px 0;
    text-transform: none;
    letter-spacing: 0.03em;
}

.notice-modal-blocks h2.blog-block-heading { font-size: 15px; }
.notice-modal-blocks h3.blog-block-heading { font-size: 13px; }
.notice-modal-blocks h4.blog-block-heading { font-size: 12px; }

.blog-block-image-wrap {
    margin: 0;
}

.blog-block-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #d0d8e8;
}

img[data-zoomable="1"] {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(8, 12, 18, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox-stage {
    width: min(96vw, 1300px);
    height: min(86vh, 920px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.image-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.12s ease;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: zoom-in;
    border-radius: 8px;
}

.image-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid #6f8199;
    background: rgba(23, 31, 43, 0.88);
    color: #fff;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.image-lightbox-toolbar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(23, 31, 43, 0.88);
    border: 1px solid #6f8199;
    border-radius: 999px;
    padding: 6px 8px;
}

.image-lightbox-btn {
    border: 1px solid #8ea4c4;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    cursor: pointer;
}

.image-lightbox-btn:hover {
    background: rgba(170, 198, 238, 0.18);
}

@media (max-width: 700px) {
    .image-lightbox {
        padding: 12px;
    }

    .image-lightbox-stage {
        height: min(82vh, 680px);
    }
}

.blog-block-image-wrap figcaption {
    margin-top: 0;
    text-align: right;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.2;
}

.blog-block-divider {
    border: none;
    border-top: 2px solid #d0d8e8;
    margin: 4px 0;
}

.blog-block-list {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.75;
}

ul.blog-block-list {
    list-style-type: disc;
}

ul.blog-block-list ul.blog-block-list {
    list-style-type: circle;
}

ul.blog-block-list ul.blog-block-list ul.blog-block-list,
ul.blog-block-list ul.blog-block-list ul.blog-block-list ul.blog-block-list {
    list-style-type: square;
}

ol.blog-block-list,
ol.blog-block-list ol.blog-block-list,
ol.blog-block-list ol.blog-block-list ol.blog-block-list,
ol.blog-block-list ol.blog-block-list ol.blog-block-list ol.blog-block-list {
    list-style-type: decimal;
}

.blog-block-list li {
    margin-bottom: 5px;
}

.blog-block-list ul,
.blog-block-list ol {
    margin-top: 4px;
    padding-left: 18px;
}

.blog-block-list ul li,
.blog-block-list ol li {
    margin-bottom: 3px;
}

.blog-block-quote {
    border-left: 3px solid var(--accent);
    margin: 0;
    padding: 10px 16px;
    background: #f5f8ff;
    border-radius: 0 8px 8px 0;
    color: #334;
    font-style: italic;
    line-height: 1.7;
}

.blog-block-quote cite {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    font-style: normal;
}

@media (max-width: 900px) {
    .home-blog-head,
    .home-blog-category-head {
        align-items: start;
        flex-direction: column;
    }

    .home-blog-featured-grid,
    .home-blog-category-grid {
        grid-template-columns: 1fr;
    }
}

.blog-block-callout {
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    line-height: 1.65;
}

.blog-block-callout.callout-info {
    background: #e8f4ff;
    border-left: 4px solid #2a7acc;
    color: #1a3d66;
}

.blog-block-callout.callout-warning {
    background: #fff8e8;
    border-left: 4px solid #e6a817;
    color: #5a3c00;
}

.blog-block-callout.callout-tip {
    background: #f0fff4;
    border-left: 4px solid #22a36a;
    color: #0d4023;
}

.blog-block-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d0d8e8;
    border-radius: 8px;
    background: #fff;
}

.blog-block-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 14px;
}

.blog-block-table th {
    padding: 9px 12px;
    background: #eef2fa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #d0d8e8;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.blog-block-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #edf0f7;
    color: var(--muted);
    white-space: nowrap;
}

.blog-block-table tr:last-child td {
    border-bottom: none;
}

.blog-inline-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid-2 {
        grid-template-columns: 1fr;
    }

    .blog-page {
        padding-top: 116px;
    }
}

@media (max-width: 700px) {
    .hero-secondary-btn {
        margin-left: 0;
        display: block;
        width: fit-content;
    }
}

/* Admin dropdown navigation */
.admin-dropdown-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.admin-dropdown-nav-item {
    position: relative;
}

.admin-dropdown-nav-item > summary {
    list-style: none;
}

.admin-dropdown-nav-item > summary::-webkit-details-marker {
    display: none;
}

.admin-dropdown-nav-btn {
    cursor: pointer;
}

.admin-dropdown-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid #d0d8e8;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(16, 22, 34, 0.12);
    padding: 8px;
    display: grid;
    gap: 6px;
    z-index: 60;
}

.admin-dropdown-nav-menu a {
    display: block;
    text-decoration: none;
    color: #223;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f7f9ff;
}

.admin-dropdown-nav-menu a:hover {
    border-color: #1a4fa3;
    color: #1a4fa3;
    background: #eef3ff;
}

.admin-logout-btn {
    background: #b7232f;
    color: #fff;
    border-color: #9f1f2a;
}

.admin-logout-btn:hover {
    background: #961a24;
    border-color: #7f131c;
    color: #fff;
}

.admin-page form {
    max-width: none;
    width: 100%;
}

