:root {
    --bg-color: #f4f7f6; /* Etwas weicheres Grau für edleren Look */
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #636e72;
    --accent: #2d3436;
    --shadow: 0 20px 40px rgba(0,0,0,0.06);
    --border-radius-lg: 30px;
    --border-radius-sm: 16px;
}


/* --- MODERN BACK TO TOP BUTTON (Zentriert am Content) --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    
    /* Der Trick für breite Monitore: */
    /* Wir gehen zur Mitte (50%) + die halbe Containerbreite (325px) + 20px Abstand */
    left: calc(50% + 345px); 
    
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

/* Fallback für kleinere Monitore & Tablets: 
   Wenn der Platz rechts vom Container nicht mehr reicht, 
   schalten wir auf die normale Rechts-Position um. */
@media (max-width: 850px) { 
    .back-to-top {
        left: auto;
        right: 30px;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #4a86e8;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 134, 232, 0.1);
}

.back-to-top a:hover {
    background-color: #4a86e8;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 134, 232, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 3px;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .back-to-top {
        left: auto; /* Sicherstellen, dass die Left-Berechnung hier nicht greift */
        bottom: 25px;
        right: 20px;
    }
    .back-to-top a {
        width: 45px;
        height: 45px;
    }
}


body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0; /* Padding wird über Container gesteuert */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 650px;
    margin: 60px auto;
    background: var(--card-bg);
    padding: 50px 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

/* Header & Logo */
.header-center { 
    text-align: center; 
    margin-bottom: 40px; 
}

.logo { 
    width: 100%;
    max-width: 380px; /* Logo schön präsent auf Desktop */
    height: auto;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}


/* Die Warn-Box für den Schlüssel */
.warning-box {
    background: rgba(231, 76, 60, 0.1);
    border-left: 5px solid #e74c3c;
    padding: 20px; /* Desktop-Abstand */
    border-radius: 8px;
    margin: 20px 0;
    color: #c0392b;
}

.warning-box h3 {
    margin-top: 0;
    color: #c0392b;
    font-size: 1.2rem;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .warning-box {
        padding: 12px; /* Weniger Innenabstand auf dem Handy */
        margin: 15px 0;
        border-left-width: 4px; /* Etwas schmalerer Balken */
    }
    
    .warning-box h3 {
        font-size: 1.05rem; /* Überschrift schrumpft mit */
        margin-bottom: 8px;
    }
    
    .warning-box p {
        font-size: 0.95rem; /* Text wird etwas kleiner */
        line-height: 1.4;
    }
}





/* --- h1: Die Begrüßung (Einzeiler) --- */
h1 {
    font-size: clamp(1rem, 5vw, 2.2rem); 
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    white-space: nowrap;
    overflow: hidden;
}

/* --- h2: Die Struktur --- */
h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 50px; /* Viel Platz im freien Fluss */
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: block;
    text-align: left;
    width: 100%; /* Sicherstellen, dass es die volle Breite nutzt */
}

/* Spezialregel: Wenn h2 das erste Kind in einer Box ist, kein Abstand nach oben */
.highlight-card h2:first-child,
.checkout-box h2:first-child,
.intro-box h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* --- h3: Die feine Gliederung (Hausregeln) --- */
h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 25px;
    margin-bottom: 8px;
}

/* Mobile Korrekturen */
@media (max-width: 600px) {
    h2 { font-size: 1.15rem; margin-top: 35px; }
    h3 { font-size: 1rem; }
}

