/* ═══════════════════════════════════════════════════════════════════
   Spotstud.io — modernes Dark-Theme
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg:          #0b0e14;
    --bg-alt:      #10141d;
    --card:        #161b26;
    --card-border: #232a3a;
    --text:        #e8ecf4;
    --text-dim:    #9aa4b8;
    --accent:      #7c5cff;
    --accent-2:    #38bdf8;
    --gradient:    linear-gradient(135deg, #7c5cff 0%, #38bdf8 100%);
    --radius:      16px;
    --success:     #34d399;
    --error:       #f87171;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 760px; }

h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 1.7rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p  { color: var(--text-dim); }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-mark {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav { display: flex; align-items: center; gap: 20px; }

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.lang-switch { font-size: 0.85rem; color: var(--text-dim); }
.lang-switch .sep { margin: 0 6px; opacity: 0.4; }
.lang-switch a.active { color: var(--accent-2); font-weight: 700; }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    background: var(--gradient);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124, 92, 255, 0.5); }

.btn-big   { padding: 16px 40px; font-size: 1.1rem; }
.btn-small { padding: 8px 20px; font-size: 0.9rem; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    box-shadow: none;
    color: var(--accent-2) !important;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
    padding: 90px 0 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(124, 92, 255, 0.25), transparent),
        radial-gradient(ellipse 40% 40% at 80% 10%, rgba(56, 189, 248, 0.12), transparent);
}

.hero-kicker {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title span:last-of-type {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.15rem;
}

.hero-hint { margin-top: 16px; font-size: 0.9rem; opacity: 0.8; }

/* Animierte Wellenform */
.hero-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 70px;
    margin-top: 48px;
}

.hero-wave span {
    display: block;
    width: 5px;
    height: 12px;
    border-radius: 3px;
    background: var(--gradient);
    opacity: 0.75;
    animation: wave 1.4s ease-in-out infinite;
}

.hero-wave.small { height: 40px; margin-top: 24px; }
.hero-wave.small span { width: 4px; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(4.5); }
}

/* ── Sections & Cards ──────────────────────────────────────────────── */

.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { text-align: center; }
.section-sub { text-align: center; max-width: 560px; margin: 0 auto 36px; }

.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 800px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr !important; }
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--accent); }

.card-icon { font-size: 2rem; margin-bottom: 12px; }

/* ── Preise ────────────────────────────────────────────────────────── */

.price-card { text-align: center; }

.price-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(124, 92, 255, 0.2);
}

.price-seconds { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 8px; }

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.price-note { font-size: 0.85rem; margin-bottom: 20px; min-height: 42px; }

/* ── Formulare ─────────────────────────────────────────────────────── */

.order-form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.order-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-form input[type="text"],
.order-form input[type="email"],
.order-form textarea,
.order-form select {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus { border-color: var(--accent); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
}

.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }

.field-hint { color: var(--text-dim); font-weight: 400; font-size: 0.82rem; }

.order-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.order-summary strong { font-size: 1.3rem; color: var(--accent-2); }

/* ── Statusseite ───────────────────────────────────────────────────── */

.order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.order-head h1 { font-size: 1.4rem; margin: 0; }

.status-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text-dim);
    white-space: nowrap;
}

.status-preview_ready, .status-completed { color: var(--success); border-color: var(--success); }
.status-error { color: var(--error); border-color: var(--error); }

.state-box {
    text-align: center;
    padding: 48px 24px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.state-box h2 { margin: 20px 0 8px; }

.state-box.success { border-color: var(--success); }
.state-box.error   { border-color: var(--error); }

.success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--success);
    color: #052e1c;
    font-size: 2rem;
    font-weight: 800;
}

