/* =========================================================================
   studio-mArtin.at – Haupt-Stylesheet (WACA Gold konform & Smart Design)
   ========================================================================= */

:root {
    --bg-primary: #0d0f12;
    --bg-secondary: #161a20;
    --card-bg: rgba(20, 24, 30, 0.88);
    --card-border: rgba(212, 168, 83, 0.28);
    --text-main: #f3f4f6;
    --text-muted: #cbd5e1;
    --accent: #e0b050;
    --accent-hover: #f2c970;
    --accent-text: #0d0f12;
    --overlay-color: rgba(10, 12, 16, 0.76);
    --focus-ring: #f7d98c;
    --radius: 12px;
    --header-height: 74px;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* WACA Kontrast-Modus 2: Maximaler Kontrast (Schwarz / Weiß / Gelb) */
html[data-contrast="high-contrast"] {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --card-bg: #000000;
    --card-border: #ffff00;
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --accent: #ffff00;
    --accent-hover: #ffffff;
    --accent-text: #000000;
    --overlay-color: rgba(0, 0, 0, 0.94);
    --focus-ring: #00ffff;
}

/* WACA Kontrast-Modus 3: Helles Design */
html[data-contrast="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(15, 23, 42, 0.2);
    --text-main: #0f172a;
    --text-muted: #334155;
    --accent: #9a6700;
    --accent-hover: #784f00;
    --accent-text: #ffffff;
    --overlay-color: rgba(248, 250, 252, 0.84);
    --focus-ring: #1d4ed8;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .parallax-section { background-attachment: scroll !important; }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* HEADER & NAVIGATION */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1320px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

.contrast-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(128, 128, 128, 0.15);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.contrast-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid transparent;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    min-height: 36px;
}

.contrast-btn.active {
    background: var(--accent);
    color: var(--accent-text);
}

.nav-toggle { display: none; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    display: inline-block;
    padding: 0.5rem 0.7rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: rgba(224, 176, 80, 0.16);
    color: var(--accent);
}

.main-nav a.nav-highlight {
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* PARALLAX SEKTIONEN & GLAS-KARTEN */
.parallax-section {
    position: relative;
    min-height: 92vh;
    padding: 5.5rem 1.5rem;
    display: flex;
    align-items: center;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--card-border);
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-color);
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

h1, h2, h3, h4 {
    line-height: 1.25;
    margin-top: 0;
    color: var(--text-main);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.section-title { margin-bottom: 2rem; }

/* HERO */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 3rem);
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.lead-text {
    font-size: 1.25rem;
    max-width: 720px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pill-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill-list li {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, background-color 0.2s;
}

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--accent-text); }
.btn-small { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.9rem; background: var(--accent); color: var(--accent-text); }

/* LEISTUNGEN & STUDIO-PLAYER */
.services-grid { display: grid; gap: 2rem; }
.price-list { padding-left: 1.25rem; margin: 1rem 0 1.5rem 0; }
.price-list li { margin-bottom: 0.45rem; }
.audio-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.studio-player {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
}

.studio-player.is-playing {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.sp-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.sp-header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.sp-title { font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-time { font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.sp-seek, .sp-vol { accent-color: var(--accent); cursor: pointer; }
.sp-seek { width: 100%; }
.sp-controls-right { display: flex; align-items: center; gap: 0.75rem; }
.sp-vol { width: 72px; }

.sp-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.sp-download:hover,
.sp-download:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.sp-download::after {
    content: "MP3-Hörbeispiel herunterladen & speichern";
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--accent);
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 50;
}

.sp-download:hover::after,
.sp-download:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sp-download:hover { border-color: var(--accent); color: var(--accent); }
/* Buchknacker Banner in voller Originalgröße */
.buchknacker-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.buchknacker-banner {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

/* KUNDENMEINUNGEN KARUSSELL & REFERENZEN */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-counter {
    display: inline-block;
    min-width: 7.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--card-bg);
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-text);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius);
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-track { transition: none; }
}

.testimonial-card {
    margin: 0;
    flex: 0 0 calc((100% - 3rem) / 3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card footer {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-card footer strong { color: var(--accent); }
.ref-cloud {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-main);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* FORMULARE (KONTAKT & LOGIN) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
}

.contact-details { list-style: none; padding: 0; margin: 1.5rem 0 0 0; }
.contact-details li { margin-bottom: 0.75rem; }
.contact-details a, .impressum-content a { color: var(--accent); font-weight: 600; }

.studio-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-weight: 700; font-size: 0.95rem; }
.req { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    min-height: 46px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert { padding: 1rem 1.25rem; border-radius: 8px; font-weight: 600; }
.alert-success { background: rgba(22, 163, 74, 0.2); border: 1px solid #22c55e; }
.alert-error { background: rgba(220, 38, 38, 0.22); border: 1px solid #ef4444; }

.studio-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 3000;
}

.studio-modal {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.studio-modal.modal-error {
    border-color: #ef4444;
}

.studio-modal h3 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.studio-modal.modal-error h3 {
    color: #ef4444;
}

.studio-modal p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* LOGIN & KUNDENBEREICH */
.login-form {
    max-width: 540px;
}

.login-form .btn {
    align-self: flex-start;
    min-width: 180px;
}

.login-intro {
    background: rgba(128, 128, 128, 0.1);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-bottom: 1.5rem;
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 1.5rem;
}

.customer-html-block {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 8px;
}

/* IMPRESSUM & FOOTER */
.impressum-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.impressum-portrait img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
}

#ueber .glass-card p,
.service-card > p,
.buchknacker-text p,
.dsgvo-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.dsgvo-text { font-size: 0.92rem; color: var(--text-muted); }

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

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
