:root {
  --bg: #f5f5f7;
  --fg: #222;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --card-bg: #fff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.04);

  /* eigene Akzentfarbe für Urban */
  --accent-urban: #7c3aed; /* leicht violett, urbaner Look */
}

/* Reset & Base -------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
}

h1,
h2,
h3 {
  margin-top: 0;
}


.hero--klaerwerk {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

/* Fieldsets: Abstand rausnehmen */
.book-now-options {
    border:none
}


/* Layout -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
  font-size: 1.1rem;
}

.main-nav a {
  text-decoration: none;
  margin-left: 1rem;
  color: #4b5563;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 3rem;
}

.section {
  margin: 2rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3,
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Cards & Buttons ----------------------------------------------- */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.card-image img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.price {
  font-weight: 600;
  margin-top: 0.5rem;
}

.button {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.button-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button:hover {
  background: #1d4ed8;
}

.button-outline:hover {
  background: var(--accent-soft);
}

/* Product Detail ------------------------------------------------ */

.product-detail-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr);
}

.product-image img {
  max-width: 100%;
  border-radius: var(--radius);
}

.product-description {
  margin-top: 1rem;
  line-height: 1.6;
}

.hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.search-form {
  margin: 1rem 0 2rem;
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* HERO-Bereich -------------------------------------------------- */

.hero-category--noimage {
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

/* Statischer Hero (.hero-category ohne .hero) ------------------- */

.hero-category:not(.hero) {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  min-height: min(70vh, 560px);
  border-radius: 0;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

/* Lichtflecken – nur statisch */
.hero-category:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.35), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.7;
}

/* Overlay links mit „alten“ Gradients – statischer Hero */
.hero-category:not(.hero) .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  max-width: 520px;
  padding: 3.5rem 3rem;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.70) 0%,
    rgba(15, 23, 42, 0.60) 15%,
    rgba(15, 23, 42, 0.40) 20%,
    rgba(15, 23, 42, 0.20) 30%,
    rgba(15, 23, 42, 0.00) 100%
  );
}

.hero-category:not(.hero) .hero-overlay > * {
  max-width: 520px;
}

/* Typo, gilt für beide Hero-Arten ------------------------------- */

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 1;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.65);
  display: inline-block;
  padding: 0.2rem;
  color: black;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 9px black !important;
}

/* === Hero-Subtitle prägnanter machen =========================== */

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.9),
    rgba(30, 64, 175, 0.35)
  );
  color: #f9fafb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.45);
}

/* kleiner & kompakter auf sehr kleinen Screens */
@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
  }
}

.category-intro {
  margin-top: 1.5rem;
}

/* Hero-Logo unten rechts (statischer Hero) */
.hero-category:not(.hero) .hero-logo {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 200px;
  height: 50px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.7);
  z-index: 2;
}

.hero-category:not(.hero) .hero-logo img {
  max-width: 80%;
  max-height: 70%;
  display: block;
}

/* Full-Width nur für den obersten Hero im ersten Container ------ */

/* Desktop: Hero bricht aus dem 1100px-Container aus (Basisregel) */
.page-main > .container:first-of-type > .hero-category {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* === Hero-Slider für Kategorie-Seiten (category.php) =========== */

.hero.hero-category {
  position: relative;
  margin-top: 0;
  margin-bottom: 2rem;
  min-height: min(70vh, 560px);
}

/* Slider-Container füllt den Hero */
.hero.hero-category .hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 100%;
  min-height: inherit;
}

/* Einzelne Slides */
.hero.hero-category .hero-slide {
  position: relative;
  display: none;
  height: 100%;
  min-height: inherit;
}

.hero.hero-category .hero-slide.is-active {
  display: block;
}

/* Hintergrundbild in der Slide */
.hero.hero-category .hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
}

/* Overlay-Content im Slider-Hero */
.hero.hero-category .hero-overlay {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  max-width: 900px;
  color: #fff;
}

/* eigentliche Overlay-Layer im Slide
   → unten ans Bild gesetzt */
.hero-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  min-height: 35%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 45%,
    rgba(0,0,0,0.0) 100%
  );
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
}