/* Formulare & Buttons */
.key-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.input-field {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    background: #fdfdfd;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.25s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--text-main);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn {
    background: var(--text-main);
    color: white;
    padding: 16px 45px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:hover { 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    filter: brightness(1.2);
}


/* Styling für die Anreise-Liste */
.arrival-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.arrival-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Wir nutzen deinen --accent für die Kreise */
.arrival-number {
    background: var(--accent);
    color: white;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.arrival-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobil-Optimierung: Text etwas kleiner */
@media (max-width: 600px) {
    .arrival-text { font-size: 0.9rem; }
    .arrival-list { gap: 1rem; }
}




/* Inhalts-Styles */
.intro-box {
    background: #f9f9fb;
    padding: 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 35px;
    border-left: 6px solid #dfe6e9;
    font-size: 1.05rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.step-circle {
    background: var(--text-main);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.image-gallery img, .image-gallery embed {
    width: 100%;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.highlight-card {
    background: #fff;
    border: 1px solid #edf2f4;
    padding: 30px;
    border-radius: var(--border-radius-sm);
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Checkout Box Redesign */
.checkout-box {
    background: #fdfdfd; /* Heller Hintergrund statt Schwarz */
    color: var(--text-main); /* Dunkler Text für Lesbarkeit */
    padding: 40px;
    border: 2px solid #edf2f4;
    border-radius: var(--border-radius-sm);
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.review-card {
    background: #f0f7ff;
    border-left: 6px solid #0984e3;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
}

.language-switch {
    text-align: center;
    margin: 10px 0 25px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-lang {
    text-decoration: none;
    color: #999;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.btn-lang:hover {
    border-color: #ccc;
    color: var(--text-main);
}

/* Markierung für die aktive Sprache */
.btn-lang.active {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer Linkleiste */
.footer-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
}

.footer-section {
    margin-bottom: 15px;
}

.footer-section a {
    text-decoration: none;
    color: var(--text-muted);
    margin: 0 10px;
    transition: color 0.2s;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent);
}

/* Spezielle Markierung für die Checkin- & Kontakt-Links */
.footer-contact a {
    color: #0984e3; /* Ein angenehmes Blau */
    font-weight: 600;
}

.footer-contact a:hover {
    color: #74b9ff;
}


/* Quick-Menü Styles */
.quick-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.menu-item {
    background: #f0f0f0;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-item:hover {
    background: var(--accent);
    color: white;
}

/* Scroll-Offset damit Überschriften nicht verdeckt werden */
h2, .step-header, .anchor-section {
    scroll-margin-top: 30px;
}

html {
    scroll-behavior: smooth;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


/* Sanftes Scrollen für das gesamte Dokument */
html {
    scroll-behavior: smooth;
}

/* Damit die Anker-Links nicht direkt am oberen Rand kleben */
.anchor-section {
    scroll-margin-top: 20px;
}



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


@media (max-width: 600px) {
    .footer-section a {
        margin: 5px 8px;
    }
}



hr { border: 0; border-top: 1px solid #eee; margin: 30px 0; }

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 600px) {
    body {
        background-color: var(--card-bg); /* Weißer Hintergrund für nahtlosen Look */
    }

    .container {
        margin: 0;
        padding: 30px 20px; /* Genug Platz für Text, aber keine Platzverschwendung */
        max-width: 100%;
        border-radius: 0;
        box-shadow: none; /* Schatten am Handy wirkt oft "dreckig" bei Randlos-Optik */
    }

    .logo {
        max-width: 260px; /* Auf dem Handy etwas moderater */
    }

p, .intro-box, .highlight-card, .checkout-box p {
        font-size: 0.92rem; 
        line-height: 1.5;
    }

    /* Speziell für die Hausregeln-Überschrift in der Card */
    .highlight-card h2 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .step-header {
        margin-top: 30px;
    }

.step-circle {
        width: 30px; /* Minimal kleinerer Kreis, passend zur kleineren Schrift */
        height: 30px;
        font-size: 0.85rem;
    }

.step-title {
        font-size: 1.05rem; /* Etwas kleiner, damit es meistens einzeilig bleibt */
        font-weight: 700;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        padding: 18px;
    }

    .checkout-box {
        border-radius: 0; /* Checkout Box geht am Handy über die volle Breite */
        margin-left: -20px;
        margin-right: -20px;
    }
}

/* --- Host Card (Über mich) --- */
.host-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin: 40px 0;
    border: 1px solid rgba(0,0,0,0.03);
}

.host-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-blue);
    flex-shrink: 0;
}

.host-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-main);
}

.host-intro {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.host-details {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .host-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
}

small {
    display: inline-block; /* Erlaubt bessere Kontrolle über Abstände */
    font-size: 0.82rem;    /* Etwas kleiner als Standard */
    line-height: 1.3;      /* Engerer Zeilenabstand für kompakte Optik */
    font-weight: 400;
}


/* Die Karten-Vorschau Box */
.map-preview-link {
    display: block;
    position: relative;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    line-height: 0; /* Verhindert hässliche Abstände unter dem Bild */
}

.map-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-thumbnail {
    width: 100%;
    height: 150px; /* Feste Höhe für die Vorschau auf Mobilgeräten */
    object-fit: cover; /* Schneidet das Bild sauber zu */
    transition: transform 0.4s ease;
}


.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-overlay:target {
    visibility: visible;
    opacity: 1;
}

/* Der Bereich im Hintergrund, der auch schließt */
.overlay-close-area {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

/* DAS "X": Der Schließen-Button oben rechts */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    z-index: 10001; /* Liegt über dem Bild */
    transition: background 0.2s;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Das Bild selbst */
.overlay-image {
    position: relative; /* Wichtig für Z-Index Layering */
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* Mobile Korrektur für den Button */
@media (max-width: 600px) {
    .close-button {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        background: rgba(0, 0, 0, 0.5); /* Am Handy dunklerer Background für Kontrast */
        border: 1px solid rgba(255,255,255,0.3);
    }
}

.address-container {
    margin-top: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.address-text {
    margin: 8px 0 0 0 !important;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.3px;
}

.btn-map {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}
