/* ================================
   MODERN RESPONSIVE DESIGN
   Mobile-First Approach
   ================================ */

html {
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

:root {
    --skeleton-bg: #f6f6f6;
    --skeleton-surface: #ffffff;
    --skeleton-block: #e4e4e4;
    --skeleton-border: #ececec;
    --skeleton-shimmer: rgba(255, 255, 255, 0.65);
}

html.is-nighttime {
    --skeleton-bg: #050505;
    --skeleton-surface: #121212;
    --skeleton-block: #2b2b2b;
    --skeleton-border: #1f1f1f;
    --skeleton-shimmer: rgba(255, 255, 255, 0.18);
}

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

html.no-font-consent {
    font-size: 15px;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: visible;
}

body.page-loading {
    overflow: hidden;
}

body.page-loading > *:not(.skeleton-loader) {
    visibility: hidden;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skeleton-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--skeleton-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body:not(.page-loading) .skeleton-loader {
    opacity: 0;
    visibility: hidden;
}

.skeleton-shell {
    width: min(1200px, 100%);
}

.skeleton-bar,
.skeleton-line,
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: var(--skeleton-block);
}

.skeleton-bar::after,
.skeleton-line::after,
.skeleton-card::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, var(--skeleton-shimmer) 50%, transparent 100%);
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.skeleton-header {
    height: 72px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.skeleton-breadcrumb {
    height: 28px;
    width: 220px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pressum-easteregg-section {
    position: relative;
    min-height: clamp(520px, 76vh, 900px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-image: url("../../images/stern_pils.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
}

.pressum-main {
    max-width: 100%;
    padding: 0;
}

.pressum-overlay {
    width: min(900px, calc(100% - 2rem));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    padding-top: clamp(1.25rem, 4.2vh, 3.2rem);
    padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.pressum-title {
    margin: 0;
    font-family: "Gentium Book Basic", Arial, sans-serif;
    font-size: clamp(2.6rem, 8vw, 4.8rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    color: #f0f0f0;
    background: rgba(0, 0, 0, 0.58);
    padding: 0.45em 0.8em;
    border-radius: 10px;
    text-align: center;
}

.pressum-title .pressum-im {
    position: relative;
    display: inline-block;
    color: #ffffff;
    opacity: 0.92;
}

.pressum-title .pressum-im::before,
.pressum-title .pressum-im::after {
    content: "";
    position: absolute;
    left: -0.12em;
    top: 0.4em;
    width: 1.4em;
    height: 0.12em;
    background: #050505;
    border-radius: 0;
    transform-origin: center;
    opacity: 0.96;
    box-shadow: none;
}

.pressum-title .pressum-im::before {
    transform: rotate(-26deg);
}

.pressum-title .pressum-im::after {
    left: -0.12em;
    top: 0.4em;
    width: 1.4em;
    transform: rotate(26deg);
}

.pressum-title .pressum-rest {
    color: #c41e3a;
}

.pressum-panel,
.bierminute-rechner,
.korpobird-panel {
    width: min(680px, 100%);
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0 1rem 0.65rem;
    color: #ffffff;
    text-align: center;
}

.pressum-panel h2,
.bierminute-rechner h2 {
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.pressum-panel p,
.bierminute-rechner p {
    margin: 0 0 0.9rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
}

.korpobird-panel {
    width: min(680px, 100%);
}

.korpobird-panel .button {
    white-space: nowrap;
    border: none;
    appearance: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.korpobird-panel-actions {
    margin-top: 0.85rem;
    display: flex;
    justify-content: center;
}

.korpobird-shell {
    width: min(760px, 100%);
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 1rem;
    color: #ffffff;
}

@media (min-width: 769px) {
    .korpobird-shell {
        width: auto;
        align-self: center;
    }

    .korpobird-canvas {
        width: auto !important;
        height: min(80vh, 860px);
        aspect-ratio: 3 / 4;
    }
}

.korpobird-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.korpobird-score {
    font-size: clamp(1rem, 2.3vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.korpobird-stage {
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.korpobird-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #8dd3ff 0%, #d7f2ff 38%, #f6fbff 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.korpobird-canvas:focus {
    outline: none;
}

.korpobird-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.korpobird-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.korpobird-overlay-card {
    width: min(360px, 100%);
    background: rgba(0, 0, 0, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.korpobird-overlay-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.korpobird-overlay-card p {
    margin: 0 0 0.9rem;
    line-height: 1.5;
    color: #ffffff;
}

#korpobird-overlay-title,
#korpobird-overlay-text {
    color: #ffffff;
}

.korpobird-overlay-card .button {
    white-space: nowrap;
    border: none;
    appearance: none;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.korpobird-tips {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.pressum-easteregg-section .pressum-panel p,
.pressum-easteregg-section .bierminute-rechner p,
.pressum-easteregg-section .bierminute-result,
.pressum-easteregg-section .pressum-panel h2,
.pressum-easteregg-section .bierminute-rechner h2 {
    color: #ffffff;
}

.bierminute-rechner p a {
    color: #c41e3a;
    text-decoration: underline #c41e3a;
    text-transform: none;
    font-weight: 700;
}

.biermode-toggle {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.biermode-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.biermode-trigger:hover,
.biermode-toggle.is-open .biermode-trigger {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
}

.biermode-arrow {
    font-size: 0.7rem;
    transition: transform 0.18s;
}

.biermode-toggle.is-open .biermode-arrow {
    transform: rotate(180deg);
}

.biermode-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    flex-direction: column;
    align-items: stretch;
    min-width: 260px;
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}

.biermode-toggle.is-open .biermode-menu {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.biermode-option {
    border: none;
    background: transparent;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    transition: background 0.15s;
}

.biermode-option:hover {
    background: rgba(255,255,255,0.1);
}

.biermode-option.is-active {
    color: #c41e3a;
    font-weight: 600;
}

.biermode-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 900;
}

.biermode-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bierminute-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 0.65rem;
}

.bierminute-controls label {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    color: #ffffff;
}

.bierminute-controls input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    padding: 0.58rem 0.68rem;
    font-size: 1rem;
    background: rgba(18, 18, 18, 0.8);
    color: #f0f0f0;
}

.bierminute-controls input[type="number"] {
    appearance: textfield;
}

.bierminute-controls input[type="number"]::-webkit-outer-spin-button,
.bierminute-controls input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bierminute-controls .button {
    white-space: nowrap;
    border: none;
    appearance: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    box-sizing: border-box;
}

.bierminute-result {
    margin: 1rem 0 0 !important;
    font-weight: 600;
    color: #ffffff;
}

.fuxenfibel-download {
    margin-top: 0.4rem;
    text-align: center;
}

.fuxenfibel-keyword {
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: underline #ffffff;
    font-weight: 700;
}

.fuxenfibel-password-hint {
    margin-bottom: 0.75rem;
}

.fuxenfibel-hint-text {
    display: inline-block;
    margin-top: 0.2rem;
}

.fuxenfibel-pattern {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .pressum-overlay {
        width: calc(100% - 1rem);
        padding-top: 1rem;
    }

     .hero-with-bg {
        min-height: auto;
        padding: 5rem 1rem 3.5rem;
        width: 100%;
        margin: 0;
        margin-bottom: 0 !important;
    }

    .hero-buttons {
        gap: 0.8rem;
        padding: 0.9rem 0.9rem;
        width: min(680px, 94vw);
    }

    .hero-buttons .button-transparent {
        flex: 1 1 0;
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }

    .hero-flag-button {
        top: 140px !important;
        right: calc((100vw - min(680px, 94vw)) / 2 - 25px) !important;
        width: 50px;
        height: 50px;
    }

    .hero-flag-button svg {
        width: 24px;
        height: 24px;
    }

    .info-bubble {
        max-width: 200px;
        font-size: 0.8rem;
        padding: 10px 12px;
        top: 35% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }

    .bierminute-controls {
        grid-template-columns: 1fr;
    }

    .bierminute-controls .button {
        width: 100%;
    }

    .korpobird-shell {
        width: calc(100% - 1rem);
        padding: 0.85rem;
    }

    .korpobird-hud {
        justify-content: center;
        text-align: center;
    }
}

.skeleton-main {
    background: var(--skeleton-surface);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--skeleton-border);
}

.skeleton-line {
    height: 18px;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.skeleton-line.w-60 {
    width: 60%;
}

.skeleton-line.w-40 {
    width: 40%;
    margin-bottom: 1.2rem;
}

.skeleton-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.skeleton-card {
    height: 180px;
    border-radius: 12px;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .skeleton-cards {
        grid-template-columns: 1fr;
    }

    .skeleton-card {
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-bar::after,
    .skeleton-line::after,
    .skeleton-card::after {
        animation: none;
    }
}

h1, h2, h3, h4 {
    font-family: "Gentium Book Basic", Arial, sans-serif;
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    line-height: 1.3;
}

h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

a {
    color: #c41e3a;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ================================
   WAPPEN ANIMATIONS
   ================================ */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes flip {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@keyframes fadeInOut {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.wappen-animate {
    animation: spin 0.6s ease-in-out, fadeInOut 0.6s ease-in-out;
    will-change: transform, opacity;
    transform-origin: center center;
}

.wappen-animate.animation-bounce {
    animation: bounce 0.6s ease-in-out, fadeInOut 0.6s ease-in-out;
    will-change: transform, opacity;
    transform-origin: center center;
}

.wappen-animate.animation-shake {
    animation: shake 0.6s ease-in-out, fadeInOut 0.6s ease-in-out;
    will-change: transform, opacity;
    transform-origin: center center;
}

.wappen-animate.animation-pulse {
    animation: pulse 0.6s ease-in-out, fadeInOut 0.6s ease-in-out;
    will-change: transform, opacity;
    transform-origin: center center;
}

.wappen-animate.animation-flip {
    animation: flip 0.6s ease-in-out, fadeInOut 0.6s ease-in-out;
    perspective: 1000px;
    will-change: transform, opacity;
    transform-origin: center center;
}



header {
    position: sticky;
    top: 0;
    background-color: #0d0d0d;
    border-bottom: 1px solid #222;
    z-index: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Breadcrumb unter Header */
.breadcrumb-bar {
    position: sticky;
    top: 0;
    background-color: rgba(13, 13, 13, 0.95);
    padding: 0.34rem 1.35rem;
    z-index: 799;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    font-size: clamp(0.64rem, 1.8vw, 0.7rem);
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: none;
    font-family: inherit;
}

.breadcrumb-bar.visible {
    display: none;
}

@media (max-width: 768px) {
    .breadcrumb-bar.visible {
        display: block;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 72px;
}

.logo-section {
    --header-logo-size: 56px;
    --header-logo-pulse-size: 34px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.click-pulse-ring {
    position: absolute;
    width: var(--header-logo-pulse-size);
    height: var(--header-logo-pulse-size);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
    background: transparent;
    box-shadow: none;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity, border-color;
    backface-visibility: hidden;
}

.click-pulse-ring--logo {
    top: 50%;
    left: calc(var(--header-logo-size) / 2);
    transform: translate3d(-50%, -50%, 0) scale(0.42);
    animation: logo-click-pulse 0.68s linear 1;
}

.logo-section img {
    display: block;
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    min-width: var(--header-logo-size);
    min-height: var(--header-logo-size);
    max-width: var(--header-logo-size);
    max-height: var(--header-logo-size);
    flex: 0 0 var(--header-logo-size);
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
}

.logo-icon-slot {
    position: relative;
    display: block;
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    flex: 0 0 var(--header-logo-size);
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.logo-icon-slot .logo-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    transition: opacity 0.12s linear;
}

.logo-icon-slot .logo-icon--zirkel {
    opacity: 0;
}

.logo-icon-slot.is-zirkel .logo-icon--wappen {
    opacity: 0;
}

.logo-icon-slot.is-zirkel .logo-icon--zirkel {
    opacity: 1;
}

.site-title {
    font-size: 2.15rem;
    font-weight: 400;
    color: #ffffff;
    font-family: "Gentium Book Basic", Arial, sans-serif;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.logo-section a {
    display: flex;
    align-items: center;
    height: auto;
    text-decoration: none;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.logo-section a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .logo-section {
        --header-logo-size: 40px;
        --header-logo-pulse-size: 24px;
    }

    .site-title {
        font-size: 1.45rem;
        margin-top: 0;
    }

    .language-toggle-trigger,
    .language-toggle.is-open .language-toggle-trigger {
        border-bottom-color: transparent !important;
    }

    .language-toggle-trigger:hover {
        border-bottom-color: transparent;
    }

    .nav-menu a.nav-link-active {
        color: #f0f0f0 !important;
        border-bottom-color: transparent !important;
    }
}

.header-container nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    flex-grow: 0;
    justify-content: center;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    border-bottom-color: #c41e3a;
    text-decoration: none;
}

.nav-menu a.nav-link-active {
    border-bottom-color: #c41e3a;
    color: #c41e3a;
}

@media (max-width: 768px) {
    .nav-menu a {
        color: #f0f0f0 !important;
        border-bottom-color: transparent !important;
    }

    .nav-menu a:hover {
        border-bottom-color: transparent !important;
        color: #f0f0f0 !important;
    }

    .nav-menu a.nav-link-active {
        color: #f0f0f0 !important;
        border-bottom-color: transparent !important;
    }
}

.logo-right {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    position: relative;
    width: 40px;
    height: 40px;
    overflow: visible;
    align-self: center;
    z-index: 801;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    --header-logo-pulse-size: 34px;
}

.language-toggle {
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
    height: auto;
    margin-left: auto;
    margin-right: 0.4rem;
}

.language-toggle-trigger {
    display: block;
    border: none;
    background: none;
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 0.6rem;
    cursor: pointer;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.language-toggle-trigger:hover {
    color: #ffffff;
    border-bottom-color: #c41e3a;
}

.language-toggle.is-open .language-toggle-trigger {
    border-bottom-color: #c41e3a;
}

.language-toggle-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    min-width: 320px;
    background: rgba(18, 18, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    z-index: 1101;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-toggle.is-open .language-toggle-menu {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.language-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 1099;
}

.language-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.70);
}

.language-option {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: #f0f0f0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.language-option:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

.language-option.is-active {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.1) !important;
}

.language-option.is-active::after {
    content: '✓';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: bold;
}

@keyframes waveStripes {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-1.5px);
    }
}

.hamburger span {
    display: block;
    width: 40px;
    height: 7px;
    background-color: #000000;
    margin: 0;
    transition: all 0.3s ease;
    border-radius: 0;
    position: absolute;
    left: 2.5px;
    z-index: 2;
}

.start-page .hamburger:not(.open)::before {
    content: "";
    position: absolute;
    top: calc(50% - 0.5px);
    left: calc(50% + 2.5px);
    width: 24px;
    height: 24px;
    transform: translate3d(-50%, -50%, 0) scale(0.25);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
    background: transparent;
    box-shadow: none;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity, border-color;
    backface-visibility: hidden;
}

.click-pulse-ring--hamburger {
    top: calc(50% - 0.5px);
    left: calc(50% + 2.5px);
    transform: translate3d(-50%, -50%, 0) scale(0.42);
    animation: hamburger-click-pulse 0.68s linear 1;
}

.hamburger span:nth-child(1) {
    top: 8px;
    background-color: #c41e3a;
    box-shadow: inset 0 1px 0 #a9a9a9;
}

.hamburger span:nth-child(2) {
    top: 15px;
    background-color: #000000;
    height: 7px;
}

.hamburger span:nth-child(3) {
    top: 22px;
    background-color: #c41e3a;
    box-shadow: inset 0 -1px 0 #a9a9a9;
}

.hamburger span:nth-child(4) {
    top: 31px;
    opacity: 0;
}

.hamburger.open span:nth-child(1) {
    top: 4px;
    background-color: #ffffff;
    animation: waveStripes 1.2s ease-in-out infinite;
    animation-delay: 0s;
}

.hamburger.open span:nth-child(2) {
    top: 12px;
    background-color: #000000;
    animation: waveStripes 1.2s ease-in-out infinite;
    animation-delay: 0.1s;
}

.hamburger.open span:nth-child(3) {
    top: 20px;
    background-color: #c41e3a;
    animation: waveStripes 1.2s ease-in-out infinite;
    animation-delay: 0.2s;
    box-shadow: none;
}

.hamburger.open span:nth-child(4) {
    top: 28px;
    background-color: #ffffff;
    opacity: 1;
    animation: waveStripes 1.2s ease-in-out infinite;
    animation-delay: 0.3s;
    box-shadow: inset 0 -1px 0 #a9a9a9;
}

/* ================================
   MAIN CONTENT
   ================================ */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
}

main:has(.semesterprogramm-layout),
main:has(.semesterprogramm-layout-desktop) {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

main.main-full-width {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

main.start-main {
    padding: 0;
    max-width: 100%;
    position: relative;
    flex: none;
}

main.start-main .hero-with-bg {
    margin-bottom: 0;
}

main:has(.hero-with-bg) {
    padding: 0;
    max-width: 100%;
}

.page-header {
    display: none;
}

.content-section {
    padding: 2rem 0;
    line-height: 1.8;
    width: 100%;
}

.content-section-centered {
    max-width: 900px;
    margin: 0 auto;
}

.content-section-centered p {
    text-align: center;
}

.content-section-centered h1,
.content-section-centered h2,
.content-section-centered h3,
.content-section-centered h4 {
    text-align: center;
}

.content-section-centered h1 {
    margin-top: 0.2rem;
    font-weight: 700;
}

.content-section-centered ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
}

.content-section-centered .principle-section {
    justify-content: center;
}

.content-section-centered .principle-content {
    text-align: left;
}

.content-section-centered .principle-content h4 {
    text-align: center;
    width: calc(100% + 140px + 2rem);
    margin-left: calc(-140px - 2rem);
}

.content-section-centered .principle-content p {
    text-align: left;
}

.content-section-desktop {
    padding: 0.5rem 0 2rem;
    line-height: 1.8;
    width: 100%;
}

.content-section p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #333;
}

.content-section h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    margin-top: 2.5rem;
}

.semesterprogramm-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: min(1500px, 100%);
    max-width: 100%;
    overflow-x: hidden;
    padding: 1.25rem;
    margin: 0 auto;
    align-items: stretch;
}

.semesterprogramm-left,
.semesterprogramm-right {
    width: 100%;
    min-width: 0;
}

.semesterprogramm-left-desktop,
.semesterprogramm-right-desktop {
    min-width: 0;
}

.semesterprogramm-layout-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    width: 100%;
    overflow: clip;
    padding: 0.5rem 0.25rem 2rem;
    align-items: start;
}

.semesterprogramm-left-desktop {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.semesterprogramm-right-desktop {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.semesterprogramm-left-desktop > .pdf-viewer {
    margin: 0;
}

@media (max-width: 1024px) {
    .semesterprogramm-left-desktop > .pdf-viewer {
        height: auto;
        margin: 2rem 0;
    }
}

.semesterprogramm-left > div:first-child {
    width: 100%;
    margin: 0;
    padding: 0;
}

.semesterprogramm-buttons-desktop {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 0.1rem;
    padding: 0 0.25rem;
}

.semesterprogramm-right .calendar-container {
    width: 100%;
}

.calendar-info {
    font-size: 0.9rem;
    color: #333;
    margin: 0.5rem 0;
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 0.8rem 1.5rem;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.calendar-container {
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
    flex-basis: auto;
    min-height: 0;
}

.fc {
    overflow: hidden;
    width: 100% !important;
    height: auto;
}

.fc .fc-scrollgrid,
.fc .fc-scroller {
    height: auto !important;
}

.fc .fc-scroller {
    overflow: visible !important;
}

.fc .fc-header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.fc .fc-toolbar-chunk {
    min-width: 0;
}

.fc .fc-toolbar-chunk:first-child {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 0 0 auto;
}

.fc .fc-toolbar-chunk:nth-child(2) {
    flex: 1 1 auto;
}

.fc .fc-toolbar-title {
    font-size: 1.6rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.fc table {
    table-layout: fixed;
    width: 100% !important;
}

.fc-col-header-cell,
.fc-daygrid-day {
    width: calc(100% / 7) !important;
}

.fc-col-header-cell {
    font-size: 1.1rem;
    padding: 1rem 0;
}

.fc-daygrid-day-number {
    font-size: 1rem;
    padding: 0.8rem;
}

.fc-event-title {
    font-size: 0.9rem;
    padding: 0.5rem 0.3rem;
    color: #000 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.fc-daygrid-day-frame {
    min-height: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.fc .fc-daygrid-day-events {
    margin-top: 0.2rem;
    max-height: calc(100% - 1.85rem);
    overflow: hidden;
}

.fc .fc-daygrid-event-harness {
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .semesterprogramm-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }

    .semesterprogramm-left {
        grid-column: 1;
    }

    .semesterprogramm-right {
        grid-column: 1;
    }

    .calendar-container {
        min-height: auto;
        padding: 0.65rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.3rem;
    }
}

.content-section h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.content-section ul {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.content-section ul li {
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.content-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: bold;
}

/* ================================
   HERO SECTION (nur auf Startseite)
   ================================ */

.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0.8rem auto;
}

.hero-with-bg {
    position: relative;
    isolation: isolate;
    color: white;
    padding: 8rem 1.5rem 3rem;
    padding-top: 13rem;
    border-radius: 0;
    margin: -140px calc(-50vw + 50%) 0 calc(-50vw + 50%);    width: 100vw;    min-height: 100vh;    overflow: visible;
    will-change: auto;
    contain: none;
}

.hero-video,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-video {
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    display: block;
    background: #000;
}

.hero-overlay {
    z-index: 1;
    background: rgba(0, 0, 0, 0.28);
}

.hero-with-bg h1 {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.hero-buttons {
    position: absolute;
    z-index: 2;
    display: flex;
    gap: 1.8rem;
    justify-content: center;
    flex-wrap: nowrap;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    width: min(680px, 90vw);
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.button-transparent {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border: 2px solid white;
    color: white !important;
    transition: all 0.3s ease;
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.2rem 2.8rem;
}

.hero-buttons .button-transparent {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.3rem 3.2rem;
    font-size: 1.32rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.1;
    min-width: 0;
}

.hero-controls-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 90;
    display: none;
}

.hero-control-stack:not(.is-collapsed) ~ .hero-controls-overlay {
    display: none;
}

.hero-control-stack {
    position: absolute;
    left: 50%;
    top: 80px;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.9rem, 1.8vw, 1.5rem);
    transition: transform 0.3s ease, opacity 0.25s ease;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.hero-controls-toggle,
.hero-flag-button,
.hero-info-button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.hero-controls-toggle:focus,
.hero-controls-toggle:focus-visible,
.hero-controls-toggle:active,
.hero-flag-button:focus,
.hero-flag-button:focus-visible,
.hero-info-button:focus,
.hero-info-button:focus-visible {
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
}

.hero-controls-toggle {
    width: clamp(180px, 15vw, 220px);
    height: clamp(180px, 15vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 0;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    opacity: 0.75;
}

.hero-controls-toggle:hover {
    opacity: 1;
}

.hero-controls-toggle svg {
    width: clamp(70px, 6.5vw, 95px);
    height: clamp(70px, 6.5vw, 95px);
    display: block;
    opacity: 0.94;
    transition: transform 0.25s ease;
    transform: rotate(180deg);
}

.hero-control-stack.is-collapsed .hero-controls-toggle svg {
    transform: rotate(0deg);
}

.hero-flag-center {
    position: absolute;
    left: 50.5%;
    top: 52%;
    transform: translate(-50%, -50%);
    z-index: 102;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.hero-control-stack:not(.is-collapsed) ~ .hero-flag-center {
    opacity: 1;
    pointer-events: auto;
}

.hero-control-stack.is-collapsed ~ .hero-flag-center {
    pointer-events: none !important;
}

.hero-flag-button {
    position: relative;
    width: clamp(180px, 14vw, 230px);
    height: clamp(180px, 14vw, 230px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
    margin: 0 auto;
    pointer-events: auto;
    opacity: 0.75;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 0.25s ease;
}

.hero-control-stack.is-collapsed ~ .hero-flag-center .hero-flag-button {
    cursor: default;
}

.hero-flag-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 47%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0);
    background: transparent;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    will-change: transform, opacity, border-color;
    backface-visibility: hidden;
}

@keyframes flag-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
    15% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
        border-color: rgba(255, 255, 255, 1);
    }
    35% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0.7;
        border-color: rgba(255, 255, 255, 0.7);
    }
    100% {
        transform: translate(-50%, -50%) scale(4.5);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
}

.hero-flag-button.pulse::before {
    animation: flag-pulse 0.8s linear forwards;
    animation-delay: 0.1s;
}

.hero-flag-button svg {
    width: clamp(110px, 8.5vw, 140px);
    height: clamp(110px, 8.5vw, 140px);
    display: block;
    color: #ffffff;
    opacity: 0.94;
}

.hero-info-button {
    position: absolute;
    left: 50%;
    bottom: 110px;
    transform: translateX(-50%);
    z-index: 101;
    width: clamp(90px, 7.5vw, 120px);
    height: clamp(90px, 7.5vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hero-info-button svg {
    width: clamp(45px, 3.5vw, 60px);
    height: clamp(45px, 3.5vw, 60px);
    display: block;
    color: #ffffff;
    opacity: 0.94;
}

.hero-info-button.is-visible {
    opacity: 0.75;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hero-info-button.is-visible:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-info-button {
        bottom: 120px !important;
        top: auto !important;
        left: 50.2% !important;
    }
    
    .hero-control-stack {
        top: 80px;
    }
    
    .hero-flag-center {
        top: 39%;
    }

    .hero-flag-button::before {
       left: 47% !important;
    }
}

.info-bubble {
    position: absolute;
    left: 50%;
    bottom: 111px;
    transform: translateX(-50%);
    z-index: 101;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
    padding: 12px 16px;
    border-radius: 0;
    max-width: 250px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease-in-out;
    font-weight: 500;
}

@media (max-width: 768px) {
    .info-bubble {
        position: absolute !important;
        bottom: 109px !important;
        top: auto !important;
        max-width: 200px !important;
        font-size: 0.75rem !important;
        padding: 8px 12px !important;
    }
}

.info-bubble p {
    margin: 0;
    padding: 0;
    color: #ffffff !important;
}

.info-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.6);
}

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

.button-transparent:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    border-color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.hero-flag-button:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
    text-decoration: none;
    opacity: 1;
}

.about-floating-flag-button {
    position: fixed !important;
    top: 115px !important;
    right: calc(1.5rem + max(0px, (100vw - 900px - 3rem) / 2)) !important;
    z-index: 800 !important;
    width: 52px !important;
    height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, 0.94) !important;
    background: rgba(12, 12, 12, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    outline: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    transition: opacity 0.25s ease;
    opacity: 0.75;
}

.start-page .about-floating-flag-button {
    opacity: 0;
    pointer-events: none;
}

.about-floating-flag-button svg {
    width: 28px;
    height: 28px;
    display: block;
}

.about-floating-flag-button svg path {
    stroke-width: 1.8;
}

.about-floating-flag-button:hover,
.about-floating-flag-button:focus,
.about-floating-flag-button:focus-visible,
.about-floating-flag-button:active {
    color: rgba(255, 255, 255, 0.98);
    background: rgba(12, 12, 12, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
    box-shadow: none;
    text-decoration: none;
    opacity: 1;
}

.button-dark-red {
    border-color: white !important;
    background-color: transparent !important;
}

.button-dark-red:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #c41e3a !important;
}

.button-black {
    border-color: white !important;
    background-color: transparent !important;
}

.button-black:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #c41e3a !important;
}

@media (max-width: 768px) {
    .about-floating-flag-button {
        position: fixed !important;
        top: 130px !important;
        right: max(0.92rem, calc(env(safe-area-inset-right) + 0.82rem)) !important;
        left: auto !important;
        width: 36px !important;
        height: 36px !important;
    }

    .about-floating-flag-button svg {
        width: 100% !important;
        height: 100% !important;
    }

    .about-floating-flag-button svg path {
        stroke-width: 1.2 !important;
    }
}

 
/* ================================
   CARDS & BOXES
   ================================ */

.card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.card h3 {
    margin-top: 0;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #b71b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.button:hover {
    background-color: #98162c;
    text-decoration: none;
}

.button-download {
    margin: 0.3rem 0;
}

/* ================================
   PDF VIEWER
   ================================ */

.pdf-viewer {
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.pdf-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    min-height: 220px;
}

.pdf-fallback-icon {
    font-size: 3rem;
    line-height: 1;
}

.pdf-fallback-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.pdf-fallback-sub {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    max-width: 28ch;
}

.pdf-fallback-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.pdf-fallback-open-btn {
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
}

.pdf-object,
.pdf-iframe {
    width: 100%;
    height: 900px;
    border: none;
}

/* ================================
   CALENDAR
   ================================ */

.fc {
    font-family: Arial, sans-serif;
}

.fc .fc-button-primary {
    background: #1b1b1b;
    border: 1px solid #111;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.fc .fc-button-primary:hover {
    background: #111;
    border-color: #000;
}

.fc .fc-button-primary.fc-button-active {
    background: #090909;
    border-color: #000;
}

.fc .fc-button-primary:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 2px;
}

.fc .fc-button-group > .fc-button {
    margin-right: 0.35rem !important;
}

.fc .fc-button-group > .fc-button:last-child {
    margin-right: 0 !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(196, 30, 58, 0.18);
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-frame {
    box-shadow: inset 0 0 0 5px #c41e3a;
    border-radius: 6px;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background-color: transparent;
    color: #111;
    border-radius: 0;
    font-weight: 700;
    min-width: 0;
    text-align: center;
    line-height: 1.45;
}

.fc .fc-daygrid-day {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fc .fc-daygrid-day.calendar-day-has-event {
    background-color: rgba(176, 24, 50, 0.2);
}

.fc .fc-daygrid-day.calendar-day-has-event .fc-daygrid-day-frame {
    box-shadow: inset 0 0 0 1px rgba(145, 16, 40, 0.32);
}

.fc .fc-daygrid-day.calendar-day-has-event:hover {
    background-color: rgba(176, 24, 50, 0.27);
}

.fc .fc-daygrid-day.calendar-day-has-event .fc-daygrid-day-frame::before {
    content: "";
    position: absolute;
    top: 67%;
    left: 50%;
    width: 50%;
    height: 50%;
    transform: translate3d(-50%, -50%, 0);
    border-radius: 50%;
    background: #b71b35;
    box-shadow:
        0 0 0 1px rgba(145, 28, 53, 0.34),
        0 0 0 0 rgba(183, 27, 53, 0.46);
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity, box-shadow;
    backface-visibility: hidden;
    animation: calendar-event-pulse 1.55s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.fc .fc-daygrid-day.calendar-day-has-event .fc-daygrid-day-frame::after {
    content: "";
    position: absolute;
    top: 67%;
    left: 50%;
    width: 35%;
    height: 35%;
    transform: translate3d(-50%, -50%, 0);
    background-image: url("../../images/Zirkel.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .fc .fc-daygrid-day.calendar-day-has-event .fc-daygrid-day-frame::before {
        width: 56%;
        height: 56%;
    }

    .fc .fc-daygrid-day.calendar-day-has-event .fc-daygrid-day-frame::after {
        width: 39%;
        height: 39%;
    }
}

@keyframes calendar-event-pulse {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(0.99);
        opacity: 0.92;
        box-shadow:
            0 0 0 1px rgba(145, 28, 53, 0.34),
            0 0 0 0 rgba(183, 27, 53, 0.42);
    }
    60% {
        transform: translate3d(-50%, -50%, 0) scale(1.015);
        opacity: 0.98;
        box-shadow:
            0 0 0 1px rgba(145, 28, 53, 0.28),
            0 0 0 10px rgba(183, 27, 53, 0);
    }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(0.99);
        opacity: 0.92;
        box-shadow:
            0 0 0 1px rgba(145, 28, 53, 0.34),
            0 0 0 0 rgba(183, 27, 53, 0);
    }
}

@keyframes home-hamburger-pulse {
    0%, 82% {
        transform: translate3d(-50%, -50%, 0) scale(0.25);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
    86% {
        transform: translate3d(-50%, -50%, 0) scale(0.42);
        opacity: 0.78;
        border-color: rgba(255, 255, 255, 0.62);
    }
    93% {
        transform: translate3d(-50%, -50%, 0) scale(1.55);
        opacity: 0.42;
        border-color: rgba(255, 255, 255, 0.34);
    }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(2.55);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
}

@keyframes logo-click-pulse {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(0.42);
        opacity: 0.78;
        border-color: rgba(255, 255, 255, 0.62);
    }
    45% {
        transform: translate3d(-50%, -50%, 0) scale(1.55);
        opacity: 0.42;
        border-color: rgba(255, 255, 255, 0.34);
    }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(2.55);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
}

@keyframes hamburger-click-pulse {
    0% {
        transform: translate3d(-50%, -50%, 0) scale(0.42);
        opacity: 0.78;
        border-color: rgba(255, 255, 255, 0.62);
    }
    45% {
        transform: translate3d(-50%, -50%, 0) scale(1.55);
        opacity: 0.42;
        border-color: rgba(255, 255, 255, 0.34);
    }
    100% {
        transform: translate3d(-50%, -50%, 0) scale(2.55);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
    }
}

.fc .fc-col-header-cell {
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
    color: #111 !important;
}

.fc .fc-daygrid-day-number {
    font-size: 0.9rem;
    padding: 0.4rem;
    position: relative;
    z-index: 2;
}

.fc .fc-daygrid-day-top {
    justify-content: center;
    padding-top: 0.2rem;
}

.fc .fc-daygrid-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
}

@media (max-width: 768px) {
    .fc .fc-daygrid-day-top {
        justify-content: center;
        align-items: flex-start;
        padding-top: 0.05rem;
    }

    .fc .fc-daygrid-day-number {
        padding-top: 0.12rem;
        padding-bottom: 0.12rem;
        line-height: 1.1;
    }
}

.fc .fc-daygrid-day-frame {
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.fc-event {
    color: #000 !important;
}

.fc-event-title {
    color: #000 !important;
}

.fc .fc-daygrid-block-event .fc-event-title {
    color: #000 !important;
}

.fc-daygrid-event {
    overflow: hidden !important;
}

.fc-event-main {
    overflow: hidden !important;
}

.fc-event-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}


.fc-event-title {
    font-size: 0.8rem;
    padding: 0.3rem 0.2rem;
    white-space: normal;
}

.fc .fc-daygrid-block-event .fc-event-title {
    font-size: 0.75rem;
}

/* Event Modal */
.event-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.event-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.event-modal-close {
    float: right;
    font-size: 1.8rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.event-modal-close:hover {
    color: #333;
}

.event-modal-close-day {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f2f2f2;
    border-radius: 999px;
    color: #555;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.event-modal-close-day:hover {
    background: #e3e3e3;
    color: #1a1a1a;
}

.event-modal h2 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    margin-top: 0;
}

.event-modal-date {
    color: #c41e3a;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.event-modal-description {
    color: #333;
    line-height: 1.6;
}

#dayModal .event-modal-content {
    position: relative;
    max-width: 680px;
    border-radius: 14px;
    padding: 1.8rem;
    border: 1px solid #e7e7e7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

#dayModalTitle {
    margin-right: 2.7rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

#dayModalEvents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-modal-event {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #ececec;
    border-left: 4px solid #c41e3a;
    border-radius: 10px;
    padding: 1rem 1rem 0.95rem;
}

.day-modal-event-title {
    margin: 0 0 0.45rem 0;
    font-size: 1.15rem;
    line-height: 1.35;
}

.day-modal-event-meta {
    margin-bottom: 0.55rem;
}

.day-modal-event-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #7a1023;
    background: rgba(196, 30, 58, 0.12);
}

.day-modal-event-description {
    margin: 0;
    color: #444;
    line-height: 1.55;
    white-space: pre-line;
}

.day-modal-empty {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: #fafafa;
    border: 1px dashed #d8d8d8;
    color: #777;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================
   GALLERY / SOCIAL MEDIA
   ================================ */

.instagram-consent-gate {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.instagram-consent-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.instagram-consent-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.instagram-consent-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.instagram-consent-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.instagram-consent-info {
    font-size: 0.85rem !important;
    color: #888 !important;
}

.instagram-consent-info a {
    color: #c41e3a;
    text-decoration: none;
}

.instagram-consent-info a:hover {
    text-decoration: underline;
}

.instagram-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
    width: 100%;
}

.instagram-consent-direct {
    background: transparent !important;
    color: #555 !important;
    border: 1px solid #ccc !important;
    font-size: 0.9rem;
}

.instagram-consent-direct:hover {
    background: #f0f0f0 !important;
    border-color: #aaa !important;
}

/* ================================
   INSTAGRAM EMBED
   ================================ */

.instagram-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.instagram-media {
    width: 100% !important;
}

@media (min-width: 769px) {
    .instagram-wrapper {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        padding: 2.25rem 2rem 2.5rem;
    }

    .instagram-wrapper .instagram-media,
    .instagram-wrapper .instagram-media-rendered {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }
}

.instagram-mobile-link {
    display: block;
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #c41e3a;
    border-radius: 4px;
    margin: 0 auto 2rem auto;
    max-width: 700px;
}

.instagram-mobile-link a {
    font-size: 1.1rem;
    color: #c41e3a;
    text-decoration: none;
}

.instagram-mobile-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .instagram-wrapper {
        display: flex;
        justify-content: center;
        overflow: visible;
        width: min(96vw, 560px);
        max-width: 96vw;
        padding: 0 0 1.5rem;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .instagram-wrapper .instagram-media,
    .instagram-wrapper .instagram-media-rendered {
        height: auto !important;
        min-height: clamp(420px, calc(96vw - 1rem), 560px) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .instagram-mobile-link {
        display: block;
        width: min(96vw, 560px);
        max-width: 96vw;
        margin: 0 auto 2rem;
        box-sizing: border-box;
        padding: 1rem;
    }
}

.gallery {
    border-radius: 18px;
    padding: 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.instagram-media {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
}

/* ================================
   CONTACT INFO
   ================================ */

.contact-info {
    background: #f9f9f9;
    border-left: 4px solid #c41e3a;
    padding: 0 0.3rem 0.8rem 0.3rem;
    border-radius: 4px;
    margin: 0 auto;
    min-width: 0;
    max-width: 700px;
    text-align: center;
}

.contact-info-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 0;
    padding: 0 1rem;
}

.contact-info-content > div {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

.button-contact {
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .contact-info-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .button-contact {
        width: auto;
        text-align: center;
        white-space: normal;
        margin-right: 0;
    }
}

.contact-info p {
    margin: 0.1rem 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Contact Address - Centered */
.contact-address {
    text-align: center;
    margin: 2rem 0;
}

/* Contact Visit Section - Centered */
.contact-visit-section {
    text-align: center;
}

.contact-visit-section h2 {
    text-align: center;
}

.contact-visit-section > p {
    text-align: center;
    max-width: 700px;
    margin: 1rem auto;
}

.contact-offices {
    margin-top: 3rem;
    text-align: center;
}

.contact-offices h2 {
    text-align: center;
}

.contact-offices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.contact-office-group {
    margin: 0;
    min-width: 0;
}

.contact-office-group h3 {
    margin-bottom: 1.25rem;
}

.contact-office-group-email {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #bbb;
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-office-group-email a {
    font-weight: 700;
    font-size: 1rem;
    color: #c41e3a;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.contact-office-group-email a:hover {
    text-decoration: underline;
}

.contact-office-entry + .contact-office-entry {
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
    padding-top: 1rem;
}

.contact-office-entry h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.contact-office-entry p {
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.contact-office-entry p + p {
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .contact-offices-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   DEVELOPER PLAQUE
   ================================ */

.developer-plaque {
    background: 
        repeating-linear-gradient(
            45deg,
            #b8b8b8 0px,
            #b8b8b8 1px,
            #a8a8a8 1px,
            #a8a8a8 2px,
            #989898 2px,
            #989898 3px,
            #a0a0a0 3px,
            #a0a0a0 4px
        );
    border: 1px solid #666;
    border-radius: 8px;
    padding: 0.8rem 2.5rem;
    margin: 2rem auto;
    width: fit-content;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    outline: none;
}

.developer-plaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 25%;
    background: none;
    pointer-events: none;
    z-index: 1;
}

@keyframes plaque-soft-shine {
    0% {
        left: -25%;
    }
    50% {
        left: -25%;
    }
    100% {
        left: calc(100% - 25%);
    }
}

.developer-plaque > * {
    position: relative;
    z-index: 2;
}

.developer-plaque p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.plaque-screw {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e8e8e8, #a8a8a8);
    border: 1px solid #666;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.plaque-screw::after {
    content: '+';
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

@media (max-width: 768px) {
    .developer-plaque {
        padding: 0.7rem 1.5rem;
        margin: 1.5rem auto;
        gap: 0.8rem;
        width: auto;
        max-width: 95vw;
    }

    .developer-plaque p {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        white-space: nowrap;
    }

    .plaque-screw {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

/* ================================
   FOOTER
   ================================ */

footer {
    background-color: #0d0d0d;
    color: #ccc;
    text-align: center;
    padding: 1.2rem 1.5rem;
    margin-top: 0;
    border-top: 1px solid #222;
}

footer p {
    margin: 0.3rem 0;
}

footer .footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.95ch;
}

footer a {
    color: #c41e3a;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ================================
   PRIVACY CONSENT BANNER
   ================================ */

#privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #f0f0f0;
    padding: 1.5rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

#privacy-banner.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#privacy-banner p {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    min-width: 250px;
}

#privacy-banner .privacy-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

#privacy-banner button,
#privacy-banner a.button {
    padding: 0.8rem 1.8rem;
    flex: 1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

#privacy-accept {
    background-color: #b71b35;
    color: white;
}

#privacy-accept:hover {
    background-color: #98162c;
    color: white;
}

#privacy-decline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #888 !important;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

#privacy-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #aaa !important;
}

#privacy-decline.decline-confirm {
    border-color: #e8a020 !important;
    color: #e8a020;
    background-color: rgba(232, 160, 32, 0.1);
}

#privacy-decline.decline-confirm:hover {
    background-color: rgba(232, 160, 32, 0.2);
}

.privacy-decline-info {
    display: none;
    width: 100%;
    font-size: 0.82rem;
    color: #bbb;
    margin: 0;
    text-align: right;
    padding-right: 0.25rem;
}

.privacy-decline-info.visible {
    display: block;
}

.privacy-inline-link {
    color: #c41e3a;
    font-size: 1.08em;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-inline-link:hover {
    color: #c41e3a;
    opacity: 0.9;
}

#privacy-banner .privacy-inline-link {
    text-decoration: underline;
}

/* ================================
   PRINCIPLES SECTION
   ================================ */

.principle-section {
   display: flex;
   gap: 2rem;
   margin: 2.5rem 0;
   align-items: flex-start;
}

.principle-icon {
   width: 140px;
   height: 140px;
   flex-shrink: 0;
   object-fit: contain;
}

.principle-content {
   flex: 1;
}

.principle-content h4 {
   margin-top: 0;
   margin-bottom: 0.8rem;
}

.wappen-display {
   text-align: center;
   margin-top: 3rem;
   margin-bottom: 2rem;
}

.wappen-display img {
   width: 700px;
   height: 700px;
   object-fit: contain;
}

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

@media (max-width: 768px) {
   .principle-section {
       flex-direction: column;
        gap: 1rem;
       align-items: center;
   }

   .principle-icon {
       width: 120px;
       height: 120px;
   }

   .content-section-centered .principle-content {
       text-align: center;
   }

   .content-section-centered .principle-content h4 {
       text-align: center;
       width: 100%;
       margin-left: 0;
   }

   .content-section-centered .principle-content p {
       text-align: center;
   }

   .content-section-centered {
       max-width: 100%;
   }

   .wappen-display {
       overflow: visible;
   }

   .wappen-display img {
       width: 100% !important;
       height: auto !important;
       max-width: 500px;
   }

   .header-container {
       padding: 1rem 1rem;
       gap: 0.6rem;
       min-height: 64px;
   }

   .header-container nav {
       flex: 0;
   }

   .nav-menu {
       display: none;
   }

   .nav-menu.open {
       display: flex;
       flex-direction: column;
       position: absolute;
       top: 100%;
       left: 0;
       right: 0;
       background: #0d0d0d;
        border-bottom: 1px solid #222;
        gap: 0;
        z-index: 999;
        margin: 0;
        padding: 0;
    }

    .nav-menu.open a {
        border-bottom: 1px solid #222;
        padding: 1rem 1.5rem;
        border-right: none;
        color: #f0f0f0;
        text-align: center;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-self: center;
        margin-left: 0;
        margin-right: 0.2rem;
        --header-logo-pulse-size: 24px;
    }

    .language-toggle {
        display: flex;
        align-items: center;
        align-self: center;
        height: 40px;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .language-toggle-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        min-width: 2.2rem;
        padding: 0 0.25rem;
        font-size: 1.08rem;
        font-weight: 600;
        letter-spacing: 0.6px;
        line-height: 1;
    }

    .language-toggle-menu {
        min-width: 240px;
    }

    main {
        padding: 0 0.5rem;
    }

    main.start-main {
        padding: 0;
    }

    main:has(.semesterprogramm-layout) {
        padding: 0;
        width: 100%;
        margin: 0;
    }

    .content-section {
        padding: 1rem 0.5rem;
    }

    .semesterprogramm-layout {
        padding: 0;
        width: 100%;
    }

    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 2.5rem 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-with-bg {
        padding: 5rem 1.2rem 3rem;
        padding-top: clamp(18.8rem, 57vh, 24.2rem);
        margin: -140px calc(-50vw + 50%) 0 calc(-50vw + 50%);
        width: 100vw;
        overflow: visible;
        min-height: 100svh;
        background-attachment: scroll;
        will-change: auto;
        contain: none;
        justify-content: flex-end;
        align-items: center;
    }

    .hero-video {
        object-position: center top;
    }

    .hero-with-bg h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-wrap: nowrap;
        padding: 1rem;
        width: min(94vw, 620px);
        max-width: 94vw;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .hero-buttons .button-transparent {
        flex: 1 1 0;
        width: 100%;
        padding: 1.08em 1.35em;
        font-size: clamp(0.92rem, 2.3vw, 1.08rem);
        letter-spacing: 0.18px;
        line-height: 1.15;
    }

    .pdf-object,
    .pdf-iframe {
        height: 1000px;
    }

    .lightwidget-widget {
        max-width: 100%;
        height: 500px;
    }

    .pdf-viewer {
        margin: 0.5rem 0 0 0;
    }

    .pdf-viewer + div {
        margin: 0 0 0 0;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .pdf-viewer + div .button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .calendar-container {
        min-height: 0;
        margin-bottom: 0;
        margin-top: 0.1rem;
        padding: 0.45rem;
    }

    .calendar-container + p {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .calendar-container + p + div .button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        margin: 0 0 0 0;
    }

    hr {
        margin: 0.5rem 0 !important;
    }

   .wappen-display img {
       width: 300px;
       height: 300px;
   }
}

/* ================================
   SMALL PHONE BREAKPOINT
   ================================ */

@media (max-width: 480px) {
   .header-container {
       padding: 0.8rem 1rem;
   }

   .logo-section img {
       height: 40px;
   }

   .page-header {
       padding: 1.5rem 0 1rem;
   }

   .page-header h1 {
       font-size: 1.6rem;
   }

   .page-header p {
       font-size: 1rem;
   }

   main {
       padding: 0 0.5rem;
   }

   .wappen-display img {
       width: 90% !important;
       height: auto !important;
       max-width: 300px;
   }
}

@media (max-width: 480px) {
   .header-container {
       padding: 0.8rem 1rem;
   }

   .logo-section img {
       height: 40px;
   }

   .page-header {
       padding: 1.5rem 0 1rem;
   }

   .page-header h1 {
       font-size: 1.6rem;
   }

   .page-header p {
       font-size: 1rem;
   }

   main {
       padding: 0 0.5rem;
   }

   .wappen-display img {
       width: 260px;
       height: 260px;
   }

   .hero {
       padding: 2rem 1rem;
       margin-bottom: 2rem;
   }

   .hero h1 {
       font-size: 1.7rem;
   }

   .hero p {
       font-size: 0.95rem;
   }

    .hero-with-bg {
        padding: 4rem 1rem 2.4rem;
        padding-top: clamp(18.2rem, 63vh, 23.8rem);
        margin: -140px calc(-50vw + 50%) 0 calc(-50vw + 50%);
        width: 100vw;
        min-height: 100svh;
        background-attachment: scroll;
        will-change: auto;
        contain: none;
        justify-content: flex-end;
        align-items: center;
    }

    .hero-with-bg h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.7rem;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0.8rem;
        width: min(96vw, 560px);
        max-width: 96vw;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .button {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero-buttons .button-transparent {
        flex: 1 1 0;
        width: 100%;
        padding: 1em 0.9em;
        font-size: clamp(0.72rem, 3vw, 0.9rem);
        letter-spacing: 0.08px;
        line-height: 1.15;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .content-section {
        padding: 1.2rem 0;
    }

    .content-section h2 {
        font-size: 1.4rem;
        margin-top: 1.8rem;
    }

    .pdf-object,
    .pdf-iframe {
        height: 600px;
    }

    .lightwidget-widget {
        height: 350px;
    }

    .card {
        padding: 1.5rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}



/* ===== Legal pages (impressum, datenschutz) ===== */

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.legal-content ul,
.legal-content ol {
    display: inline-block;
    text-align: left;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #c41e3a;
    font-size: 1.2rem;
    color: #1a1a1a;
}

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

.legal-content h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #444;
}

.legal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    line-height: 1.9;
}

.legal-content ul li {
    margin-bottom: 0.4rem;
}

.legal-content code {
    background: #f0f0f0;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88em;
    color: #c41e3a;
}

.legal-term-block {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

.legal-term-block h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-contact-card {
    background: #f9f9f9;
    border-left: 4px solid #c41e3a;
    padding: 1.5rem 2rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    line-height: 1.9;
}

.legal-contact-card p {
    margin: 0.2rem 0;
}

.legal-rights-item {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    background: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #e8e8e8;
}

.legal-rights-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.legal-footer-note {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .legal-content {
        font-size: 0.95rem;
    }

    .legal-term-block,
    .legal-rights-item {
        padding: 1rem;
    }

    .legal-contact-card {
        padding: 1rem 1.25rem;
    }

    .legal-content h2 {
        font-size: 1.1rem;
    }
}

.flag-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.70);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
body.modal-open, html.modal-open {
    overflow: hidden;
    height: 100%;
    touch-action: none;
    overscroll-behavior: none;
}

html, body {     max-width: 100%;     overflow-x: hidden; }
.flag-modal-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}


.flag-modal-overlay.active .flag-modal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.flag-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: rgba(18, 18, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 1.2rem;
    padding-top: 1.2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    z-index: 9001;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, padding-top 0.2s ease;
    pointer-events: auto;
}

.flag-modal-step h3 {
    font-size: 1.18rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.flag-dropdowns-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0;
    transition: padding-top 0.2s ease;
}

.flag-dropdowns {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    margin-bottom: 0;
    position: relative;
}

.flag-dropdown {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.35);
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.flag-dropdown option {
    background: #121212;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    -webkit-appearance: none;
    appearance: none;
}

.flag-dropdown:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.45);
}

.flag-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
}

.flag-dropdown-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
    display: contents;
}

#locationDropdown {
    width: 100%;
    min-width: 0;
}

.flag-orientation-selection {
    display: flex;
    position: absolute;
    top: -4rem;
    left: 0;
    right: auto;
    z-index: 100;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.6rem;
}

.orientation-toggle-btn {
    width: 50%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    min-height: 3.1rem;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    opacity: 0.75;
}

.now-button {
    width: 50%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    min-height: 3.1rem;
    box-sizing: border-box;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.now-button:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
}

.now-button.now-button-active {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.now-button.now-button-active::after {
    content: '✓';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    font-weight: bold;
}

.now-button-svg {
    width: clamp(14px, 3vw, 18px);
    height: clamp(14px, 3vw, 18px);
    stroke: currentColor;
    margin-bottom: 0;
    flex-shrink: 0;
}

.now-button-text {
    display: block;
}

.orientation-toggle-btn svg {
    width: clamp(14px, 3vw, 18px);
    height: clamp(14px, 3vw, 18px);
    stroke: currentColor;
}

.orientation-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    opacity: 1;
}

.flag-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.flag-modal-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.flag-modal-cancel {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.flag-modal-cancel:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
}

.flag-modal-confirm {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
}

.flag-modal-confirm:hover {
    background: #a01830;
    border-color: #a01830;
}

@media (max-width: 768px) {
    .flag-modal {
        padding: 1.2rem;
        max-width: 90vw;
    }
    
    .flag-dropdowns {
        gap: 0.6rem;
    }
    
    .flag-dropdown {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
     
    .flag-modal-step h3 {
        font-size: 0.95rem;
    }
}

/* ================================
   NIGHT MODE
   ================================ */

body.night-mode {
    background-color: #0a0a0a !important;
    color: #f0f0f0 !important;
}

html.night-mode-active {
    --skeleton-bg: #050505;
    --skeleton-surface: #121212;
    --skeleton-block: #2b2b2b;
    --skeleton-border: #1f1f1f;
    --skeleton-shimmer: rgba(255, 255, 255, 0.18);
}

body.night-mode {
    --skeleton-bg: #050505;
    --skeleton-surface: #121212;
    --skeleton-block: #2b2b2b;
    --skeleton-border: #1f1f1f;
    --skeleton-shimmer: rgba(255, 255, 255, 0.18);
}

body.night-mode main,
body.night-mode article,
body.night-mode .content-section {
    color: #f0f0f0 !important;
}

body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode h5,
body.night-mode h6 {
    color: #ffffff !important;
}

body.night-mode p,
body.night-mode span,
body.night-mode a {
    color: #e0e0e0 !important;
}

body.night-mode a {
    color: #e0e0e0 !important;
}

body.night-mode a:hover {
    color: #ffffff !important;
}

body.night-mode .about-floating-flag-button {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

body.night-mode .about-floating-flag-button:hover,
body.night-mode .about-floating-flag-button:focus,
body.night-mode .about-floating-flag-button:focus-visible,
body.night-mode .about-floating-flag-button:active {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1;
}

body.night-mode .about-floating-flag-button svg path {
    stroke: #000000 !important;
}

/* Keep header unchanged in night mode - only style content area */
body.night-mode header {
    background-color: #0d0d0d !important;
    border-bottom-color: #222 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

body.night-mode .nav-menu.open {
    background: #0d0d0d !important;
    border-bottom-color: #222 !important;
}

body.night-mode .nav-menu.open a {
    background-color: #0d0d0d !important;
    border-bottom-color: transparent !important;
}

body.night-mode main,
body.night-mode article,
body.night-mode .content-section {
    color: #f0f0f0 !important;
}

body.night-mode .breadcrumb-bar {
    background-color: rgba(13, 13, 13, 0.95) !important;
    border-bottom-color: #222 !important;
    color: #f0f0f0 !important;
}

body.night-mode header span,
body.night-mode header a,
body.night-mode .logo-section .site-title {
    color: #f0f0f0 !important;
}

body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode h5,
body.night-mode h6 {
    color: #ffffff !important;
}

body.night-mode p,
body.night-mode span:not(.hamburger span),
body.night-mode a {
    color: #e0e0e0 !important;
}

body.night-mode a {
    color: #c41e3a !important;
}

body.night-mode a:hover {
    color: #ff4455 !important;
}

/* Keep nav menu links unchanged in night mode */
body.night-mode .nav-menu a {
    color: #f0f0f0 !important;
}

body.night-mode .nav-menu a:hover {
    color: #f0f0f0 !important;
    border-bottom-color: #c41e3a !important;
}

body.night-mode .nav-menu a.nav-link-active {
    color: #c41e3a !important;
    border-bottom-color: #c41e3a !important;
}

@media (max-width: 768px) {
    body.night-mode .nav-menu a.nav-link-active {
        color: #f0f0f0 !important;
        border-bottom-color: transparent !important;
    }
}

body.night-mode strong,
body.night-mode b {
    color: #ffffff !important;
}

body.night-mode ul:not(.nav-menu),
body.night-mode ol {
    color: #e0e0e0 !important;
}

body.night-mode input,
body.night-mode textarea,
body.night-mode select:not(.flag-dropdown) {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444444 !important;
}

body.night-mode input::placeholder,
body.night-mode textarea::placeholder {
    color: #888888 !important;
}

body.night-mode .card,
body.night-mode .event-card {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
}

body.night-mode table {
    background-color: #121212 !important;
}

body.night-mode table tr {
    border-color: #333333 !important;
}

body.night-mode table td,
body.night-mode table th {
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

body.night-mode footer {
    background-color: #0d0d0d !important;
    border-top-color: #222 !important;
    color: #ccc !important;
}

body.night-mode footer p,
body.night-mode footer span {
    color: #ccc !important;
}

body.night-mode footer a {
    color: #c41e3a !important;
}

body.night-mode footer a:hover {
    color: #ff4455 !important;
    text-decoration: underline !important;
}

/* Contact Info Box Night Mode */
body.night-mode .contact-info {
    background-color: #0a0a0a !important;
    border-left-color: #c41e3a !important;
}

body.night-mode .contact-info p {
    color: #e0e0e0 !important;
}

/* Card Night Mode */
body.night-mode .card {
    background-color: #121212 !important;
    border-color: #333333 !important;
}

body.night-mode .card h3,
body.night-mode .card h4 {
    color: #ffffff !important;
}

body.night-mode .card p {
    color: #e0e0e0 !important;
}

body.night-mode .button-contact {
    background-color: #c41e3a !important;
    color: #ffffff !important;
}

/* Legal boxes in night mode: dark background, light text */
body.night-mode .legal-contact-card {
    background: #0a0a0a !important;
    border-left-color: #c41e3a !important;
}

body.night-mode .legal-contact-card p,
body.night-mode .legal-contact-card strong {
    color: #e0e0e0 !important;
}

body.night-mode .legal-term-block {
    background: #0a0a0a !important;
    border-left-color: #555 !important;
}

body.night-mode .legal-term-block h3 {
    color: #ffffff !important;
}

body.night-mode .legal-term-block p {
    color: #e0e0e0 !important;
}

body.night-mode .legal-rights-item {
    background: #0a0a0a !important;
    border-left-color: #555 !important;
}

body.night-mode .legal-rights-item h3 {
    color: #ffffff !important;
}

body.night-mode .legal-rights-item p,
body.night-mode .legal-rights-item li {
    color: #e0e0e0 !important;
}

body.night-mode .legal-content code {
    background: #2a2a2a !important;
    color: #ff6b7a !important;
}

body.night-mode .legal-footer-note {
    color: #999 !important;
    border-top-color: #333 !important;
}

/* Protect developer plaque from night mode */
body.night-mode .developer-plaque {
    background: 
        repeating-linear-gradient(
            45deg,
            #b8b8b8 0px,
            #b8b8b8 1px,
            #a8a8a8 1px,
            #a8a8a8 2px,
            #989898 2px,
            #989898 3px,
            #a0a0a0 3px,
            #a0a0a0 4px
        ) !important;
    border-color: #666 !important;
    color: #222 !important;
}

body.night-mode .developer-plaque p {
    color: #222 !important;
}

/* Instagram Elements Night Mode */
body.night-mode .instagram-mobile-link {
    background-color: #0a0a0a !important;
    border-left-color: #c41e3a !important;
}

body.night-mode .instagram-mobile-link a {
    color: #ff4455 !important;
}

body.night-mode .instagram-mobile-link a:hover {
    color: #ff6666 !important;
}

body.night-mode .instagram-consent-gate {
    background-color: transparent !important;
}

body.night-mode .instagram-consent-card {
    background: #121212 !important;
    border: 1px solid #333333 !important;
}

body.night-mode .instagram-consent-card h3 {
    color: #ffffff !important;
}

body.night-mode .instagram-consent-card p {
    color: #e0e0e0 !important;
}

body.night-mode .instagram-consent-info {
    color: #a0a0a0 !important;
}

body.night-mode .instagram-consent-info a {
    color: #ff4455 !important;
}

body.night-mode .instagram-consent-info a:hover {
    color: #ff6666 !important;
}

body.night-mode .instagram-consent-direct {
    background: transparent !important;
    color: #e0e0e0 !important;
    border: 1px solid #444444 !important;
}

body.night-mode .instagram-consent-direct:hover {
    background: #2a2a2a !important;
    border-color: #666666 !important;
}

/* Instagram Embed Night Mode - Dark background only */
body.night-mode .instagram-wrapper {
    background-color: transparent !important;
}

body.night-mode .instagram-media {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.night-mode .instagram-media iframe {
    background: transparent !important;
}

/* Button Text Color in Night Mode - Keep buttons white */
body.night-mode .button,
body.night-mode .pdf-viewer + div .button,
body.night-mode .calendar-container + p + div .button {
    color: #ffffff !important;
}

body.night-mode .button:hover {
    color: #ffffff !important;
}

/* Keep Pressum Title "IMPRESSUM" red in night mode */
body.night-mode .pressum-title .pressum-rest {
    color: #c41e3a !important;
}

/* Navigation and Language Selector - Keep Header Style in Night Mode */
body.night-mode .hamburger {
    background-color: transparent !important;
    background: transparent !important;
}

body.night-mode .flag-dropdown {
    background-color: rgba(0, 0, 0, 0.35) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f0f0f0 !important;
}

body.night-mode .flag-dropdown:hover,
body.night-mode .flag-dropdown:focus {
    background-color: rgba(0, 0, 0, 0.45) !important;
    background: rgba(0, 0, 0, 0.45) !important;
}

body.night-mode blockquote {
    background-color: #1a1a1a !important;
    border-left-color: #444444 !important;
    color: #d0d0d0 !important;
}

/* FullCalendar Night Mode Styling */
body.night-mode .fc {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.night-mode .fc .fc-header-toolbar {
    background-color: #121212 !important;
    border-bottom-color: #333333 !important;
}

body.night-mode .fc .fc-toolbar-title {
    color: #ffffff !important;
}

body.night-mode .fc .fc-button-primary {
    background-color: #333333 !important;
    border-color: #555555 !important;
    color: #f0f0f0 !important;
}

body.night-mode .fc .fc-button-primary:hover {
    background-color: #444444 !important;
    border-color: #666666 !important;
}

body.night-mode .fc .fc-button-primary.fc-button-active {
    background-color: #c41e3a !important;
    border-color: #c41e3a !important;
}

body.night-mode .fc .fc-button-primary:focus-visible {
    outline-color: #c41e3a !important;
}

body.night-mode .fc .fc-scrollgrid,
body.night-mode .fc .fc-scroller {
    border-color: #333333 !important;
}

body.night-mode .fc .fc-col-header-cell,
body.night-mode .fc .fc-daygrid-day {
    background-color: #121212 !important;
    border-color: #333333 !important;
}

body.night-mode .fc .fc-col-header-cell {
    color: #ffffff !important;
}

body.night-mode .fc .fc-daygrid-day-number {
    color: #e0e0e0 !important;
}

body.night-mode .fc .fc-daygrid-day.fc-day-today {
    background-color: #1a1a1a !important;
}

body.night-mode .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: #c41e3a !important;
}

body.night-mode .fc-event {
    background-color: #c41e3a !important;
    border-color: #c41e3a !important;
}

body.night-mode .fc-event-title {
    color: #ffffff !important;
}

body.night-mode .fc-popover {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.night-mode .fc-popover,
body.night-mode .fc-popover * {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
    text-decoration-color: #e0e0e0 !important;
}

body.night-mode .fc-popover-header {
    background-color: #121212 !important;
    border-bottom-color: #333333 !important;
}

body.night-mode .fc-popover-header,
body.night-mode .fc-popover-header * {
    background-color: #121212 !important;
    color: #ffffff !important;
}

body.night-mode .fc-popover-body {
    background-color: #1a1a1a !important;
}

body.night-mode .fc-popover-body,
body.night-mode .fc-popover-body * {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.night-mode .fc-popover-body a {
    color: #64b5f6 !important;
}

body.night-mode .fc-popover-body a:hover {
    color: #90caf9 !important;
}

/* Override any inline styles */
body.night-mode .fc-popover div,
body.night-mode .fc-popover span,
body.night-mode .fc-popover p,
body.night-mode .fc-popover h3,
body.night-mode .fc-popover h4 {
    background-color: transparent !important;
    color: #e0e0e0 !important;
}

/* Event Modal Night Mode */
body.night-mode .event-modal-content {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

body.night-mode .event-modal h2 {
    color: #ffffff !important;
}

body.night-mode .event-modal-date {
    color: #c41e3a !important;
}

body.night-mode .event-modal-description {
    color: #e0e0e0 !important;
}

body.night-mode .event-modal-close {
    color: #b0b0b0 !important;
}

body.night-mode .event-modal-close:hover {
    color: #ffffff !important;
}

body.night-mode .event-modal-close-day {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

body.night-mode .event-modal-close-day:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

body.night-mode #dayModal .event-modal-content {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
}

body.night-mode #dayModalTitle {
    color: #ffffff !important;
}

body.night-mode .day-modal-event-title {
    color: #ffffff !important;
}

body.night-mode .day-modal-event-description {
    color: #e0e0e0 !important;
}

body.night-mode .day-modal-event-chip {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

body.night-mode .day-modal-empty {
    color: #e0e0e0 !important;
    background-color: #2a2a2a !important;
    border: 1px solid #333333 !important;
    border-radius: 10px !important;
    padding: 1rem !important;
}

body.night-mode .day-modal-event {
    background: linear-gradient(180deg, #2a2a2a 0%, #252525 100%) !important;
    border-color: #333333 !important;
    border-left-color: #c41e3a !important;
}

body.night-mode .day-modal-event-title {
    color: #ffffff !important;
}

body.night-mode .day-modal-event-description {
    color: #e0e0e0 !important;
}

body.night-mode .day-modal-event-chip {
    background-color: rgba(196, 30, 58, 0.25) !important;
    color: #ff6b7f !important;
}

/* PDF Viewer Night Mode */
body.night-mode .pdf-viewer {
    background-color: #121212 !important;
}

body.night-mode .pdf-object,
body.night-mode .pdf-iframe {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Google Maps Night Mode */
body.night-mode .maps-iframe {
    filter: invert(90%) hue-rotate(180deg) !important;
}

/* Mobile: neutralisiere full-bleed calc, keep desktop full-bleed */
@media (max-width: 900px) {
    .hero-with-bg {
        margin: -140px calc(-50vw + 50%) 0 calc(-50vw + 50%);
        width: 100vw;
        overflow: visible;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 6rem;
    }

    /* Video & overlay: füllen das Hero-Element ohne horizontale Verschiebung */
    .hero-with-bg .hero-video,
    .hero-with-bg .hero-overlay {
        position: absolute;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* Flag-Button: sichere mobile Position, verhindert horizontales Ausbrechen */
    .hero-flag-button {
        position: relative;
        margin: 0 auto;
    }

    /* Info bubble zentriert relativ zum Viewport on mobile */
    .info-bubble {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        bottom: 109px !important;
    }
}