/* Typo-Feintuning im Slider-Hero */
.hero-title {
  margin: 0;
}

.hero-subtitle {
  margin: 0.25rem 0 0.5rem 0;
  opacity: 0.9;
}

.hero-product {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Logo im Slider-Hero */
.hero.hero-category .hero-logo {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.8),
    0 10px 24px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero.hero-category .hero-logo img {
  max-height: 56px;
  width: auto;
}

/* Responsive Hero / Slider -------------------------------------- */

@media (max-width: 768px) {
  /* Fullwidth wieder in Container einrasten (Basisregel) */
  .page-main > .container:first-of-type > .hero-category {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Statischer Hero kompakter */
  .hero-category:not(.hero) {
    min-height: 360px;
    margin: 0;
    border-radius: 0;
  }

  .hero-category:not(.hero) .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    max-width: 100%;
    padding: 2rem 1.5rem 2.5rem;
    justify-content: flex-end;
    background: linear-gradient(
      160deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.44) 55%,
      rgba(15, 23, 42, 0.0) 100%
    );
  }

  .hero-category:not(.hero) .hero-logo {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 200px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
      0 0 18px rgba(255, 255, 255, 0.9),
      0 14px 30px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    z-index: 2;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
  }

  /* Slider-Hero Höhe & Padding */
  .hero.hero-category {
    min-height: 360px;
  }

  .hero.hero-category .hero-slider {
    height: auto;
    min-height: inherit;
  }

  .hero-slide-overlay {
    padding: 1.25rem 1.25rem;
  }
}

