/* ==========================================================================
   BRK Bereitschaft Passau II – Landingpage
   Farbsystem nach 60-30-10-Regel (aus dem BRK-Logo abgeleitet):
   - 60% Hauptfarbe:      Weiss (--color-white) + Anthrazit-Text (--color-text)
   - 30% Nebenfarbe:      Hellgrau (--color-grey-100/200) + Logo-Grau (--color-grey-600)
   - 10% Akzent (knallig): BRK-Rot (--color-red) NUR fuer CTA-Buttons/wichtige Handlungsaufforderungen
   ========================================================================== */

:root {
  --color-red: #ed1c24;
  --color-red-dark: #c8151c;
  --color-red-soft: rgba(237, 28, 36, 0.08);

  --color-grey-100: #f2f2f2;
  --color-grey-200: #e5e5e5;
  --color-grey-600: #76787b;

  --color-white: #ffffff;
  --color-text: #231f20;
  --color-text-muted: #5a5c5e;

  --shadow-soft: 0 8px 28px rgba(35, 31, 32, 0.08);
  --shadow-medium: 0 16px 40px rgba(35, 31, 32, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --max-width: 1180px;
}

/* ---------- Seitenuebergaenge (sanftes Ein-/Ausblenden beim internen Navigieren) ---------- */
body {
  opacity: 1;
  transition: opacity 0.18s ease;
}

body.page-leaving {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

/* ---------- Reset & Basics ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Stellt sicher, dass [hidden] auch auf Elementen mit eigener display-Regel
   (z.B. .btn, .modal-overlay) tatsächlich greift - sonst gewinnt die
   Autoren-CSS gegen die UA-Default-Regel fuer [hidden]. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.65;
  background-color: var(--color-white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fokus-Sichtbarkeit fuer Tastaturbedienung */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-red-dark);
  outline-offset: 3px;
}

/* Dezentes Einblenden beim Scrollen (progressive enhancement) */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reveal-Varianten für mehr Abwechslung als nur "von unten einblenden" */
.reveal-left,
.reveal-right,
.reveal-scale {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-36px);
}

body.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(36px);
}

body.js-ready .reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

body.js-ready .reveal-left.is-visible,
body.js-ready .reveal-right.is-visible,
body.js-ready .reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Gestaffeltes Einblenden für Karten-/Grid-Layouts, statt dass alle
   gleichzeitig aufploppen */
.grid > .reveal:nth-child(2),
.grid > .reveal-scale:nth-child(2),
.steps > .reveal:nth-child(2),
.field-gallery > .reveal-scale:nth-child(2) { transition-delay: 0.08s; }
.grid > .reveal:nth-child(3),
.grid > .reveal-scale:nth-child(3),
.steps > .reveal:nth-child(3),
.field-gallery > .reveal-scale:nth-child(3) { transition-delay: 0.16s; }
.grid > .reveal:nth-child(4),
.grid > .reveal-scale:nth-child(4),
.field-gallery > .reveal-scale:nth-child(4) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(5),
.grid > .reveal-scale:nth-child(5) { transition-delay: 0.32s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  body.js-ready .reveal,
  body.js-ready .reveal-left,
  body.js-ready .reveal-right,
  body.js-ready .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Scroll-Fortschrittsbalken (wird per JS erzeugt) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-red), var(--color-red-dark));
  z-index: 1000;
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

