/* Schriften: selbst gehostet, keine Anfragen an Google (SIL Open Font License, Lizenzen in fonts/)
   Fraunces für Überschriften und Text, Syne für technische Elemente (Nav, Buttons, Tags, Zeitanzeige) */
@font-face {
    font-family: "Fraunces";
    src: url("fonts/fraunces.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Syne";
    src: url("fonts/syne.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    /* Farben: Grün aus dem Logo als einziger Akzent, sonst Schwarz/Weiß mit leichtem Grünstich */
    --accent: #32754d;
    --accent-dark: #265c3c;
    --accent-soft: #e6f0ea;
    --ink: #111612;
    --muted: #59615c;
    --paper: #ffffff;
    --paper-soft: #f5f7f5;
    --line: #dde3df;
    --track: #8a938e;
    --footer: #18211c;

    --font-text: "Fraunces", Georgia, "Times New Roman", serif;
    --font-ui: "Syne", "Helvetica Neue", Arial, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    /* Fließtext: etwas weicher, ohne die verspielten WONK-Formen der Überschriften */
    font-variation-settings: "SOFT" 50, "WONK" 0;
    line-height: 1.65;
    color: var(--paper-soft);
    background: var(--paper);
    overflow-x: hidden;
}

/* Inline-SVG-Icons, Größe folgt der Schriftgröße des Elternelements */
.icon {
    width: 1em;
    height: 1em;
    display: block;
    flex-shrink: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--paper);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo füllt die volle Höhe der Navigationsleiste, Breite skaliert mit */
.nav-logo {
    height: 100%;
    min-width: 0;
}

.nav-logo-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

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

.nav-link {
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--ink);
    background-color: var(--paper-soft);
}

.nav-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Active navigation link styling */
.nav-link.active {
    color: var(--accent-dark);
    background-color: var(--accent-soft);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    background: none;
    border: none;
}

.hamburger:focus-visible {
    outline: 2px solid var(--ink);
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--ink);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Geöffnetes Menü: die drei Striche werden zum X */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* svh: kleine Viewport-Höhe, damit der Hero auf iOS nicht mit der Adressleiste springt */
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images/contact_background.JPG');
    background-size: cover;
    background-position: center;
    color: var(--paper-soft);
    position: relative;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    display: flex;
}

.profile-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--paper);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    object-position: center;
    /* Verstecke Alt-Text wenn Bild nicht lädt */
    font-size: 0;
    color: transparent;
}

.profile-image a {
    display: block;
    border-radius: 50%;
}

.profile-image a:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 4px;
}

.profile-image img:hover {
    border-color: var(--paper-soft);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* H1 der Seite: enthält nur das Logo, eigene Schriftgröße/Abstände neutralisiert */
.hero-title {
    margin: 0;
    font-size: inherit;
    line-height: 0;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    background: var(--paper);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-weight: 400;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--ink);
    line-height: 1.7;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-ui);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid;
    position: relative;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Buttons stehen auf dem dunklen Hero-Foto, daher weißer Rahmen */
.btn:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 3px;
}

/* Beide Hero-Buttons grün, damit sie auf dem dunklen Foto gut erkennbar sind */
.btn.primary,
.btn.secondary {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

.btn.primary:hover,
.btn.secondary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Pfeil unten im Hero: Link zur nächsten Sektion, 44px Klickfläche */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #cccccc;
    animation: float 3s ease-in-out infinite;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.scroll-indicator:hover {
    color: var(--paper);
    background-color: rgba(255, 255, 255, 0.12);
    animation-play-state: paused;
}

.scroll-indicator:focus-visible {
    outline: 3px solid var(--paper);
    outline-offset: 2px;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* Section Styles */
section {
    padding: 80px 0;
    /* Sprungziele landen direkt unter der festen Navbar (Höhe + 1px Rahmen) */
    scroll-margin-top: 59px;
}

/* Fließende Größe: ~1.8rem auf kleinen Handys bis 4rem auf dem Desktop
   (Syne ist sehr breit, "impressions" muss bei 320px Bildschirmbreite noch passen) */
.section-title {
    font-family: var(--font-text);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: clamp(1.75rem, 0.6rem + 6vw, 4rem);
    line-height: 1.05;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--ink);
    font-weight: 650;
    letter-spacing: -0.01em;
}

/* About Section */
.about {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/mic_background_web.JPG');
    background-size: cover;
    background-position: center;
}

.about .section-title {
    color: var(--paper);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-text);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--paper);
    font-weight: 650;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--paper);
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-text ul {
    margin-bottom: 2rem;
    color: var(--paper);
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-text li {
    margin-bottom: 0.5rem;
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
}

.about-text li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--paper);
    font-weight: bold;
}