@media (max-width: 640px) {
  /* Statischer Hero: Bild + Overlay-Block */
  .hero-category:not(.hero) {
    min-height: 360px;
  }

  .hero-category:not(.hero) .hero-logo {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    bottom: auto;
    width: 140px;
    height: 40px;
    border-radius: 10px;
  }

  .hero-category:not(.hero) .hero-logo img {
    max-width: 80%;
    max-height: 70%;
  }

  .hero-category:not(.hero) .hero-overlay {
    position: relative;
    inset: auto;
    padding: 5.5rem 1.5rem 2.5rem;
    margin-top: 0;
    max-width: 100%;
    justify-content: flex-end;
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.33) 0%,
      rgba(15, 23, 42, 0.22) 45%,
      rgba(15, 23, 42, 0.0) 100%
    );
  }

  .hero-category:not(.hero) .hero-overlay > * {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-overlay .button {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1.4rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
	
	.hero.hero-category .hero-logo {
		visibility: hidden;
		}
		
  .hero-category:not(.hero),
  .hero.hero-category {
    min-height: 280px;
  }

  .hero-category:not(.hero) .hero-overlay {
    padding: 5rem 1.1rem 2.4rem;
  }

  .hero-category:not(.hero) .hero-logo {
    width: 120px;
    height: 36px;
    top: 0.6rem;
    right: 0.6rem;
  }

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

  .hero-subtitle {
    /* bewusst leer – Größe oben geregelt */
  }
}

/* Optional: mehr Luft nach oben/unten für Hero-Text auf großen Screens */
@media (min-width: 900px) {
  .hero-category:not(.hero) .hero-overlay,
  .hero.hero-category .hero-overlay {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }
}

/* Direkt unter dem Header soll der Hero kleben ------------------ */
.page-main > .container:first-of-type {
  padding-top: 0;
}

/* Produktkarten ------------------------------------------------- */

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card-image {
  position: relative;
  max-height: 180px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #e0f2fe;
}

.product-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.product-card-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.product-card-text {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Artikel-Karten / Artikel-Bereich ------------------------------ */

.article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.article-card-title {
  margin: 0 0 0.4rem;
}

.article-card-text {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.section-intro {
  max-width: 40rem;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Artikel-Hauptbereich (Kategorie-Text) ------------------------- */

.article-main-layout {
  display: block;
}

.article-main-image {
  margin-bottom: 1.5rem;
}

.article-main-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.article-main-text {
  line-height: 1.7;
  font-size: 0.98rem;
  width: 100%;
}

.article-main-cta {
  margin-top: 1.5rem;
}

.article-main-cta .button {
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
}

/* Accordion-Liste für weitere Artikel --------------------------- */

.article-accordion-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-accordion {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.article-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-accordion-summary::-webkit-details-marker {
  display: none;
}

.article-accordion-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.article-accordion-arrow {
  font-size: 0.8rem;
  opacity: 0.7;
}

.article-accordion[open] .article-accordion-arrow {
  transform: rotate(180deg);
}

.article-accordion-content {
  padding: 0 1rem 1rem;
}

.article-accordion-image img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  object-fit: cover;
}

.article-accordion-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Buchungskalender / FullCalendar ------------------------------- */

.category-calendar h2 {
  margin-bottom: 0.5rem;
}

.category-calendar p {
  max-width: 40rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.calendar-date-picker {
  font-size: 0.9rem;
  color: #4b5563;
}

.calendar-date-picker input[type="date"] {
  margin-left: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.booking-calendar {
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  margin-top: 0.5rem;
}

.calendar-loading {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Fullscreen-Modal für Kalender --------------------------------- */

.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.calendar-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.calendar-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Der eigentliche Dialog */
.calendar-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(90%);
  max-height: 96vh;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow:
    0 22px 45px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  padding: 1.5rem 1.75rem;
  padding-bottom: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.97);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.calendar-modal.is-visible .calendar-modal-dialog {
  transform: translateY(0) scale(1);
}

/* Kopfbereich & Text etwas strukturieren */
.calendar-modal-dialog h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.calendar-modal-intro {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Toolbar und Kalenderbereich */
.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calendar-date-picker {
  font-size: 0.9rem;
  color: #4b5563;
}

.calendar-date-picker input[type="date"] {
  margin-left: 0.35rem;
}

/* Kalender selbst füllt den Rest der Box */
.booking-calendar {
  flex: 1;
  min-height: 420px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  overflow: hidden;
}

/* Ladeanzeige */
.calendar-loading {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

/* Close-Button oben rechts als Floating-Icon */
.calendar-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.calendar-modal-close:hover {
  background: rgba(15, 23, 42, 0.14);
  transform: scale(1.05);
}

.calendar-modal h2 {
  margin: 0 0 0.5rem;
}

.calendar-modal-intro {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* FullCalendar-Integrierung ------------------------------------- */

.fc {
  font-family: inherit;
  font-size: 0.85rem;
}

.fc-toolbar-title {
  font-size: 1rem;
}

/* Events im Monatskalender besser lesbar machen */
.fc .fc-daygrid-event {
  white-space: normal !important;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.fc .fc-daygrid-event .fc-event-main,
.fc .fc-daygrid-event .fc-event-title {
  white-space: normal !important;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
  margin: 1px 0;
}

.fc .fc-daygrid-day-events .fc-daygrid-event-harness {
  margin-bottom: 2px;
}

/* Event-Tooltip ------------------------------------------------- */

.fc-tooltip-event {
  position: absolute;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 260px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.fc-tooltip-event.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive ---------------------------------------------------- */

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .calendar-modal-dialog {
    padding: 0.75rem 0.75rem 1rem;
  }

  .booking-calendar {
    padding: 0.25rem;
    border-radius: 6px;
  }

  .calendar-modal-close {
    top: 0.6rem;
    right: 0.7rem;
  }
}

/* Book now - alte Grundstyles (weiterhin verwendet z.B. auf Übersichtsseiten) */

.book-now-box {
  border: 1px solid #ddd;
  padding: 15px;
  margin: 20px 0;
  background: #f9f9f9;
}

.book-now-button {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

.book-now-attributes ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.book-now-attributes li {
  margin-bottom: 4px;
}

.section-book-now .book-now-group {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #f9fafb;
}

.book-now-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-now-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.book-now-item:last-child {
  border-bottom: none;
}

.book-now-info {
  display: flex;
  flex-direction: column;
}

.book-now-value {
  font-weight: 500;
}

.book-now-price {
  font-size: 0.9rem;
  opacity: 0.8;
}

.book-now-action .button {
  white-space: nowrap;
}

.book-now-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 16px;
}

.book-now-form .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.book-now-form label {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.book-now-form input,
.book-now-form textarea {
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

.alert.alert-error {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 12px;
}

.book-now-group {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: #f9fafb;
}

.book-now-radio-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.book-now-radio-option input[type="radio"] {
  margin-right: 10px;
  margin-top: 4px;
}

.book-now-radio-text {
  line-height: 1.4;
}

.book-now-radio-text .book-now-price {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 4px;
}

.book-now-group-info h2 {
  margin-top: 0;
}

/* Inline-Grid für Teilnehmer & Boote */
.form-grid-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.form-grid-inline .form-field {
  flex: 1 1 180px;
  min-width: 160px;
}

@media (max-width: 480px) {
  .form-grid-inline {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Book now – Detailseite / Overrides für book_now.php */

.page-main {
  padding-bottom: 3rem;
}

/* Karten / Boxen */
.book-now-card,
.booking-confirmation-box {
  background: var(--card-bg, #ffffff);
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: var(--shadow-soft, 0 10px 25px rgba(0,0,0,0.04));
  padding: 1.75rem 1.75rem 2rem;
  margin-top: 1.5rem;
  color: var(--fg, #222);
}

/* Abschnitt-Gruppen */
.book-now-group {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border, #e5e7eb);
}

.book-now-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.book-now-group h2 {
  margin-top: 0;
  margin-bottom: .75rem;
}

/* Inline-Grid für Teilnehmer / Boote */
.form-grid-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-grid-inline .form-field {
  flex: 1 1 160px;
}

.form-field label {
  font-weight: 600;
  margin-bottom: .25rem;
  display: block;
  color: var(--fg, #222);
}

/* Radio-Optionen */
.book-now-radio-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #f5f5f7);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease;
}

.book-now-radio-option:hover {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.book-now-radio-option input[type="radio"] {
  margin-top: .25rem;
}

.book-now-radio-text {
  line-height: 1.4;
}

.book-now-radio-text .book-now-price {
  margin-top: .25rem;
  font-size: .85rem;
  opacity: .8;
}

/* Info-Gruppen (z.B. Leistungen) */
.book-now-group-info {
  background: var(--bg, #f5f5f7);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.book-now-group-info h2 {
  margin-bottom: .35rem;
}

.book-now-group-info ul {
  margin-top: .25rem;
}

/* Captcha-Box / Anti-Spam-Hinweis */
.form-field-captcha {
  margin-top: 0.75rem;
}

.captcha-box {
  margin-top: .25rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent, #2563eb);
  background: var(--accent-soft, rgba(37,99,235,0.08));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.captcha-question {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}

.captcha-input-wrap {
  flex: 0 0 80px;
}

.captcha-input-wrap input {
  width: 100%;
  text-align: center;
}

.captcha-hint {
  font-size: .8rem;
  opacity: .85;
}

/* Erfolgsmeldung */
.alert-success {
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  background: #ecfdf3;
  padding: .75rem 1rem;
  margin: 0.75rem 0 0.5rem;
  font-size: 0.95rem;
}

/* Buchungsbestätigung im Inhalt */
.booking-confirmation-box h2 {
  margin-top: 0;
}

.booking-confirmation-box h3 {
  margin-top: 1.25rem;
}

/* Footer-Block kleiner */
.booking-confirmation-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--fg, #222);
}

/* Kleine Anpassung für mobile */
@media (max-width: 640px) {
  .book-now-card,
  .booking-confirmation-box {
    padding: 1.25rem 1rem 1.5rem;
  }

  .form-grid-inline {
    flex-direction: column;
  }

  .captcha-box {
    align-items: flex-start;
  }
}

/* Book Now: Teilnehmer- & Boote-Selects (nur diese beiden) */
.book-now-form #products_quantity,
.book-now-form #boats_quantity,
.book-now-form #event_time {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border, #d1d5db);
  font-size: 0.95rem;
  line-height: 1.3;
  outline: none;
  background-color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b6472' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
}

.book-now-form #products_quantity:focus,
.book-now-form #boats_quantity:focus,
.book-now-form #event_time:focus {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.book-now-form #products_quantity:disabled,
.book-now-form #boats_quantity:disabled,
.book-now-form #event_time:disabled {
  cursor: not-allowed;
  background-color: #f3f4f6;
  color: #9ca3af;
}

.book-now-group.book-now-legal {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.legal-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.legal-boxes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .legal-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.legal-box {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(
    to bottom,
    rgba(37, 99, 235, 0.08),
    rgba(255, 255, 255, 0)
  );
}

.legal-box-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.legal-expand {
  border: none;
  border-radius: 10px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  transition: background 0.15s ease, transform 0.1s ease;
}

.legal-expand:hover {
  background: rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.legal-box-content {
  padding: 0.75rem 1rem;
  max-height: 100px;
  overflow-y: auto;
  font-size: 0.85rem;
}

.legal-box-content p {
  margin: 0 0 0.5rem 0;
}

.legal-checkbox {
  margin-top: 1.2rem;
}

.legal-checkbox label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.legal-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* Lightbox / Modal */

.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.legal-modal-overlay.is-visible {
  display: flex;
}

.legal-modal {
  background: #fff;
  max-width: 900px;
  width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
  padding: 1.5rem 1.75rem;
  position: relative;
}

.legal-modal h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.legal-modal-content {
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.9rem;
}

.legal-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------
   Grid für Unterkategorien / Category-Karten
   → horizontale Karten: Bild links, Text rechts
-------------------------------------------------- */

/* GRID: horizontale Karten */
.category-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

/* Kachel-Card – umschließendes Element */
.category-subcard {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  box-shadow: var(--shadow-soft, 0 10px 25px rgba(15, 23, 42, 0.08));
  border: 1px solid var(--border-subtle, #e5e7eb);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
  height: 100%;
}

/* Der Link bildet den flex-Container: Bild + Text nebeneinander */
.category-subcard-link {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Bildbereich links */
.category-subcard-image-wrap {
  position: relative;
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 180px;
  min-height: 180px;
  overflow: hidden;
  background: #e5e7eb;
}

.category-subcard-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Textbereich rechts */
.category-subcard-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem 1.35rem 1.1rem;
}

/* kleiner Kicker über dem Titel */
.hero-kicker-subcard {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.35rem;
}

/* Titel / Untertitel */
.category-subcard-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.category-card-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted-fg, #6b7280);
  margin: 0;
  line-height: 1.4;
}

/* Icon-Leiste / Termin-Info als Pill */
.category-meta,
.category-subcard-meta {
  font-size: 0.8rem;
  color: #4b5563;
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #f3f4f6;
}

.category-meta::before {
  content: "📅";
  font-size: 0.9rem;
}

/* Kleine Badge-Pills, optional */
.category-subcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  background: var(--accent-soft, rgba(37, 99, 235, 0.08));
  color: var(--accent, #2563eb);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Links in Karten: keine Unterstreichung, Farbe erben */
.category-subcard a,
.category-subcard-link,
.product-card a,
.article-card a,
.book-now-card a,
.booking-confirmation-box a {
  text-decoration: none;
  color: inherit;
}

/* Karten sollen klickbar wirken */
.category-subcard,
.product-card,
.article-card {
  cursor: pointer;
}

/* Hover-Effekt: Lift + Titel in Akzentfarbe */
.category-subcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: var(--accent, #2563eb);
}

.category-subcard:hover .category-subcard-title,
.category-subcard-link:hover .category-subcard-title,
.product-card:hover .product-card-title,
.article-card:hover .article-card-title {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Grundstil für Titel in Karten */
.category-subcard-title,
.category-card-title,
.product-card-title,
.article-card-title {
  color: #1f2937; /* dunkles Grau */
  transition: color 0.18s ease, transform 0.18s ease;
}

/* Titel/Untertitel auf Übersichts-Kacheln */
.category-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg, #111827);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.product-card-text,
.article-card-text {
  color: #6b7280;
}

/* Urban Adventures – eigenes Feeling */
.category-subcard--urban {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  background: radial-gradient(circle at top left,
              rgba(124, 58, 237, 0.06),
              #ffffff 55%);
}

.category-subcard--urban .hero-kicker-subcard {
  color: #4c1d95;
  letter-spacing: 0.16em;
}

.category-subcard--urban .category-subcard-title {
  color: #111827;
}

.category-subcard--urban:hover .category-subcard-title,
.category-subcard--urban .category-subcard-link:hover .category-subcard-title {
  color: var(--accent-urban);
  transform: translateY(-1px);
}

.category-subcard--urban .category-subcard-badge {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

/* Tablet & kleiner: Spalten schmaler */
@media (max-width: 900px) {
  .category-subgrid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

/* Handy: eine Spalte, Bild oben, Text unten */
@media (max-width: 640px) {
  .category-subgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .category-subcard-link {
    flex-direction: column;
  }

  .category-subcard-image-wrap {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 100%;
    min-height: 0;
    padding-top: 56.25%; /* 16:9 */
  }

  .category-subcard-image-wrap img {
    position: absolute;
    inset: 0;
  }

  .category-subcard-body {
    padding: 1rem 1.1rem 1.1rem;
  }
}

/* Feld-Error-Zustand – an .form-field gehängt */
.form-field-error input,
.form-field-error select,
.form-field-error textarea {
  border-color: #fca5a5;           /* wie .alert.alert-error */
  background-color: #fee2e2;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

/* Optional: Inline-Fehlermeldung */
.form-error-inline {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* === Fix: Kalender-Lightbox soll bei Bedarf vertikal scrollen === */

.calendar-modal-dialog {
  max-height: 96vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Kalender-Innenbereich in der Modal-Box scrollfähig machen */
.calendar-modal-dialog .booking-calendar {
  flex: 0 0 auto;
  max-height: 70vh;
  overflow-y: auto;
}

/* FullCalendar-Scroller sauber begrenzen */
.calendar-modal-dialog .fc-view-harness,
.calendar-modal-dialog .fc-scroller {
  max-height: 100%;
  overflow-y: auto;
}

  .hero.hero-category-map {
    min-height: min(80vh, 30vh);
  }

/* === Mobile: Hero-/Header-Bild höher auf Handhelds (z.B. cId=4253) === */

/* Smartphones / Tablets hochkant */
@media (max-width: 768px) {
  .hero.hero-category {
    min-height: min(75vh, 520px);
  }
  
  .hero.hero-category-map {
    min-height: min(80vh, 30vh);
  }

  .hero.hero-category .hero-slider,
  .hero.hero-category .hero-slide {
    min-height: inherit;
  }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
	
/* container für mobilgeräte kleiner machen */
	
.container {
  padding: 0.5rem;
}

  .hero.hero-category {
    min-height: min(80vh, 560px);
  }
  
  .hero.hero-category-map {
    min-height: min(80vh, 30vh);
  }

  .hero.hero-category .hero-slider,
  .hero.hero-category .hero-slide {
    min-height: inherit;
  }
}

@keyframes backgroundZoom {
  0% {
    background-size: 105%;
  }
  100% {
    background-size: 100%;
  }
}

/* ---------------------------------------------------------
   Events / "Ich plane für …" – Tabs & Layout (events.php)
--------------------------------------------------------- */

/* EVENTS-SEITE „ICH PLANE FÜR …“ */

.events-page {
  padding: 2rem 0 3rem;
}

.events-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.events-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.events-hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin: 0 auto 1.5rem;
  max-width: 40rem;
}

/* Tabs-Leiste im Hero – „Segmented Control“-Kapsel */

.events-hero-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 20px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  gap: 0.25rem;
}

.events-hero-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease,
    color 0.16s ease;
}

.events-hero-tab:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Aktives Segment */
.events-hero-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Tastatur-Fokus */
.events-hero-tab:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(37, 99, 235, 0.7);
}

/* Panels */

.events-sections {
  margin-top: 2rem;
}

.segment-panel {
  display: none;
}

.segment-panel.is-active {
  display: block;
}

.events-teaser {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* HERO FULLWIDTH – kompatibel für alte & neue Layouts */

.page-main > .container:first-of-type > .hero-category,
main.container > .hero.hero-category {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

@media (max-width: 768px) {
  .page-main > .container:first-of-type > .hero-category,
  main.container > .hero.hero-category {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}