/* =========================================================
   Dashboard (Hero + Tiles) – Wasserwacht/DRK CI
   ========================================================= */
:root {
  --ww-blue: #008ccd; /* Wasserwacht-Blau */
  --drk-red: #e60005; /* DRK-Rot */
  --ww-darkblue: #002d55; /* Dunkelblau */
  --ww-beige: #f5f0e6; /* Beige */

  --ww-blue-60: #73afdc;
  --ww-blue-30: #b4d7eb;
  --ww-darkblue-60: #698caf;
  --ww-darkblue-30: #b4c3d7;

  --dash-bg-1: #f5f0e6;
  --dash-bg-2: #e8eef5;
}

/* Sticky Footer Layout */
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
}

/* Optional: dezenter Seitenhintergrund */
body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  min-height: 100vh;
}

/* Hero */
.dashboard-hero {
  background: linear-gradient(135deg, var(--ww-darkblue) 0%, var(--ww-blue) 45%, var(--ww-blue) 100%);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.welcome-title {
  color: #1e293b;
}
.welcome-subtitle {
  color: #475569;
}

/* Logo Wrapper: WW Blau -> DRK Rot */
.logo-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ww-blue) 0%, var(--drk-red) 100%);
  box-shadow: 0 10px 28px rgba(0, 140, 205, 0.28);
}

.logo-wrapper img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  /* Logo bleibt original; falls du es weiß brauchst:
     filter: brightness(0) invert(1);
  */
}

/* Section */
.dashboard-section {
  padding-top: 2.25rem;
}

/* Section titles */
.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--ww-darkblue);
}

.section-title::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0, transparent);
}

/* Card link */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Dashboard cards */
.dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #e8eef5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.dashboard-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ww-blue), var(--drk-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  border-color: rgba(0, 140, 205, 0.45);
}

.dashboard-card:hover::before {
  transform: scaleX(1);
}

/* Card icon */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}

.dashboard-card:hover .card-icon {
  transform: scale(1.06) rotate(3deg);
}

/* Icon palettes: an WW/DRK angelehnt */
.icon-blue {
  background: linear-gradient(135deg, #e6f6ff, var(--ww-blue-30));
  color: var(--ww-blue);
}

.icon-green {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #1b7a3a;
}

.icon-orange {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #c85a00;
}

.icon-purple {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #6a1b9a;
}

.icon-red {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: var(--drk-red);
}

.icon-teal {
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
  color: #00796b;
}

/* Card typography */
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.card-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Fade-in animation */
.fade-in {
  animation: fadeIn 0.55s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .welcome-card {
    padding: 1.5rem;
  }
  .logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  .logo-wrapper img {
    width: 48px;
    height: 48px;
  }
  .dashboard-card {
    padding: 1.5rem;
  }
}

.has-color-red {
  color: var(--drk-red) !important;
}

/* =========================
   PointCard Landing Page
   ========================= */

/* Farbvariablen (DRK/Wasserwacht) */
:root {
  --ww-blue: #008ccd; /* Wasserwacht-Blau */
  --drk-red: #e60005; /* DRK-Rot */
  --ww-dark: #002d55; /* Dunkelblau */
  --ww-beige: #f5f0e6; /* Beige */
  --ww-blue-60: #73afdc;
  --ww-blue-30: #b4d7eb;
  --ww-dark-60: #698caf;
  --ww-dark-30: #b4c3d7;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* --- Hero --- */
.landing-hero {
  background: linear-gradient(135deg, var(--ww-darkblue) 0%, var(--ww-blue) 45%, var(--ww-blue) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(0, 140, 205, 0.18) 0%, transparent 55%), radial-gradient(circle at 80% 80%, rgba(230, 0, 5, 0.14) 0%, transparent 55%);
  opacity: 0.9;
  animation: landingPulse 8s ease-in-out infinite;
}

@keyframes landingPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.landing-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
  opacity: 0.45;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
}

.landing-logo-container {
  position: relative;
  display: inline-block;
  animation: landingFloatIn 1.1s ease-out;
}

@keyframes landingFloatIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 140, 205, 0.28) 0%, transparent 70%);
  filter: blur(44px);
  animation: landingGlow 3.2s ease-in-out infinite;
}

@keyframes landingGlow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.landing-logo-figure {
  width: 180px;
  height: 180px;
  margin-bottom: 1.25rem;
}

