/*
Theme Name: Praxis Dr. Bösel
Author: Henning Wechsler
Author URI: http://henningwechsler.com
Description: Custom Theme
Version: 1.0
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-red-darker: #6e112f;
  --primary-red: #8b1538;
  --warm-red: #9c2d43;
  --accent-orange: #e17d3a;
  --accent-blue: #5eaec9;
  --gold: #c9a961;
  --rich-gold: #b8956a;
  --forest-green: #6aac56;
  --cream: #f7f4f0;
  --cream-darker: #ede7df;
  --warm-white: #f3f1eb;
  --warmer-white: #eeece5;
  --text-dark: #2c2c2c;
  --text-medium: #5a5a5a;
  --text-light: #8f8f8f;
  --text-white: #ffffff;
  --text-black: #000000;
  
  /* Spacing */
  --spacing-xs: clamp(4.8px, 1.6vw, 8px);
  --spacing-sm: clamp(8px, 3.2vw, 16.8px);
  --spacing-md: clamp(12.8px, 4.8vw, 22.4px);
  --spacing-lg: clamp(19.2px, 8vw, 38.4px);
  --spacing-xl: clamp(28.8px, 12.8vw, 64px);
  --spacing-2xl: clamp(48px, 19.2vw, 96px);
  --spacing-3xl: clamp(60px, 25.6vw, 120px);
  --spacing-4xl: clamp(72px, 32vw, 144px);
  
  /* Container & Layout */
  --container-max-width: min(1400px, 95vw);
  --container-padding: clamp(20px, 4vw, 50px);
  --border-radius-sm: clamp(8px, 1.2vw, 15px);
  --border-radius-md: clamp(15px, 2.4vw, 30px);
  --border-radius-lg: clamp(20px, 3.2vw, 40px);
  --border-radius-xl: clamp(30px, 4.8vw, 60px);
  --border-radius-xxl: clamp(60px, 9.6vw, 120px);
  
  /* Typography */
  --fs-xxl: clamp(38.4px, 4.8vw, 62.4px);
  --fs-xl: clamp(33.6px, 4vw, 46.4px);
  --fs-l: clamp(16.8px, 2vw, 25.6px);
  --fs-l-small: clamp(16px, 1.76vw, 24px);
  --fs-base: clamp(12px, 1.6vw, 14.4px);
  --fs-small: clamp(11.2px, 1.56vw, 13.6px);
  
  /* Shadows */
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.15);
  --shadow-button: 0 15px 40px rgba(139, 21, 56, 0.3);
  --shadow-button-hover: 0 20px 50px rgba(139, 21, 56, 0.4);
}

body {
  font-family: "Noto Sans", sans-serif;
  color: var(--text-dark);
  background: var(--warm-white);
  overflow-x: hidden;
}
.serif,
.cards-grid .card h3,
.heading_list h3 {
  font-family: "Noto Serif Display", serif;
}
.title-xxl {
  font-size: var(--fs-xxl);
  line-height: 1.1;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  max-width: 50ch;
}
.title-xl {
  font-size: var(--fs-xl);
  line-height: 1.2;
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  max-width: 50ch;
}
.title-l,
.title-l > p,
.cards-grid .card h3,
.heading_list h3 {
  font-size: var(--fs-l);
  line-height: 1.3;
  color: var(--text-medium);
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  max-width: 50ch;
}
*+.title-l,
.cards-grid ul+h3 {
  margin-top: var(--spacing-lg);
}
.title-base,
.member-info h4,
.mini-cards .card h4 {
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}
.section--red .title-xl {
  color: var(--gold);
}
.section--red .title-l {
  color: var(--cream);
}
p {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}
.uppercase {
  text-transform: uppercase;
  font-size: var(--fs-small);
  letter-spacing: 2.5px;
  line-height: 1em;
  font-weight: 500;
  text-decoration: none;
}
.eyebrow {
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
}

/* Header */
.header {
  background: rgba(254, 252, 248, 0.6);
  backdrop-filter: blur(7px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 40px rgba(139, 21, 56, 0.08);
}
@media screen and (max-width: 768px) {
  .header {
    background: rgba(254, 252, 248, 0.72);
  }
}
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
}
.scrolled .header {
  background: rgba(254, 252, 248, 0.65);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(139, 21, 56, 0.15);
  transition: box-shadow 0.3s ease;
}
.scrolled .header-content {
  padding: var(--spacing-xs) var(--spacing-lg);
  transition: padding 0.3s ease;
}
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.logo img {
  width: 70px;
  height: auto;
  display: block;
  transition: width 0.3s ease;
}
.scrolled .logo img {
  width: 40px;
  transition: width 0.3s ease;
}
.logo-text {
  font-size: var(--fs-l);
  color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s;
  white-space: nowrap;
  }
  .logo-text.serif,
  .logo-text.serif h1 {
    font-size: var(--fs-l);
    color: var(--primary-red);
    font-family: "Noto Serif Display", serif;
    font-weight: 400;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
  }
  .logo:hover {
    transform: translateY(-3px);
  }
  .logo:hover .logo-text,
  .logo:hover .logo-text.serif,
  .logo:hover .logo-text.serif h1 {
    color: var(--gold);
  }

