/**
 * Moderne Detailseiten - Einheitliches Design
 * Für: übernachten, aktivitäten, gruppenprogramm, wandern, zweirad
 */

/* Hero Section mit Headerbild und Titel-Overlay */
.detail-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.detail-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.detail-hero-content {
    color: white;
    max-width: 800px;
}

.detail-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.detail-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

/* Fallback für Seiten ohne Headerbild */
.detail-hero-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Kompakte Inhalts-Sektion */
.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.detail-description {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border-left: 4px solid #ff6b35;
}

.detail-description h3 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Kompakte Info-Cards */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #ff6b35;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.detail-info-card h4 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-info-card h4::before {

    font-size: 1.2rem;
}

.detail-info-card p {
    color: #666;
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.detail-info-card a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
}

.detail-info-card a:hover {
    text-decoration: underline;
}

/* Kompakte Kontakt-Info */
.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.contact-info h4 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info h4::before {
    font-size: 1.2rem;
}

.contact-details {
    display: grid;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.contact-item strong {
    color: #333;
    min-width: 80px;
}

.contact-item a {
    color: #ff6b35;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Route-Statistiken (für Wandern/Zweirad) */
.route-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.route-stats h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Bildergalerie */
.image-gallery {
    margin-bottom: 2rem;
}

.image-gallery h4 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Karten-Container */
.location-map-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.location-map-header {
    background: #333;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.location-map {
    height: 400px;
    width: 100%;
}

/* Höhenprofil-Integration */
.elevation-profile-container {
    margin-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid #ddd;
    background: white;
}

.elevation-profile-header {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    border-radius: 0 !important;
    padding: 15px 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    user-select: none !important;
    position: relative !important;
    transition: background 0.3s ease !important;
}

.elevation-profile-header:hover {
    background: linear-gradient(135deg, #218838, #1ea085) !important;
}

.elevation-profile-header .toggle-icon {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.3s ease !important;
}

.elevation-profile {
    max-height: none !important;
    opacity: 1 !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    overflow: visible !important;
}

.elevation-profile.collapsed {
    max-height: 0 !important;
    padding: 0 20px !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

.elevation-profile.collapsed .toggle-icon {
    transform: translateY(-50%) rotate(-90deg) !important;
}

.elevation-profile canvas {
    width: 100% !important;
    height: 200px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    cursor: crosshair !important;
}

.elevation-info {
    margin-top: 20px !important;
}

.elevation-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin-top: 15px !important;
}

.elevation-stats .stat {
    background: #f8f9fa !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    border-left: 4px solid #28a745 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.elevation-stats .stat-label {
    font-weight: 500 !important;
    color: #495057 !important;
}

.elevation-stats .stat-value {
    font-weight: bold !important;
    color: #28a745 !important;
    font-size: 1.1em !important;
}

.elevation-hint {
    background: #d1ecf1 !important;
    border-left: 4px solid #17a2b8 !important;
    color: #0c5460 !important;
    margin-top: 15px !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
}

.elevation-hint small {
    color: #0c5460 !important;
    font-style: italic !important;
    font-weight: 500 !important;
}

/* Action Buttons */
.contact-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-hero {
        height: 50vh;
        min-height: 300px;
    }

    .detail-hero-title {
        font-size: 2rem;
    }

    .detail-hero-overlay {
        padding: 1.5rem;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .detail-hero-title {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Zusätzliche Utility-Klassen */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }