/* bank4u.de – Gestaltung "Smaragd & Messing" (dunkel Standard, hell umschaltbar) */

/* Standard: dunkel. Hell nur per Umschalter (data-theme="light"). */
:root {
    --bg: #0f1512;
    --bg-deep: #0b100e;
    --surface: #161e1a;
    --line: #2a3530;
    --text: #e9e4d6;
    --muted: #9aa69f;
    --accent: #3fae84;
    --accent-hover: #55c096;
    --accent-text: #08130e;
    --gold: #d4a94e;
    --gold-soft: #2d2617;
    --focus: #d4a94e;
    --error-bg: #3a1d18;
    --error-text: #f2b9ab;
    --ok-bg: #15301f;
    --ok-text: #a9e3c4;
    --card-a: #1b6b52;
    --card-b: #0c2f24;
    --card-text: #f3ead2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f4f0e6;
    --bg-deep: #ebe5d6;
    --surface: #fffdf8;
    --line: #d9d1bf;
    --text: #17231e;
    --muted: #5b665f;
    --accent: #0d6b4d;
    --accent-hover: #0a5a40;
    --accent-text: #ffffff;
    --gold: #a8792a;
    --gold-soft: #f1e4c4;
    --focus: #a8792a;
    --error-bg: #f8e1dc;
    --error-text: #7a2416;
    --ok-bg: #dcefe5;
    --ok-text: #0b4a35;
    --card-a: #0f5a43;
    --card-b: #0a3a2c;
    --card-text: #f3ead2;
    --shadow: 0 1px 2px rgba(23, 35, 30, 0.06), 0 8px 24px rgba(23, 35, 30, 0.08);
    color-scheme: light;
}

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

html { background: var(--bg); }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background:
        linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat,
        radial-gradient(1200px 500px at 85% -10%, var(--bg-deep), transparent 70%),
        var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

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

/* ---------- Kopfzeile ---------- */

.top {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(145deg, var(--card-a), var(--card-b));
    color: var(--card-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 15px;
}

.brand-mark span { color: var(--gold); }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.82em;
    cursor: pointer;
}

.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle[hidden] { display: none; }

/* ---------- Startseite ---------- */

.sale {
    flex: 1;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
}

.sale h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}

.sale h1 .tld { color: var(--gold); }

.lead {
    font-size: 1.08em;
    color: var(--muted);
    max-width: 34em;
    margin-bottom: 26px;
}

.facts {
    border-top: 1px solid var(--line);
    margin-bottom: 30px;
    max-width: 30em;
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.93em;
}

.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font: inherit;
    font-size: 0.97em;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--accent-text);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--muted);
    background: var(--surface);
}

/* Domain-Karte */

.card-stage {
    display: flex;
    justify-content: center;
    perspective: 900px;
}

.domain-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1.586;
    border-radius: 16px;
    padding: 7% 8%;
    color: var(--card-text);
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px),
        linear-gradient(140deg, var(--card-a), var(--card-b));
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotate(-4deg);
    overflow: hidden;
}

.domain-card::after {
    content: "";
    position: absolute;
    right: -18%;
    top: -30%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(243, 234, 210, 0.14);
    box-shadow: 0 0 0 22px rgba(243, 234, 210, 0.03), 0 0 0 46px rgba(243, 234, 210, 0.025);
    pointer-events: none;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.72em;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
}

.chip {
    width: 15%;
    min-width: 42px;
    aspect-ratio: 1.3;
}

.card-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 4.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.card-name span { color: #d9b25e; }

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
    font-size: 0.8em;
    letter-spacing: 0.14em;
    opacity: 0.85;
}

/* ---------- Unterseiten ---------- */

.page {
    flex: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.panel h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.panel h2 {
    font-size: 1em;
    margin: 22px 0 6px;
}

.panel p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.panel .intro {
    color: var(--muted);
    margin-bottom: 22px;
}

.small { font-size: 0.85em !important; color: var(--muted); }

.back-row { margin-top: 24px; }

#mailCanvas {
    cursor: pointer;
    vertical-align: middle;
    max-width: 100%;
}

/* ---------- Formular ---------- */

.field { margin-bottom: 16px; }

label {
    display: block;
    font-size: 0.88em;
    font-weight: 600;
    margin-bottom: 5px;
}

.optional { font-weight: 400; color: var(--muted); }

input[type=text],
input[type=email],
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.97em;
}

input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
    border-color: var(--accent);
}

textarea { resize: vertical; min-height: 110px; }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.captcha {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    background: var(--bg);
}

.captcha legend {
    font-size: 0.88em;
    padding: 0 6px;
    line-height: 1.4;
}

.captcha legend strong { color: var(--gold); }

.captcha-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.captcha-row .grow { flex: 1; }

.captcha-box {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.95em;
    white-space: nowrap;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 340px;
}

.captcha-tile {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 6px;
    margin: 0;
}

.captcha-tile input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.captcha-tile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--line);
    transition: transform 0.1s ease;
}

.captcha-tile input:checked ~ img {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
    transform: scale(0.93);
}

.captcha-tile input:focus-visible ~ img {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.captcha-tile .tick {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.8em;
    font-weight: 700;
    opacity: 0;
}

.captcha-tile input:checked ~ .tick { opacity: 1; }

.captcha-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.linkbtn {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font: inherit;
    font-size: 0.82em;
    text-decoration: underline;
    cursor: pointer;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.84em;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 20px;
}

.consent input { margin-top: 4px; accent-color: var(--accent); }

.message {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.92em;
}

.message.error { background: var(--error-bg); color: var(--error-text); }
.message.success { background: var(--ok-bg); color: var(--ok-text); }

/* ---------- Fußzeile ---------- */

.foot {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 18px 20px 26px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82em;
    color: var(--muted);
}

.foot nav a { color: var(--muted); margin-left: 14px; }
.foot nav a:first-child { margin-left: 0; }
.foot nav a:hover { color: var(--text); }

/* ---------- Schmal ---------- */

@media (max-width: 820px) {
    .sale {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 8px;
    }

    .card-stage { order: -1; }

    .domain-card {
        max-width: 340px;
        transform: rotate(-3deg);
    }
}

@media (max-width: 520px) {
    .panel { padding: 22px 18px; }
    .panel h1 { font-size: 1.45em; overflow-wrap: anywhere; hyphens: auto; }
    .cta-row .btn { width: 100%; }
    .captcha-row { flex-direction: column; align-items: stretch; }
    .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
