/* modeal.de – Stylesheet
 *
 * Gestaltung: kantig, ohne Rundungen (kein border-radius, keine weichen
 * Schatten). Schrift Ubuntu wie im Logo. Farben aus dem Logo: Blau #29339b
 * als Grundton für Flächen, Rot #db2b39 als Akzent. Große Grundschrift und
 * hoher Kontrast, weil modeal sich an alle Altersgruppen richtet.
 */

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/ubuntu-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/ubuntu-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu';
  src: url('/fonts/ubuntu-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #29339b;
  --blue-dark: #1c2370;
  --red: #db2b39;
  --red-dark: #b81f2c;
  --bg: #ffffff;
  --bg-alt: #eef0f7;
  --surface: #ffffff;
  --ink: #12163a;
  --text: #1d2140;
  --muted: #4a4f6a;
  --line: #12163a;
  --line-soft: #c9cde0;
  --link: #29339b;
  --hero-bg: #29339b;
  --hero-text: #ffffff;
  --footer-bg: #12163a;
  --logo-mo: #db2b39;
  --logo-deal: #29339b;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d1030;
    --bg-alt: #151a45;
    --surface: #151a45;
    --ink: #ffffff;
    --text: #e6e8f2;
    --muted: #b4b8d0;
    --line: #e6e8f2;
    --line-soft: #343b78;
    --link: #a9b1ff;
    --hero-bg: #1c2370;
    --footer-bg: #070920;
    --logo-mo: #ff4655;
    --logo-deal: #ffffff;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0d1030;
  --bg-alt: #151a45;
  --surface: #151a45;
  --ink: #ffffff;
  --text: #e6e8f2;
  --muted: #b4b8d0;
  --line: #e6e8f2;
  --line-soft: #343b78;
  --link: #a9b1ff;
  --hero-bg: #1c2370;
  --footer-bg: #070920;
  --logo-mo: #ff4655;
  --logo-deal: #ffffff;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.container,
.container-narrow {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container {
  max-width: 72rem;
}

.container-narrow {
  max-width: 46rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Logo --- */
.md-logo {
  display: inline-flex;
}

.md-logo svg {
  display: block;
  height: 52px;
  width: auto;
}

.md-logo .l-mo {
  fill: var(--logo-mo);
}

.md-logo .l-deal {
  fill: var(--logo-deal);
}

.md-logo.footer svg {
  height: 40px;
}

.md-logo.footer .l-mo {
  fill: #ff4655;
}

.md-logo.footer .l-deal {
  fill: #ffffff;
}

/* --- Header --- */
.site-header {
  background: var(--bg);
  border-bottom: 6px solid var(--blue);
  position: relative;
}

/* roter Abschnitt links in der Kante, wie "mo" im Logo */
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 38%;
  height: 6px;
  background: var(--red);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
  text-decoration: none;
}

.tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--ink);
  color: var(--bg);
}

.theme-toggle .moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }

  :root:not([data-theme='light']) .theme-toggle .moon {
    display: block;
  }
}

/* --- Hero --- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}

.hero h1 {
  color: var(--hero-text);
  max-width: 18ch;
}

.hero .lead {
  color: #dfe2f7;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.8rem;
  background: var(--red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
}

/* --- Abschnitte --- */
.section {
  padding: clamp(2.75rem, 2rem + 2.5vw, 4.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 4px solid var(--red);
  margin-bottom: 1.5rem;
}

.page-hero {
  padding: 2.5rem 0 0.5rem;
}

/* --- Raster und Karten --- */
.grid {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: block;
  height: 100%;
  padding: 1.75rem;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.card-link {
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--blue);
  transition: transform 0.12s, box-shadow 0.12s;
}

.card-link:hover {
  color: var(--text);
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--red);
}

.card p {
  color: var(--muted);
}

.more {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.55rem 1rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.card-link:hover .more {
  background: var(--red-dark);
}

.sister-name {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.2rem 0.6rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* --- Tipps --- */
.tipp {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-top: 2px solid var(--line);
}

.tipp p {
  margin: 0;
  color: var(--muted);
}

.tipp .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--red);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.9rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--red);
}

/* --- FAQ --- */
.faq {
  border-top: 2px solid var(--line);
}

.faq details {
  border-bottom: 2px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 1rem 3rem 1rem 0;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0.75rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
  background: var(--red);
}

.faq .answer p {
  color: var(--muted);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

/* --- Rechtstexte --- */
.prose h2 {
  margin-top: 2rem;
}

.prose h3,
.prose h4 {
  margin-top: 1.5rem;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid var(--line-soft);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.prose a {
  overflow-wrap: anywhere;
}

.adresse img {
  background: #fff;
}

/* --- 404 --- */
.nf .code {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin: 0 0 1rem;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 6px solid var(--red);
  background: var(--footer-bg);
  color: #d5d8ec;
  font-size: 1rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #ff8a93;
}

.site-footer .cols {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .site-footer .cols {
    grid-template-columns: 2fr 1fr;
  }
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  padding: 0.2rem 0;
}

.site-footer .about p {
  margin-top: 0.9rem;
}

.site-footer .bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #3a3f6b;
  font-size: 0.95rem;
}

.site-footer .bottom p {
  margin: 0 0 0.25rem;
}

@media (max-width: 30rem) {
  .md-logo svg {
    height: 40px;
  }

  .tagline {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-link,
  .card-link:hover {
    transition: none;
    transform: none;
  }
}

/* Funkwellen aus dem Logo als Motiv rechts im Hero (nur breite Bildschirme) */
@media (min-width: 60rem) {
  .hero {
    background-image: url('/images/hero-wellen.svg');
    background-repeat: no-repeat;
    background-size: 26rem auto;
    background-position: right max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem)) center;
  }
}
