/* extraandroary.com — dark, bold & playful */

:root {
  --bg: #14122a;
  --ink: #fffdf7;
  --ink-soft: #c4c0dc;
  --ink-muted: #8b87a3;
  --violet: #2b2578;
  --violet-tint: #e4e0ff;
  --violet-soft: #c9c3ff;
  --yellow: #ffd23f;
  --paper: #fffdf7;
  --paper-ink: #1e1b2e;
  --paper-ink-soft: #4b4763;
  --link: #b3a9ff;
  --link-hover: #d4ceff;
  --meta: #aca8c0;
  --card-yellow: #3c351a;
  --card-blue: #23345e;
  --card-green: #173c2b;
  --card-violet: #352a72;
  --card-teal: #173b45;
  --card-border: rgba(255, 255, 255, 0.1);
  --hover-tint: rgba(255, 255, 255, 0.1);
  --phone-bezel: #3a3560;
  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 16px;
  --gutter: 56px;
  --font-display: 'Outfit', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

/* Schriften selbst gehostet (SIL OFL 1.1, siehe fonts/LICENSE.txt). Kein
   Google-Fonts-Aufruf, damit keine IP-Adressen an Google gehen und keine
   dritte Verbindung beim Laden noetig ist. Beides sind variable Fonts,
   ein File deckt alle genutzten Gewichte ab. */
/* Nunito latin-ext */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Nunito latin */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(../fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Outfit latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(../fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store-btn, .site-nav a { transition: none; }
  .btn:hover, .store-btn:hover { transform: none; }
}

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

img { display: block; max-width: 100%; height: auto; }
/* picture soll das Layout nicht veraendern, das img bleibt direktes Kind.
   Mit display: contents wuerde sonst auch <source> zum Flex-Item werden. */
picture { display: contents; }
picture > source { display: none; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
/* Kein border-radius hier: die Regel ist spezifischer als .btn/.store-btn und
   wuerde die Pill-Form bei Tastaturfokus ueberschreiben. Der Outline folgt
   ohnehin dem Radius des Elements. */
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--yellow); color: var(--paper-ink);
  padding: 10px 14px; border-radius: 999px; font-weight: 700; z-index: 100;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  transition: box-shadow 0.2s ease;
}
/* Klasse setzt main.js, sobald die Seite gescrollt ist */
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--card-border), 0 12px 32px rgba(0, 0, 0, 0.35); }
/* Anker-Ziel: die Ueberschrift soll 20px unter dem Header stehen. Das obere
   Padding der Section zaehlt beim Scrollen mit und wird deshalb abgezogen,
   sonst bleibt darueber ein Streifen der vorherigen Section sichtbar. */
