/*
Theme Name: halbwegs
Theme URI: https://halbwegs.de
Author: halbwegs Team
Description: Der optimale Treffpunkt - Finde den fairsten Treffpunkt basierend auf Bahnverbindungen.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: halbwegs
*/

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --accent: #ed8936;
    --accent-hover: #dd6b20;
    --bg: #f7fafc;
    --bg-card: #ffffff;
    --text: #1a202c;
    --text-muted: #718096;
    --border: #e2e8f0;
    --success: #38a169;
    --warning: #d69e2e;
    --error: #e53e3e;
    --gradient-start: #1a365d;
    --gradient-end: #2c5282;
    
    --cat-berge: #48bb78;
    --cat-wasser: #4299e1;
    --cat-altstadt: #ed8936;
    --cat-metropole: #9f7aea;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================
   PROMO BANNER
   ============================================================ */

.promo-banner {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.75rem 1.5rem;
    text-align: center;
}

.promo-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.promo-text {
    font-weight: 500;
}

.promo-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s;
}

.promo-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================================
   HEADER - FULL
   ============================================================ */

.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.logo span {
    color: var(--accent);
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ============================================================
   HEADER - COMPACT (Unterseiten)
   ============================================================ */

.header-compact {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
}

.header-compact .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.header-compact .logo {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo-link,
.logo-link-plain {
    text-decoration: none;
    color: white;
}

.logo-link:hover,
.logo-link-plain:hover {
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: white;
    text-decoration: none;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================================
   INFO BOX
   ============================================================ */

.info-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   EXPLORE BOX (Städteportraits Link)
   ============================================================ */

.explore-box {
    margin-bottom: 2rem;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(26, 54, 93, 0.2);
}

.explore-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(26, 54, 93, 0.3);
}

.explore-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.explore-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.explore-text strong {
    font-size: 1.1rem;
    font-weight: 600;
}

.explore-text small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.explore-arrow {
    font-size: 1.5rem;
    opacity: 0.8;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.explore-link:hover .explore-arrow {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .explore-link {
        padding: 1rem;
    }
    
    .explore-icon {
        font-size: 1.5rem;
    }
    
    .explore-text strong {
        font-size: 1rem;
    }
    
    .explore-text small {
        font-size: 0.8rem;
    }
}

/* ============================================================
   INPUT SECTION
   ============================================================ */

.input-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title .icon {
    font-size: 1.5rem;
}

/* ============================================================
   CITY INPUT & AUTOCOMPLETE
   ============================================================ */

.city-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.city-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

.city-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.city-input::placeholder {
    color: var(--text-muted);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg);
}

.autocomplete-item .city-name {
    font-weight: 500;
    flex: 1;
}

.autocomplete-item .city-badge {
    font-size: 0.7rem;
    background: var(--accent);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.autocomplete-item .badge-info {
    background: var(--primary);
}

.autocomplete-item .category-icons {
    display: flex;
    gap: 0.25rem;
    font-size: 0.9rem;
}

/* ============================================================
   SELECTED CITIES
   ============================================================ */

.selected-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    min-height: 44px;
}

.city-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.2s ease;
}

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

.city-tag .remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.15s ease;
}

.city-tag .remove-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   PREFERENCES
   ============================================================ */

.preferences-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.preferences-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.preference-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg);
}

.preference-checkbox:hover {
    border-color: var(--primary-light);
    background: white;
}

.preference-checkbox input {
    display: none;
}

.preference-checkbox input:checked + .checkbox-custom {
    transform: scale(1.2);
}

.preference-checkbox input:checked ~ .checkbox-label {
    font-weight: 600;
    color: var(--primary);
}

.preference-checkbox:has(input:checked) {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.checkbox-custom {
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.deutschlandticket-option {
    margin-top: 0.75rem;
}

.deutschlandticket-option label {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.deutschlandticket-option input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 14px rgba(237, 137, 54, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.5);
}

.btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */

.results-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: none;
}

.results-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.results-header .section-title {
    margin-bottom: 0;
}

/* ============================================================
   SORT OPTIONS
   ============================================================ */

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sort-select {
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--primary);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   RESULT CARDS
   ============================================================ */

.result-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.1);
}

.result-card.winner {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05), rgba(44, 82, 130, 0.08));
    border: 2px solid var(--primary);
}

.result-card.pref-match {
    border-left: 4px solid var(--success);
}

