/* Startseite und Anmelde-Rücksprung: Aussehen wie www.nahtreff.de (gleiche Farben, Hell/Dunkel) */
:root {
    --bg: #ffffff; --surface: #ffffff; --surface-alt: #f8f7fc; --text: #262a3b; --text-muted: #6b7280; --border: #e3e1ec;
    --primary: #ff5e7e; --primary-dark: #e8415f; --accent: #ff9a56; --ok: #1f9d55;
    --shadow: 0 10px 40px rgba(217, 60, 40, 0.14); --shadow-sm: 0 2px 10px rgba(217, 60, 40, 0.08);
    --radius-lg: 20px; --radius-md: 15px; --radius-sm: 8px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #11121a; --surface: #1b1d29; --surface-alt: #20222f; --text: #e7e8f0; --text-muted: #9a9db1; --border: #2c2f40;
        --primary: #ff7d93; --primary-dark: #ff5e7e; --accent: #ffb36b; --ok: #6fd89b;
        --shadow: 0 10px 40px rgba(0, 0, 0, 0.5); --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}
:root[data-theme="dark"] {
    --bg: #11121a; --surface: #1b1d29; --surface-alt: #20222f; --text: #e7e8f0; --text-muted: #9a9db1; --border: #2c2f40;
    --primary: #ff7d93; --primary-dark: #ff5e7e; --accent: #ffb36b; --ok: #6fd89b;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5); --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.5;
}
a { color: var(--primary-dark); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
header.top { background: var(--surface); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--primary); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--primary); }
.nav .pill { background: var(--primary); color: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.nav .pill:hover { background: var(--primary-dark); color: #fff; }
.theme { background: none; border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; color: inherit; }

/* Hinweisband */
.banner {
    margin: 22px 0 0; padding: 12px 18px; border-radius: 14px; text-align: center; font-size: .95rem; color: #3b2a00;
    background: linear-gradient(90deg, #ffe3a3, #ffb36b); box-shadow: var(--shadow-sm);
}
.banner a { color: #3b2a00; font-weight: 700; }

/* Hero */
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 62vh; align-items: center; gap: 40px; padding: 20px 0; }
.hero-text { max-width: 620px; }
.hero-text h1 { font-size: 3.2rem; line-height: 1.1; margin: 0 0 1rem; }
.hero-text h1 span { color: var(--primary); }
.hero-text .subtitle { font-size: 1.15rem; color: var(--text-muted); margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
    text-decoration: none; border: 2px solid var(--primary); background: var(--primary); color: #fff; transition: transform .1s, background .15s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--primary); }
.btn.secondary:hover { background: var(--primary); color: #fff; }
.small { margin-top: 14px; font-size: .9rem; color: var(--text-muted); }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-visual svg { width: 100%; max-width: 460px; height: auto; }
.node { fill: var(--primary); filter: drop-shadow(0 0 5px rgba(255, 94, 126, .5)); }
.cube-top { fill: var(--accent); } .cube-left { fill: var(--primary); } .cube-right { fill: var(--primary-dark); }
.link { stroke: var(--primary); stroke-width: 1.5; stroke-opacity: .35; stroke-dasharray: 4; animation: dash 10s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -100; } }
.floating { animation: float 6s ease-in-out infinite; }
.floating.d1 { animation-delay: -2s; } .floating.d2 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.online { color: var(--text-muted); font-size: .9rem; min-height: 1.4em; }

/* Abschnitte */
section { padding: 34px 0; }
section h2 { font-size: 1.7rem; margin: 0 0 6px; }
section > .wrap > p.lead { color: var(--text-muted); margin: 0 0 22px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
    background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm);
}
.card .ico { font-size: 2rem; }
.card h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.plan.main { border-color: var(--primary); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 10px; font-size: 1.2rem; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: .95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.plan li.no { color: var(--text-muted); } .plan li.no::before { content: '–'; color: var(--text-muted); }
.faq { max-width: 820px; }
.faq h3 { margin: 18px 0 4px; font-size: 1.1rem; }
.faq p { margin: 0; color: var(--text-muted); }
.about { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.about p { margin: 0; max-width: 700px; color: var(--text-muted); }

/* Fußzeile */
footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 20px; color: var(--text-muted); }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-muted); text-decoration: none; } footer a:hover { color: var(--primary); }

/* Anmelde-Rücksprung */
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.box { width: min(460px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 26px; box-shadow: var(--shadow); }
.box h1 { margin: 0 0 8px; font-size: 1.5rem; }
.box p { color: var(--text-muted); margin: 0 0 18px; }
.box .hero-actions { justify-content: center; }
.spinner { width: 38px; height: 38px; margin: 0 auto 16px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; text-align: center; min-height: 0; }
    .hero-text { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-text h1 { font-size: 2.3rem; }
    .hero-visual { order: -1; }
    .hero-visual svg { max-width: 300px; }
    .about { text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
    .nav .hide-s { display: none; }
}
