/* ================================
   SPIELMANNSZUG HOLTORF – GLOBAL
   ================================ */

:root {
  --color-primary: #345aaf;
  --color-primary-soft: #e3ebff;
  --color-primary-dark: #273f83;

  --color-bg: #f5f7fb;
  --color-surface: #ffffff;

  --color-text: #1f2933;
  --color-muted: #6b7280;

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
  --shadow-light: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* ========== RESET & BASE ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top left, #eef2ff 0, #f5f7fb 45%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
}

/* Helper für Ein-/Ausblenden */
.is-hidden {
  display: none !important;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.site-header_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  position: relative;
}

/* Logo */

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  min-width: 0;
}

.site-logo:hover,
.site-logo:focus-visible {
  text-decoration: none;
}

.site-logo_title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-logo_subtitle {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Navigation */

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.nav_link:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav_link--active {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

/* Mobile Nav Toggle */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Mobile Nav */

@media (max-width: 768px) {
  .site-header .container,
  .site-footer .container {
    padding-inline: 1.6rem;
  }

  .site-header_top {
    align-items: center;
    gap: 0.8rem;
  }

  .site-logo_title {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .site-logo_subtitle {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 60;
    width: min(290px, calc(100vw - 2.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.45rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav_link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
  }

  .site-footer_inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 0;
  }

  .site-footer_links {
    width: 100%;
    row-gap: 0.3rem;
  }
}

/* ================================
   TICKER / COUNTDOWN
   ================================ */

.ticker {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8rem;
}

.ticker_inner {
  position: relative;
  overflow: hidden;
  padding: 0.35rem 0;
}

.ticker_track {
  display: inline-block;
  white-space: nowrap;
  min-width: 100%;
  will-change: transform;
  animation: ticker-marquee 40s linear infinite;
}

@keyframes ticker-marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  padding: 2.8rem 0 2.4rem;
}

.hero_inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero_title {
  margin: 1rem 0 0.6rem;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  color: #020617;
}

.hero_subtitle {
  margin: 0;
  color: var(--color-muted);
  max-width: 32rem;
  line-height: 1.6;
}

.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero_image-wrapper {
  justify-self: center;
}

.hero_image {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  height: 260px;
}

.hero_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn--ghost:hover {
  background: var(--color-primary-soft);
  border-color: transparent;
}

/* Icon in Buttons (Lucide) */

.btn_icon {
  display: inline-flex;
  margin-right: 0.45rem;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}


.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero Responsive */

@media (max-width: 900px) {
  .hero_inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero_image-wrapper {
    order: -1;
  }

  .hero_image {
    height: 220px;
  }
}

/* ================================
   GENERISCHE SECTIONS & HEADERS
   ================================ */

.section {
  padding: 2.2rem 0 3rem;
}

.section--tight-top {
  padding-top: 1.2rem;
}

.section_header {
  margin-bottom: 1.6rem;
}

.section_title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #020617;
}

.section_subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ================================
   GRIDS & CARDS
   ================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
}

.board-grid {
  gap: 1.8rem;
}

.board-subsection_header {
  margin-top: 2.2rem;
}

.board-card {
  padding: 1.45rem;
}

.board-card_media {
  background: #f8fafc;
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.12),
    0 2px 5px rgba(15, 23, 42, 0.08);
  transform: rotate(-0.6deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card_title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #020617;
}

.card_subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.card_text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.card_spacer {
  margin-top: 0.8rem;
}

.card_link {
  font-weight: 500;
}

.board-card_image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 0.2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #eceff3;
}

.board-card:hover .board-card_media {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.15),
    0 3px 6px rgba(15, 23, 42, 0.1);
}

.board-card_title {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.board-card_text {
  font-size: 1rem;
  color: #475569;
}

/* Card + Bild links (Mitspielen-Bereich) */

.card-with-side-image {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.card-with-side-image_image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.card-with-side-image_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Footer – Buttons / Abschlusszeilen am unteren Rand */
.card_footer {
  margin-top: auto;
  padding-top: 0.8rem;
}

/* News Cards */

.news-card_image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.8rem;
}

/* Responsive Grids */

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-with-side-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-with-side-image_image {
    max-height: 180px;
  }

  .board-card_title {
    font-size: 1.1rem;
  }
}

/* ================================
   TERMINE LIST
   ================================ */

.dates-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dates-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dates-item_date {
  min-width: 4.4rem;
  text-align: center;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.dates-item_content-title {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #020617;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dates-item_content-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.dates-item_badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #fee2e2;
  color: #b91c1c;
}

.dates-item--expired {
  opacity: 0.8;
}

.dates-item--expired .dates-item_date,
.dates-item--expired .dates-item_content-meta {
  text-decoration: line-through;
}

/* ================================
   GALLERY / SOCIAL
   ================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.gallery-card--image {
  padding: 0;
  overflow: hidden;
}

.gallery-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card_social-text {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ================================
   KONTAKT / MAP OVERLAY
   ================================ */

.contact-overlay {
  position: relative;
  margin-top: 0.8rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.15);
  min-height: 360px;
  background: #e5e7eb;
}

