/* Schriftarten */
@font-face {
    font-family: 'Masque';
    src: url('assets/fonts/masque.ttf') format('truetype');
    unicode-range: U+0000-002F, U+003A-10FFFF;
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Masque';
    src: url('assets/fonts/pacifico.ttf') format('truetype');
    unicode-range: U+0030-0039;
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Pacifico';
    src: url('assets/fonts/pacifico.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Yanone Regular';
    src: url('assets/fonts/yanone-regular.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Yanone Regular';
    src: url('assets/fonts/yanone-thin.ttf') format('truetype');
    font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Yanone Regular';
    src: url('assets/fonts/yanone-light.ttf') format('truetype');
    font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Yanone Regular';
    src: url('assets/fonts/yanone-bold.ttf') format('truetype');
    font-weight: bold; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Lusitana';
    src: url('assets/fonts/lusitana-regular.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Lusitana';
    src: url('assets/fonts/lusitana-bold.ttf') format('truetype');
    font-weight: bold; font-style: normal; font-display: swap;
}


/* Globales Design-System */
:root {
    --color-dark: #0A2529;
    --color-teal: #14484E;
    --color-emerald: #14646B;
    --color-aqua: #7cc49c;
    --color-star: #804098;
    --color-sunset: #D8AB81;
    --color-gold: #d4af37;
    
    --color-white: #ffffff;
    --color-grass: #A1CE56; 
    
    --font-capital: 'Masque', fantasy;
    --font-highlight: 'Pacifico', cursive;
    --font-para-regular: 'Yanone Regular', sans-serif;
    --font-modal-regular: 'Lusitana', serif;
    
    --section-padding: 80px 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-para-regular);
    font-size: 1.5em;
    color: var(--color-dark);
    overflow-x: hidden;
    background-color: var(--color-white);
}

/* Web Component Platzhalter */
modular-section {
    display: block;
    width: 100%;
    min-height: 50px;
}

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

ul.no-bullets {
    list-style-type: none;
    padding-left: 0;
}



/* ==========================================================================
   GLOBAL INFO MODAL (Optimiert für SVG-Grid-Rahmen & Glassmorphism)
   ========================================================================== */

/* 1. Das Vollbild-Overlay (Dein gewohnter Glassmorphism bleibt!) */
#global-info-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px); /* Dein cooler Blur-Effekt */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sichtbarer Zustand für das Overlay */
#global-info-modal.is-visible {
    display: flex;
    opacity: 1;
}

/* 2. Der mathematische Grafik-Rahmen (Das 3x3 Grid) */
.modal-frame-wrapper {
    display: grid;
    /* Spalten: Links fix, Mitte dehnbar (min/max), Rechts fix */
    grid-template-columns: 80px minmax(200px, 600px) 80px;
    /* Reihen: Oben fix, Mitte wächst mit Inhalt, Unten fix */
    grid-template-rows: 80px auto 80px;
    background: var(--color-dark); /* Hier scheint deine Hintergrundfarbe durch */
    width: 90%;
    max-width: 760px; /* 600px reiner Inhalt + 80px für die Rahmen-Kanten */
    max-height: 85vh;
    padding: 8px;
    border: var(--color-sunset) 5px solid;
    
    /* Deine gewohnte Einblend-Animation (translateY) auf das Grid übertragen */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* Animation triggern, wenn sichtbar */
#global-info-modal.is-visible .modal-frame-wrapper {
    transform: translateY(0);
}

/* 3. Die SVG-Kanten und Ecken bändigen */
.modal-corner svg,
.modal-edge svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* WICHTIG: Die Linien-SVGs müssen sich strecken dürfen, ohne dicker zu werden.
   Das wird hier im CSS bombenfest abgesichert */
.modal-edge svg {
    object-fit: fill; 
}


/* --- STANDARDZUSTAND (Kein Overflow) --- */
/* Die rechte Seite verhält sich exakt wie die linke Seite und streckt sich voll */
.modal-edge.right svg {
    transition: transform 0.1s linear;
}

/* --- DYNAMISCHER SCROLL-ZUSTAND --- */
/* Diese Regeln greifen NUR, wenn das JS merkt, dass der Text zu lang ist! */

#global-info-modal.has-scroll .modal-edge.right {
    position: relative; /* Wird zur Schiene für den Schieber */
}

#global-info-modal.has-scroll .modal-edge.right svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 80px !important; /* Schrumpft jetzt erst auf die feste Wunschgröße */
    cursor: grab;
}

#global-info-modal.has-scroll .modal-edge.right svg:active {
    cursor: grabbing;
}

/* Interaktive Schließen-Ecke (oben rechts) */
.modal-close-trigger {
    cursor: pointer;
    transition: transform 1.2s ease, filter 0.2s ease;
    transform-origin: top right;
}
.modal-close-trigger:hover {
    transform: scale(1.14);
    /* filter: brightness(1.2); Macht deine Grafik beim Hovern dezent heller */
}

