/* ==========================================================================
   OMR Guided Tour 2026 – Recap Landing Page
   Stylesheet im Stil von annaruede.de
   ========================================================================== */

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    background-color: #2a3a7b; /* brand-primary */
    color: #f3f4f6; /* gray-100 */
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scroll Offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* ==========================================================================
   Header (Sticky on Scroll)
   ========================================================================== */

.header-sticky {
    background-color: rgba(42, 58, 123, 0.9); /* brand-primary mit Transparenz */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Alle Menüpunkte immer in Großbuchstaben (Desktop-Nav + Mobile-Menu + Top-Bar) */
#main-header nav a,
.mobile-link,
.topbar a {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Tabs (Leistungen)
   ========================================================================== */

.tab-active {
    background-color: #b5c531; /* brand-accent */
    color: #1e2a5a; /* brand-secondary */
}

/* ==========================================================================
   Animations (Scroll Reveal)
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform: translateY(20px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ken Burns Effect for hero background */
@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.1) translate(-2%, 2%);
        opacity: 1;
    }
}

.animate-ken-burns {
    animation: ken-burns 15s ease-in-out infinite alternate;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Cards (Takeaways, Resources, Steps)
   ========================================================================== */

.takeaway-card {
    position: relative;
    overflow: hidden;
}

.takeaway-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(181, 197, 49, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.takeaway-card:hover::before {
    opacity: 1;
}

/* Resource Card hover refinement */
.resource-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-card:hover {
    border-color: rgba(181, 197, 49, 0.4);
}

/* Highlighted resource card (Logbuch – Story-Bezug zum Case) */
.resource-card--highlight {
    border: 1px solid rgba(181, 197, 49, 0.35);
    box-shadow: 0 10px 40px -10px rgba(181, 197, 49, 0.15);
}

.resource-card--highlight:hover {
    border-color: rgba(181, 197, 49, 0.7);
    box-shadow: 0 20px 60px -15px rgba(181, 197, 49, 0.3);
}

/* Featured course card */
.resource-featured {
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-featured:hover {
    border-color: rgba(181, 197, 49, 0.5);
    transform: translateY(-2px);
}

/* Copy-to-clipboard button feedback */
.copy-code {
    cursor: pointer;
    user-select: all;
}

.copy-code.is-copied {
    background-color: #ffffff;
    color: #2a3a7b;
}

/* ==========================================================================
   Step Items (Next Steps Section)
   ========================================================================== */

.step-item {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-item:hover {
    transform: translateX(4px);
    border-color: rgba(181, 197, 49, 0.3);
}

/* ==========================================================================
   Audio Player (Ulrike O-Ton in #case)
   ========================================================================== */

.audio-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.audio-card:hover {
    border-color: rgba(181, 197, 49, 0.35);
}

.audio-player {
    /* Native controls in dark mode + Lime accent on the progress bar */
    color-scheme: dark;
    accent-color: #b5c531;
    height: 44px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.04);
    outline: 1px solid rgba(255, 255, 255, 0.08);
    outline-offset: 0;
}

.audio-player:focus-visible {
    outline: 2px solid #b5c531;
    outline-offset: 2px;
}

/* WebKit-only: tint the player chrome to match the brand palette */
.audio-player::-webkit-media-controls-panel {
    background-color: transparent;
}

/* ==========================================================================
   Gallery Slider
   ========================================================================== */

.gallery-placeholder {
    background-color: #2a3a7b; /* brand-primary */
    background-image:
        linear-gradient(135deg, rgba(181, 197, 49, 0.06) 0%, transparent 60%),
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 2px,
            transparent 2px,
            transparent 14px);
    border: 1px dashed rgba(181, 197, 49, 0.25);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-placeholder:hover {
    border-color: rgba(181, 197, 49, 0.6);
    transform: translateY(-4px);
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    border: none;
    padding: 0;
}

.slider-dot:hover {
    transform: scale(1.2);
    opacity: 0.85;
}

.slider-dot.bg-brand-accent {
    transform: scale(1.15);
}

/* ==========================================================================
   FAQ Accordion (10-tipps.html)
   ========================================================================== */

.faq-card {
    transition: border-color 0.3s ease;
}

.faq-card:hover {
    border-color: rgba(181, 197, 49, 0.25);
}

.faq-card[open] {
    border-color: rgba(181, 197, 49, 0.35);
}

/* Hide native disclosure marker */
.faq-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.faq-summary::-webkit-details-marker,
.faq-summary::marker {
    display: none;
    content: '';
}

.faq-summary:hover .faq-question {
    color: #b5c531; /* brand-accent on hover */
}

.faq-question {
    transition: color 0.2s ease;
}

/* Chevron rotation */
.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-card[open] .faq-chevron {
    transform: rotate(180deg);
}

/* Body fade-in when opened */
.faq-card[open] .faq-body {
    animation: fade-in 0.4s ease-out;
}

/* Subtle separator between summary and body when open */
.faq-card[open] .faq-summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Legal Pages (Impressum / Datenschutz)
   ========================================================================== */

.legal-content {
    color: #d1d5db; /* gray-300 */
    line-height: 1.7;
}

.legal-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(181, 197, 49, 0.25); /* brand-accent */
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content strong {
    color: #ffffff;
    font-weight: 600;
}

.legal-content a {
    color: #b5c531; /* brand-accent */
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #ffffff;
}

/* Warning banner above legal content (developer note) */
.legal-warning {
    background-color: rgba(252, 211, 77, 0.08);
    border: 1px solid rgba(252, 211, 77, 0.4);
}

/* Inline TODO markers for missing legal info */
.legal-content .todo,
.legal-content .todo-inline,
.todo-inline {
    display: inline-block;
    background-color: rgba(252, 211, 77, 0.12);
    color: #fde68a; /* yellow-200 */
    border: 1px dashed rgba(252, 211, 77, 0.5);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.5;
}

.legal-content .todo {
    display: block;
    margin-top: 0.25rem;
    padding: 0.6rem 0.85rem;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

#mobile-menu {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Responsive Refinements
   ========================================================================== */

@media (max-width: 640px) {
    .step-item {
        padding: 1.25rem;
        gap: 1rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-ken-burns,
    .animate-on-scroll {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