.contact-overlay_map {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.contact-overlay_map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none; /* Map nicht scrollbar/klickbar */
}

/* Klick-Layer: öffnet OSM in neuem Tab */
.contact-overlay_click-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
}

/* (Overlay über Zoom-Widget entfernt) */

/* Label mit Adresse rechts neben dem (zentralen) Marker */
.contact-overlay_map-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(28px, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  border: 1px solid rgba(148, 163, 184, 0.7);
  z-index: 3;
  box-shadow: var(--shadow-light);
  white-space: nowrap;
}

/* NEU: Wrapper für zwei übereinander liegende Cards */
.contact-overlay_cards {
  position: relative;
  max-width: 360px;
  margin: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 4;
}

.contact-overlay_card {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
}

/* Divider für Vereinsraum in der Kontakt-Card */
.card_divider {
  margin: 1rem 0 0.8rem;
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

/* Vereinsraum-Zeile mit Icon */
.contact-room {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.contact-room .icon {
  width: 16px;
  height: 16px;
}

/* ================================
   MODAL (Mitspielen-Kontakt)
   ================================ */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.modal.is-open {
  display: flex;
}

.modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal_dialog {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.5rem;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.25);
  max-width: 460px;
  width: calc(100% - 2.5rem);
  z-index: 2;
}

.modal_title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal_subtitle {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.modal_body p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.modal_close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 999px;
}

.modal_close:hover {
  background: rgba(148, 163, 184, 0.18);
}

/* ================================
   FOOTER (STICKY unten)
   ================================ */

.site-footer {
  margin-top: auto;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.8rem;
}

.site-footer_inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.site-footer_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer_link {
  color: rgba(241, 245, 249, 0.95);
  text-decoration: none;
}


.site-footer_separator {
  color: rgba(241, 245, 249, 0.75);
}

.site-footer_link:hover {
  text-decoration: underline;
}

/* ================================
   LOGIN / DASHBOARD
   ================================ */

.login-section {
  padding-top: 2.5rem;
}

.login-container {
  max-width: 620px;
}

.login-header {
  text-align: center;
}

.login-card {
  gap: 0.4rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.login-form_label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #020617;
}

.login-form_input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  color: var(--color-text);
  background: #ffffff;
}

.login-form_input:focus {
  outline: 2px solid var(--color-primary-soft);
  border-color: var(--color-primary);
}

.login-form_checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.35rem 0 0.2rem;
}

.login-form_submit {
  width: 100%;
}

.login-message {
  margin: 0.3rem 0;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.8rem;
}

.login-message--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.login-message--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.dashboard-container {
  max-width: 900px;
}

.dashboard-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 1rem;
}

.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.dashboard-kpi {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
  padding: 0.8rem;
}

.dashboard-kpi_label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.dashboard-kpi_value {
  font-size: 1.2rem;
  color: #0f172a;
}

.dashboard-month-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.dashboard-month-pill {
  border: 1px solid rgba(52, 90, 175, 0.25);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-import {
  border: 1px dashed rgba(52, 90, 175, 0.45);
  background: rgba(227, 235, 255, 0.45);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.dashboard-import_hint {
  margin: 0.15rem 0 0.55rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.dashboard-import_template {
  margin-bottom: 0.55rem;
}

.dashboard-import_row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dashboard-import_row .login-form_input {
  flex: 1;
  min-width: 240px;
}

.dashboard-import_search {
  margin-top: 0.65rem;
}

.dashboard-search-empty {
  margin: 0.4rem 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.dashboard-termin-row {
  align-items: start;
}

.dashboard-termin-list {
  margin-top: 0.25rem;
}

.dashboard-termin-content {
  width: 100%;
}

.dashboard-termin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.dashboard-icon-button {
  padding: 0.55rem;
  width: 40px;
  height: 40px;
}

.dashboard-icon-button .icon {
  width: 17px;
  height: 17px;
}

.dashboard-termin-edit {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 0.7rem;
}

.dashboard-termin-edit[hidden] {
  display: none;
}

.dashboard-textarea {
  resize: vertical;
  min-height: 72px;
}


/* ================================
   QUALITY-OF-LIFE
   ================================ */

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent_card {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
}

.cookie-consent_title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #0f172a;
}

.cookie-consent_text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-consent_actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body.has-cookie-consent-open {
  overflow: hidden;
}