.error-detail {
    text-align: left;
    background: var(--bg);
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
    font-size: 0.8rem;
    color: var(--error);
    overflow-x: auto;
    white-space: pre-wrap;
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border: 4px solid var(--card-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.player {
    width: 100%;
    max-width: 480px;
    margin: 24px auto;
    display: block;
}

/* ── Skript-Karten ─────────────────────────────────────────────────── */

.script-card { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }

.script-concept { font-size: 0.9rem; }

.script-text {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text);
    padding: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.script-text:focus { border-color: var(--accent); }

.script-card .btn { align-self: flex-start; }

/* ── Zahlung ───────────────────────────────────────────────────────── */

.pay-card { text-align: center; }

.pay-amount {
    font-size: 2rem;
    font-weight: 800;
    margin: 16px 0 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#paypal-buttons { max-width: 380px; margin: 0 auto; }

/* ── Alerts ────────────────────────────────────────────────────────── */

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* ── Studio-Vermittlung (Feature 1 + 3) ────────────────────────────── */

.studio-cta {
    margin-top: 28px;
    border: 1px solid var(--accent);
    background: linear-gradient(180deg, rgba(124,92,255,0.08), rgba(124,92,255,0.02));
    text-align: center;
}
.studio-cta h2 { margin-top: 0; }
.studio-cta .btn { margin-top: 8px; }

.studio-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.studio-pick {
    display: flex; gap: 14px; align-items: flex-start;
    border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 16px; cursor: pointer; transition: border-color .15s;
}
.studio-pick:hover { border-color: var(--accent); }
.studio-pick input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.studio-pick .name { font-weight: 700; }
.studio-pick .strengths { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }
.studio-pick.disabled { opacity: .45; cursor: not-allowed; }
.pick-hint { color: var(--text-dim); font-size: .85rem; margin-bottom: 8px; }

.req-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.req-item {
    border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 16px 18px; display: block; text-decoration: none; color: var(--text);
}
.req-item:hover { border-color: var(--accent); }
.req-item .meta { color: var(--text-dim); font-size: .85rem; margin-top: 6px; }

.badge {
    display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .4px;
    padding: 3px 10px; border-radius: 999px; border: 1px solid var(--card-border);
    color: var(--text-dim); text-transform: uppercase;
}
.badge.invited      { color: var(--accent-2); border-color: var(--accent-2); }
.badge.quoted       { color: #fbbf24; border-color: #fbbf24; }
.badge.accepted,
.badge.delivered    { color: #34d399; border-color: #34d399; }
.badge.declined,
.badge.not_chosen   { color: var(--text-dim); }

/* ── Chat + Angebot ─────────────────────────────────────────────────── */

.quote-box {
    border: 1px solid var(--accent); border-radius: var(--radius);
    padding: 18px 20px; margin: 20px 0;
    background: linear-gradient(180deg, rgba(124,92,255,0.08), rgba(124,92,255,0.02));
}
.quote-box h3 { margin-top: 0; }
.quote-price { font-size: 1.6rem; font-weight: 800; }
.quote-meta { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }

.chat { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.msg {
    max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.4;
    white-space: pre-wrap; word-wrap: break-word;
}
.msg.theirs { align-self: flex-start; background: var(--card); border: 1px solid var(--card-border); border-bottom-left-radius: 4px; }
.msg.mine   { align-self: flex-end; background: rgba(124,92,255,0.16); border: 1px solid var(--accent); border-bottom-right-radius: 4px; }
.msg .when  { display: block; font-size: .72rem; color: var(--text-dim); margin-top: 5px; }
.msg.flagged { border-color: #fbbf24; }
.msg .flag  { display: block; font-size: .72rem; color: #fbbf24; margin-top: 5px; }
.chat-empty { color: var(--text-dim); margin: 20px 0; }

.chat-form { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.chat-form textarea {
    flex: 1; background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
    padding: 11px 13px; color: var(--text); font: inherit; resize: vertical; min-height: 48px;
}
.chat-form textarea:focus { border-color: var(--accent); outline: none; }

.thread-note {
    background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.35);
    color: #fbbf24; border-radius: 10px; padding: 10px 14px; font-size: .84rem; margin: 14px 0;
}

/* ── Rechtsseiten ───────────────────────────────────────────────────── */

.legal { text-align: left; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { text-align: left; font-size: 1.15rem; margin-top: 30px; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.65; }
.legal a { color: var(--accent-2); }
.legal address { font-style: normal; color: var(--text); line-height: 1.6; margin: 6px 0; }
.legal .updated { margin-top: 34px; font-size: .85rem; opacity: .65; }
.legal .lang-note { font-size: .85rem; opacity: .7; margin-bottom: 20px; }

/* ── Footer ────────────────────────────────────────────────────────── */

.footer-links { font-size: .9rem; margin-bottom: 6px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

.site-footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
}

.footer-brand { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.footer-copy  { font-size: 0.82rem; margin-top: 12px; opacity: 0.6; }
