/* apptebo Support – modernes Layout
   Farben von www.apptebo.com: Blau #4876BF, Gelb #FFCC33, Hellblau #D6DDED */

:root {
    --blue: #4876bf;
    --blue-dark: #2f5594;
    --navy: #0b1f4a;
    --yellow: #ffcc33;
    --yellow-soft: #ffee66;
    --sky: #d6dded;
    --sky-soft: #f3f5fa;
    --text: #1d2433;
    --muted: #5d6781;
    --line: #dfe4f0;
    --danger: #c0352b;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(34, 54, 100, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--sky-soft);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); }
a:hover { color: var(--blue); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.topbar {
    background: #fff;
    border-bottom: 4px solid var(--yellow);
    position: sticky; top: 0; z-index: 10;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo img { display: block; height: 44px; width: auto; }
.topnav { display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.topnav a { text-decoration: none; font-weight: 600; }
.pill {
    padding: 6px 14px; border-radius: 999px;
    background: var(--sky-soft); border: 1px solid var(--line);
}
.pill:hover { background: var(--sky); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 300px at 85% -20%, rgba(255, 204, 51, .35), transparent 60%),
        linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    padding: 56px 0 96px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.hero p { margin: 0; max-width: 640px; font-size: 1.125rem; color: #e8eefb; }

/* ---------- Layout ---------- */
.layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-top: -56px;
    padding-bottom: 56px;
    align-items: start;
}
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.card h2 { margin: 0 0 16px; font-size: 1.35rem; letter-spacing: -.01em; }

.faq { position: sticky; top: 90px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 700; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Formular ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
legend small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.n {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--yellow); color: var(--navy); font-size: .85rem; font-weight: 800;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input, .game input, .check input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block; padding: 10px 18px; border-radius: 999px;
    border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span,
.game input:focus-visible + .game__box,
.check input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Spiele-Karten */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.game { position: relative; display: block; }
.game__box {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border: 2px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer; height: 100%;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.game__box img { border-radius: 10px; flex: none; object-fit: cover; background: var(--sky-soft); }
.game__ph {
    flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--sky);
    display: grid; place-items: center; font-weight: 800; color: var(--blue-dark); font-size: 1.3rem;
}
.game__name { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.game:hover .game__box { border-color: var(--blue); }
.game input:checked + .game__box { border-color: var(--blue); background: #eef3fc; box-shadow: 0 0 0 3px rgba(72, 118, 191, .2); }

/* Checkboxen */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.check { position: relative; display: block; cursor: pointer; }
.check span {
    display: block; padding: 11px 14px 11px 44px; border: 2px solid var(--line); border-radius: 12px;
    background: #fff; position: relative; font-size: .95rem; transition: border-color .15s;
}
.check span::before {
    content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
    border: 2px solid #aab4cc; border-radius: 5px; background: #fff;
}
.check:hover span { border-color: var(--blue); }
.check input:checked + span { border-color: var(--blue); background: #eef3fc; }
.check input:checked + span::before { background: var(--blue); border-color: var(--blue); }
.check input:checked + span::after {
    content: ""; position: absolute; left: 20px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent span { background: transparent; border-color: transparent; padding-left: 36px; font-size: .92rem; color: var(--muted); }
.consent span::before { left: 4px; }
.consent input:checked + span { background: transparent; }
.consent input:checked + span::after { left: 10px; }

/* Sterne */
.ratings { display: grid; gap: 8px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 420px; }
.rating-label { font-weight: 500; }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 1.8rem; line-height: 1; color: #cfd6e6; cursor: pointer; padding: 0 2px; transition: color .1s, transform .1s; }
.stars label:hover { transform: scale(1.15); }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: var(--yellow); }
.stars input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 4px; }

/* Felder */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
input[type=text], input[type=email], select, textarea {
    width: 100%; font: inherit; font-weight: 400; color: var(--text);
    padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(72, 118, 191, .18); }
.invalid { border-color: var(--danger) !important; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); margin-top: 6px; }

.note { font-size: .82rem; color: var(--muted); margin: 6px 0 22px; }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-block; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
    padding: 14px 28px; border-radius: 12px; border: 2px solid var(--yellow);
    background: var(--yellow); color: var(--navy);
    transition: transform .1s, box-shadow .15s, background .15s;
}
.btn:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); color: var(--navy); box-shadow: 0 6px 16px rgba(255, 204, 51, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; box-shadow: none; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--sky-soft); border-color: var(--blue); box-shadow: none; color: var(--text); }

/* Meldungen */
.alert {
    background: #fdecea; border: 1px solid #f3b9b3; color: #7a1d16;
    padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 500;
}
.success { text-align: center; padding: 28px 8px; }
.success__icon {
    width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--yellow); color: var(--navy); font-size: 2.2rem; font-weight: 800;
    display: grid; place-items: center;
}
.success h3 { margin: 0 0 8px; font-size: 1.6rem; }
.success p { margin: 0 0 22px; color: var(--muted); }

[hidden] { display: none !important; }

/* Footer */
.footer { background: var(--navy); color: #c9d4ee; text-align: center; padding: 28px 0; font-size: .9rem; }
.footer a { color: #fff; }
.footer p { margin: 4px 0; }
.footer .small { font-size: .78rem; color: #8d9bbd; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .faq { position: static; order: 2; }
    .formcard { order: 1; }
}
@media (max-width: 600px) {
    .hero { padding: 36px 0 80px; }
    .card { padding: 20px; }
    .grid3 { grid-template-columns: 1fr; }
    .games { grid-template-columns: repeat(2, 1fr); }
    .topnav a:not(.pill) { display: none; }
    .logo img { height: 36px; }
    .actions .btn { flex: 1; text-align: center; }
}

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