/* Quivenna – Live Wallpapers · Website */
:root {
  --bg: #07070d;
  --bg-2: #0e0e1a;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.11);
  --text: #f4f3fb;
  --muted: rgba(244, 243, 251, 0.66);
  --faint: rgba(244, 243, 251, 0.42);
  --violet: #8b5cf6;
  --indigo: #4f5bff;
  --cyan: #38d6f5;
  --pink: #ff5fb2;
  --accent: linear-gradient(120deg, #4f5bff 0%, #8b5cf6 55%, #c25cf6 100%);
  --radius: 22px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: -20vh -20vw auto auto;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.28), transparent 70%);
  pointer-events: none; z-index: -1;
}
body::after {
  content: "";
  position: fixed; inset: auto auto -25vh -20vw;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(79, 91, 255, 0.22), transparent 70%);
  pointer-events: none; z-index: -1;
}

a { color: #b9a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* Kopfzeile */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(7, 7, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0.6px; text-transform: uppercase; margin-top: -3px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 7px 10px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--card-border); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang-switch button {
  all: unset; cursor: pointer; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--cyan); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; margin: 14px 0 16px; letter-spacing: -1.2px; }
.grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--accent); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35); border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: rgba(255, 255, 255, 0.07); box-shadow: none; border: 1px solid var(--card-border); }
.btn svg { width: 20px; height: 20px; }

.phone {
  position: relative; justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)); box-shadow: 0 40px 90px rgba(79, 91, 255, 0.35);
}
.phone .screen {
  position: absolute; inset: 12px; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 70% 18%, rgba(255, 160, 90, 0.75), transparent 55%),
    radial-gradient(90% 50% at 20% 30%, rgba(139, 92, 246, 0.85), transparent 60%),
    radial-gradient(120% 70% at 50% 100%, rgba(56, 214, 245, 0.55), transparent 60%),
    linear-gradient(180deg, #1a1450 0%, #2a1d6e 40%, #0b2a4d 75%, #06101f 100%);
  background-size: 130% 130%;
  animation: drift 9s ease-in-out infinite alternate;
}
.phone .orb {
  position: absolute; left: 50%; top: 58%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: url("icon-512.jpg") center / 128%; box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 60px rgba(139,92,246,0.55);
  z-index: 1; animation: float 6s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translate(-50%, -52%); } to { transform: translate(-50%, -46%); } }
.phone .screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent 30%, transparent 70%, rgba(0,0,0,0.45)); }
.phone .clock { position: absolute; top: 15%; left: 0; right: 0; text-align: center; z-index: 2; font-weight: 700; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.4); }
.phone .clock b { display: block; font-size: 64px; line-height: 1; letter-spacing: -2px; font-weight: 700; }
.phone .clock span { font-size: 14px; opacity: 0.9; }
@keyframes drift { from { background-position: 30% 40%; } to { background-position: 70% 60%; } }
@media (prefers-reduced-motion: reduce) { .phone .screen, .phone .orb { animation: none; } }

/* Abschnitte */
section { padding: 34px 0; }
h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.6px; margin: 0 0 8px; line-height: 1.15; }
.section-lead { color: var(--muted); margin: 0 0 26px; max-width: 42em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(140deg, rgba(79,91,255,0.35), rgba(139,92,246,0.35)); border: 1px solid rgba(255,255,255,0.12);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); color: var(--muted); }

.banner {
  border-radius: 28px; padding: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(120deg, rgba(79,91,255,0.25), rgba(139,92,246,0.22) 50%, rgba(255,95,178,0.18)); border: 1px solid var(--card-border);
}
.banner img { width: 76px; height: 76px; border-radius: 20px; }
.banner h2 { font-size: 26px; margin: 0 0 4px; }
.banner p { margin: 0; color: var(--muted); }

