/* ====================================================================
   Speed Sun – Wartungsseite
   Eigenständiges, statisches Stylesheet (kein Build nötig). Die Tokens
   sind mit der Hauptseite identisch: website/src/styles/colors.css und
   global.css. Danach folgen nur die Regeln für Kopfleiste, Fußbereich,
   den mittigen Hinweis und die Rechtstexte.
   ==================================================================== */

/* ------------------------------------------------- Schrift (lokal) */
@font-face {
  font-family: 'Outfit Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/outfit-latin-ext-wght-normal.woff2') format('woff2-variations');
  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;
}

@font-face {
  font-family: 'Outfit Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/outfit-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

/* ------------------------------------------------- CI-Farben & Tokens */
:root {
  color-scheme: light;

  /* CI-Palette (Quelle der Wahrheit) */
  --pale-sky: #d5ecfb;
  --sky-blue: #8fcbef;
  --french-blue: #173c84;
  --sunbeam-yellow: #ffef0a;
  --hot-rose: #c32f74;

  /* Marken-Blau */
  --blue-900: #0e2858;
  --blue-800: #123166;
  --blue-700: var(--french-blue);
  --blue-600: var(--french-blue);
  --sky-300: var(--sky-blue);
  --sky-200: var(--pale-sky);
  --sky-ink: #2f74a6;

  /* Akzent (Hot Rose) */
  --magenta-400: #d65f97;
  --magenta-500: var(--hot-rose);
  --magenta-600: #a82862;
  --gradient-sun: linear-gradient(135deg, #c32f74 0%, #b62c6c 55%, #a82862 100%);
  --accent-selection: rgba(195, 47, 116, 0.28);
  --accent-shadow: rgba(195, 47, 116, 0.4);

  /* Flächen */
  --bg: #eef5fc;
  --bg-panel: #ffffff;
  --surface: #ffffff;
  --header-bar: rgba(143, 203, 239, 0.92);

  /* Text */
  --text: #15356b;
  --text-muted: #51678c;
  --text-faint: #8a9cbb;

  /* Linien & Schatten */
  --border: rgba(23, 60, 132, 0.14);
  --border-strong: rgba(23, 60, 132, 0.28);
  --shadow-card: 0 14px 34px rgba(23, 60, 132, 0.1), 0 3px 10px rgba(23, 60, 132, 0.06);

  --accent: var(--blue-600);
  --on-sun: #ffffff;

  --radius-lg: 22px;

  /* Fluide Schriftgrößen */
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.18rem, 1.12rem + 0.32vw, 1.38rem);
  --step-3: clamp(1.9rem, 1.66rem + 1.2vw, 2.6rem);

  --space-section: clamp(4.5rem, 3.2rem + 4.5vw, 7.5rem);
  --header-h: 4.5rem;

  --font-sans: 'Outfit Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------- Reset & Basis */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  /* Kopf oben, Fuß unten – der Hinweis füllt den Raum dazwischen */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Blauer Himmel oben, sanfter Übergang in den hellen Seitengrund */
  background-color: var(--bg);
  background-image: linear-gradient(
    180deg,
    var(--sky-300) 0%,
    var(--pale-sky) 18%,
    rgba(238, 245, 252, 0) 48%
  );
  background-repeat: no-repeat;
  background-size: 100% 780px;
  background-position: top center;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--accent-selection);
  color: var(--blue-900);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main {
  flex: 1 1 auto;
}

.container {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--gradient-sun);
  color: var(--on-sun);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------------------------- Kopfleiste (ohne Navigation) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Himmelblaue Leiste – etwas dunkler als der Seiten-Hintergrund */
  background: var(--header-bar);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(23, 60, 132, 0.18);
  box-shadow: 0 6px 20px rgba(23, 60, 132, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: auto;
}

/* Schräge, fette blaue Wortmarke – an die alte „SPEED SUN“-Schrift angelehnt */
.brand-word {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--blue-700);
}

/* Sehr schmale Displays: Wortmarke bleibt einzeilig neben den Icons */
@media (max-width: 380px) {
  .brand-word {
    font-size: 1.25rem;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(23, 60, 132, 0.28);
  border-radius: 50%;
  color: var(--blue-700);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.icon-link:hover {
  color: var(--blue-900);
  border-color: var(--blue-700);
  background: rgba(255, 255, 255, 0.55);
}

.icon-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ------------------------------------------------- Hinweis in der Seitenmitte */
/* Nur vertikal zentrieren: `justify-items` bleibt `stretch`, sonst würde das
   Grid-Element auf max-content wachsen und auf schmalen Displays überlaufen. */
.maintenance {
  display: grid;
  align-content: center;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
}

.maintenance-card {
  position: relative;
  overflow: hidden;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 1.6rem + 3vw, 3.75rem) clamp(1.5rem, 0.9rem + 3vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

/* Feiner Akzentstreifen in Hot Rose an der Oberkante */
.maintenance-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient-sun);
}

.maintenance-sun {
  width: clamp(4.5rem, 4rem + 2vw, 5.5rem);
  height: auto;
  margin: 0 auto clamp(1.25rem, 1rem + 1vw, 1.75rem);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.maintenance-title {
  font-size: var(--step-3);
  font-weight: 730;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--blue-700);
  text-wrap: balance;
}

.maintenance-note {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: balance;
}

/* Auf schmalen Displays führt „balance“ zu sehr kurzen Zeilen. */
@media (max-width: 480px) {
  .maintenance-title,
  .maintenance-note {
    text-wrap: pretty;
  }
}

/* ------------------------------------------------- Rechtstexte */
.legal {
  max-width: 46rem;
  padding-block: 3rem var(--space-section);
}

.legal h1 {
  font-size: var(--step-3);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--blue-700);
}

.legal h2 {
  font-size: var(--step-1);
  margin: 2.2rem 0 0.6rem;
  color: var(--blue-700);
}

.legal p,
.legal ul {
  margin: 0.55rem 0;
  color: var(--text-muted);
}

.legal a {
  color: var(--blue-600);
}

.legal strong {
  color: var(--text);
}

.legal .back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}

.legal .back:hover {
  text-decoration: underline;
}

/* ------------------------------------------------- Fußbereich */
.site-footer {
  padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-word {
  font-size: 1.35rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--blue-700);
}

.footer-brand .muted {
  margin-top: 0.8rem;
  max-width: 24rem;
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.socials a:hover {
  color: var(--blue-600);
  border-color: var(--border-strong);
  background: var(--sky-200);
}

.socials svg {
  width: 1.2rem;
  height: 1.2rem;
}

.footer-head {
  margin-bottom: 0.9rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

address {
  font-style: normal;
  color: var(--text-muted);
}

address .gap {
  margin-top: 0.8rem;
}

address a {
  color: var(--text);
  text-decoration: none;
}

address a:hover {
  color: var(--blue-600);
}

.hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.hours-list li span:last-child {
  color: var(--text);
}

.site-footer .muted {
  color: var(--text-muted);
}

.site-footer .small {
  font-size: var(--step--1);
}

.hours-list + .small {
  margin-top: 0.7rem;
}

.site-footer .small a {
  color: var(--blue-600);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.footer-bottom nav {
  display: flex;
  gap: 1.4rem;
}

.footer-bottom a {
  color: var(--text);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--blue-600);
}

.legal-note {
  margin-top: 1rem;
  color: var(--text-faint);
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------- Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
