/*
   castout.css
   Castout

   Gemeinsames Stylesheet für voidra.games/castout/ (Landing, Datenschutz, Support).
   Nur Systemschriften, keine externen Dateien.
*/

:root {
  --ink: #0E1114;
  --panel: #17140F;
  --raised: #221D16;
  --bone: #F2E6CF;
  --bone-dim: rgba(242, 230, 207, 0.72);
  --ember: #E8892B;
  --blood: #E0533F;
  --line: rgba(242, 230, 207, 0.14);
  --font-display: "DIN Condensed", "DINCondensed-Bold", "DIN Alternate", "Bahnschrift",
    "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-story: "American Typewriter", "Courier New", Courier, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* Kopfzeile */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 17, 20, 0.94);
  border-bottom: 1px solid var(--ember);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--bone);
  text-decoration: none;
  padding-top: 3px;
}
.brand span { color: var(--ember); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--bone-dim); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ember); }

.langswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langswitch button, .langswitch a {
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 1px;
  padding: 7px 11px;
  background: none;
  border: 0;
  color: var(--bone-dim);
  cursor: pointer;
  text-decoration: none;
}
.langswitch .active { background: var(--ember); color: var(--ink); }

/* Sprachumschaltung auf der Startseite */
html.lang-de .en, html.lang-en .de { display: none !important; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title figure" "body figure";
  align-items: end;
  column-gap: 32px;
  padding: 56px 0 40px;
}
.hero .wordmark { grid-area: title; }
.hero-figure { grid-area: figure; align-self: center; }
.hero-body { grid-area: body; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 128px);
  line-height: 0.9;
  letter-spacing: 4px;
  margin: 0;
  padding-top: 0.1em;
}
.wordmark small {
  display: block;
  font-family: var(--font-story);
  font-weight: 700;
  font-size: clamp(20px, 4vw, 32px);
  letter-spacing: 6px;
  color: var(--blood);
  margin-top: 10px;
}
.tagline { font-size: clamp(18px, 2.6vw, 22px); max-width: 32em; margin: 24px 0 28px; }
.hero-figure img {
  display: block;
  width: auto;
  height: 300px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55));
}
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 18px;
  border: 1px dashed var(--bone-dim);
  border-radius: 12px;
  color: var(--bone);
  font-weight: 700;
  line-height: 1.2;
}
.store-badge small { color: var(--bone-dim); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.platforms { color: var(--bone-dim); font-size: 14px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 0 48px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ember);
  border-radius: 14px;
  padding: 20px 20px 22px;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1px;
  line-height: 1.05;
  margin: 4px 0 10px;
  padding-top: 2px;
}
.card p { margin: 0; color: var(--bone-dim); -webkit-hyphens: auto; hyphens: auto; }

.studio {
  border-top: 1px solid var(--line);
  padding: 32px 0 8px;
  color: var(--bone-dim);
}
.linklist { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 12px 0 0; list-style: none; font-weight: 600; }

/* Textseiten (Datenschutz, Support) */
.doc { padding-top: 36px; padding-bottom: 72px; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 52px);
  letter-spacing: 1px;
  line-height: 1;
  margin: 12px 0 6px;
  padding-top: 4px;
}
.doc .sub { color: var(--bone-dim); margin: 0 0 20px; }
.doc h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--ember);
  margin: 34px 0 6px;
  padding-top: 2px;
}
.doc h2 + p, .doc h2 + ul, .doc h2 + address {
  border-left: 2px solid var(--line);
  padding-left: 14px;
  margin-left: 1px;
}
.doc ul { padding-left: 30px; }
.doc li { margin: 4px 0; }
.doc address { font-style: normal; }
.doc strong { color: #fff; }
.jump { display: flex; gap: 10px; margin: 8px 0 4px; }
.lang-section + .lang-section { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; }
.stand { color: var(--bone-dim); font-size: 13px; margin-top: 40px; }
.note {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}

/* FAQ */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--ember); font-weight: 700; }
details[open] summary::before { content: "-"; }
details > div { padding: 0 16px 14px 36px; color: var(--bone-dim); }
details > div p { margin: 0 0 10px; }
details > div ul { margin: 0 0 10px; padding-left: 20px; }

/* Fußzeile */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--bone-dim);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--bone-dim); text-decoration: none; }
footer a:hover { color: var(--ember); }

@media (max-width: 760px) {
  .hero { grid-template-areas: "title figure" "body body"; column-gap: 12px; padding-top: 32px; }
  .hero-figure { align-self: end; }
  .hero-figure img { height: 150px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand { font-size: 20px; letter-spacing: 1px; }
  .nav { gap: 10px; font-size: 13px; }
  .langswitch button, .langswitch a { padding: 6px 8px; }
  .hero-figure img { height: 120px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .nav a, footer a { transition: color 0.15s ease; }
}