#menu-hauptmenue {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}
#menu-hauptmenue > li {
  flex: 1;
  display: flex;
  align-items: stretch;
  margin: 0 5px;
  padding: 0;
}
#menu-hauptmenue > li a {
  white-space: nowrap;
}
#menu-hauptmenue > li.btn {
  flex: none;
  margin-left: var(--spacing-lg);
}
/* Submenu styling */
.nav li {
  position: relative;
  list-style: none;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.nav ul.sub-menu {
  position: absolute;
  top: 105%;
  left: 0;
  background: white;
  min-width: 250px;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1001;
  margin-top: 0;
  
  /* Animation properties */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transition-delay: 0s; /* No delay when hiding */
  
  /* Keep flexbox layout but make it invisible by default */
  display: flex;
}

.nav ul.sub-menu li {
  width: 100%;
}

.nav ul.sub-menu a {
  padding: 15px 20px;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: var(--fs-base);
  transition: background-color 0.2s ease;
}

.nav ul.sub-menu a:hover {
  background-color: var(--cream);
}

/* Show submenu on hover with smooth animation and delay */
#menu-hauptmenue > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
border-radius: var(--border-radius-xl);

}
.nav li:hover > a {
background: linear-gradient(135deg, var(--gold), var(--rich-gold));
color: white;
box-shadow: 0 15px 40px rgba(185, 149, 106, 0.3);
}
.nav li:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0.4s; /* 150ms delay before showing */
}
.nav a {
  text-decoration: none;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: var(--fs-base);
  transition: all 0.3s ease;
  position: relative;
}
.nav #menu-hauptmenue > .current-menu-item > a,
.nav a:hover {
  color: var(--primary-red);
  text-shadow: 0.5px 0 0 var(--primary-red);
}

/* Prevent submenu items from turning red when they have current-menu-item class */
.nav ul.sub-menu .current-menu-item > a {
  color: var(--text-medium);
  text-shadow: none;
}

.nav ul.sub-menu .current-menu-item > a:hover {
  color: var(--primary-red);
  text-shadow: 0.5px 0 0 var(--primary-red);
}
.nav li > a:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 60px; /* Extended to bridge gap to submenu at 150% */
  width: 100%;
  display: block;
}


/* ==========================================================================
   MOBILE MENU STYLES
   ========================================================================== */

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1002;
  transition: all 0.3s ease;
}

.mobile-menu-button:hover {
  background-color: rgba(139, 21, 56, 0.1);
  border-radius: 8px;
}

/* Burger Lines */
.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-red);
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Burger Animation to X */
.mobile-menu-button.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-button.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background: rgba(254, 252, 248, 1);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 1001;
  box-shadow: -10px 0 30px rgba(139, 21, 56, 0.15);
  padding-top: 30px; /* Account for fixed header */
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

/* Mobile Navigation */
.nav-mobile {
  padding: var(--spacing-2xl) var(--spacing-lg);
  height: 100%;
}

.nav-mobile .mobile-menu-list,
.nav-mobile #menu-hauptmenue-1 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

/* Override desktop flex layout for mobile */
.nav-mobile #menu-hauptmenue-1 > li {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-mobile .mobile-menu-list > li {
  border-bottom: 1px solid rgba(139, 21, 56, 0.1);
}

.nav-mobile .mobile-menu-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Mobile Menu Links */
.nav-mobile a {
  display: block;
  padding: 8px 18px;
  color: var(--text-medium);
  text-decoration: none;
  font-size: var(--fs-base);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.3s ease;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-mobile a:hover,
.nav-mobile .current-menu-item > a {
  color: var(--primary-red);
  font-weight: 600;
  padding-left: var(--spacing-sm);
}

/* Mobile Submenu Styling */
.nav-mobile ul.sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important; /* Force visibility - override desktop hover behavior */
  position: static !important; /* Override desktop absolute positioning */
  top: auto !important;
  left: auto !important;
  width: auto !important;
  min-width: auto !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  z-index: auto !important;
  background: transparent !important;
  list-style: none;
  margin: var(--spacing-sm) 0 0 var(--spacing-md);
  padding: 0;
  border-bottom: none !important;
  border-left: 2px solid var(--gold);
  padding-left: 0; /* Indent the entire submenu block */
}