/* 4. Das Inhaltszentrum (Deine Design-Wiese) */
.modal-content-container {
    
    /*padding: 1.5rem 1rem;  Angenehmes Padding im Inneren des Rahmens */
    overflow-y: auto; /* Scrollbalken, falls der SEO-Text sehr lang ist */
    max-height: calc(85vh - 160px); /* Gesamthöhe minus die 80px der Rahmen-Kanten */
    min-height: 40px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05); /* Minimaler Tiefeneffekt nach innen */
    scrollbar-width: none;
}

/* Versteckt den Scrollbalken in Chrome, Safari und Edge */
.modal-content-container::-webkit-scrollbar {
    display: none;
}

/* 5. Hier stylst du den nackten SEO-Inhalt aus den HTML-Dateien */

#modal-body {
    font-family: var(--font-modal-regular);
    font-size: clamp(0.5em, 2vw, 1em);
    color: var(--color-sunset); /* Nutzt wieder deine Wunschfarbe */
}

#modal-body h2,
#modal-body h3 {
    font-family: var(--font-highlight);
    margin-top: 0;
}

#modal-body h2 {
    font-size: 1.8rem;
}

#modal-body h3 {
    font-size: 1.5rem;
}

#modal-body a {
    color: var(--color-aqua);
}

#modal-body p,
#modal-body ul,
#modal-body ol,
#modal-body address {
    line-height: 1.6;
    color: var(--color-sunset);
    margin-bottom: 1rem;
}

#modal-body footer * {

font-size: 0.8em;
}

/* Globaler Info-Trigger Style */
.info-trigger {
    width: 35px; height: 35px;
    border-radius: 50%;
    background: var(--color-teal);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-style: italic; font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.icon {
    display: inline-block;
    width: 1em;            /* skaliert mit der Schriftgröße daneben */
    height: 1em;
    background-color: currentColor;  /* Farbe folgt dem Text -> --color-sunset */
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center;  mask-position: center;
    -webkit-mask-size: contain;     mask-size: contain;
    vertical-align: -0.125em;        /* sitzt sauber auf der Textlinie */
    flex-shrink: 0;
}

.icon-calendar { -webkit-mask-image: url('assets/icons/calendar.svg'); mask-image: url('assets/icons/calendar.svg'); }
.icon-place    { -webkit-mask-image: url('assets/icons/place.svg');    mask-image: url('assets/icons/place.svg'); }
.icon-phone    { -webkit-mask-image: url('assets/icons/phone.svg');    mask-image: url('assets/icons/phone.svg'); }
.icon-mail     { -webkit-mask-image: url('assets/icons/mail.svg');     mask-image: url('assets/icons/mail.svg'); }
.icon-web      { -webkit-mask-image: url('assets/icons/web.svg');      mask-image: url('assets/icons/web.svg'); }
.icon-link     { -webkit-mask-image: url('assets/icons/link.svg');     mask-image: url('assets/icons/link.svg'); }
.icon-organizer { -webkit-mask-image: url('assets/icons/organizer.svg'); mask-image: url('assets/icons/organizer.svg'); }
.icon-tags { -webkit-mask-image: url('assets/icons/tags.svg'); mask-image: url('assets/icons/tags.svg'); }

.event-modal-facts { display: grid; gap: 1rem; margin: 1.5rem 0; }
.event-modal-fact dt { display: flex; align-items: center; gap: 0.5em; font-weight: bold; }
.event-modal-fact dd { margin: 0.25rem 0 0 0; }
.event-modal-thumb { margin: 0; }
.event-modal-thumb img { width: clamp(80px, 100%, 400px); height: auto; display: block; border-radius: 6%;}
.event-modal-detail address { font-style: normal; }
.event-modal-tags { display: flex; align-items: center; gap: 0.5em; }





/* ==========================================================================
   GLOBALE SCROLL-BLASEN
   ========================================================================== */
#global-bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* EXTREM WICHTIG: Blockiert keine Klicks! */
    z-index: 9999;        /* Schwebt optisch über allem */
    overflow: hidden;
}

.scroll-bubble {
    position: absolute;
    bottom: -25vh; /* Startet unterhalb des sichtbaren Bildschirms */
    background-image: url('assets/vectors/bubble.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* Sehr dezent, damit es nicht nervt (max 30% Deckkraft) */
    opacity: 0; 
    will-change: transform, opacity; /* Hardware-Beschleunigung für flüssige Animation */
}

/* Schnelles Scrollen: Geradlinig, schnell, verblasst sanft */
@keyframes bubble-fast {
    0%   { transform: translateY(0) scale(0.8); opacity: 0.3; }
    100% { transform: translateY(-130vh) scale(1.2); opacity: 0; }
}

/* Langsames Scrollen: Schaukelt nach links und rechts, langsamer */
@keyframes bubble-sway {
    0%   { transform: translateY(0) translateX(0) scale(0.9); opacity: 0.2; }
    25%  { transform: translateY(-30vh) translateX(3vw) scale(1); opacity: 0.3; }
    75%  { transform: translateY(-90vh) translateX(-3vw) scale(1.1); opacity: 0.2; }
    100% { transform: translateY(-130vh) translateX(0) scale(1.2); opacity: 0; }
}