.result-card.pref-match.cat-berge { border-left-color: var(--cat-berge); }
.result-card.pref-match.cat-wasser { border-left-color: var(--cat-wasser); }
.result-card.pref-match.cat-altstadt { border-left-color: var(--cat-altstadt); }
.result-card.pref-match.cat-metropole { border-left-color: var(--cat-metropole); }

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-rank {
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.result-city {
    font-size: 1.25rem;
    font-weight: 600;
}

.result-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.result-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.result-badge.badge-winner { background: var(--accent); }
.result-badge.badge-curated { background: var(--primary); }
.result-badge.badge-pref { background: var(--success); }

.result-categories {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.category-tag.cat-berge { background: rgba(72, 187, 120, 0.15); color: var(--cat-berge); }
.category-tag.cat-wasser { background: rgba(66, 153, 225, 0.15); color: var(--cat-wasser); }
.category-tag.cat-altstadt { background: rgba(237, 137, 54, 0.15); color: var(--cat-altstadt); }
.category-tag.cat-metropole { background: rgba(159, 122, 234, 0.15); color: var(--cat-metropole); }

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.result-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-detail-value {
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}

/* ============================================================
   TRAVEL TIMES
   ============================================================ */

.travel-times {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.travel-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.travel-time-row .from {
    color: var(--text-muted);
}

.travel-time-row .time {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
}

.travel-time-row .time.no-connection {
    color: var(--error);
}

/* ============================================================
   RESULT LINK
   ============================================================ */

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.result-link:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.result-link-disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.result-link-disabled:hover {
    background: var(--border);
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   SHARE TOP 10 BUTTON & MODAL
   ============================================================ */

.share-top10-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.share-top10-btn:hover {
    background: #20BA5C;
    transform: translateY(-1px);
}

.share-top10-btn:active {
    transform: translateY(0);
}

.results-header-with-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.share-modal-overlay.active .share-modal {
    transform: scale(1);
}

.share-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.share-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.75rem;
}

.share-modal-text {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.share-modal-close {
    background: #1a365d;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.share-modal-close:hover {
    background: #2c5282;
}

/* ============================================================
   HOW IT WORKS (SEO-Sektion)
   ============================================================ */

.how-it-works-section {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.how-it-works-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface, #f8f9fa);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text, #333);
    transition: all 0.2s ease;
    font-family: inherit;
}

.how-it-works-toggle:hover {
    background: var(--surface-hover, #f0f0f0);
}

.how-it-works-toggle .toggle-arrow {
    transition: transform 0.3s ease;
}

.how-it-works-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.how-it-works-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--surface, #f8f9fa);
    border: 1px solid var(--border, #e0e0e0);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.how-it-works-content.expanded {
    max-height: 800px;
    padding: 1.5rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.how-it-works-step {
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 0.75rem;
}

.how-it-works-step h3,
.how-it-works-step h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--text, #333);
}

.how-it-works-step p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted, #666);
    line-height: 1.5;
}

.how-it-works-info {
    background: var(--primary-light, #e0e7ff);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.how-it-works-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text, #333);
    line-height: 1.6;
}

.how-it-works-about {
    margin-top: 1.5rem;
}

.how-it-works-about h3 {
    font-size: 1.1rem;
    color: var(--text, #333);
    margin: 0 0 0.75rem;
}

.how-it-works-about p {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.how-it-works-about p:last-child {
    margin-bottom: 0;
}

.how-it-works-about a {
    color: var(--primary, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.how-it-works-about a:hover {
    color: var(--primary-dark, #1d4ed8);
}

/* ============================================================
   SEO ABOUT SECTION (always visible, below how-it-works)
   ============================================================ */

.seo-about-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
}

.seo-about-section h2 {
    font-size: 1.2rem;
    color: var(--text, #333);
    margin: 0 0 1rem;
}

.seo-about-section h3 {
    font-size: 1rem;
    color: var(--text, #333);
    margin: 1.25rem 0 0.5rem;
}

.seo-about-section p {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.seo-about-section p:last-child {
    margin-bottom: 0;
}

.seo-about-section a {
    color: var(--primary, #2563eb);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-about-section a:hover {
    color: var(--primary-dark, #1d4ed8);
}

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

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal .separator {
    color: var(--border);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-sub,
.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-copyright-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-badge {
    margin: 0;
}

.footer-affiliate-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ============================================================
   DESTINATION PAGES
   ============================================================ */

.destination-hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.destination-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.destination-subtitle {
    font-size: 0.6rem;
    opacity: 0.8;
}

.destination-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.destination-category {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* ============================================================
   DESTINATION HERO - MIT BILD
   ============================================================ */

.destination-hero.has-hero-image {
    color: white;
    padding: 4rem 2rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: min-height 0.4s ease, padding 0.4s ease;
    overflow: hidden;
}

/* Overlay - nur im eingeklappten Zustand */
.destination-hero.has-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Ausgeklappter Zustand - kein Overlay */
.destination-hero.has-hero-image.expanded::before {
    opacity: 0;
}

.destination-hero.has-hero-image.expanded {
    padding: 0;
}

.destination-hero.has-hero-image h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.destination-hero.has-hero-image.expanded h1 {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.destination-hero.has-hero-image .destination-categories {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.destination-hero.has-hero-image.expanded .destination-categories {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.destination-hero.has-hero-image .destination-category {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================================
   COPYRIGHT-BAR / UNTERTITEL-BALKEN (Ausklappbar)
   ============================================================ */

.destination-subtitle-bar {
    position: absolute;
    bottom: 20px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    z-index: 2;
    border-radius: 2px 0 0 2px;
    text-shadow: none;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, max-width 0.4s ease;
    max-width: 40px;
    overflow: hidden;
    white-space: nowrap;
}

.destination-subtitle-bar:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Copyright-Icon */
.destination-subtitle-bar .copyright-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Caption-Text (zunächst versteckt) */
.destination-subtitle-bar .caption-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.1s, max-width 0.4s ease;
}

/* Ausgeklappter Zustand */
.destination-subtitle-bar.expanded {
    max-width: 60%;
    padding: 0.6rem 1.2rem 0.6rem 1rem;
}

.destination-subtitle-bar.expanded .caption-text {
    opacity: 1;
    max-width: 500px;
}

/* Links im Caption-Text */
.destination-subtitle-bar .caption-text a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.destination-subtitle-bar .caption-text a:hover {
    color: white;
    text-decoration-style: solid;
}

/* Bei ausgeklapptem Hero-Image */
.destination-hero.has-hero-image.expanded .destination-subtitle-bar {
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================================
   HERO TOGGLE BUTTON
   ============================================================ */

.hero-toggle-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 3;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-toggle-btn .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.destination-hero.has-hero-image.expanded .hero-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Anpassungen für Hero mit Bild */
@media (max-width: 768px) {
    .destination-subtitle-bar {
        bottom: 60px;
        max-width: 36px;
    }
    
    .destination-subtitle-bar.expanded {
        max-width: 80%;
        font-size: 0.8rem;
        padding: 0.5rem 1rem 0.5rem 0.8rem;
    }
}

.destination-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

.destination-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.destination-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.destination-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.destination-text p:last-child {
    margin-bottom: 0;
}

.highlights-list {
    margin-left: 1.5rem;
}

.highlights-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.destination-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
}

.info-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card .value {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
	margin-bottom: 2rem;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--accent);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.treffpunkt-cta {
    text-align: center;
    padding: 1.25rem 2rem;
}

.treffpunkt-cta p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted, #666);
}

.treffpunkt-cta a {
    color: var(--primary, #2563eb);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.treffpunkt-cta a:hover {
    color: var(--primary-dark, #1d4ed8);
}

/* ============================================================
   ÄHNLICHE REISEZIELE (single-reiseziel.php)
   ============================================================ */

.related-destinations {
    margin-top: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-grid .reiseziel-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-grid .reiseziel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.related-grid .reiseziel-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.related-grid .reiseziel-card-content {
    padding: 1.25rem;
}

.related-grid .reiseziel-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.related-grid .reiseziel-card-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-grid .reiseziel-card-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.related-grid .reiseziel-card-category {
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
}

/* ============================================================
   ARCHIVE / GRID
   ============================================================ */

.archive-content {
    padding: 2rem 0;
}

.archive-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.reiseziel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.reiseziel-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.reiseziel-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.1);
}

.reiseziel-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.reiseziel-card-content {
    padding: 1.5rem;
}

.reiseziel-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reiseziel-card-title a {
    color: var(--text);
    text-decoration: none;
}

.reiseziel-card-title a:hover {
    color: var(--primary);
}

.reiseziel-card-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.reiseziel-card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.reiseziel-card-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ============================================================
   WORDPRESS ADMIN BAR
   ============================================================ */

@media screen and (min-width: 783px) {
    .admin-bar .header { margin-top: 32px; }
}

@media screen and (max-width: 782px) {
    .admin-bar .header { margin-top: 46px; }
}

/* ============================================================
   ERGEBNIS-KARTE (Top 10 auf der Karte)
   ============================================================ */

.results-map-section {
    margin-bottom: 1.5rem;
}

.results-map-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.results-map-toggle:hover {
    border-color: var(--primary-light);
    background: rgba(26, 54, 93, 0.03);
}

.results-map-toggle .toggle-arrow {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.results-map-toggle.open .toggle-arrow {
    transform: rotate(90deg);
}

.results-map-container {
    display: none;
    margin-top: 0.75rem;
}

.results-map-container.open {
    display: block;
}

#resultsMap {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    border: 1px solid var(--border);
    z-index: 1;
}

/* Popup-Styles (wie Reisezielkarte) */

.reiseziel-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.reiseziel-popup .leaflet-popup-content {
    margin: 0;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.reiseziel-popup .leaflet-popup-tip {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-content {
    padding: 0;
}

.popup-content .popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.75rem 1rem 0.25rem 1rem !important;
    color: var(--text);
}

.popup-content .popup-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 1rem 0.5rem 1rem !important;
}

.popup-content .popup-categories {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0 1rem 0.75rem 1rem !important;
}

.popup-cat {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.popup-cat.cat-berge { background: rgba(72, 187, 120, 0.15); color: var(--cat-berge); }
.popup-cat.cat-wasser { background: rgba(66, 153, 225, 0.15); color: var(--cat-wasser); }
.popup-cat.cat-altstadt { background: rgba(237, 137, 54, 0.15); color: var(--cat-altstadt); }
.popup-cat.cat-metropole { background: rgba(159, 122, 234, 0.15); color: var(--cat-metropole); }

.popup-link {
    display: block;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.popup-link:hover {
    background: var(--primary-light);
    text-decoration: none;
    color: white;
}

/* Reisezeiten im Popup */

.popup-travel-times {
    margin: 0.5rem 1rem 0.75rem 1rem;
}

.popup-travel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.popup-travel-row:last-child {
    border-bottom: none;
}

.popup-travel-row .from-city {
    color: var(--text-muted);
}

.popup-travel-row .travel-time {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    #resultsMap {
        height: 300px;
        border-radius: 8px;
    }

    .results-map-toggle {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .preferences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links-section {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .destination-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 2.25rem;
    }
    
    .tagline {
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-bar {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .preference-checkbox {
        padding: 0.75rem;
    }
    
    .checkbox-custom {
        font-size: 1.5rem;
    }
    
    .header-compact .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
    }

    .results-header-with-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-top10-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   PAGE TEMPLATE (Datenschutz, Impressum, etc.)
   ============================================================ */

.page-content {
    background: var(--bg);
    min-height: calc(100vh - 300px);
}

.page-content .container {
    max-width: 900px;
    padding: 2rem 1.5rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.page-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.page-text {
    color: var(--text);
    line-height: 1.8;
}

.page-text h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-text h2:first-child {
    margin-top: 0;
}

.page-text h3 {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-text p {
    margin-bottom: 1rem;
}

.page-text ul,
.page-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-text li {
    margin-bottom: 0.5rem;
}

.page-text a {
    color: var(--primary);
    text-decoration: underline;
}

.page-text a:hover {
    color: var(--accent);
}

.page-text strong {
    font-weight: 600;
    color: var(--text);
}

.page-text em {
    font-style: italic;
}

.page-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.page-text table th,
.page-text table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.page-text table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--primary);
}

.page-text blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.page-text code {
    background: var(--bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.page-text pre {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-text pre code {
    background: none;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-section {
        padding: 1.5rem;
    }
    
    .page-text {
        font-size: 0.95rem;
    }
}

/* ============================================================
   RESULT LINK GROUP (Mehrere Buttons)
   ============================================================ */

.result-link-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============================================================
   BOOKING BUTTON (Sekundärer CTA)
   ============================================================ */

.result-link-booking {
    background: white;
    color: var(--primary);
    border: 2px solid var(--border);
    font-weight: 500;
}

.result-link-booking:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

/* ============================================================
   EUROPLAN BUTTON (Easter Egg: ?gruppo)
   ============================================================ */

.result-link-europlan {
    background: #2563eb;
    color: white;
    border: 2px solid #2563eb;
    font-weight: 500;
}

.result-link-europlan:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: white;
    text-decoration: none;
}

/* ============================================================
   BAHN.DE LINK MIT TOOLTIP
   ============================================================ */

.bahn-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    position: relative;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.bahn-link:hover {
    color: #ec0016;
    border-color: #ec0016;
}

/* Tooltip */
.bahn-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Tooltip-Pfeil */
.bahn-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
}

.bahn-link:hover::after,
.bahn-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile: Tooltip links ausrichten */
@media (max-width: 480px) {
    .bahn-link::after {
        left: 0;
        transform: translateX(0);
    }
    .bahn-link::before {
        left: 1rem;
        transform: translateX(0);
    }
}

/* FIX: Highlights-Liste immer vertikal darstellen */
.destination-section .highlights-list,
.destination-section .highlights-list.wp-block-list {
    display: block !important;
    flex-direction: column;
}



/* ============================================================
   MOBILE OPTIMIERUNG
   ============================================================ */

@media (max-width: 640px) {
    .result-link-group {
        flex-direction: column;
        align-items: stretch;
    }

    .result-link,
    .result-link-booking {
        justify-content: center;
        width: 100%;
    }
}
