/* A2Dsign – Local Music Player
   Keine externen Schriften, keine Skripte, keine Cookies. */

:root {
  --bg: #1c1d1f;
  --bg-2: #242528;
  --card: #2b2c30;
  --line: #3a3b40;
  --text: #ece8e3;
  --muted: #a9a49d;
  --accent: #2f8f80;
  --accent-2: #5fd0bd;
  --radius: 14px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Kopfzeile */
header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(28, 29, 31, .92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .3px;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
nav.top a {
  color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px;
}
nav.top a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .intro { max-width: 760px; margin: 0 auto; }
.app-icon {
  width: 88px; height: 88px; border-radius: 20px; display: block; margin: 0 auto 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent-2);
  border: 1px solid rgba(95, 208, 189, .45); border-radius: 999px; padding: 4px 12px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px;
}
h1 .accent { color: var(--accent-2); }
.lead { font-size: 20px; color: var(--muted); margin: 18px auto 0; max-width: 46ch; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); text-decoration: none;
}
.badge.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .8; }

.hero-shot {
  margin: 56px auto 0; max-width: 1000px; position: relative;
}
.hero-shot::before {
  content: ""; position: absolute; inset: 10% 5% -10%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(95, 208, 189, .22), transparent 70%);
  filter: blur(30px);
}
.hero-shot img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.45);
}

/* Abschnitte */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -.3px; }
.sub { color: var(--muted); margin-top: 10px; max-width: 60ch; }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .ico {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(95, 208, 189, .15);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.formats span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
  padding: 8px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
}
.formats span b { color: var(--accent-2); font-weight: 600; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots figure.wide { grid-column: 1 / -1; }
.shots img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.shots figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shots figcaption b { color: var(--text); display: block; font-size: 17px; margin-bottom: 2px; }

/* Preis-Band */
.deal { text-align: center; }
.deal h2 .accent { color: var(--accent-2); }
.deal .cta { justify-content: center; }

/* Rechtstexte */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 36px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal h3 { font-size: 17px; margin: 20px 0 6px; }
.legal p, .legal li { color: #d6d1cb; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal address { font-style: normal; }

/* Fußzeile */
footer.bottom { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
footer.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.bottom a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer.bottom a:first-child { margin-left: 0; }
footer.bottom a:hover { color: var(--text); }

/* Mobil */
@media (max-width: 820px) {
  .hero { padding: 48px 0 0; }
  .hero-shot { margin-top: 40px; }
  .grid, .shots { grid-template-columns: 1fr; }
  nav.top a { margin-left: 14px; }
}
@media (max-width: 640px) {
  nav.top { display: none; }
}

/* Sprachumschalter */
.head-right { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 5px 10px; letter-spacing: .5px;
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--accent); color: #fff; }
.legal .note {
  font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent);
  padding: 8px 14px; margin-bottom: 24px; background: var(--bg-2); border-radius: 0 8px 8px 0;
}

/* App-Store-Badge */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s ease, opacity .15s ease; }
.store-badge img { height: 56px; width: auto; }
.store-badge:hover { transform: translateY(-1px); opacity: .9; }
.store-badge:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.avail { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Apps-Menü (Kopfzeile) ---------- */
.apps-menu { position: relative; }
.apps-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px;
  color: var(--text); font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
}
.apps-menu summary::-webkit-details-marker { display: none; }
.apps-menu summary:hover { background: var(--bg-2); }
.apps-menu summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .15s; }
.apps-menu[open] summary svg { transform: rotate(180deg); }
.apps-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; list-style: none; margin: 0; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); z-index: 20;
}
.apps-menu li a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.apps-menu li a:hover, .apps-menu li a[aria-current="page"] { background: var(--bg-2); }
.apps-menu li span { display: flex; flex-direction: column; line-height: 1.25; }
.apps-menu li b { font-size: 14px; font-weight: 600; }
.apps-menu li small { font-size: 12px; color: var(--muted); }
.menu-ico { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 28px; }

