/* =====================================================================
   MesRowClb · Master Stylesheet
   =====================================================================
   Basis aus Listen-App, erweitert für Web-Frontend
   ===================================================================== */

:root {
    /* ─── Farben ─── */
    --bg:          #1f1e1c;
    --bg-elev-1:   #25241f;
    --bg-elev-2:   #2a2a28;
    --bg-elev-3:   #34332f;

    --text:        #ebebe8;
    --text-muted:  #a8a6a0;
    --text-faint:  #6e6d68;

    --accent:      #ffc84a;
    --accent-hi:   #ffd76b;
    --accent-glow: rgba(255, 200, 74, 0.3);
    --accent-soft: rgba(255, 200, 74, 0.08);

    --ok:          #4dc88e;
    --ok-soft:     rgba(77, 200, 142, 0.12);
    --warn:        #ffaa3a;
    --danger:      #e85d5d;
    --danger-soft: rgba(232, 93, 93, 0.12);
    --info:        #5ea4e8;
    --info-soft:   rgba(94, 164, 232, 0.12);

    --line:        #3a3934;
    --line-strong: #4a4944;

    /* ─── Typografie ─── */
    --font-display: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --font-mono:    'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ─── Schriftgrößen-Skala ─── */
    --type-display:  clamp(40px, 6vw, 72px);   /* Brand-Hero Tagline */
    --type-h1:       clamp(36px, 5vw, 56px);   /* Featured Release, Release-Detail */
    --type-h2:       clamp(28px, 4vw, 40px);   /* Section-Headings (# releases) */
    --type-h3:       clamp(18px, 2vw, 22px);   /* Sub-Headlines, Artist-Names */
    --type-h4:       14px;                     /* Track-Labels, Meta-Labels */
    --type-body-lg:  17px;                     /* Lead-Paragraphs, Hero-Beschreibungen */
    --type-body:     15px;                     /* Normaler Text, Bio, Press Release */
    --type-small:    13px;                     /* Sekundär-Text */
    --type-caption:  12px;                     /* Captions, Footer-Labels */
    --type-micro:    11px;                     /* Mikro-Labels */

    /* ─── Radien ─── */
    --radius:      8px;
    --radius-lg:   14px;
    --radius-pill: 999px;

    /* ─── Spacing-Skala ─── */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;

    /* ─── Schatten ─── */
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.25);
    --shadow:    0 6px 18px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 50px rgba(0,0,0,0.45);

    /* ─── Transition ─── */
    --t-fast: 120ms ease;
    --t:      180ms ease;
    --t-slow: 320ms ease;
}

/* =====================================================================
   Reset
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
    margin: 0;
}
ul, ol { padding-left: 1.25rem; }

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

/* =====================================================================
   Body
   ===================================================================== */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--type-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: page-fade-in 280ms ease-out;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reduce Motion respektieren */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   Typografie
   ===================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }
h4 { font-size: var(--type-h4); }
h5 { font-size: var(--type-small); }
h6 { font-size: var(--type-caption); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t);
}
a:hover { color: var(--accent-hi); }

p { margin-bottom: 0.85em; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.label-uppercase {
    font-family: var(--font-display);
    font-size: var(--type-micro);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 11px 20px;
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: var(--type-small);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    background: var(--bg-elev-3);
    border-color: var(--accent);
    color: var(--accent);
}
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hi);
    border-color: var(--accent-hi);
    color: var(--bg);
}

.btn-danger {
    color: var(--danger);
    border-color: rgba(232, 93, 93, 0.4);
}
.btn-danger:hover {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-sm {
    padding: 7px 13px;
    font-size: var(--type-micro);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--bg-elev-2);
    border-color: var(--line);
}

.btn-block {
    width: 100%;
}

/* Ripple-Effekt */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, currentColor 0%, transparent 60%);
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
}
.btn:active::after {
    opacity: 0.15;
    transition: opacity 0ms;
}

/* Focus visible (Accessibility) */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =====================================================================
   Cards
   ===================================================================== */
.card {
    background: var(--bg-elev-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--s-5) var(--s-6);
}
.card-tight { padding: var(--s-4); }

/* =====================================================================
   Forms
   ===================================================================== */
.form-group {
    margin-bottom: var(--s-5);
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--type-micro);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--s-2);
}
.form-label .req { color: var(--accent); }

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--type-body);
    transition: border-color var(--t), background var(--t);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    outline: none;
    background: var(--bg-elev-1);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-faint);
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
    font-family: var(--font-body);
}

.form-hint {
    font-size: var(--type-caption);
    color: var(--text-muted);
    margin-top: var(--s-2);
}

.form-error {
    color: var(--danger);
    font-size: var(--type-small);
    margin-top: var(--s-2);
    font-family: var(--font-display);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    cursor: pointer;
    font-size: var(--type-small);
    color: var(--text-muted);
    line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.form-checkbox a {
    color: var(--accent);
}

/* Honeypot (vor Bots verstecken) */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* =====================================================================
   Glow-Hintergrund (Login-Seite)
   ===================================================================== */
.glow-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.glow-bg::before,
.glow-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(50px);
    animation: glow-pulse 6s ease-in-out infinite;
}
.glow-bg::before {
    top: -200px;
    left: -100px;
}
.glow-bg::after {
    bottom: -200px;
    right: -100px;
    animation-delay: 3s;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.9;  transform: scale(1.08); }
}

/* =====================================================================
   Toast / Notifications
   ===================================================================== */
.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: var(--s-5);
    font-size: var(--type-h4);
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.toast-success {
    background: var(--ok-soft);
    border-color: var(--ok);
    color: var(--ok);
}
.toast-error {
    background: var(--danger-soft);
    border-color: var(--danger);
    color: var(--danger);
}
.toast-info {
    background: var(--info-soft);
    border-color: var(--info);
    color: var(--info);
}

/* =====================================================================
   Logo · MRC
   =====================================================================
   Verwendet das SVG-Vektor-Logo, skaliert perfekt auf alle Größen.
   Die <span> innendrin sind versteckt aber screen-reader-lesbar.
   ===================================================================== */
.mrc-logo {
    display: inline-block;
    width: 130px;
    height: 38px;
    background-image: url('/assets/images/logo.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    vertical-align: middle;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity var(--t);
}
.mrc-logo:hover {
    opacity: 1;
}
.mrc-logo span {
    /* Versteckt aber für Screen-Reader lesbar */
    position: absolute;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Größenvarianten */
.mrc-logo-sm {
    width: 110px;
    height: 32px;
}
.mrc-logo-lg {
    width: 240px;
    height: 70px;
}

/* Hero-Version: volles großes Logo */
.mrc-logo-hero {
    display: block;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3594 / 1466;
    background-image: url('/assets/images/logo.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 auto;
}
.mrc-logo-hero span {
    position: absolute;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mrc-logo-hero {
        max-width: 160px;
    }
}

/* =====================================================================
   Utility
   ===================================================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }

.divider {
    height: 1px;
    background: var(--line);
    margin: var(--s-6) 0;
    border: 0;
}

/* =====================================================================
   Status-Badges
   ===================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.badge::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}
.badge-ok    { background: var(--ok-soft);     color: var(--ok); }
.badge-warn  { background: rgba(255,170,58,0.12); color: var(--warn); }
.badge-draft { background: var(--bg-elev-3);   color: var(--text-muted); }
.badge-info  { background: var(--info-soft);   color: var(--info); }