.nav-mobile .sub-menu li {
  display: block; /* Stack submenu items vertically */
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
  width: 100%;
}

.nav-mobile ul.sub-menu a {
  display: block;
  padding: 8px 18px 8px;
  font-weight: 500;
    font-size: var(--fs-base);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-mobile .sub-menu li:last-child a {
  border-bottom: none;
}

.nav-mobile .sub-menu a:hover {
  color: var(--primary-red);
  font-weight: 400;
  padding-left: calc(var(--spacing-md) + var(--spacing-xs));
}

/* Mobile Menu Button Items (CTA buttons) */
.nav-mobile #menu-hauptmenue-1 li.btn {
  margin-top: var(--spacing-md);
}

.nav-mobile .btn a {
  background: linear-gradient(135deg, var(--primary-red), var(--warm-red));
  color: white;
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-xl);
  font-weight: 600;
  box-shadow: var(--shadow-button);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-mobile .btn--secondary a {
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
  box-shadow: 0 15px 40px rgba(185, 149, 106, 0.3);
}

.nav-mobile .btn a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  padding-left: var(--spacing-lg);
}

.nav-mobile .btn--secondary a:hover {
  box-shadow: 0 20px 50px rgba(185, 149, 106, 0.4);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.section {
  padding: var(--spacing-2xl) var(--container-padding);
  position: relative;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}
.section.member::before {
  /* thin border at the bottom */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container-max-width);
  height: 1px;
  background: rgba(201, 169, 97, 0.5);
  z-index: 3;
}
.section.member.section--first{
  padding-bottom: calc(var(--spacing-3xl) / 2);
}
.section.member.section--middle {
  padding-top: calc(var(--spacing-3xl) / 2);
  padding-bottom: calc(var(--spacing-3xl) / 2);
}
.section.member.section--last {
  padding-top: calc(var(--spacing-3xl) / 2);
}
.section > .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--spacing-lg);
}
/* < 768px */
@media screen and (max-width: 768px) {
  .section > .container {
    padding: 0 var(--spacing-sm);
  }
  
}
.section--red {
  background-color: var(--primary-red);
  color: var(--cream);
}
.section--red::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -20%;
  width: 100%;
  height: 120%;
  background: linear-gradient(60deg, var(--primary-red), var(--warm-red));
  border-radius: 200px;
  transform: rotate(-1.5deg);
  z-index: 1;
}
.section--blue {
  background-color: var(--accent-blue);
  color: var(--text-white);
}
.section--blue::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -20%;
  width: 100%;
  height: 120%;
  background: linear-gradient(60deg, var(--accent-blue), #447f93);
  border-radius: 200px;
  transform: rotate(1.5deg);
  z-index: 1;
}


.section--cream {
}
.section--cream::after {
  content: "";
  position: absolute;
  top: 5%;
  left: 0%;
  width: 80%;
  height: 110%;
  background: linear-gradient(25deg, var(--cream), var(--warmer-white));
  border-radius: var(--border-radius-xxl);
  transform: rotate(5deg);
  z-index: 1;
}
.section--cream.bg-variant::after {
  top: 5%;
  left: 30%;
  background: linear-gradient(-25deg, var(--cream), var(--warmer-white));
  transform: rotate(-5deg);
}

.section--image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section--centered {
  text-align: center;
}
.section--centered .title-xl,
.section--centered .title-l {
  margin-left: auto;
  margin-right: auto;
}
.section header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}
.section header h2,
.section header p {
  margin-left: auto;
  margin-right: auto;
}

/* Grid Systems */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-xl) var(--spacing-lg);
  align-items: stretch;
}
.two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}
.member .two-cols {
  /* vertical gap should be --spacing-3xl */
  gap: var(--spacing-3xl) var(--spacing-lg);
}
.two-thirds--left {
  grid-template-columns: 2fr 1fr;
}
/* Responsive für modulare Klassen */
@media screen and (max-width: 1024px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  /* Keep tab headers horizontal on all screen sizes */
  .tab-headers.grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--spacing-xs);
  }
    .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-xl) var(--spacing-lg);
    align-items: stretch;
  }
  .two-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}