.landing-logo-frame {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.landing-logo {
  width: 140px;
  height: auto;
  max-height: 140px;
}

.landing-title {
  color: #fff !important;
  font-size: 4.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -2px;
  margin-bottom: 1rem !important;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
  animation: landingSlideUp 0.8s ease-out 0.2s both;
}

.landing-subtitle {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.25rem !important;
  line-height: 1.8 !important;
  max-width: 760px;
  margin: 0 auto 2.5rem !important;
  animation: landingSlideUp 0.8s ease-out 0.35s both;
}

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

.has-text-ww-blue {
  color: var(--ww-blue) !important;
}

.landing-hero-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-top: 2rem;
  animation: landingSlideUp 0.8s ease-out 0.6s both;
}

/* CTA Button */
.landing-cta-button {
  background: linear-gradient(135deg, var(--ww-blue), #0074aa) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 1.5rem 3rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 40px rgba(0, 140, 205, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.landing-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 52px rgba(0, 140, 205, 0.55);
  background: linear-gradient(135deg, #0074aa, var(--ww-blue)) !important;
}

/* Scroll indicator */
.landing-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  animation: landingBounce 2s infinite;
  text-decoration: none;
}

@keyframes landingBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- Stats --- */
.landing-stats {
  background: linear-gradient(135deg, var(--ww-dark), #0b3d6b);
  padding: 3.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.landing-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='dots' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.10)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23dots)'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.landing-stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.landing-stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.landing-stat-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* --- Features --- */
.landing-features {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 6rem 1.5rem;
}

.landing-section-header {
  margin-bottom: 3.5rem;
}

.landing-section-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ww-dark), var(--ww-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.landing-section-subtitle {
  font-size: 1.15rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
}

.landing-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  border: 2px solid transparent;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.landing-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.landing-feature-card > * {
  position: relative;
  z-index: 1;
}

.landing-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  border-color: var(--card-color-1);
}

.landing-feature-card:hover::before {
  opacity: 0.055;
}

.landing-feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.landing-feature-card:hover .landing-feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* Icon themes (bewusst an DRK/WW angelehnt) */
.landing-icon-blue {
  background: linear-gradient(135deg, rgba(180, 215, 235, 0.75), rgba(115, 175, 220, 0.55));
  color: var(--ww-blue);
}

.landing-icon-red {
  background: linear-gradient(135deg, rgba(230, 0, 5, 0.1), rgba(230, 0, 5, 0.18));
  color: var(--drk-red);
}

.landing-icon-teal {
  background: linear-gradient(135deg, rgba(180, 215, 235, 0.55), rgba(180, 195, 215, 0.55));
  color: #00897b;
}

.landing-icon-orange {
  background: linear-gradient(135deg, rgba(245, 240, 230, 0.95), rgba(180, 215, 235, 0.35));
  color: #ef6c00;
}

.landing-icon-purple {
  background: linear-gradient(135deg, rgba(180, 195, 215, 0.55), rgba(180, 215, 235, 0.55));
  color: #6a1b9a;
}

.landing-icon-green {
  background: linear-gradient(135deg, rgba(245, 240, 230, 0.95), rgba(180, 215, 235, 0.3));
  color: #2e7d32;
}

/* Card color variables */
.landing-card-blue {
  --card-color-1: var(--ww-blue);
  --card-color-2: #0074aa;
}
.landing-card-red {
  --card-color-1: var(--drk-red);
  --card-color-2: #b00004;
}
.landing-card-teal {
  --card-color-1: #00897b;
  --card-color-2: #00695c;
}
.landing-card-orange {
  --card-color-1: #ef6c00;
  --card-color-2: #e65100;
}
.landing-card-purple {
  --card-color-1: #6a1b9a;
  --card-color-2: #4a148c;
}
.landing-card-green {
  --card-color-1: #2e7d32;
  --card-color-2: #1b5e20;
}

/* --- CTA section --- */
.landing-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 100%);
  padding: 5rem 1.5rem;
}

.landing-cta-box {
  background: #fff;
  border-radius: 30px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 860px;
  margin: 0 auto;
}