/* ---------- Zähl-Animation für Kennzahlen (z. B. "130 Jahre") ---------- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Sticky-Header: dezent kompakter beim Scrollen ---------- */
.site-header {
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header.is-scrolled .logo-link img {
  height: 38px;
}

.logo-link img {
  transition: height 0.25s ease;
}

/* ---------- Nav: Unterstrich gleitet beim Hover ein ---------- */
.nav a:not(.nav-cta)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:not(.nav-cta):hover::before {
  transform: scaleX(1);
}

.nav a[aria-current="page"]::before {
  transform: scaleX(1);
}

/* ---------- Hero: Bild leicht gezoomt (Platz für Parallax-Drift beim
   Scrollen) + Inhalte fahren beim Laden gestaffelt ein ---------- */
.hero-bg img {
  transform: scale(1.12);
  will-change: transform;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.js-ready .hero-inner > * {
  animation: heroContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.js-ready .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
body.js-ready .hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
body.js-ready .hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
body.js-ready .hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
body.js-ready .hero-inner > *:nth-child(5) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img {
    transform: none;
  }

  body.js-ready .hero-inner > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease, box-shadow 0.25s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-grey-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.nav a[aria-current="page"] {
  color: var(--color-red);
}

.nav-cta {
  background-color: var(--color-red);
  color: var(--color-white) !important;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--color-red-dark);
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 78px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--color-white);
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 31, 32, 0.78), rgba(35, 31, 32, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-grey-100);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Hero-Variante: Titelseite (grosses Logo, zentriert) ---------- */
.hero-title-page .hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-title-page .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-title-page .hero-cta {
  justify-content: center;
}

@media (max-width: 720px) {
  .hero-logo {
    height: 84px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background-color: var(--color-grey-100);
}

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

.section-eyebrow {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 32px;
}

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

/* ---------- Vorteile (Warum mitmachen) ---------- */
.benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red-soft);
  color: var(--color-red);
  margin-bottom: 18px;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

/* ---------- So funktioniert's ---------- */
.steps {
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-left: 68px;
  margin-bottom: 40px;
}

.step:last-child {
  margin-bottom: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

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

.steps-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.steps-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Taetigkeitsfelder ---------- */
.field-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
}

.field-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-grey-100);
  color: var(--color-grey-600);
  margin-bottom: 18px;
}

.field-icon svg {
  width: 24px;
  height: 24px;
}

.field-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.field-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.field-block {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
}

.field-block:last-child {
  margin-bottom: 0;
}

.field-block-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.field-block-header .field-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.field-block-header h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.field-block-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.field-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.field-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.field-gallery button {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.field-gallery button:hover img {
  transform: scale(1.04);
}

.field-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-gallery-item figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

.lightbox-trigger {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.lightbox-trigger:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.steps-media .lightbox-trigger,
.team-photo .lightbox-trigger,
.insta-post-card .lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
}

.team-card .lightbox-trigger {
  display: inline-block;
  line-height: 0;
}

/* ---------- Lightbox fuer Galerie-Bilder ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(23, 20, 20, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: scale(1.06);
}

body.lightbox-locked {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay {
    transition: none;
  }
}

@media (max-width: 720px) {
  .field-block {
    padding: 22px;
  }

  .field-block-header {
    flex-direction: column;
    gap: 12px;
  }

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

/* ---------- Team ---------- */
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-grey-100);
  color: var(--color-grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 18px;
  border: 2px solid var(--color-grey-200);
  object-fit: cover;
}

.team-role-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 6px;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.team-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.team-photo {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.team-photo img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
}

.team-photo figcaption {
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------- Einsatzbeitraege (Platzhalter-Karten) ---------- */
.insta-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.insta-post-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.insta-post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.insta-post-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insta-post-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.insta-post-card-body p.insta-post-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .insta-post-grid {
    grid-template-columns: 1fr;
  }
}

.instagram-fallback {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.instagram-fallback a {
  color: var(--color-red);
  font-weight: 700;
  text-decoration: underline;
}

.instagram-fallback a.btn {
  color: var(--color-white);
  text-decoration: none;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-quote {
  font-size: 1.02rem;
  color: var(--color-text);
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-grey-100);
  color: var(--color-grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.testimonial-disclaimer {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--color-grey-200);
  padding: 6px 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 1.02rem;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-red);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4px 18px;
  color: var(--color-text-muted);
}

/* ---------- Standort & Kontakt ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.location-card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 28px;
}

.location-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.location-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--color-text-muted);
}

.location-row svg {
  width: 20px;
  height: 20px;
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.location-row a {
  color: var(--color-text);
  font-weight: 600;
}

.map-embed {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-embed-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: underline;
}

/* ---------- Kontaktformular ---------- */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  padding: 12px 14px;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-soft);
}

.form-status {
  font-weight: 600;
  min-height: 1.2em;
}

.form-status.success {
  color: #2b7a3d;
}

.form-status.error {
  color: var(--color-red-dark);
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- Mehrstufiges Kontaktformular ---------- */
.form-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.form-progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-grey-100);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-grey-200);
  flex-shrink: 0;
}

.form-progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-grey-200);
}

.form-progress-step.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.form-progress-step.is-done {
  background: var(--color-white);
  border-color: var(--color-red);
  color: var(--color-red);
}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-step[hidden] {
  display: none;
}