.music-genres {
    margin-top: 2rem;
}

.music-genres h4 {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--paper);
    font-weight: 500;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: var(--accent);
    color: var(--paper);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--accent);
}

/* Audio Samples Section */
.samples {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/recording_background.JPG');
    background-size: cover;
    background-position: center;
}

.samples .section-title {
    color: var(--paper);
}

/* Impressions Section - native scrollable carousel */
.impressions {
    background: var(--paper-soft);
    padding-bottom: 40px;
    overflow: hidden;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 20px;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 4px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 6px;
}

.carousel-track img {
    height: 260px;
    width: auto;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--accent);
    color: var(--paper);
}

.carousel-arrow:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .carousel-track img {
        height: 180px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

.audio-grid {
    display: grid;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.audio-card {
    background: var(--paper-soft);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-align: center;
    transition: all 0.3s ease;
}

.audio-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.audio-info h3 {
    font-family: var(--font-text);
    font-variation-settings: "SOFT" 100, "WONK" 1;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-weight: 650;
}

.audio-info p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Custom Audio Player Styles */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--paper);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 1rem;
}

.play-btn {
    background: var(--accent);
    color: var(--paper);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn .icon {
    font-size: 1.25rem;
}

.icon[hidden] {
    display: none;
}

/* Fortschrittsleiste: natives Range-Input, Füllung über --progress aus script.js.
   Graue Leiste mit 3:1 Kontrast zu Weiß, Regler immer sichtbar */
.progress {
    --progress: 0%;
    flex: 1;
    height: 16px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.progress::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--accent) var(--progress), var(--track) var(--progress));
}

.progress::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--accent) var(--progress), var(--track) var(--progress));
}

.progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
}

.progress::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
}


.time-display {
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    min-width: 80px;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.volume-btn:hover {
    background: var(--paper-soft);
}

.volume-btn:focus-visible {
    outline: 2px solid var(--ink);
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/contact_background.JPG');
    background-size: cover;
    background-position: center;
}

.contact .section-title {
    color: var(--paper);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--paper);
    font-weight: 600;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--paper);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--paper);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.contact-method:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-method .icon {
    font-size: 1.5rem;
    color: var(--ink);
}

.email-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.email-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: var(--footer);
    color: var(--paper);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    margin: 0;
    color: var(--paper-soft);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        height: 72px;
    }

    section {
        scroll-margin-top: 73px;
    }

    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--paper);
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        /* Zugeklappt unsichtbar, damit Tab die Links nicht erreicht; visibility erst nach dem Wegschieben */
        visibility: hidden;
        transition: left 0.3s, visibility 0s 0.3s;
    }

    .nav-menu.active {
        left: 0;
        visibility: visible;
        transition: left 0.3s;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-logo {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .custom-audio-player {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .time-display {
        order: 3;
        width: 100%;
        text-align: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn.primary,
    .btn.secondary {
        background: #000000;
        border-color: #000000;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #000000;
        color: var(--paper);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Focus styles for better accessibility: nur bei Tastaturbedienung, nicht nach Mausklick */
:focus-visible {
    outline-color: var(--ink);
    outline-width: 2px;
    outline-style: solid;
    outline-offset: 2px;
}

/* Per Skript fokussierte Sprungziele (Sektionen, main) bekommen keinen Rahmen */
[tabindex="-1"]:focus {
    outline: none;
}

/* Skip link for screen readers */
.skip-link {
    font-family: var(--font-ui);
    position: absolute;
    top: -100px;
    left: 6px;
    background: var(--accent);
    color: var(--paper);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Markierter Text in Logo-Grün */
::selection {
    background: var(--accent);
    color: var(--paper);
}