/* PointCard – Primary CTA Button */
.button.is-ww-primary {
  background: linear-gradient(135deg, var(--ww-blue) 0%, #006aa3 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  padding-left: 2.4rem;
  padding-right: 2.4rem;

  box-shadow:
    0 14px 34px rgba(0, 140, 205, 0.32),
    0 6px 16px rgba(0, 45, 85, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.button.is-ww-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 18px 44px rgba(0, 140, 205, 0.4),
    0 10px 22px rgba(0, 45, 85, 0.22);
}

.button.is-ww-primary:active {
  transform: translateY(0);
  box-shadow:
    0 10px 24px rgba(0, 140, 205, 0.28),
    0 6px 14px rgba(0, 45, 85, 0.18);
}

/* Optional: besser sichtbarer Fokus (Keyboard) */
.button.is-ww-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(230, 0, 5, 0.22),
    0 16px 40px rgba(0, 140, 205, 0.36);
}

/* Responsive */
@media (max-width: 768px) {
  .landing-title {
    font-size: 2.6rem !important;
  }
  .landing-subtitle {
    font-size: 1.05rem !important;
  }
  .landing-section-title {
    font-size: 2rem;
  }
  .landing-logo-figure {
    width: 150px;
    height: 150px;
  }
  .landing-logo {
    width: 110px;
    max-height: 110px;
  }
  .landing-cta-box {
    padding: 2.5rem 1.5rem;
  }
  .landing-stat-number {
    font-size: 2.4rem;
  }
}

/* Fix: Bulma columns nutzen negative margins, die bei Cards (je nach Theme-Padding) überlaufen können */
.filter-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Flex/Width-Überläufe verhindern */
.filter-grid > .column {
  min-width: 0;
}

/* Inputs/Selects strikt in der Spalte halten */
.filter-grid .input,
.filter-grid .select,
.filter-grid .select select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.filter-grid .select select {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
 Login Styling
 ========================================================================== */

.auth-page {
  flex: 1 0 auto; /* falls login ohne <main> gerendert wird */
}

.auth-card {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 45, 85, 0.1);
}

.auth-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* ==========================================================================
 KPI Cards
 ========================================================================== */

/* KPI Cards: gleiche Höhe in einer Zeile */
.kpi-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kpi-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikal zentrieren */
}

/* Sofort-Tooltip (ohne Verzögerung) */
.has-tooltip {
  position: relative;
  cursor: help;
}

/* Tooltip-Box */
.has-tooltip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #363636;
  color: #fff;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: normal; /* erlaubt Umbruch */
  max-width: 360px; /* Tooltip nicht zu breit */
  width: max-content;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: none; /* KEINE Verzögerung */
}

/* Pfeil */
.has-tooltip[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #363636 transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: none; /* KEINE Verzögerung */
}

/* Sofort einblenden */
.has-tooltip[data-tooltip]:hover::after,
.has-tooltip[data-tooltip]:hover::before,
.has-tooltip[data-tooltip]:focus::after,
.has-tooltip[data-tooltip]:focus::before {
  opacity: 1;
}

/* =========================================================================
 PointCard Submit Page
 ========================================================================== */

.pc-submit-container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pc-container-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pc-truncate {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-truncate-fluid {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-stat-mobile-row .level-left,
.pc-stat-mobile-row .level-left .level-item {
  min-width: 0;
}

/* Bulma .level-left / .level-item are non-shrinking by default -> allow truncation */
.pc-stat-mobile-row .level-left {
  flex: 1 1 auto;
  overflow: hidden;
}

.pc-stat-mobile-row .level-left .level-item {
  flex: 1 1 auto;
  flex-shrink: 1;
  justify-content: flex-start;
}

.pc-stat-mobile-row .level-right {
  flex-shrink: 0;
}

/* Mobile statistics list (admin/statistics.html) */
.pc-stat-mobile-item {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.pc-stat-mobile-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.pc-stat-mobile-name {
  font-weight: 600;
  text-align: left;
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-stat-mobile-total {
  font-size: 0.75rem;
  color: var(--bulma-text-weak);
  text-align: left;
  white-space: nowrap;
}

.pc-stat-mobile-action {
  flex: 0 0 auto;
  align-self: flex-end;
}

.pc-submit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pc-submit-header__right {
  display: flex;
  align-items: center;
}

.pc-divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pc-submit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pc-submit-footer__hint {
  margin: 0;
}

.pc-submit-footer__actions {
  margin-bottom: 0;
}

/* ==========================================================================
Cookie-Banner
========================================================================== */
/* Cookie-Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  color: #363636;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: none;
  /* wird per JS aktiviert */
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#cookie-banner .content {
  flex-grow: 1;
}

#cookie-accept-btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    align-items: flex-start;
  }

  #cookie-accept-btn {
    align-self: center;
  }
}

/* ==========================================================================
Navbar
========================================================================== */
.navbar.is-fresh {
  position: relative;
  min-height: 3.8rem;
  transition: all 0.3s;
  z-index: 29;
}

.navbar.is-fresh .container {
  min-height: 4rem;
}

.navbar.is-fresh.no-shadow {
  box-shadow: none !important;
}

.navbar.is-fresh .navbar-burger {
  width: 4rem;
  height: 4rem;
}

