/* ============================================
   TAGUNGSZENTRUM - Statische Website
   Farben: #17233d (Dunkelblau), #ffffff, #666
   ============================================ */

/* ============================================
   LOKALE SCHRIFTARTEN (Open Sans)
   ============================================ */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/open-sans-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2');
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

/* Scroll-Offset für Anker (Header-Höhe berücksichtigen) */
#service,
#downloads,
#termine,
#downloadbereich,
#kontakt {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    color: #333;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: #17233d;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    position: relative;
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Beide Logos übereinander positionieren */
.logo .logo-dark {
    display: block;
    opacity: 1;
}

.logo .logo-light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Beim Scrollen: Logo faden */
.header.scrolled .logo .logo-dark {
    opacity: 0;
}

.header.scrolled .logo .logo-light {
    opacity: 1;
}

/* Navigation - immer versteckt, nur Hamburger */
.nav {
    display: none;
}

/* Hamburger Menu - immer sichtbar */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #17233d;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    gap: 6px;
    transition: background 0.3s ease;
}

.header.scrolled .nav-toggle {
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Mobile Navigation Overlay */
/* Hintergrund-Overlay (abgedunkelt) */
.nav-overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay-bg.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-In Menü Panel */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    background: #17233d;
    z-index: 2000;
    padding: 30px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-overlay .nav-logo {
    display: block;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 40px;
}

.nav-overlay .nav-logo img {
    height: 40px;
    width: auto;
}

.nav-mobile {
    width: 100%;
}

.nav-close {
    display: none;
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile a {
    display: block;
    padding: 15px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-mobile a:hover {
    opacity: 0.6;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline {
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: #fff;
    color: #17233d;
}

.btn-outline-dark {
    border: 1px solid #17233d;
    color: #17233d;
    background: transparent;
}

.btn-outline-dark:hover {
    background: #17233d;
    color: #fff;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-white {
    background: #fff;
}

.section-gray {
    background: #f5f5f5;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    color: #17233d;
}

/* Content Block (Text + Image) */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-block-reverse {
    direction: rtl;
}

.content-block-reverse > * {
    direction: ltr;
}

.content-text {
    /* Standard: Bild ist rechts, Text rechtsbündig (zur Mitte) */
    text-align: right;
}

/* Bei reverse: Bild ist links, Text linksbündig (zur Mitte) */
.content-block-reverse .content-text {
    text-align: left;
}

.content-text h2 {
    font-size: 36px;
    font-weight: 300;
    color: #17233d;
    margin-bottom: 25px;
}

.content-text p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-text .btn {
    margin-top: 15px;
}

.content-image img {
    width: 100%;
    border-radius: 2px;
}

/* Image Slider (Fade Effect) */
.image-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-slider img.active {
    opacity: 1;
}

/* ============================================
   COVER SECTIONS (Full-width background)
   ============================================ */
.section-cover {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.cover-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.cover-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    max-width: 550px;
}

.cover-box h2 {
    font-size: 32px;
    font-weight: 300;
    color: #17233d;
    margin-bottom: 20px;
}

.cover-box p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ============================================
   LOGO BAR (Marquee)
   ============================================ */
.logo-bar {
    background: #17233d;
    padding: 25px 0;
    overflow: hidden;
}

.logo-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
}

.logo-track a {
    display: inline-flex;
    flex-shrink: 0;
}

.logo-track img {
    height: 35px;
    width: auto;
    opacity: 0.9;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   TERMINE & DOWNLOADS SECTION
   ============================================ */
.termine-downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.column-title {
    font-size: 32px;
    font-weight: 300;
    color: #17233d;
    text-align: center;
    margin-bottom: 30px;
}

/* Termine Column */
.termine-column {
    display: flex;
    flex-direction: column;
}

.termine-iframe-wrapper {
    background: #17233d;
    border-radius: 0;
    overflow: hidden;
    padding: 10px;
    /* Feste Höhe angepasst für Download-Gaps */
    height: 755px;
}

.termine-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Downloads Column */
.downloads-column {
    display: flex;
    flex-direction: column;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-item {
    /* Keine Trennlinien */
}


.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-weight: 400;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease;
    border: none;
    border-radius: 4px;
}

.download-header:hover {
    background: #17233d;
    color: #fff;
}

/* Geöffneter Download-Header = dunkelblau */
.download-item.open .download-header {
    background: #17233d;
    color: #fff;
}

.download-icon {
    font-size: 18px;
    font-weight: 300;
}

.download-content {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s ease;
}

.download-item.open .download-content {
    max-height: 250px;
}

.download-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    padding: 20px 20px 0 20px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #17233d;
    font-weight: 400;
    font-size: 14px;
    transition: opacity 0.3s ease;
    padding: 0 20px 20px 20px;
}

.download-link:hover {
    opacity: 0.7;
}

.download-link svg {
    flex-shrink: 0;
}

/* PDF Icon */
.pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 3px;
    position: relative;
}

.pdf-icon::before {
    content: 'PDF';
}

@media (max-width: 900px) {
    .termine-downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .termine-iframe-wrapper {
        height: 400px;
    }
}

/* ============================================
   KONTAKT SECTION
   ============================================ */
.section-kontakt .cover-content {
    max-width: 1200px;
    margin: 0 auto;
}

.kontakt-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    max-width: 100%;
}

.kontakt-box h2 {
    font-size: 32px;
    font-weight: 300;
    color: #17233d;
    margin-bottom: 40px;
}

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

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.kontakt-item {
    display: flex;
    gap: 20px;
}

.kontakt-icon {
    width: 50px;
    height: 50px;
    background: #17233d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontakt-icon svg {
    stroke: #fff;
}

.kontakt-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #17233d;
    margin-bottom: 5px;
}