:root { --header-h: 98px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 20px - var(--section-pad, 0px)); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 10px; border-radius: 12px;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--hover-tint); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--hover-tint); color: var(--ink); }
.site-nav .lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 10px; padding: 3px;
  background: var(--hover-tint); border-radius: 999px;
}
.site-nav .lang-switch a,
.site-nav .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.site-nav .lang-switch span { background: var(--paper); color: var(--paper-ink); }
.site-nav .lang-switch a { color: var(--ink-soft); }
.site-nav .lang-switch a:hover { background: var(--hover-tint); color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: var(--card-violet); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero-wrap { padding: 16px var(--gutter) 0; }
.hero {
  background: var(--violet); color: var(--ink);
  border-radius: var(--radius-lg); padding: 64px; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center;
}
.hero-text { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.hero-img { grid-column: span 6; display: flex; justify-content: flex-end; }
.badge {
  display: inline-flex; align-self: flex-start;
  background: var(--yellow); color: var(--paper-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 8px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; text-wrap: pretty; }
.hero p { font-size: 20px; color: var(--violet-tint); max-width: 480px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-meta { font-size: 14px; font-weight: 600; color: var(--violet-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 16px 24px; border-radius: 999px; min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--yellow); color: var(--paper-ink); transform: translateY(-1px); }

.hero-banner {
  width: 520px; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 30px 60px rgba(30, 27, 46, 0.35);
  transform: rotate(-3deg);
}

/* Sections */
.section { --section-pad: 80px; padding: var(--section-pad) var(--gutter) 24px; display: flex; flex-direction: column; gap: 28px; }
.section-tools { --section-pad: 48px; padding: var(--section-pad) var(--gutter) 64px; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.section-head h2 { font-size: 40px; font-weight: 800; }
.section-head p { font-size: 16px; font-weight: 600; color: var(--ink-soft); }

.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card-yellow { background: var(--card-yellow); }
.card-blue { background: var(--card-blue); }
.card-green { background: var(--card-green); }
.card-violet { background: var(--card-violet); }
.card-teal { background: var(--card-teal); }

.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--card-border);
}
.shot { aspect-ratio: 16 / 9; max-height: 320px; border-radius: var(--radius-sm); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.card-title { display: flex; align-items: center; gap: 12px; }
.card-title img { width: 56px; height: 56px; border-radius: 16px; }
.card h3 { font-size: 22px; font-weight: 700; }
.meta { display: block; font-size: 13px; font-weight: 700; color: var(--meta); margin-top: 2px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card .store-btn { margin-top: auto; }

.store-btn {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 999px; min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { background: var(--yellow); color: var(--paper-ink); transform: translateY(-1px); }

.tool-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px;
  padding: 24px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border); min-height: 320px;
}
.tool-text { display: flex; flex-direction: column; gap: 14px; }
.tool-text img { width: 64px; height: 64px; border-radius: 18px; }
.tool-text h3 { font-size: 24px; font-weight: 700; line-height: 1.15; }
.tool-text p { font-size: 15px; color: var(--ink-soft); }
.tool-text .store-btn { margin-top: auto; }
.tool-phone { position: relative; }
.phone {
  position: absolute; top: 0; left: 0; width: 220px;
  background: var(--phone-bezel); padding: 8px 8px 0;
  border-radius: 26px 26px 0 0;
}
.phone img { border-radius: 19px 19px 0 0; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--card-border); }
.footer-inner {
  padding: 48px var(--gutter) 8px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 40px;
}
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: 15px; color: var(--ink-soft); text-wrap: pretty; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h2 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom-wrap { padding: 0 var(--gutter); }
.footer-bottom {
  padding: 20px 0 36px;
  border-top: 1px solid var(--card-border);
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
}

/* Legal pages */
.page { padding: 24px var(--gutter) 64px; display: flex; flex-direction: column; gap: 24px; }
.page h1 { font-size: 40px; font-weight: 800; }
/* Seitentitel ohne Ueberschriften-Semantik, sieht aus wie .page h1. Die
   Datenschutzseite nutzt ihn, weil die eingebettete iubenda-Policy schon
   eine eigene h1 mitbringt. */
.page .page-title {
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); max-width: none;
}
.page p { color: var(--ink-soft); max-width: 720px; }
.legal { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.legal-block { display: flex; flex-direction: column; gap: 6px; }
.legal h2 { font-size: 20px; font-weight: 700; }
.legal p { color: var(--ink-soft); }
.policy {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  /* Chromium beschneidet eine Scrollbar nicht am border-radius. Der Scroll
     liegt deshalb auf einem eigenen Element ohne Rundung, und diese Huelle
     schneidet ihn sauber an der Ecke ab. */
  overflow: hidden;
}
.policy-scroll {
  height: min(80vh, 900px); padding: 32px 36px;
  overflow-y: auto; overflow-x: hidden;
  /* verhindert, dass die Seite weiterscrollt, wenn die Karte am Ende ist */
  overscroll-behavior: contain;
}
@supports not selector(::-webkit-scrollbar) {
  .policy-scroll { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
}
/* nach innen versetzt, sonst schneidet die Huelle den Fokusrahmen ab */
.policy-scroll:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.policy-scroll::-webkit-scrollbar { width: 12px; }
/* Chromium rendert die Pfeil-Buttons wieder, sobald die Scrollbar gestylt wird */
.policy-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.policy-scroll::-webkit-scrollbar-corner { background: transparent; }
/* Track ueber die volle Hoehe. Ein margin hier laesst oben und unten Streifen
   uebrig, die zu keinem Track-Piece gehoeren -- Klicks darin scrollen dann
   auch am oberen Ende vorwaerts. */
.policy-scroll::-webkit-scrollbar-track,
.policy-scroll::-webkit-scrollbar-track-piece { background: transparent; }
.policy-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border: 4px solid transparent; background-clip: content-box;
  border-radius: 999px;
}
.policy-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35); background-clip: content-box;
}

/* Von iubenda eingebettete Policy. Deren Stylesheet wird zur Laufzeit nach
   diesem hier eingehaengt und nutzt #iubenda_policy als Selektor, deshalb
   steht ueberall .policy davor -- das gewinnt ueber die Spezifitaet statt
   ueber !important. */
.policy #iubenda_policy { font-family: var(--font-body); color: var(--ink-soft); }
/* Abstaende der iubenda-Container, das Polster kommt von .policy-scroll */
.policy #iubenda_policy.iubenda_fluid_policy .iub_container { margin: 0; }
.policy #iubenda_policy .iub_content { padding: 0; }
/* .page p begrenzt eigene Absaetze auf 720px. In der Policy sollen Absaetze
   und Listen gleich breit laufen. */
.policy #iubenda_policy p { max-width: none; }
/* iubenda legt die Klappboxen in ein Grid mit 300px-Mindestspalten, das auf
   dem Handy ueber den Container hinausragt. Die Spalte darf hoechstens so
   breit sein wie der Container. */
.policy #iubenda_policy ul.for_boxes { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.policy #iubenda_policy ul.for_boxes > li { min-width: 0; }
.policy #iubenda_policy h1,
.policy #iubenda_policy h2,
.policy #iubenda_policy h3,
.policy #iubenda_policy strong,
.policy #iubenda_policy .iub-subheading { color: var(--ink); }
.policy #iubenda_policy h4,
.policy #iubenda_policy h5,
.policy #iubenda_policy h6,
.policy #iubenda_policy p,
.policy #iubenda_policy li,
.policy #iubenda_policy summary,
.policy #iubenda_policy .iub-service { color: var(--ink-soft); }
.policy #iubenda_policy p,
.policy #iubenda_policy li { font-size: 15px; line-height: 1.6; }
.policy #iubenda_policy a { color: var(--link); }
.policy #iubenda_policy a:hover { color: var(--link-hover); }
.policy #iubenda_policy .box_primary,
.policy #iubenda_policy details.box_primary {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.policy #iubenda_policy details.box_primary h3 { color: var(--ink); }
/* Dienstnamen bleiben sekundaer, ihre Regel ist spezifischer als h3 allein */
.policy #iubenda_policy .iconed ul li h3 { color: var(--ink-soft); }
.policy #iubenda_policy hr { border-color: var(--card-border); }
/* Icon liegt als dunkle Grafik im Hintergrund der Ueberschrift selbst,
   laesst sich also nicht umfaerben ohne den Text mitzukippen */
.policy #iubenda_policy .w_icon_24,
.policy #iubenda_policy details.box_primary h3 { background-image: none; padding-left: 25px; }
.policy #iubenda_policy .iconed { background-image: none; padding-left: 0; }

/* Tablet */
@media (max-width: 1100px) {
  .hero { padding: 48px; }
  .hero-text { grid-column: span 12; }
  .hero-img { grid-column: span 12; justify-content: flex-start; }
  .hero-banner { width: 100%; }
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Unter 1000px werden drei Spalten zu eng (Titel und Meta brechen um).
   Die Spiele springen direkt auf eine Spalte: zwei Spalten wuerden die
   dritte Karte allein in die zweite Reihe stellen. */
@media (max-width: 1000px) {
  .games-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Small tablet */
@media (max-width: 900px) {
  :root { --gutter: 32px; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav { padding: 16px var(--gutter); }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--card-violet); border-radius: var(--radius-sm); padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; color: var(--ink); }
  .site-nav a:hover { background: var(--hover-tint); }
  .site-nav .lang-switch { align-self: flex-start; margin: 8px 0 4px 16px; }
  .hero-wrap { padding-top: 0; }
  :root { --header-h: 76px; }
  .hero { padding: 24px 20px 28px; gap: 20px; border-radius: var(--radius); }
  .hero-text { gap: 18px; }
  .hero p { font-size: 17px; }
  .section { --section-pad: 44px; padding: var(--section-pad) var(--gutter) 8px; }
  .section-tools { --section-pad: 40px; padding: var(--section-pad) var(--gutter) 48px; }
  .section-head h2 { font-size: 34px; }
  .games-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-card { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; min-height: 0; }
  .tool-phone { position: static; }
  .phone { position: static; width: 248px; margin: 4px auto -1px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px var(--gutter) 4px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { padding: 18px 0 28px; }
  .page h1, .page .page-title { font-size: 32px; }
  .policy-scroll { padding: 20px; height: 60vh; }
}
