/*
Theme Name:        Consenta Demo Landing
Theme URI:         https://consenta.io
Description:       Single-Purpose-Theme für die Network-Main-Site von demo.consenta.io. Rendert eine Landing-Page im Stil der consenta-theme (Inter/Syne, Light/Dark-Mode, blauer Akzent), über die Interessenten per E-Mail eine 24-h-Sandbox anfordern können. Erwartet, dass das Plugin "Consenta Demo Spawner" network-aktiviert ist (liefert den REST-Endpoint /wp-json/cds/v1/request).
Author:            Marcze Media UG
Author URI:        https://consenta.io
Version:           1.1.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      7.4
License:           Proprietary
Text Domain:       consenta-demo-landing
*/

/* ═══════════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS — LIGHT (default, kopiert aus consenta-theme/style.css)
═══════════════════════════════════════════════════════════════════ */
:root {
    --bg: #f8f9fa;
    --s1: #ffffff;
    --s2: #f0f2f5;
    --bd: #e2e5eb;
    --bd2: #cdd1d9;
    --tx: #0f1117;
    --tx2: #4b5563;
    --mu: #6b7280;
    --ac: #2563eb;
    --ac2: #1d4ed8;
    --cyan: #0891b2;
    --red: #dc2626;
    --green: #16a34a;
    --ac-bg: rgba(37, 99, 235, .08);
    --ac-bd: rgba(37, 99, 235, .22);
    --hv: rgba(0, 0, 0, .04);
    --radius: 10px;
    --nav-h: 60px;
    --max-w: 1140px;
}

/* ═══════════════════════════════════════════════════════════════════
   DARK MODE  (class on <html> added before paint)
═══════════════════════════════════════════════════════════════════ */
html.consenta-dark {
    --bg: #060709;
    --s1: #0c0e12;
    --s2: #111418;
    --bd: #1c2028;
    --bd2: #252b36;
    --tx: #eaedf2;
    --tx2: #8b93a3;
    --mu: #7a8394;
    --ac: #3b82f6;
    --ac2: #2563eb;
    --cyan: #06B6D4;
    --red: #ef4444;
    --green: #22c55e;
    --ac-bg: rgba(59, 130, 246, .07);
    --ac-bd: rgba(59, 130, 246, .18);
    --hv: rgba(255, 255, 255, .04);
}

/* ═══════════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════════ */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background .2s, color .2s;
    min-height: 100vh;
}

p { color: var(--tx2); line-height: 1.7; }
strong { color: var(--tx); font-weight: 700; }

h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--tx);
    overflow-wrap: break-word;
    word-break: break-word;
}

code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--s2);
    border: 1px solid var(--bd);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: .88em;
    color: var(--ac);
}

a { color: var(--ac); }
a:hover { color: var(--ac2); }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════════ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION (slim, single-purpose)
═══════════════════════════════════════════════════════════════════ */
#site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 250, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bd);
    height: var(--nav-h);
    transition: background .2s, border-color .2s;
}
html.consenta-dark #site-nav {
    background: rgba(6, 7, 9, .9);
}

#site-nav .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-mark { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.02em;
    color: var(--tx);
}

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

#consenta-dm-toggle {
    background: transparent;
    border: 1px solid var(--bd);
    color: var(--tx2);
    width: 34px;
    height: 34px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
#consenta-dm-toggle:hover {
    background: var(--ac-bg);
    border-color: var(--ac-bd);
    color: var(--ac);
}
html.consenta-dark #consenta-dm-toggle {
    background: rgba(59, 130, 246, .06);
}

/* Language Switcher — 1:1 aus consenta-theme/header.php geklont */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-switcher > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--tx2);
    text-decoration: none;
    transition: all .15s;
    background: transparent;
    border: 1px solid var(--bd);
    line-height: 1;
}
.lang-switcher > a:hover {
    background: var(--ac-bg);
    border-color: var(--ac-bd);
    color: var(--ac);
}
.lang-switcher > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid currentColor;
    opacity: .5;
    transition: transform .2s;
}
.lang-switcher:hover > a::after { transform: rotate(180deg); }
.lang-switcher::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}
.lang-switcher .lang-dd {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--s1);
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 6px;
    display: none;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    min-width: 130px;
}
html.consenta-dark .lang-switcher .lang-dd { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.lang-switcher:hover .lang-dd,
.lang-switcher:focus-within .lang-dd { display: block; }
.lang-dd a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tx2);
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
}
.lang-dd a:hover { background: var(--hv); color: var(--tx); }

/* ═══════════════════════════════════════════════════════════════════
   HERO  (kopiert + angepasst aus consenta-theme .site-hero)
═══════════════════════════════════════════════════════════════════ */
.site-hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}
.site-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, .05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.site-hero > .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.site-hero h1 {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 800;
    max-width: 100%;
    line-height: 1.08;
    margin: 0 auto 18px;
}

.hero-sub {
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: var(--tx2);
}

/* ═══════════════════════════════════════════════════════════════════
   CARD + FORM
═══════════════════════════════════════════════════════════════════ */
.cdl-card {
    background: var(--s1);
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}
.cdl-card-body { padding: 28px 32px; }

#cdl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#cdl-form label {
    font-size: 12px;
    color: var(--tx2);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#cdl-form input[type=email] {
    background: var(--bg);
    border: 1px solid var(--bd);
    color: var(--tx);
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
#cdl-form input[type=email]:focus {
    border-color: var(--ac);
    box-shadow: 0 0 0 3px var(--ac-bg);
}
#cdl-form input[type=email]::placeholder { color: var(--mu); }

/* Honeypot */
#cdl-form .cdl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

#cdl-form button {
    background: var(--ac);
    color: #fff;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 9px;
    cursor: pointer;
    transition: filter .15s, transform .1s;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
#cdl-form button:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
#cdl-form button:disabled { opacity: .5; cursor: wait; transform: none; }

.cdl-meta {
    font-size: 11px;
    color: var(--mu);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 6px;
    text-align: center;
}

.cdl-privacy {
    font-size: 11px;
    color: var(--mu);
    margin-top: 14px;
    line-height: 1.5;
    text-align: center;
}
.cdl-privacy a { color: var(--mu); text-decoration: underline; }
.cdl-privacy a:hover { color: var(--ac); }

#cdl-msg {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    display: none;
    line-height: 1.5;
}
#cdl-msg.show { display: block; }
#cdl-msg.error {
    background: rgba(220, 38, 38, .08);
    border: 1px solid rgba(220, 38, 38, .25);
    color: var(--red);
}
#cdl-msg.success {
    background: rgba(22, 163, 74, .08);
    border: 1px solid rgba(22, 163, 74, .25);
    color: var(--green);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
.cdl-footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--bd);
    text-align: center;
    font-size: 12px;
    color: var(--mu);
    font-family: 'JetBrains Mono', monospace;
}
.cdl-footer a { color: var(--mu); }
.cdl-footer a:hover { color: var(--ac); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .site-hero { min-height: auto; padding: 60px 0 40px; }
    .site-hero h1 { font-size: clamp(28px, 7vw, 38px); }
    .hero-sub { font-size: 15px; margin-bottom: 32px; }
    .cdl-card-body { padding: 24px 20px; }
}