.kontakt-details p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.kontakt-details a {
    color: #17233d;
    transition: opacity 0.3s ease;
}

.kontakt-details a:hover {
    opacity: 0.7;
}

.kontakt-details .small {
    font-size: 13px;
    margin-top: 5px;
    opacity: 0.8;
}

.kontakt-map img {
    width: 100%;
    border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    /* Wrapper für beide Footer-Teile */
}

/* Footer Top - blauer Balken mit Links */
.footer-top {
    background: #17233d;
    padding: 25px 0;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Footer Bottom - weißer Bereich mit Copyright */
.footer-bottom {
    background: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.7;
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.header-scrolled-static {
    background: #17233d !important;
    transition: none;
}

.header-scrolled-static .nav-toggle {
    background: transparent;
}

.header-scrolled-static .logo .logo-dark {
    display: none;
}

.header-scrolled-static .logo .logo-light {
    position: relative;
    opacity: 1;
}

.legal-page {
    padding-top: 180px;
}

.legal-title {
    font-size: 42px;
    font-weight: 300;
    color: #17233d;
    margin-bottom: 50px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.legal-content {
    max-width: 800px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 400;
    color: #17233d;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #17233d;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    color: #666;
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: #17233d;
    text-decoration: underline;
}

.legal-content a:hover {
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-block-reverse {
        direction: ltr;
    }
    
    .content-text,
    .content-block-reverse .content-text {
        text-align: center;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .kontakt-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-inner {
        padding: 15px 20px;
    }
    
    .nav {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .content-text h2,
    .cover-box h2,
    .kontakt-box h2 {
        font-size: 28px;
    }
    
    .cover-content {
        padding: 40px 20px;
    }
    
    .cover-box,
    .kontakt-box {
        padding: 30px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-track {
        gap: 40px;
    }
    
    .logo-track img {
        height: 25px;
    }
    
    .legal-page {
        padding-top: 120px;
    }
    
    .legal-title {
        font-size: 28px;
    }
}

/* ============================================
   ANIMATIONS (optional - aktivieren wenn JS läuft)
   ============================================ */
/* 
Scroll-Animation deaktiviert für Stabilität.
Falls gewünscht, diese Zeilen einkommentieren:

@media (prefers-reduced-motion: no-preference) {
    .content-block,
    .cover-box,
    .kontakt-box,
    .download-item {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .content-block.visible,
    .cover-box.visible,
    .kontakt-box.visible,
    .download-item.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
*/

/* ============================================
   Sticky Buttons
   ============================================ */
.sticky-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.sticky-btn {
    width: 50px;
    height: 50px;
    background: #17233d;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sticky-btn:hover {
    background: #ffffff;
    color: #17233d;
}

.sticky-btn svg {
    width: 24px;
    height: 24px;
}

/* Nur anzeigen wenn genug Platz neben dem Content ist */
@media (min-width: 1340px) {
    .sticky-buttons {
        display: flex;
    }
}