.navbar.is-fresh .navbar-brand {
  min-height: 4rem;
}

.navbar.is-fresh .navbar-brand img {
  max-height: 56px !important;
  height: 56px;
}

.navbar.is-fresh .navbar-brand:hover .navbar-item {
  background: transparent !important;
}

.navbar.is-fresh .navbar-end {
  -ms-flex-align: center;
  align-items: center;
}

.navbar.is-fresh .navbar-item {
  color: #999;
}

.navbar.is-fresh .navbar-item.is-secondary:hover {
  /*changed - DIS*/
  color: var(--digiprot-green) !important;
}

.navbar.is-fresh .navbar-item.has-dropdown {
  padding: 10px 0;
}

.navbar.is-fresh .navbar-item.has-dropdown .navbar-link {
  color: #999;
}

.navbar.is-fresh .navbar-item.has-dropdown .navbar-link:after {
  top: 55%;
  height: 0.5em;
  width: 0.5em;
  border-width: 2px;
  border-color: #999;
}

.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown {
  top: 3.4rem;
  min-width: 220px;
  margin-top: 4px;
  border-top-color: var(--digiprot-green);
}

.navbar.is-fresh .navbar-item.has-dropdown .navbar-dropdown .navbar-item {
  padding: 10px 20px;
}

.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link {
  color: var(--digiprot-green);
}

.navbar.is-fresh .navbar-item.has-dropdown:hover .navbar-link:after {
  border-color: var(--digiprot-green);
}

.navbar.is-fresh .navbar-item .signup {
  display: block;
  line-height: 0;
  font-size: 0.9rem !important;
}

.navbar.is-fresh.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 4rem !important;
  background: #fff;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
}

.navbar.is-fresh.is-fixed a {
  color: #444f60;
}

.navbar.is-fresh.is-fixed a:hover {
  color: #4fc1ea;
}

#navbar-clone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%);
  z-index: 100;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
}

#navbar-clone.is-active {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* ==========================================================================
  Responsive Styles
  ========================================================================== */
@media (max-width: 767px) {
  .landing-caption {
    text-align: center;
  }

  .navbar-menu .is-static {
    position: absolute;
    width: 100%;
  }

  .navbar-menu .is-fixed {
    position: fixed;
    width: 100%;
  }

  .navbar-menu .navbar-item {
    text-align: center !important;
  }

  .navbar-menu .navbar-item .signup-button {
    width: 100% !important;
  }

  .navbar-menu .navbar-link {
    padding: 10px 20px !important;
  }

  .title.section-title {
    font-size: 2rem !important;
  }

  .level-left.level-social {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }

  .pushed-image {
    margin-top: 0 !important;
  }

  .testimonial {
    margin: 0 auto;
  }

  .testimonial blockquote {
    font-size: 1rem;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .landing-caption {
    text-align: center;
  }

  .landing-caption .subtitle {
    max-width: 440px;
    margin: 0 auto;
    margin-bottom: 20px;
  }

  form {
    padding: 0 40px;
  }

  .hero-body {
    padding-bottom: 0;
  }

  .hero-body img {
    display: block;
    margin: 0 auto;
    max-height: 450px !important;
    max-width: 450px !important;
  }

  .navbar-menu .is-static {
    position: absolute;
    width: 100%;
  }

  .navbar-menu .is-fixed {
    position: fixed;
    width: 100%;
  }

  .navbar-menu .navbar-item {
    text-align: center !important;
  }

  .navbar-menu .navbar-item .signup-button {
    width: 100% !important;
  }

  .navbar-menu .navbar-link {
    padding: 10px 20px !important;
  }

  .pushed-image {
    margin-top: 0 !important;
  }

  .testimonial {
    margin: 0 auto;
  }

  .is-centered-tablet-portrait {
    text-align: center !important;
  }

  .is-centered-tablet-portrait .divider {
    margin: 0 auto !important;
  }

  .footer-logo,
  .footer-column {
    text-align: center;
  }

  .level.is-mobile {
    -ms-flex-pack: center !important;
    justify-content: center !important;
  }

  .level.is-mobile .level-item {
    margin: 0 0.75rem !important;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .navbar-menu .navbar-end a {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .navbar-menu .navbar-end .navbar-link {
    padding-right: 0 !important;
  }

  .navbar-menu .navbar-end .button {
    min-width: 180px;
  }

  .navbar-item.is-hidden-mobile {
    display: none !important;
  }

  .navbar-item.is-hidden-desktop.is-hidden-tablet {
    display: -ms-flexbox !important;
    display: flex !important;
  }

  .pushed-image {
    margin-top: 0 !important;
  }
}

section:focus {
  outline: none !important;
}

button:focus,
button:active {
  outline: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 99;
}

#status {
  width: 200px;
  height: 200px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-image: url(../images/loaders/rings.svg);
  background-size: 80px 80px;
  background-repeat: no-repeat;
  background-position: center;
  margin: -100px 0 0 -100px;
}

#backtotop {
  position: fixed;
  right: 0;
  bottom: 25px;
  margin: 0 25px 0 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.7);
  transition: all 0.5s;
}

