/* Mivyra – Startseite
   Grundlage: docs/design/vorgabe-website.md
   Aufbau: mobile first, Umbruchpunkte 640 px (Tablet) und 1024 px (Desktop). */

/* ---------- Schrift (lokal, Inter, SIL OFL 1.1, siehe fonts/OFL.txt) ---------- */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */

:root {
  --primary: #043A75;
  --primary-hover: #0A3260;
  --primary-light: #E8EEF6;
  --accent: #25B8B0;        /* nur dekorativ, nie Text, nie Button */
  --accent-dark: #0F6E69;
  --accent-light: #E6F6F5;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --muted-bg: #F1F5F9;
  --text: #263238;
  --text-2: #64748B;        /* nur auf #FFFFFF oder #F7F9FC */
  --text-muted: #475569;
  --divider: #E2E8F0;
  --on-primary-2: #E8EEF6;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-raised: 0 4px 16px rgba(15, 23, 42, 0.08);
  --radius-s: 8px;
  --radius-l: 12px;

  --gutter: 16px;
  --section-space: 48px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Bei Desktop: 1120 px Inhalt plus Seitenabstand */
@media (min-width: 1024px) {
  .container {
    max-width: calc(1120px + 2 * var(--gutter));
  }
}

/* ---------- Sprunglink ---------- */

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(4, 58, 117, 0.25);
}

.btn-primary:active {
  background: var(--primary-hover);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--primary-light);
}

.btn-light {
  background: #FFFFFF;
  color: var(--primary);
}

.btn-light:hover,
.btn-light:active {
  background: var(--primary-light);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 22px;
  white-space: nowrap;
}

/* Sehr schmale Geräte (unter 360 px): Kopfzeile etwas enger, damit alles in eine Zeile passt */
@media (max-width: 359px) {
  .site-header .container,
  .header-actions {
    gap: 8px;
  }

  .btn-small {
    padding: 0 10px;
  }
}

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.logo-link {
  flex-shrink: 0;
  border-radius: var(--radius-s);
}

.header-logo {
  height: 44px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: none;
}

.nav-link {
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Abschnitte allgemein ---------- */

.section {
  padding-block: var(--section-space);
}

.section-white {
  background: var(--surface);
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text);
}

.lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
}

h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--bg);
  padding-block: 48px;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--accent-dark);
}

.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

h1 {
  margin-top: 16px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.hero .lead {
  margin-top: 16px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* Beispielkarte (rein dekorativ) */

.sample-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-raised);
}

.sample-meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.sample-title {
  margin-top: 8px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.badge-neutral {
  background: var(--muted-bg);
  border-color: var(--muted-bg);
  color: var(--text-muted);
}

.badge-status {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.badge-priority {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary);
}

.badge-soon {
  background: var(--muted-bg);
  border-color: var(--divider);
  color: var(--text-muted);
}

.sample-details {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

.sample-details li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* ---------- Funktionskarten ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.feature-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  background: var(--primary-light);
}

.feature-card h3 {
  margin-top: 16px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--text-2);
}

/* ---------- Block „In Kürze“ ---------- */

.soon {
  margin-top: 40px;
}

.soon h3 {
  margin-top: 8px;
}

.soon-intro {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.soon-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 24px;
  margin-top: 16px;
}

.soon-list li {
  display: flex;
  gap: 12px;
}

.icon-tile-small {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  background: var(--muted-bg);
}

.soon-list h4 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--text);
}

.soon-list p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* ---------- Warum Mivyra ---------- */

.reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
}

.reason {
  padding-top: 16px;
  position: relative;
}

.reason::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.reason-body {
  display: flex;
  gap: 16px;
}

.reason p {
  margin-top: 8px;
  color: var(--text-2);
}

/* ---------- Kontakt ---------- */

.contact {
  background: var(--primary);
  color: #FFFFFF;
  text-align: center;
}

.contact :focus-visible {
  outline-color: #FFFFFF;
}

.contact-inner {
  max-width: 640px;
  margin-inline: auto;
}

.contact h2 {
  color: #FFFFFF;
}

.contact-text {
  margin-top: 12px;
  color: var(--on-primary-2);
}

.contact .btn {
  margin-top: 32px;
  width: 100%;
}

.contact-hint {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--on-primary-2);
}

.contact-mail {
  display: inline-block;
  margin-top: 4px;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  padding-block: 32px;
  background: var(--surface);
  border-top: 1px solid var(--divider);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.copyright {
  margin-top: 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

/* ---------- Tablet (ab 640 px) ---------- */

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
    --section-space: 64px;
    --header-height: 72px;
  }

  .header-logo {
    height: 48px;
  }

  .btn-small {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
    line-height: 24px;
  }

  h1 {
    font-size: 36px;
    line-height: 44px;
  }

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .lead {
    font-size: 18px;
    line-height: 28px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    padding-block: 64px;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sample-card {
    max-width: 480px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .soon {
    margin-top: 48px;
  }

  .soon-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-text {
    font-size: 18px;
    line-height: 28px;
  }

  .contact .btn {
    width: auto;
  }

  .site-footer {
    padding-block: 40px;
  }

  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Desktop (ab 1024 px) ---------- */

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-space: 96px;
    --header-height: 80px;
  }

  .header-logo {
    height: 56px;
  }

  .header-actions {
    gap: 32px;
  }

  .main-nav {
    display: flex;
    gap: 32px;
  }

  h1 {
    font-size: 40px;
    line-height: 48px;
  }

  h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .hero {
    padding-block: 96px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .sample-card {
    max-width: none;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .soon-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    padding-block: 48px;
  }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
/* Nur innerhalb von .legal wirksam, ändert keine bestehenden Regeln. */

.legal {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal .legal-stand {
  margin-bottom: 32px;
  color: var(--text-2);
  font-size: 14px;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 30px;
  color: var(--primary);
}

.legal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 26px;
}

.legal p,
.legal ul,
.legal address {
  margin-bottom: 12px;
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 24px;
  list-style: disc;
}

.legal li + li {
  margin-top: 4px;
}

.legal a {
  overflow-wrap: anywhere;
}

/* Gut sichtbare Markierung für noch offene Angaben */
.legal .platzhalter {
  padding: 0 4px;
  border-radius: 4px;
  background: #FFF3C4;
  color: #7A4B00;
  font-weight: 600;
}

.legal .hinweis-entwurf {
  margin-bottom: 32px;
  padding: 12px 16px;
  border-left: 4px solid #C98A00;
  border-radius: var(--radius-s);
  background: #FFF8E1;
}

/* Sprachumschalter „DE | EN“ in der Kopfzeile */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lang-switch a {
  padding: 4px 2px;
  color: inherit;
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  text-decoration: underline;
}

.lang-switch a[aria-current="page"] {
  font-weight: 700;
  color: var(--primary);
}

/* Englische Rechtstexte: Hinweis auf die verbindliche deutsche Fassung */
.legal .hinweis-uebersetzung {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-s);
  background: var(--primary-light);
}