.form-step h3 {
  font-size: 1.1rem;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 20px 22px;
  border: 2px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.choice-card strong {
  font-size: 1.02rem;
  color: var(--color-text);
}

.choice-card span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.choice-card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.choice-card.is-selected {
  border-color: var(--color-red);
  background: var(--color-red-soft);
}

.form-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.form-step-actions .btn {
  padding: 12px 22px;
}

.form-step-back-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.form-step-back-note button {
  background: none;
  border: none;
  color: var(--color-red);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.form-step p.form-hint {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-top: -6px;
  margin-bottom: 4px;
}

/* Checkbox-Liste (z.B. Ressourcen-Auswahl) */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-grey-200);
  cursor: pointer;
  font-size: 0.96rem;
}

.checkbox-option:last-child {
  border-bottom: none;
}

.checkbox-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-red);
  flex-shrink: 0;
}

.checkbox-option span {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  display: block;
  margin-top: 2px;
}

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

/* ---------- Info-Block (Anfrage-Hinweise auf Sanitaetsdienstanfragen.html) ---------- */
.info-block {
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-block h3 svg {
  width: 22px;
  height: 22px;
  color: var(--color-red);
  flex-shrink: 0;
}

.info-block ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-block li {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.info-block li strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

.info-block p {
  color: var(--color-text-muted);
  margin-top: 12px;
}

.info-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: 36px;
}

/* ---------- Abschluss-CTA ---------- */
.cta-band {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--color-grey-100);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-band .hero-cta {
  justify-content: center;
}

.cta-band .btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-band .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-grey-200);
  padding: 48px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-grey-100);
  color: var(--color-grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--color-grey-200);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

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

.footer-legal-links {
  display: flex;
  gap: 18px;
}

/* ---------- Cookie-Banner (nur UI, kein echtes Tracking) ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 0.92rem;
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--color-red);
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.legal p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal ul {
  margin: 0 0 12px 0;
}

.legal ul li {
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}

.legal ul li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--color-red);
}

.legal-notice {
  background: var(--color-grey-100);
  border-left: 4px solid var(--color-red);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  font-size: 0.92rem;
}

.ph {
  color: var(--color-red-dark);
  background: var(--color-red-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    justify-content: center;
    gap: 20px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-grey-200);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.open {
    max-height: 400px;
    padding: 12px 24px 20px;
  }

  .nav a {
    padding: 12px 0;
    width: 100%;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    margin-left: 20px;
  }

  .nav-toggle::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: var(--color-grey-200);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* ==========================================================================
   Lagerverwaltung (Mitgliederbereich: Login, Bestand, Buchungen)
   ========================================================================== */

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.lager-demo-banner {
  background: #fff4d6;
  border-bottom: 1px solid #f0d78c;
  color: var(--color-text);
  font-size: 0.9rem;
}

.lager-demo-banner .container {
  padding-top: 12px;
  padding-bottom: 12px;
}

.lager-demo-banner[hidden] {
  display: none;
}

/* ---------- Login/Registrierung ---------- */
.lager-app-header .header-inner {
  justify-content: flex-start;
}

.lager-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lager-header-title h1 {
  font-size: 1.3rem;
}

.lager-user-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.lager-user-email {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.lager-user-role-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-red-soft);
  color: var(--color-red-dark);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lager-login-main {
  padding: 72px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.lager-login-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}

.lager-login-card .section-sub {
  margin-bottom: 24px;
}