#backtotop.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#backtotop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: #66676b;
  color: #fff;
  border: none;
  border-radius: 50%;
  text-decoration: none;
  font-size: 26px;
  transition: all 0.3s;
}

#backtotop.visible a:hover {
  background: var(--digiprot-green);
  opacity: 0.9;
}

#backtotop i {
  pointer-events: none;
  font-size: 26px;
  line-height: 1;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.4;
  cursor: default !important;
}

.is-hidden {
  display: none !important;
}

.stuck {
  position: fixed !important;
  top: 0 !important;
  z-index: 2 !important;
}

.light-text {
  color: #fff !important;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-60 {
  margin-bottom: 60px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-50 {
  margin-top: 50px;
}

.mt-60 {
  margin-top: 60px;
}

.ml-30 {
  margin-left: 30px;
}

.huge-pb {
  padding-bottom: 100px;
}

.pb-20 {
  padding-bottom: 20px !important;
}

.pb-40 {
  padding-bottom: 40px !important;
}

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #cecece;
}

::-moz-placeholder {
  /* Firefox 19+ */
  color: #cecece;
}

:-ms-input-placeholder {
  /* IE 10+ */
  color: #cecece;
}

:-moz-placeholder {
  /* Firefox 18- */
  color: #cecece;
}

@media screen and (min-width: 1024px) {
  .pc-actions {
    white-space: nowrap;
  }

  .pc-actions .buttons {
    flex-wrap: nowrap;
  }
}

.pc-admin-assign-container {
  max-width: 1000px;
}

.pc-admin-assign-users {
  max-height: 360px;
  overflow: auto;
}
/* ----------------------------
   Admin: Statistics sortable/sticky table
---------------------------- */

.pc-sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.pc-sortable-th .pc-sort-icon {
  margin-left: 0.35rem;
  opacity: 0.65;
}

.pc-sortable-th.is-active .pc-sort-icon {
  opacity: 1;
}

/* Admin: Statistics column toggle buttons */
.pc-stats-col-box .button {
  background: var(--ww-blue);
  border-color: var(--ww-blue);
  color: #fff;
}

.pc-stats-col-box .button.is-primary,
.pc-stats-col-box .button.pc-stats-action {
  background: var(--ww-blue);
  border-color: var(--ww-blue);
  color: #fff;
}

.pc-stats-col-box .button.is-light {
  background: #e0e0e0;
  border-color: #cfcfcf;
  color: #363636;
}

.pc-stats-col-box .button:hover {
  filter: brightness(0.95);
}

/* Keep first/last columns visible while horizontal scrolling */
.pc-sortable-table .pc-sticky-left {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 6px 0 8px -8px rgba(0, 0, 0, 0.25);
}

.pc-sortable-table .pc-sticky-right {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  min-width: 170px;
  box-shadow: -6px 0 8px -8px rgba(0, 0, 0, 0.25);
}

.pc-sortable-table .pc-sticky-total {
  position: sticky;
  right: 170px; /* keep space for sticky actions column */
  z-index: 2;
  background: #fff;
  min-width: 110px;
  box-shadow: -6px 0 8px -8px rgba(0, 0, 0, 0.12);
}

/* Header needs higher z-index + matching background */
.pc-sortable-table thead .pc-sticky-left,
.pc-sortable-table thead .pc-sticky-right,
.pc-sortable-table thead .pc-sticky-total {
  z-index: 3;
  background: hsl(0, 0%, 96%);
}

/* ==========================================================================
  404 Error Page
  ========================================================================== */

.error-404-box {
  border: 1px solid hsl(0, 0%, 92%);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  position: relative;
  overflow: hidden;
}

/* dezenter Akzentstreifen im WW-Stil */
.error-404-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--ww-blue, #37ebcc);
  opacity: 0.9;
}

.error-404-code {
  letter-spacing: 2px;
}

/* Optional: Buttons auf Mobile volle Breite */
@media screen and (max-width: 768px) {
  .error-404-box .buttons .button {
    width: 100%;
    justify-content: center;
  }
}
