/* ------------------------------------------------------------------
   flexfunk.eu – Basis-Stylesheet (Platzhalter-Seite)
   Farben/Schriften gemäß Logo-README: Manrope, #071D38, #0798F2,
   #596D88, #AAB6C5
   ------------------------------------------------------------------ */

/* Self-hosted Manrope (DSGVO: kein Google-Fonts-Request) */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-Medium-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-ExtraBold-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #071d38;
  --cyan: #0798f2;
  --slate: #596d88;
  --gray: #aab6c5;
  --bg: #ffffff;
  --bg-soft: #f2f6fa;
  --line: #dde5ee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
}

/* ---------- Kopfbereich ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .logo {
  height: 2.75rem;
  width: auto;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 3rem);
}

.hero .globe {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: clamp(14rem, 28vw, 26rem);
  height: auto;
  opacity: 0.16;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 44rem;
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid rgba(170, 182, 197, 0.55);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero h1 .accent { color: var(--cyan); }

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c8d4e2;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.hero .note {
  font-size: 0.9rem;
  color: var(--gray);
}

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

.section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
}

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

.section-inner { max-width: 60rem; margin: 0 auto; }

.section h2 {
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 0.4rem;
}

.section .subtitle {
  color: var(--slate);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.4rem;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  background: var(--navy);
  margin-bottom: 0.9rem;
}

.card h3 {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.status {
  border-left: 0.3rem solid var(--cyan);
  background: var(--bg);
  border-radius: 0 0.9rem 0.9rem 0;
  padding: 1.1rem 1.4rem;
  color: var(--slate);
}

.status strong { color: var(--navy); }

/* ---------- Inhaltsseiten (Impressum) ---------- */

.page {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 4rem;
}

.page-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.page h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0 0 1.5rem;
}

.page h2 {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 2.2rem 0 0.6rem;
}

.page p { margin: 0 0 0.9rem; }

.page address {
  font-style: normal;
  line-height: 1.7;
}

.page a { color: var(--cyan); }

.page ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }

.page dt { font-weight: 500; }

.page dd { margin: 0 0 0.5rem; }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--navy);
  color: var(--gray);
  padding: 1.6rem clamp(1rem, 4vw, 3rem);
}

.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #c8d4e2;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--cyan); }

/* ---------- Fehlerseite ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: var(--navy);
  color: #fff;
  padding: 2rem;
}

.error-page .logo { height: 3rem; width: auto; }

.error-page h1 {
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0;
}

.error-page p { color: var(--gray); margin: 0; }

.error-page a {
  color: var(--cyan);
  font-weight: 500;
  text-decoration: none;
}

/* ---------- Kleingeräte ---------- */

@media (max-width: 34rem) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { align-self: stretch; display: flex; justify-content: flex-end; }
}

/* ---------- Bedienbarkeit ---------- */

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