.lager-tabs {
  display: flex;
  gap: 6px;
  background: var(--color-grey-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.lager-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-sm) - 2px);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lager-tab.is-active {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.lager-login-card form .form-row {
  margin-bottom: 16px;
}

.lager-link-btn {
  display: inline-block;
  margin-top: 14px;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.lager-link-btn:hover {
  color: var(--color-red);
}

.lager-link-btn-danger:hover {
  color: var(--color-red-dark);
}

/* ---------- Ausbuchen-Kasten (Grund, Suche, Auswahl-Liste) ---------- */
.lager-checkout {
  background: var(--color-grey-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
}

.lager-checkout h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.lager-checkout .section-sub {
  margin-bottom: 20px;
}

.lager-checkout .form-row {
  margin-bottom: 14px;
}

.lager-checkout-results {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  max-height: 260px;
  overflow-y: auto;
}

.lager-checkout-results[hidden] {
  display: none;
}

.lager-checkout-result-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: var(--color-grey-100);
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lager-checkout-result-btn:hover {
  background: var(--color-red-soft);
}

.lager-checkout-result-meta {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  white-space: nowrap;
}

.lager-checkout-empty {
  padding: 10px 12px;
  color: var(--color-text-muted);
}

.lager-checkout-cart {
  margin-top: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.lager-checkout-cart[hidden] {
  display: none;
}

.lager-checkout-cart h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.lager-checkout-cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.lager-checkout-negative {
  background: var(--color-red-soft);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.lager-checkout-negative .form-row {
  margin-bottom: 12px;
}

.lager-checkout-negative .form-row:last-child {
  margin-bottom: 0;
}

.lager-checkout-cart-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lager-checkout-cart-name {
  flex: 1 1 200px;
  font-weight: 600;
}

.lager-checkout-qty {
  width: 76px;
  padding: 8px 10px;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.lager-checkout-unit {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  min-width: 60px;
}

.lager-checkout-remove {
  border: none;
  background: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.lager-checkout-remove:hover {
  color: var(--color-red-dark);
}

/* ---------- Bestandskontrolle (Admin: Bestand mit Grund korrigieren) ---------- */
.lager-stockcheck-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 55vh;
  overflow-y: auto;
}

.lager-stockcheck-row {
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.lager-stockcheck-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.lager-stockcheck-info strong {
  font-size: 0.98rem;
}

.lager-stockcheck-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lager-stockcheck-form label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}

.lager-stockcheck-bestand {
  width: 90px;
  padding: 8px 10px;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.lager-stockcheck-grund {
  flex: 1 1 220px;
  padding: 8px 10px;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.lager-stockcheck-status {
  flex-basis: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.1em;
}

.lager-stockcheck-status.success {
  color: #2b7a3d;
}

.lager-stockcheck-status.error {
  color: var(--color-red-dark);
}

/* ---------- Toolbar & Tabelle ---------- */
.lager-main {
  padding: 48px 0 88px;
}

.lager-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lager-toolbar input[type="search"] {
  flex: 1 1 240px;
  padding: 12px 14px;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.lager-toolbar select {
  padding: 12px 14px;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--color-white);
}

.lager-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius-md);
}

.lager-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.lager-table th,
.lager-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-grey-200);
  font-size: 0.94rem;
}

.lager-table th {
  background: var(--color-grey-100);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lager-table tbody tr:last-child td {
  border-bottom: none;
}

.lager-table-empty-row td {
  text-align: center;
  color: var(--color-text-muted);
}

.lager-bestand.is-low {
  color: var(--color-red-dark);
  font-weight: 700;
}

.lager-badge-low {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-red-soft);
  color: var(--color-red-dark);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lager-actions .lager-link-btn {
  margin-top: 0;
}

/* ---------- Ansicht für normale Mitglieder: Top 10 + Ausbuchen nebeneinander ---------- */
.lager-user-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: start;
}

.lager-top10-col {
  background: var(--color-grey-100);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.lager-top10-col h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.lager-top10-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lager-top10-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lager-top10-btn:hover {
  background: var(--color-red-soft);
}

.lager-checkout-col .lager-checkout {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .lager-user-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ausstehende Mitglieder-Freigaben (nur Admins) ---------- */
.lager-pending {
  background: var(--color-red-soft);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
}

.lager-pending h2 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.lager-pending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lager-pending-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.lager-pending-name {
  font-weight: 700;
}

.lager-pending-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---------- Bewegungs-Protokoll ---------- */
.lager-log {
  margin-top: 48px;
}

.lager-log h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.lager-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lager-log-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-grey-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.lager-log-time {
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 600;
}

.lager-log-empty {
  color: var(--color-text-muted);
  background: transparent !important;
  padding: 0 !important;
}

/* ---------- Modal (Neuer Artikel / Ausbuchen / Einbuchen / Bearbeiten) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  padding: 32px;
}

.modal.modal-lg {
  max-width: 700px;
}

.modal h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-right: 24px;
}

.modal .form-row {
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .lager-login-card {
    padding: 28px 22px;
  }

  .lager-user-box {
    margin-left: 0;
  }

  .lager-toolbar {
    flex-direction: column;
  }

  .modal {
    padding: 24px;
  }
}