/* Status-Farben */
.st-available { --st: #5fd0bd; }
.st-soon { --st: #e8b04a; }
.st-dev { --st: #a9a49d; }
.apps-menu li small.st-available, .apps-menu li small.st-soon { color: var(--st); }
.pill {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 45%, transparent); border-radius: 999px; padding: 2px 9px; margin-bottom: 8px;
}

/* Glyph-Icons für Apps ohne eigenes Logo */
.glyph {
  display: inline-grid; place-items: center; background: linear-gradient(150deg, #2b2c30, #1f2023);
  border: 1px solid var(--line); border-radius: 22%;
}
.glyph svg { width: 58%; height: 58%; stroke: var(--accent-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-ico.glyph { width: 28px; height: 28px; }
.app-ico { width: 56px; height: 56px; border-radius: 13px; flex: 0 0 56px; }
.app-ico.glyph { width: 56px; height: 56px; }
.glyph-xl { width: 88px; height: 88px; margin: 0 auto 26px; display: grid; border-radius: 20px; }

/* ---------- App-Kacheln (Startseite) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.app-tile {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.app-tile:hover { border-color: color-mix(in srgb, var(--st) 55%, var(--line)); transform: translateY(-2px); color: var(--text); }
.tile-body { display: flex; flex-direction: column; min-width: 0; }
.tile-body b { font-size: 18px; line-height: 1.3; }
.tile-text { color: var(--muted); font-size: 15px; margin-top: 6px; }
.tile-meta { color: var(--accent-2); font-size: 13px; margin-top: 12px; }
.app-tile.st-dev { opacity: .85; }

/* ---------- Reiter auf App-Seiten ---------- */
.subnav { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; flex-wrap: wrap; }
.subnav-name { font-weight: 700; font-size: 14px; }
.subnav .tabs { display: flex; gap: 4px; }
.subnav .tabs a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 8px; }
.subnav .tabs a:hover { color: var(--text); }
.subnav .tabs a[aria-current="page"] { color: var(--text); background: var(--card); }

.app-name { font-size: 15px; font-weight: 600; color: var(--muted); margin: -6px 0 10px; letter-spacing: .2px; }

/* ---------- Mobile-App-Seite ---------- */
.hero-split { padding-bottom: 64px; }
.hero-split .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-split .intro { text-align: left; margin: 0; }
.hero-split .app-icon { margin: 0 0 22px; }
.hero-split .lead { margin-left: 0; }
.hero-split .cta { justify-content: flex-start; }
.phone-hero { display: flex; justify-content: center; }
.phone-hero img, .phones img {
  width: 100%; height: auto; display: block; border-radius: 28px; border: 6px solid #2b2c30;
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
}
.phone-hero img { max-width: 300px; }
.phones { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 36px; }
.phones figure, .wide-shot { margin: 0; }
.phones figcaption, .wide-shot figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
.wide-shot { margin-top: 36px; }
.wide-shot img { width: 100%; height: auto; display: block; border-radius: 18px; border: 6px solid #2b2c30; box-shadow: 0 24px 50px rgba(0,0,0,.45); }

/* ---------- App in Entwicklung ---------- */
.points { list-style: none; padding: 0; margin: 26px auto 0; max-width: 460px; text-align: left; }
.points li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.points li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }
.dev-note { color: var(--muted); font-size: 15px; max-width: 46ch; margin: 22px auto 0; }

@media (max-width: 980px) {
  .phones { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .app-grid { grid-template-columns: 1fr; }
  .hero-split .wrap { grid-template-columns: 1fr; }
  .hero-split .intro { text-align: center; }
  .hero-split .app-icon { margin: 0 auto 22px; }
  .hero-split .lead { margin-left: auto; }
  .hero-split .cta { justify-content: center; }
}
@media (max-width: 560px) {
  .phones { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .apps-menu ul { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .subnav .wrap { justify-content: center; }
  .subnav-name { display: none; }
}