@media screen and (max-width: 768px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
  }
  .two-cols,
  .member .two-cols {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Hero */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--gold);
}
.page-startseite .hero {
  background: var(--primary-red);
}
.page-online-rezeption .hero {
  background: var(--accent-blue);
  align-items: flex-start;
  padding-top: var(--spacing-3xl);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (min-width: 768px) {
  .page-startseite .hero {
    height: max(90vh, 600px); /* Ensure minimum height for button visibility */
  }
  .page-praxis-team .hero,
  .page-leistungen .hero {
    height: max(67vw, 600px); /* Ensure minimum height for button visibility */
    max-height: 90vh;
  }
  .page-online-rezeption .hero {
    min-height: max(67vw, 600px); /* Ensure minimum height for button visibility */
    height: auto;
  }
}

.page-startseite .hero::before,
.page-online-rezeption .hero::before {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(254, 252, 248, 0.2) 0%, rgba(255, 255, 255, 0.75) 40%);
  border-radius: 200px;
  transform: rotate(-2deg); /* Changed from -15deg to 15deg for correct visual angle */
  z-index: 1;
  backdrop-filter: blur(3px);
}
.page-startseite .hero::before {
  top: -18%;
  left: -27%; /* Changed from right: -30% to left: -30% */
  width: 80%;
  height: 100%;
}
@media screen and (max-width: 768px) {
  .page-startseite .hero::before {
    top: -5%;
    left: -34%;
    width: 100%;
    height: 100%;
    border-radius: 80px;
  transform: rotate(0deg); /* Changed from -15deg to 15deg for correct visual angle */
  background: linear-gradient(180deg, rgba(254, 252, 248, 0.2) 0%, rgba(255, 255, 255, 0.85) 40%);
  }
  .hero img {
    object-fit: cover;
    object-position: 65% center;
  }
  .page-startseite .hero.section img {
    top: 98px;
    transform: translate(-50%, 0);
  }
  .page-praxis-team .hero.section,
  .page-leistungen .hero.section {
    padding: 0;
  }
  .page-praxis-team .hero.section img,
  .page-leistungen .hero.section img {
    object-position: 50% center;
    position: relative;
    top: 0;
    transform: translate(-50%, 0);
    height: auto;
  }
  .hero-content .eyebrow {
    background-color: #fff;
    padding: 4px;
    display: inline-block;
  }
  .hero-content p {
    max-width: 88%;
  }
}
.page-online-rezeption .hero::before {
  top: -18%;
  left: -27%; /* Changed from left: -30% to right: -30% */
  width: 80%;
  height: 50%;
  border-radius: 90px;
}
.hero-container {
 width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-online-rezeption .hero-container {
  height: 100%;
  width: 100%;
  max-width: 1400px;
}
.hero-content {
  max-width: 45%;
  padding-left: var(--spacing-lg);
}
@media screen and (min-width: 1280px) {
  .hero-content {
    padding-left: calc( 20vw - 140px);
  }
}
@media screen and (max-width: 768px) {
  .hero.section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  .page-startseite .hero.section {
    min-height: 90dvh;
  }
  main.page-praxis-team,
  main.page-leistungen {
    padding-top: 100px;
  }
  .hero-content {
    max-width: 70%;
    padding-left: 0;
  }
}
.page-online-rezeption .hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--spacing-lg);
  max-width: 1400px;
  height: 90%;
  justify-content: space-between;
}

.hero .eyebrow {
  color: var(--gold);
}
.hero .title-xxl {
  color: var(--primary-red);
}
.section .description {
  margin-bottom: var(--spacing-sm);
}

.cta-section {
  padding: 150px 0;
  display: flex;
  gap: 30px;
  align-items: center;
  /* fixed background for this section */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
  url('img/empfang.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* Mobile fix for CTA section background */
@media screen and (max-width: 768px) {
  .cta-section {
    background-attachment: scroll; /* Remove fixed for mobile compatibility */
    background-size: cover;
    background-position: center center;
    padding: 80px 0; /* Reduce padding on mobile */
  }
}

.cta-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--warm-red));
  color: white;
  padding: 22px 45px;
  border-radius: 60px;
  border: 1px solid rgba(233, 200, 210, 0.433);
  transition: all 0.4s ease;
  box-shadow: 0 15px 40px rgba(139, 21, 56, 0.3);
  display: inline-block;
}
.cta-primary:hover {
  display: inline-block;
  transform: translateY(-4px);
  border: 1px solid rgba(233, 200, 210, 0.894);
  box-shadow: 0 20px 50px rgba(139, 21, 56, 0.4);
}
.cta-secondary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
  color: white;
  padding: 22px 45px;
  border-radius: 60px;
  transition: all 0.4s ease;
  box-shadow: 0 15px 40px rgba(185, 149, 106, 0.3);
}
.cta-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(185, 149, 106, 0.4);
}

.quote {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.33;
  color: var(--gold);
  font-style: italic;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    #e6d095 25%,
    var(--gold) 50%,
    var(--rich-gold) 75%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}
/* Cards */

