/* ==========================================================================
   Dohmeyer Systems – Design-Theme "Navy & Gold"
   Globale Basis für alle öffentlichen Seiten (templates/layout.php).
   Farben der Tailwind-Paletten werden in templates/layout.php umgemappt
   (blue/indigo/purple/violet/sky/primary -> Navy, yellow/amber -> Gold),
   damit auch ältere Seiten ohne Umbau im neuen Look erscheinen.
   ========================================================================== */

:root {
    --ds-navy-950: #060D18;
    --ds-navy-900: #0A1424;
    --ds-navy-800: #0F1D33;
    --ds-navy-700: #16284A;
    --ds-navy-600: #1F3A66;
    --ds-line-dark: rgba(255, 255, 255, 0.10);
    --ds-gold: #D6B370;
    --ds-gold-light: #E2C487;
    --ds-gold-dark: #8A6A2C;
    --ds-ink: #0E1A2B;
    --ds-muted: #556274;
    --ds-muted-dark: #A8B3C5;
    --ds-bg: #F4F6F9;
    --ds-border: #E1E6EE;
    --ds-radius: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ds-ink);
    background: var(--ds-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.015em;
}

.font-mono, code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }

::selection { background: var(--ds-gold); color: var(--ds-ink); }

:focus-visible { outline: 2px solid var(--ds-gold); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Legacy-Klassen aus dem alten Layout -> neuer Look
   -------------------------------------------------------------------------- */
.gradient-bg,
.gradient-bg-purple,
.hero-gradient {
    background: var(--ds-navy-800) !important;
    position: relative;
    overflow: hidden;
}
.hero-gradient::before { display: none !important; }

.hero-gradient::after,
.ds-waves::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M-20 330 C 300 190 620 410 1460 140' stroke='%232C4A7A' stroke-width='1.4' fill='none'/%3E%3Cpath d='M-20 358 C 340 230 660 430 1460 180' stroke='%232C4A7A' stroke-width='1' fill='none' opacity='.7'/%3E%3Cpath d='M-20 384 C 380 270 700 450 1460 220' stroke='%23D6B370' stroke-width='1' fill='none' opacity='.45'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
    z-index: 0;
}
.ds-waves { position: relative; overflow: hidden; }
.ds-waves > * { position: relative; z-index: 1; }

.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -18px rgba(14, 26, 43, 0.35);
}

.gradient-border::before {
    background: linear-gradient(135deg, var(--ds-gold), var(--ds-navy-600)) !important;
}

/* Alte "blob"-Animationen in Heros ruhigstellen */
.hero-blob, .db-blob, .hd-blob, .pj-blob, .rs-blob, .sv-blob, .ws-blob { display: none !important; }

/* --------------------------------------------------------------------------
   Komponenten
   -------------------------------------------------------------------------- */
.ds-container { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

.ds-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ds-gold-dark);
}
.ds-eyebrow--dark { color: #C9D2E0; font-weight: 600; }

.ds-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .8rem 1.4rem; border-radius: 8px;
    font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
    cursor: pointer; white-space: nowrap;
}
.ds-btn:active { transform: translateY(1px); }
.ds-btn--sm { min-height: 44px; padding: .65rem 1.1rem; font-size: 14px; }
.ds-btn--gold { background: var(--ds-gold); color: var(--ds-ink); border: 1px solid var(--ds-gold); }
.ds-btn--gold:hover { background: var(--ds-gold-light); border-color: var(--ds-gold-light); }
.ds-btn--ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.ds-btn--ghost-dark:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.ds-btn--light { background: #EEF1F6; color: var(--ds-ink); border: 1px solid #C9D2E0; }
.ds-btn--light:hover { background: #E3E9F2; }
.ds-btn--navy { background: var(--ds-navy-800); color: #fff; border: 1px solid var(--ds-navy-800); }
.ds-btn--navy:hover { background: var(--ds-navy-700); }

.ds-card {
    background: #fff; border: 1px solid var(--ds-border); border-radius: var(--ds-radius);
    box-shadow: 0 1px 2px rgba(14, 26, 43, .04);
}
a.ds-card { color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.ds-card:hover { border-color: #C9D2E0; box-shadow: 0 18px 40px -22px rgba(14,26,43,.35); transform: translateY(-2px); }

.ds-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    padding: 6px 10px; border-radius: 6px;
    color: var(--ds-muted-dark); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}

.ds-live {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(74,222,128,.14); color: #86EFAC;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    padding: 4px 8px; border-radius: 999px;
}
.ds-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }

/* Navigation */
.ds-nav-link {
    position: relative; color: #DCE3EE; font-size: 14px; font-weight: 500;
    padding: .6rem .7rem; border-radius: 6px; transition: color .15s ease;
    display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.ds-nav-link:hover, .ds-nav-link[aria-current="page"] { color: var(--ds-gold-light); }
.ds-nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ds-gold); }
.ds-menu {
    background: var(--ds-navy-800); border: 1px solid var(--ds-line-dark);
    border-radius: 12px; box-shadow: 0 24px 48px rgba(0,0,0,.45);
}
.ds-menu a { color: #DCE3EE; }
.ds-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Reveal-Animation (respektiert reduzierte Bewegung) */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* FAQ (details/summary) */
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq[open] { border-color: #C9D2E0; }

/* --------------------------------------------------------------------------
   Formulare (Login, Registrierung, Bestellung …)
   -------------------------------------------------------------------------- */
.ds-auth h2, .ds-form h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }
.ds-auth label.sr-only {
    position: static; width: auto; height: auto; margin: 0 0 6px; padding: 0;
    clip: auto; overflow: visible; white-space: normal;
    display: block; font-size: 14px; font-weight: 600; color: var(--ds-ink);
}
.ds-auth .-space-y-px > * + * { margin-top: 14px !important; }
.ds-auth .shadow-sm { box-shadow: none !important; }
.ds-auth input[type="email"], .ds-auth input[type="password"], .ds-auth input[type="text"], .ds-auth input[type="tel"],
.ds-auth select, .ds-auth textarea,
.ds-form input[type="email"], .ds-form input[type="password"], .ds-form input[type="text"], .ds-form input[type="tel"],
.ds-form input[type="number"], .ds-form select, .ds-form textarea {
    border: 1px solid #C9D2E0 !important;
    border-radius: 8px !important;
    background: #FFFFFF;
    min-height: 46px;
    font-size: 15px !important;
    color: var(--ds-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ds-auth input:focus, .ds-auth select:focus, .ds-auth textarea:focus,
.ds-form input:focus, .ds-form select:focus, .ds-form textarea:focus {
    outline: none !important;
    border-color: var(--ds-navy-600) !important;
    box-shadow: 0 0 0 3px rgba(214, 179, 112, .35) !important;
}
.ds-auth input[type="checkbox"], .ds-form input[type="checkbox"] { accent-color: var(--ds-navy-800); }
.ds-auth button[type="submit"], .ds-form button[type="submit"] {
    min-height: 48px; border-radius: 8px !important; font-size: 15px !important; font-weight: 600 !important;
}
.ds-auth a.text-primary-600, .ds-auth a.font-medium { color: var(--ds-navy-600); text-decoration: underline; text-underline-offset: 3px; }