/* Rechtstexte */
.doc { padding: 48px 0 30px; }
.doc header { margin-bottom: 26px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.8px; margin: 8px 0 6px; line-height: 1.1; }
.doc .meta { color: var(--faint); font-size: 14px; }
.doc article { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.doc article h2 { font-size: 22px; margin: 34px 0 10px; letter-spacing: -0.2px; }
.doc article h2:first-child { margin-top: 0; }
.doc article h3 { font-size: 17px; margin: 22px 0 6px; }
.doc article p, .doc article li { color: rgba(244, 243, 251, 0.84); }
.doc article ul { padding-left: 20px; }
.doc article li { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.toc a { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 14px; border: 1px solid var(--card-border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.07); }
th { background: rgba(255,255,255,0.05); font-weight: 700; color: var(--text); }
td { color: rgba(244, 243, 251, 0.8); }
tr:last-child td { border-bottom: 0; }
.note { border-left: 3px solid var(--violet); background: rgba(139, 92, 246, 0.1); padding: 12px 16px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 14px; }
.placeholder { color: #ffcf66; }

/* Formular */
form.support { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text); }
label small { font-weight: 500; color: var(--faint); }
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(0,0,0,0.35); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(139, 92, 246, 0.7); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--violet); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 14px; font-weight: 600; margin-bottom: 16px; }
.alert.ok { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #8af0c6; }
.alert.err { background: rgba(255, 95, 120, 0.12); border: 1px solid rgba(255, 95, 120, 0.4); color: #ffb1bf; }
.faq details { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Fußzeile */
footer { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.07); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* Sprache */
[data-lang="en"] .de, [data-lang="de"] .en { display: none !important; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 34px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .banner { grid-template-columns: auto 1fr; }
  .banner .btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 560px) {
  .grid, .row-2 { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
  .nav .wrap { gap: 8px; }
  .brand span small { display: none; }
  .brand img { width: 30px; height: 30px; }
  .nav-links { flex-wrap: nowrap; gap: 0; }
  .nav-links a { padding: 6px 7px; font-size: 13px; }
  .lang-switch { margin-left: 4px; }
  .lang-switch button { padding: 4px 8px; }
  .hero p.lead { font-size: 17px; }
  footer nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .brand > span { display: none; }
}
.card p + p { margin-top: 12px; }
.impressum h3 { margin: 22px 0 8px; font-size: 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; font-size: 15px; }
.facts dt { color: var(--faint); font-weight: 600; }
.facts dd { margin: 0; color: rgba(244, 243, 251, 0.88); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 8px; } }

/* Cookie-/Speicher-Einwilligung */
.consent { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 16px; display: flex; justify-content: center; pointer-events: none; }
.consent-box {
  pointer-events: auto; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: rgba(18, 17, 32, 0.97); border: 1px solid var(--card-border); border-radius: 22px; padding: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.consent-box h2 { font-size: 19px; margin: 0 0 6px; }
.consent-box p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.consent-details { display: grid; gap: 8px; margin-bottom: 14px; }
.consent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 500;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--card-border); border-radius: 14px; padding: 10px 14px;
}
.consent-row b { font-size: 14px; }
.consent-row em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--cyan); margin-left: 6px; }
.consent-row small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.consent-row input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; flex: none; border-radius: 999px; background: rgba(255,255,255,0.18); position: relative; cursor: pointer; padding: 0; border: 0; transition: background .2s; }
.consent-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.consent-row input:checked { background: linear-gradient(120deg, #4f5bff, #8b5cf6); }
.consent-row input:checked::after { transform: translateX(18px); }
.consent-row input:disabled { opacity: 0.55; cursor: not-allowed; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent-actions .btn { padding: 10px 16px; font-size: 14px; }
.linklike { all: unset; cursor: pointer; color: var(--muted); }
.linklike:hover { text-decoration: underline; }
@media (max-width: 560px) { .consent-actions .btn { flex: 1 1 auto; justify-content: center; } }