.container div+.cards-grid {
  margin-top: var(--spacing-lg);
}
.card {
  background: white;
  padding: var(--spacing-md) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cards-icon .card {
  padding-top: var(--spacing-xl);
}
/* card icons */
.card::before {
  position: absolute;
  font-size: var(--fs-l);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 50%;
  transform: translate(-50%, -70%);
  width: var(--spacing-xl);
  height: var(--spacing-xl);
  border-radius: 100%;
  background: var(--warm-white);
}
.card:hover {
  transform: translateY(-24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}
a.card:hover {
  cursor: pointer;
}
a.card::after {
  content: "\2192";
  color: var(--gold);
  position: absolute;
  display: flex;
    align-items: center;
  justify-content: center;
    font-size: var(--fs-l);
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%) scale(0.6);
  width: var(--spacing-xl);
  height: var(--spacing-xl);
  border-radius: 100%;
  background: var(--warm-white);
  /* fade in effect */
  opacity: 0;
}
.card:hover::after {
  transform: translate(-50%, 50%) scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
}

.vier-saeulen .card .title-l,
.vier-saeulen .card .description,
.vier-saeulen .card li,
.vier-saeulen .card h3 {
  color: var(--text-white);
}
.cards-light .title-l,
.cards-light .description,
.cards-light li {
  color: var(--text-dark);
}
#team h3.title-l,
.section--red .cards-light .title-l,
.member h3.title-l,
#team h3.title-l {
  color: var(--primary-red);
  font-weight: 400;
  margin-bottom: var(--spacing-sm);
}
.card.card-hzv {
  background: linear-gradient(135deg, var(--primary-red), var(--warm-red));
}
.card.card-hzv::before {
  content: "\1FA7A";
  color: var(--warm-red);
}
.card.card-prevention {
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
}
.card.card-prevention::before {
  content: "\1F6E1";
  color: var(--rich-gold);
}
.card.card-ganzheitliche {
  background: linear-gradient(135deg, var(--forest-green), rgb(107, 125, 101));
}
.card.card-ganzheitliche::before {
  content: "\1F33F";
  color: rgb(107, 125, 101);
}
.card.card-betriebsmedizin {
  background: linear-gradient(135deg, var(--accent-blue), #447f93);
}
.card.card-betriebsmedizin::before {
  content: "\1F3E2";
}
.news-card .card-news {
  text-align: left;
}


.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.highlight {
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin: var(--spacing-md) 0;
}
.highlight h3,
.highlight p {
  color: var(--text-white) !important
}
.highlight p {
  margin-bottom: 0;
}

/* Contact */
.contact {
  background: linear-gradient(
    135deg,
    var(--primary-red) 0%,
    var(--warm-red) 100%
  );
  color: white;
  padding: 120px 50px;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 80px;
  transform: rotate(-25deg);
}
.contact-container {
  width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--spacing-xl);
  position: relative;
  z-index: 2;
  padding: 0;
}
.contact-section table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0 var(--spacing-md);
}
.contact-section table th,
.contact-section table td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--fs-base);
  vertical-align: top;
}
/* last row without border */
.contact-section table tr:last-child th,
.contact-section table tr:last-child td {
  border-bottom: none;
}
.contact-section table th.highlighted,
.contact-section table td.highlighted {
  background: rgba(255, 255, 255, 0.05);
}
.contact-section table th:first-child,
.contact-section table td:first-child {
  padding-left: 0;
}
.contact-section h3 {
  color: var(--gold);
  font-weight: 500;
}

.contact-section p,
.contact-section a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: var(--fs-base);
  line-height: 1.5;
}
.contact-section h4 {
  margin-bottom: var(--spacing-sm);
}
.contact-section a:hover:not(.btn) {
  color: var(--gold);
}
.maps-container {
  background: white;
  padding: 0;
  color: var(--text-dark);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}
