:root {
  --a11y-scale: 1;
}

:root {
  --color-primary: #005ca9;
  --color-primary-soft: #005ca9;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-invert: #ffffff;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --radius-card: 16px;
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.3s ease-out;
}

/* Reset light */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem; /* ⭐ A11y-kompatibel */
}

/* ⭐ Überschriften NUR unterhalb des Swipers einfärben */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  color: #005ca9;
}

/* App-Container */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Swiper */
.site-header {
  position: relative;
  width: 100%;
}

.hero-swiper {
  width: 100%;
  height: 320px;
  max-height: 320px;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-slide-content {
  position: absolute;
  inset: auto 5% 12% 5%;
  max-width: 520px;
  color: var(--color-text-invert);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slide-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hero-slide-content p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Swiper Controls */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
  background: var(--color-text-invert);
}

/* Hauptnavigation unter dem Swiper */
.main-nav {
  background: var(--color-primary);
  color: var(--color-text-invert);
  position: static;
  z-index: 20;
}

.main-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  color: var(--color-text-invert);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* Hamburger Button – jetzt IMMER sichtbar */
.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ⭐ Breadcrumb – erweitert mit Icons + Farben */
.breadcrumb-nav {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #005ca9;
  text-align: left;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #005ca9;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  text-decoration: underline;
}

.breadcrumb .current {
  color: #006600;
  font-weight: 600;
}

.breadcrumb .icon {
  font-size: 0.85rem;
  color: #005ca9;
}

.breadcrumb .icon-current {
  color: #006600;
}

/* ⭐ Sidepanel Navigation – leicht versetzt unter Header */
.sidepanel {
  position: fixed;
  top: calc(60px + 0.75rem);
  left: 1rem;
  max-height: calc(100vh - 5rem);
  width: min(260px, 80vw);
  background: var(--color-primary);
  color: var(--color-text-invert);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.25rem;
  transform: translateX(-120%);
  transition: transform var(--transition-normal);
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidepanel.is-open {
  transform: translateX(0);
}

.sidepanel-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-text-invert);
  font-size: 1.2rem;
}

.sidepanel-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidepanel-links a {
  color: var(--color-text-invert);
  text-decoration: none;
  font-size: 1rem;
}

/* Hauptinhalt */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 1.5rem auto 4.5rem;
  padding: 0 1rem;
}

.view h2 {
  margin-top: 0;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-text-invert);
  z-index: 10;
}

.bottom-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.version-hint {
  opacity: 0.9;
}

/* FAB-Gruppe – horizontal zentriert über der Bottom-Nav */
.fab-group {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  z-index: 30;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-text-invert);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.fab i {
  font-size: 1.3rem;
}

.fab:hover,
.fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  background: #0072d1;
}

/* ⭐ A11y Panel – optimierte Höhe */
.a11y-panel {
  position: fixed;
  right: 0.75rem;
  bottom: 4.5rem;
  width: min(360px, 92vw);
  max-height: calc(100vh - 6rem);
  background: #ffffff;
  color: var(--color-text);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  z-index: 35;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.a11y-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.a11y-panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a11y-panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.a11y-panel-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.a11y-panel-body {
  padding: 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Responsivität */
@media (max-width: 768px) {

  /* horizontale Navigation existiert nicht mehr */

  .hero-swiper {
    height: 260px;
    max-height: 260px;
  }

  .hero-slide-content {
    inset: auto 1.5rem 10% 1.5rem;
  }
}

/* A11y-Schriftgrößen – verbinden Body-Klassen mit --a11y-scale */

body.a11y-font-md {
  --a11y-scale: 1.0;   /* normal */
}

body.a11y-font-lg {
  --a11y-scale: 1.4;   /* deutlich größer */
}

body.a11y-font-xl {
  --a11y-scale: 1.8;   /* richtig groß */
}

body.a11y-font-xxl {
  --a11y-scale: 2.2;
}

body.a11y-font-max {
  --a11y-scale: 2.6;
}

.main-content {
  padding-bottom: 14rem; /* Puffer über der Bottom-Nav */
}