.maps-container h3 {
  color: var(--primary-red) !important;
  margin-bottom: 35px;
  font-size: 28px;
}
.form-group {
  margin-bottom: 30px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px;
  border: 2px solid #eee;
  border-radius: 15px;
  font-size: var(--fs-base);
  transition: border-color 0.3s ease;
  font-family: "Inter", sans-serif;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-red);
}
.submit-btn {
  background: linear-gradient(135deg, var(--primary-red), var(--warm-red));
  color: white;
  padding: 18px 40px;
  border: none;
  border-radius: 60px;
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(139, 21, 56, 0.4);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 50px 40px;
  text-align: center;
}
.footer p {
  margin-bottom: 15px;
  opacity: 0.7;
  font-size: var(--fs-base);
}
.footer-links {
  width: 50%;
  max-width: 600px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: white;
  text-decoration: none;
  font-size: var(--fs-base);
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--gold);
}
/* Responsive */
@media (max-width: 1024px) {
  .card:hover {
    transform: none;
  }
}
@media (max-width: 768px) {
  /* Show mobile menu button, hide desktop nav */
  .mobile-menu-button {
    display: flex;
  }
  
  .nav-desktop {
    display: none;
  }
  
  /* Existing mobile styles */
  .hero,
  .section,
  .footer {
    padding-left: 25px;
    padding-right: 25px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  /* Mobile header adjustments */
  .header-content {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  /* Ensure mobile menu is full width on small screens */
  .mobile-menu-overlay {
    max-width: 100%;
    width: 100%;
  }
}

/* Remove previous arc CSS for .buttons children */
.page-online-rezeption .buttons > * {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  width: auto;
  height: auto;
}

/* Responsive fallback for small screens */
@media (max-width: 768px) {
  .page-online-rezeption .hero::before {
    height: 45%;
    left: -15%;
    width: 110%;
  }
  .page-online-rezeption .buttons {
    margin-top: var(--spacing-4xl);
    position: relative;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
  }
  .page-online-rezeption .buttons > * {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
  }
}

/* Buttons */
.btn,
.nav li.btn a {
  display: inline-block;
  padding: 22px 45px;
  text-decoration: none;
  border-radius: var(--border-radius-xl);
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}


.btn--primary {
  background: linear-gradient(135deg, var(--primary-red), var(--warm-red));
  color: white;
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-button-hover);
}

.btn--secondary,
.nav li.btn--secondary a {
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
  color: white;
  box-shadow: 0 15px 40px rgba(185, 149, 106, 0.3);
}

.btn--secondary:hover,
.nav li.btn--secondary a:hover {
  transform: translateY(3px);
  box-shadow: 0 20px 50px rgba(185, 149, 106, 0.4);
}
.btn--narrow,
.nav li.btn--narrow a {
  padding: var(--spacing-sm) var(--spacing-lg);
}
.scrolled .nav li.btn--narrow a {
  padding: var(--spacing-xs) var(--spacing-lg);
}
.scrolled .nav li.btn--secondary a:hover {
  transform: translateX(-1px);
  box-shadow: 0 10px 25px rgba(185, 149, 106, 0.4);
}
.frosted,
.accordion-item.frosted {
  background: rgba(246, 252, 255, 0.738); /* subtle blueish hue, low transparency */
  backdrop-filter: blur(12px) saturate(120%);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(94, 174, 201, 0.79);
  color: var(--text-dark);
  border: rgba(255, 255, 255, 0.05) solid 1px;
}
.frosted:hover,
.accordion-item.frosted:hover {
  box-shadow: 0 20px 50px rgba(94, 174, 201, 0.598);
  transform: translateY(-5px);
  background-color: var(--text-white);
}
/* Icons */
.icon {
  width: 80px;
  height: 80px;
  margin-bottom: 35px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: white;
}

.icon--red {
  background: linear-gradient(135deg, var(--primary-red), var(--warm-red));
}

.icon--orange {
  background: linear-gradient(135deg, var(--accent-orange), #e67e22);
}

.icon--green {
  background: linear-gradient(135deg, var(--forest-green), #7a9471);
}

.icon--gold {
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
}



@media (max-width: 768px) {
  :root {
    --container-padding: 25px;
  }
}

/* ==========================================================================
   LAYOUT-KLASSEN
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Margin Classes */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md, .card-content .description > p
{ margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }
.mt-3xl { margin-top: var(--spacing-3xl); }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   KOMPONENTEN-KLASSEN
   ========================================================================== */

/* Service Tags */
.service-tag {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
}

.service-tag--red {
  background: var(--primary-red);
}

.service-tag--orange {
  background: var(--accent-orange);
}

.service-tag--green {
  background: var(--forest-green);
}

.service-tag--gold {
  background: var(--gold);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: flex-start;
}

.team-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.team-image--medium {
  height: 400px;
}

.team-image--small {
  height: 300px;
}

/* Qualification Lists */
.qualification-list,
.card-content .description > ul,
.member-info ul,
.heading_list ul,
.mini-cards .card ul,
.tab-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qualification-list li,
.card-content .description > ul > li,
.member-info ul li,
.heading_list ul li,
.mini-cards .card ul li,
.tab-content ul li {
  font-size: var(--fs-base);
  position: relative;
  padding: 8px 0 8px 20px;
  color: var(--text-medium);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.qualification-list li:last-child,
.card-content .description > ul > li:last-child,
.member-info ul li:last-child,
.heading_list ul li:last-child,
.mini-cards .card ul li:last-child,
.tab-content ul li:last-child {
  border-bottom: none;
}

.qualification-list--checkmarks li::before,
.card-content .description > ul > li::before,
.member-info ul li::before,
.heading_list ul li::before,
.mini-cards .card ul li::before,
.tab-content ul li::before {
  position: absolute;
  left: 0;
  content: "✓ ";
  color: var(--forest-green);
  font-weight: 600;
}
.card .qualification-list--checkmarks li::before,
.tab-content .qualification-list--checkmarks li::before,
.card-content .description > ul > li::before,
.mini-cards .card ul li::before,
.tab-content ul li::before {
  position: relative;
  left: -5px;
}

.qualification-list--bullets li::before {
  content: "• ";
  color: var(--gold);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: var(--fs-l);
  color: var(--gold);
}

.feature-content h4 {
  font-size: var(--fs-base);
  color: var(--text-dark);
  margin-bottom: 5px;
  font-weight: 600;
}

.feature-content p {
  color: var(--text-medium);
  margin: 0;
  font-size: var(--fs-base);
}

/* Vision Box */
.vision-box {
  background: linear-gradient(135deg, var(--gold), var(--rich-gold));
  color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
}

.vision-box h4 {
  font-size: var(--fs-l);
  margin-bottom: 15px;
  font-weight: 600;
  color: white;
}

.vision-box p {
  color: white;
  margin: 0;
  font-size: var(--fs-base);
}

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.card-news.room-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.room-image,
.room-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.news-card .card-news .description img {
  height: auto;
}

.room-content,
.room-card .card-content {
  padding: var(--spacing-md);
}

.room-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.room-features li {
  padding: 4px 0;
  color: var(--text-medium);
  font-size: var(--fs-base);
}

.room-features li::before {
  content: "✓ ";
  color: var(--forest-green);
  font-weight: 600;
}

/* Quality Cards */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* Team Role Grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-icon {
  color: var(--gold);
  font-size: var(--fs-l);
}

.role-text {
  color: var(--text-medium);
  font-size: var(--fs-base);
}

/* Doctor Grid */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.doctor-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.doctor-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.doctor-content {
  padding: var(--spacing-lg);
}

.doctor-name {
  font-size: var(--fs-l);
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.doctor-title {
  font-size: var(--fs-base);
  color: var(--primary-red);
  margin-bottom: 15px;
  font-weight: 500;
}

.doctor-specialties {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doctor-specialties li {
  padding: 4px 0;
  color: var(--text-medium);
  font-size: var(--fs-base);
}

.doctor-specialties li::before {
  content: "• ";
  color: var(--gold);
}

/* ==========================================================================
   ACCORDION & TABS KOMPONENTEN
   ========================================================================== */


/* Tabs */
.tabs-container {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.tab-headers {
  background: var(--cream);
}
.tab-headers.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xl);
  padding: 0 var(--spacing-sm);
}
.tab-headers.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
}

.tab-header {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 500;
  color: white;
  transition: background-color 0.5s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  border-radius: var(--border-radius-sm);
  margin: 0 var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  background: var(--primary-red);
  box-shadow: 0 15px 40px rgba(185, 149, 106, 0.3);
}
.tab-header.right {
  background: var(--gold);
}
.tab-header:last-child {
  border-right: none;
}

.tab-header.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}
.tab-header.left:hover,
.tab-header.left:active {
  background: var(--primary-red-darker);
}
.tab-header.right:hover,
.tab-header.right.active {
  background: var(--rich-gold);
}

.tab-content {
  background: white;
  padding: var(--spacing-md);
  display: none;
  border-radius: var(--border-radius-sm);
}

.tab-content.active {
  display: block;
}
.tab-content.left.active {
  border: 3px solid var(--primary-red-darker);
}
.tab-content.right.active {
  border: 3px solid var(--rich-gold);
}
@media screen and (max-width: 768px) {
    /* Mobile adjustments for tab headers */
  .tab-headers.grid-2 {
    gap: 4px;
    padding: 0;
  }
  .tab-header {
    padding: var(--spacing-xs) 5px;
    margin: 0 0 12px;
    font-size: var(--fs-small);
    letter-spacing: 0;
  }
  .tab-content.left {
    border-top-left-radius: 0;
  }
  .tab-content.right {
    border-top-right-radius: 0;
  }
}

/* ==========================================================================
ACCORDION STYLES
========================================================================== */

/* Accordion Container */
.accordion-container {
  display: grid;
  gap: var(--spacing-md);
}

/* Accordion Item */
.accordion-item {
  background: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.accordion-item.acc-in-text {
  position: relative;
    background: linear-gradient(-135deg, var(--gold), var(--rich-gold));
  color: white;
  top: -5px;
  box-shadow: 0 15px 40px rgba(185, 149, 106, 0.3);
  border-radius: 20px;
  margin-bottom: -8px;
}
.buttons .accordion-item.frosted {
  padding: 0;
  /* dont be 100 % width */
  width: auto;
}
.accordion-item:hover {
  box-shadow: var(--shadow-md);
}
/* Make accordion-item.frosted auto-width only on Online-Rezeption page buttons */
.page-online-rezeption .buttons .accordion-item.frosted {
  display: inline-block;
  width: auto;
  max-width: 300px;
  vertical-align: middle;
}

/* Accordion Header */
.accordion-header {
  padding: var(--spacing-md);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.accordion-item.acc-in-text .accordion-header {
  border-bottom: none;
  padding: 6px var(--spacing-md);
  position: relative;
}
.accordion-header .title-l {
  margin: 0;
  font-size: var(--fs-l);
  color: var(--primary-red);
  font-weight: 300;
}
.page-online-rezeption .buttons .accordion-item.frosted .accordion-header  {
  font-size: var(--fs-base);
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}
.accordion-header:hover {
  background-color: var(--cream);
}
.accordion-header.active {
  background-color: var(--warmer-white);
  z-index: 100 !important;
}
.accordion-item.acc-in-text .accordion-header:hover,
.accordion-item.acc-in-text .accordion-header.active {
  background: transparent;
}

/* Accordion Icon */
.accordion-icon {
  font-size: var(--fs-l);
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.3s ease;
}
.accordion-item.acc-in-text .accordion-icon {
  color: white;
  font-weight: 600;
  font-size: var(--fs-l);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

.accordion-item.frosted.active {
    z-index: 100 !important;
}

.accordion-item.frosted .accordion-icon {
  color: var(--text-dark);
  font-weight: 600;
  font-size: var(--fs-base);
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg);
}
.accordion-item.acc-in-text .accordion-header.active .accordion-icon {
  transform: translateY(-50%) rotate(0);
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: white;
}

.accordion-content.active {
  max-height: 1000px !important;
  padding: var(--spacing-lg) !important;
  padding-top: var(--spacing-md) !important;
  background-color: rgba(201, 169, 97, 0.1) !important;
  border: 2px solid var(--gold) !important;
}
.accordion-item.acc-in-text .accordion-content.active {
 background: white !important;
 border-bottom-left-radius: 20px !important;
 border-bottom-right-radius: 20px !important;
 border: 1px solid var(--gold) !important;
 padding: var(--spacing-sm) 20px !important;
}
.accordion-item.acc-in-text .accordion-content p,
.accordion-item.acc-in-text .accordion-content li {
  color: var(--text-dark) !important;
  font-size: var(--fs-base) !important;
}
.accordion-item.acc-in-text .accordion-content p, .accordion-item.acc-in-text .accordion-content ul {
  margin-bottom: var(--spacing-md) !important;
}
.accordion-item.acc-in-text .accordion-content ul + p {
  margin-top: var(--spacing-lg) !important;
}
.accordion-item.frosted .accordion-content.active {
  background-color: var(--warm-white) !important;
  border: 1px solid rgba(218, 238, 245, 0.3) !important;
}
/* Force alle Accordion-Inhalte standardmäßig zu verstecken */
.accordion-item .accordion-content {
  max-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Nur wenn BEIDE Klassen vorhanden sind, zeige Inhalt */
.accordion-item .accordion-content.active {
  max-height: 1000px !important;
  padding: var(--spacing-md) !important;
}
.section--footer {
  padding: 0;
  margin: 0 auto;
}
img.footer-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  /* cover the entire section */
  object-fit: cover;
  border-radius: 0;
  /* center the image */
  display: block;
  position: relative;
  z-index: 1;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-md) 0 var(--spacing-md);
}
@media screen and (max-width: 600px) {
  #notfalldaten .table-container {
    margin-left: -20px;
    overflow-x: auto;
    width: calc(100% + 40px);
  } 
  
}
table th,
table td {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--fs-base);
  vertical-align: top;
}
table td.col-1 {
  width: 35%;
}
table td.col-3 {
  width: 40%;
}
table td.col-2,
table tr.zebra td.col-2 {
  width: 25%;
  background-color: var(--accent-orange);
  color: white;
  text-align: center;
  font-weight: 800;
}
table td.col-2 a {
  color: white;
}
/* last row without border */
table tr:last-child th,
table tr:last-child td {
  border-bottom: none;
}
table tr.zebra td {
  background: var(--cream-darker);
}
.page-impressum > .section.hero {
  padding-bottom: var(--spacing-xs);
}
.page-impressum h2,
.page-impressum h3 {
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}
.page-impressum h2 {
  font-size: var(--fs-xl);
}
.page-impressum h3 {
  font-size: var(--fs-l);
}