/* Theme tokens */
:root{
  --brand-green:     128,128,128; /* central brand rgb triplet for gray usage */
  --mm-green:        #808080;  /* Neutral gray */
  --mm-green-dark:   #606060;  /* Darker gray for hover/focus */
  --mm-green-weak:   rgba(128,128,128,0.15);  /* Light gray background */
  --mm-text-dark:    #1a1a1a;
  --mm-shadow:       0 8px 24px rgba(0,0,0,.08);
  --mm-radius:       16px;
  /* Glass helpers */
  --mm-green-rgb:    128,128,128; /* #808080 */
  --glass-bg:        rgba(var(--mm-green-rgb), 0.25);
  --glass-bg-hover:  rgba(var(--mm-green-rgb), 0.4);
  --glass-border:    rgba(var(--mm-green-rgb), 0.6);
  --glass-shadow:    0 8px 24px rgba(var(--mm-green-rgb), .3);
  --glass-shadow-h:  0 12px 32px rgba(var(--mm-green-rgb), .45);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  background: #f3f4f6; /* light gray page background */
  color: var(--mm-text-dark);
  line-height: 1.6;
}

/* Accent vars no longer required; using explicit colors per spec */

.hero {
  background: #f3f4f6; /* Helleres Grau für Hero-Bereich */
  color: var(--mm-text-dark);
  text-align: center;
  padding: 2rem 1.5rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.branding { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 0; 
  margin-bottom: .6rem; 
  position: relative;
  z-index: 10; /* Ensure logo is on top */
}
.logo { 
  width: 400px; 
  height: auto; 
  position: relative;
  z-index: 15; /* Higher z-index to ensure it's in front */
}
.hero p { font-size: 1.2rem; opacity: .95; margin-bottom: .6rem; }

/* Experience text styling */
.experience-text {
  margin: 1.5rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.experience-text p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--mm-text-dark);
  text-align: center;
  line-height: 1.6;
  opacity: 0.9;
}

/* Decorative separator styling */
.decorative-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 1.5rem 0;
  padding: 0 2rem;
}

.separator-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--mm-green), transparent);
  max-width: 120px;
}

.separator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mm-green);
  margin: 0 1rem;
  box-shadow: 0 0 10px rgba(128, 128, 128, 0.3);
}

/* Hero accordion styling */
.hero-accordion {
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 6px 24px rgba(128, 128, 128, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-accordion .accordion-item:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(128, 128, 128, 0.4);
  box-shadow: 
    0 8px 32px rgba(128, 128, 128, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transform: translateY(-1px);
}

.hero-accordion .accordion-item summary {
  font-size: 0.95rem;
  color: var(--mm-text-dark);
  font-weight: 500;
}

.hero-accordion .accordion-item[open] {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(128, 128, 128, 0.5);
}

.hero-accordion .acc-content {
  padding: 0.6rem 0.3rem 0 0.3rem;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

/* Primary button now simple gray */
.btn-primary{
  background: rgba(128,128,128,0.2);
  color: var(--mm-text-dark);
  border: 1px solid rgba(128,128,128,0.4);
  border-radius: 14px;
  padding: .8rem 1.2rem;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
  position: relative;
  z-index: 10;
  font-weight: 600;
}
.btn-primary:hover{ 
  background: rgba(128,128,128,0.3); 
  border-color: var(--mm-green); 
  transform: translateY(-1px);
}
.btn-primary:active{ transform: translateY(1px); }
.btn-primary:focus{ outline: 3px solid rgba(128,128,128,0.4); outline-offset: 2px; }

/* Legacy CTA kept but not used for primary */
.cta {
  display: inline-block; padding: 0.9rem 1.8rem; background: #e5e7eb; color: var(--mm-text-dark);
  border-radius: 10px; border: 0; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18); transition: transform .2s, background .2s, color .2s;
}
.cta:hover { background: #d1d5db; color: var(--mm-text-dark); transform: translateY(-2px); }

/* Card utility */
.card-green{
  background: #ffffff;
  color: var(--mm-text-dark);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
}

section { padding: 3rem 2rem; max-width: 900px; margin: auto; text-align: center; }
h2 { color: var(--mm-text-dark); margin-bottom: 1rem; font-size: 2rem; font-weight: 800; }
/* Make About and Contact headings smaller and not bold */
#about h2, #kontakt h2 { font-size: 1.4rem; font-weight: 600; }
/* Brand gray underline for section headings */
h2::after { content: ""; display:block; width:80px; height:4px; background: var(--mm-green); border-radius: 999px; margin:.4rem auto 0; }

/* Remove h2 underline where we have decorative separators */
#kontakt h2::after,
#about h2::after { 
  content: none; 
}

ul { list-style: none; padding: 0; margin: 1rem 0; }
ul li {
  background: #f3f4f6; margin: .6rem 0; padding: .9rem; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(63,107,115,0.12); font-size: 1.05rem;
}

/* Accordion with Enhanced Glassmorphism Design */
.accordion { display: grid; gap: 1.2rem; text-align: left; }
.accordion-item {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 12px 40px rgba(128, 128, 128, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(128, 128, 128, 0.15),
    0 0 60px rgba(128, 128, 128, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.accordion-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

.accordion-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(128, 128, 128, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 
    0 16px 48px rgba(128, 128, 128, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 0 30px rgba(128, 128, 128, 0.25),
    0 0 80px rgba(128, 128, 128, 0.12);
  transform: translateY(-3px);
}

.accordion-item summary{
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--mm-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: color 0.2s ease;
  font-size: 1.05rem;
}

.accordion-item:hover summary {
  color: #2d3748;
}

.accordion-item[open]{
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(128, 128, 128, 0.7);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  box-shadow: 
    0 20px 56px rgba(128, 128, 128, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 40px rgba(128, 128, 128, 0.3),
    0 0 100px rgba(128, 128, 128, 0.15);
  transform: translateY(-2px);
}

/* Hide +/- icon */
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: none; }
.accordion-item[open] summary::after { content: none; }

.acc-content{ 
  padding: .8rem .6rem 0 .4rem; 
  color: var(--mm-text-dark); 
  animation: fadeInContent 0.3s ease-out;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Links */
a, .link{ color: var(--mm-text-dark); text-decoration: none; }
a:hover{ text-decoration: underline; }

footer { text-align: center; background: #e5e7eb; color: var(--mm-text-dark); padding: 1.2rem; margin-top: 3rem; font-size: .9rem; }
footer a { color: var(--mm-text-dark); text-decoration: underline; }
/* Brand tint for text selection */
::selection { background: rgba(var(--mm-green-rgb), .25); color: inherit; }
::-moz-selection { background: rgba(var(--mm-green-rgb), .25); color: inherit; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 1000; }
.modal.open { display: flex; }
.modal__dialog {
  width: min(100%, 980px); 
  height: min(90vh, 800px);
  background: rgba(243,244,246,0.9); backdrop-filter: blur(8px);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; border: 1px solid rgba(63,107,115,0.15); position: relative;
  display: flex;
  flex-direction: column;
}

/* Ensure Calendly widget stays in modal */
#calendlyWidget {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#calendlyWidget .calendly-inline-widget {
  width: 100% !important;
  height: 100% !important;
  min-height: 600px !important;
  border: none !important;
}

#calendlyWidget iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}
.modal__close {
  position: absolute; right: 1rem; top: 1rem; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #e5e7eb; color: var(--mm-text-dark); font-size: 22px; line-height: 36px; cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.modal__close:hover { box-shadow: 0 0 0 2px rgba(var(--mm-green-rgb), .25), 0 6px 14px rgba(0,0,0,.2); }
.modal__header { padding: 1.2rem 1.4rem .6rem; background: #f3f4f6; color: var(--mm-text-dark); }
.modal__header h3 { margin: 0 0 .2rem 0; }
.modal__header p { margin: 0 0 .8rem 0; opacity: .95; }
.modal__body { 
  padding: 0; 
  background: #ffffff; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
}
#calendar { padding: 1rem; background:#ffffff; min-height:70vh; height:75vh; overflow:auto; }
/* Calendly Widget Styling */
#calendlyWidget { 
  padding: 0; 
  background:#ffffff; 
  height: 100%; 
  overflow: hidden; 
}

/* Inline Calendly Widget Styling */
#inlineCalendlyWidget {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

#inlineCalendlyWidget .calendly-inline-widget {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6 !important;
}

/* Fix Calendly dropdown transparency in inline widget */
#inlineCalendlyWidget iframe {
  background: #f3f4f6 !important;
}

#inlineCalendlyWidget .calendly-inline-widget * {
  backdrop-filter: none !important;
}

/* Ensure all dropdown elements have solid white background */
#inlineCalendlyWidget [data-component*="dropdown"],
#inlineCalendlyWidget [data-component*="menu"], 
#inlineCalendlyWidget [data-component*="overlay"],
#inlineCalendlyWidget [class*="dropdown"],
#inlineCalendlyWidget [class*="menu"],
#inlineCalendlyWidget [class*="overlay"],
#inlineCalendlyWidget [class*="popover"],
#inlineCalendlyWidget [class*="selector"],
#inlineCalendlyWidget [role="listbox"],
#inlineCalendlyWidget [role="menu"],
#inlineCalendlyWidget [role="dialog"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(128, 128, 128, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  color: #1a1a1a !important;
}

/* Specific targeting for select/option elements in inline widget */
#inlineCalendlyWidget select,
#inlineCalendlyWidget option,
#inlineCalendlyWidget .calendly-overlay select,
#inlineCalendlyWidget .calendly-overlay option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  opacity: 1 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}
.calendly-inline-widget { width: 100% !important; border-radius: 8px; }

/* Calendly Dropdown Styling - Fix transparent background */
.calendly-inline-widget iframe {
  background: #ffffff !important;
}

/* Additional overlay and backdrop fixes for opened dropdowns */
.calendly-inline-widget::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: -1;
  pointer-events: none;
  display: none;
}

/* Show overlay when dropdown is active */
.calendly-inline-widget:has([role="listbox"][aria-expanded="true"])::after,
.calendly-inline-widget:has(select:focus)::after {
  display: block;
}

/* Target Calendly dropdown menus and overlays */
.calendly-inline-widget [data-component="overlay"],
.calendly-inline-widget [class*="dropdown"],
.calendly-inline-widget [class*="menu"],
.calendly-inline-widget [class*="popover"],
.calendly-inline-widget [class*="selector"] {
  background: #ffffff !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(128, 128, 128, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  color: #1a1a1a !important;
}

/* Specific fix for Calendly select dropdowns */
.calendly-inline-widget select,
.calendly-inline-widget option,
.calendly-overlay select,
.calendly-overlay option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  opacity: 1 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure all Calendly popup elements have solid white background */
.calendly-inline-widget * {
  backdrop-filter: none !important;
}

.calendly-inline-widget [style*="background: transparent"],
.calendly-inline-widget [style*="background:transparent"],
.calendly-inline-widget [style*="background-color: transparent"],
.calendly-inline-widget [style*="background-color:transparent"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  opacity: 1 !important;
}

/* Additional comprehensive Calendly dropdown fixes */
.calendly-inline-widget select,
.calendly-inline-widget select option,
.calendly-inline-widget .calendly-popup select,
.calendly-inline-widget .calendly-popup option,
iframe[src*="calendly"] select,
iframe[src*="calendly"] option {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  opacity: 1 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(128, 128, 128, 0.3) !important;
}

/* Fix for Calendly dropdown background overlay */
.calendly-inline-widget [data-component*="overlay"]:before,
.calendly-inline-widget [class*="overlay"]:before,
.calendly-inline-widget [class*="dropdown-backdrop"]:before {
  content: "" !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  z-index: 999 !important;
}

/* Specific dropdown container background */
.calendly-inline-widget [class*="dropdown-container"],
.calendly-inline-widget [data-testid*="dropdown"],
.calendly-inline-widget [class*="select-dropdown"],
.calendly-inline-widget [role="listbox"]:before {
  background: #ffffff !important;
  border: 1px solid rgba(128, 128, 128, 0.3) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: none !important;
}

/* Force white background on dropdown content areas */
.calendly-inline-widget [class*="dropdown"] > *,
.calendly-inline-widget [role="listbox"] > * {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Compact calendar tweaks */
#calendar .fc { min-width: 1000px; }

/* Price table styling */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.price-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.price-table td:first-child {
  color: var(--mm-text-dark);
  font-weight: 500;
}

.price-table td:last-child {
  text-align: right;
  color: var(--mm-green-dark);
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}
.fc .fc-toolbar { padding: .25rem .4rem; }
.fc .fc-toolbar-title { font-size:1.05rem; }
/* FullCalendar buttons as glass */
.fc .fc-button {
  background: var(--glass-bg);
  color: var(--mm-text-dark);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--glass-shadow);
}
.fc .fc-button:hover, .fc .fc-button:focus, .fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--glass-bg-hover);
  border-color: var(--mm-green);
}
.fc .fc-button:focus { outline: 2px solid var(--mm-green); outline-offset: 1px; }
/* Calendar selection highlight in brand green */
.fc .fc-highlight { background: rgba(var(--mm-green-rgb), .18); }

.fc .fc-button { padding: .25rem .5rem; font-size: .85rem; }
.fc .fc-col-header-cell-cushion { padding: .25rem 0; }
.fc .fc-timegrid-slot { height: 2.1rem; }
.fc-event { font-size: .72rem; }
.fc-daygrid-block-event { background:#e5e7eb; border:1px solid #95a2a8; }
.fc-timegrid-event { background:#e5e7eb; border:1px solid #95a2a8; }
.busy-slot { background:#d1d5db !important; border-color:#d1d5db !important; }

/* Available slots styling */
.available-slot { 
  background: #fde047 !important; 
  border-color: #facc15 !important; 
  color: #713f12 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.available-slot:hover {
  background: #fbbf24 !important;
  border-color: #f59e0b !important;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Booked slots styling */
.booked-slot {
  background: #d1d5db !important;
  border-color: #9ca3af !important;
  color: #6b7280 !important;
  cursor: not-allowed;
}

/* Gray background for all time slots that are not available */
.fc-timegrid-slot {
  background: #f3f4f6; /* Light gray background for all slots */
}

.fc-timegrid-slot:hover {
  background: #e5e7eb; /* Slightly darker on hover */
}

/* Simple booking form styles */
#simpleBookingForm {
  margin-top: 1rem;
}

#simpleBookingForm label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--mm-text-dark);
}

#simpleBookingForm input,
#simpleBookingForm textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

#simpleBookingForm input:focus,
#simpleBookingForm textarea:focus {
  outline: none;
  border-color: var(--mm-green);
  box-shadow: 0 0 0 3px rgba(var(--mm-green-rgb), 0.1);
}

#simpleSlotInfo {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #0c4a6e;
  text-align: center;
}
.form-body { padding:1rem 1.2rem 1.4rem; }
form label { display:flex; flex-direction:column; gap:.3rem; font-size:.9rem; margin-bottom:.9rem; font-weight:600; color:var(--mm-text-dark); }
form select, form input { padding:.55rem .7rem; border:1px solid #95a2a8; border-radius:8px; background:#ffffff; font-size:.9rem; }
form select:focus, form input:focus { outline:2px solid var(--mm-green); }
.form-actions { display:flex; gap:.8rem; align-items:center; margin-top:.4rem; }
.status { margin-top:.8rem; font-size:.85rem; min-height:1.1rem; }
.status.error { color:#b91c1c; }
.status.ok { color:#065f46; }
.modal__footer {
  display: flex; justify-content: flex-end; gap: .8rem; padding: .8rem 1rem; background: #f9fafb; border-top: 1px solid rgba(63,107,115,0.12);
}
.external, .secondary {
  background: #e5e7eb; color: var(--mm-text-dark); border: none; padding: .6rem 1rem; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 600;
}
.external:hover, .secondary:hover { background: var(--mm-green-weak); }

/* Card Modals (Impressum & Datenschutz) - Common Scrolling Setup */
#impressumModal, #datenschutzModal { 
  background: rgba(0,0,0,.35); 
  overflow-y: auto;
}

/* Impressum as card modal */
#impressumModal { background: rgba(0,0,0,.35); }
#impressumModal .modal__dialog {
  width: min(92%, 560px);
  max-height: 85vh;
  background: #ffffff;
  backdrop-filter: none;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
#impressumModal .modal__header,
#impressumModal .modal__body,
#impressumModal .modal__footer { background: #f9fafb; color:var(--mm-text-dark); }
#impressumModal .modal__header { 
  padding: 1rem 1.2rem .4rem; 
  flex-shrink: 0;
}
#impressumModal .modal__body { 
  padding: 0 1.2rem 1rem; 
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(128,128,128,0.5) transparent;
}

/* Custom scrollbar for Webkit browsers */
#impressumModal .modal__body::-webkit-scrollbar {
  width: 6px;
}

#impressumModal .modal__body::-webkit-scrollbar-track {
  background: transparent;
}

#impressumModal .modal__body::-webkit-scrollbar-thumb {
  background-color: rgba(128,128,128,0.5);
  border-radius: 3px;
}

#impressumModal .modal__body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(128,128,128,0.7);
}

/* Mobile responsive fixes for Impressum Modal */
@media (max-width: 768px) {
  #impressumModal .modal__dialog {
    width: min(95%, 100vw);
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
    top: 0;
    transform: none;
  }
  
  #impressumModal .modal__header {
    padding: 0.8rem 1rem 0.3rem;
  }
  
  #impressumModal .modal__body {
    padding: 0 1rem 1rem;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-height: 600px) {
  #impressumModal .modal__dialog {
    max-height: 95vh;
  }
  
  #impressumModal .modal__body {
    max-height: calc(95vh - 70px);
  }
}

/* Datenschutz Modal with scrollbar */
#datenschutzModal { background: rgba(0,0,0,.35); }
#datenschutzModal .modal__dialog {
  width: min(92%, 560px);
  max-height: 85vh;
  background: #ffffff;
  backdrop-filter: none;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
#datenschutzModal .modal__header,
#datenschutzModal .modal__body,
#datenschutzModal .modal__footer { background: #f9fafb; color:var(--mm-text-dark); }
#datenschutzModal .modal__header { 
  padding: 1rem 1.2rem .4rem; 
  flex-shrink: 0;
}
#datenschutzModal .modal__body { 
  padding: 0 1.2rem 1rem; 
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(128,128,128,0.5) transparent;
}

/* Custom scrollbar for Datenschutz Modal */
#datenschutzModal .modal__body::-webkit-scrollbar {
  width: 6px;
}

#datenschutzModal .modal__body::-webkit-scrollbar-track {
  background: transparent;
}

#datenschutzModal .modal__body::-webkit-scrollbar-thumb {
  background-color: rgba(128,128,128,0.5);
  border-radius: 3px;
}

#datenschutzModal .modal__body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(128,128,128,0.7);
}

/* Mobile responsive fixes for Datenschutz Modal */
@media (max-width: 768px) {
  #datenschutzModal .modal__dialog {
    width: min(95%, 100vw);
    max-height: 90vh;
    margin: 0 auto;
    position: relative;
    top: 0;
    transform: none;
  }
  
  #datenschutzModal .modal__header {
    padding: 0.8rem 1rem 0.3rem;
  }
  
  #datenschutzModal .modal__body {
    padding: 0 1rem 1rem;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-height: 600px) {
  #datenschutzModal .modal__dialog {
    max-height: 95vh;
  }
  
  #datenschutzModal .modal__body {
    max-height: calc(95vh - 70px);
  }
}

/* Profil Modal for image display */
#profilModal { background: rgba(0,0,0,.6); }
#profilModal .modal__dialog {
  width: min(90%, 500px);
  max-width: 500px;
  background: #ffffff;
  backdrop-filter: none;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero { padding: 1.2rem 1rem 1rem; }
  .logo { width: 320px; }
  .hero p { font-size: 1rem; }
  section { padding: 2rem 1rem; }
  #calendar { min-height:65vh; }
}

/* Mobile tap highlight cleanup and focus-visible outlines */
/* Remove blue/grey tap highlight on mobile browsers */
html { -webkit-tap-highlight-color: transparent; }
button, .btn-primary, .accordion-item summary, .fc .fc-button, a { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }

/* Show focus outlines only for keyboard navigation */
.btn-primary:focus { outline: none; }
.btn-primary:focus-visible { outline: 2px solid var(--mm-green); outline-offset: 2px; }

.fc .fc-button:focus { outline: none; }
.fc .fc-button:focus-visible { outline: 2px solid var(--mm-green); outline-offset: 1px; }
/* Profile section inline styling */
.profile-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
}

.profile-image-inline {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mm-green);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .profile-image-inline {
    width: 100px;
    height: 100px;
  }
  
  .profile-info {
    text-align: center;
  }
}

/* Cookie Banner Styling */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(128, 128, 128, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: 1rem;
  animation: slideUpCookie 0.4s ease-out;
}

@keyframes slideUpCookie {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text h4 {
  margin: 0 0 0.5rem 0;
  color: var(--mm-text-dark);
  font-size: 1.1rem;
}

.cookie-text p {
  margin: 0;
  color: var(--mm-text-dark);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

.cookie-buttons {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn.accept {
  background: var(--mm-green);
  color: white;
}

.cookie-btn.accept:hover {
  background: var(--mm-green-dark);
  transform: translateY(-1px);
}

.cookie-btn.necessary {
  background: #e5e7eb;
  color: var(--mm-text-dark);
}

.cookie-btn.necessary:hover {
  background: #d1d5db;
}

.cookie-btn.settings {
  background: transparent;
  color: var(--mm-text-dark);
  border: 1px solid rgba(128, 128, 128, 0.4);
}

.cookie-btn.settings:hover {
  background: rgba(128, 128, 128, 0.1);
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(128, 128, 128, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--mm-green);
}

.cookie-category h4 {
  margin: 0 0 0.5rem 0;
  color: var(--mm-text-dark);
  font-size: 1rem;
}

.cookie-category p {
  margin: 0 0 0.8rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.8;
}

.cookie-category label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* Brand tint for text selection */
::selection { background: rgba(var(--mm-green-rgb), .25); color: inherit; }
::-moz-selection { background: rgba(var(--mm-green-rgb), .25); color: inherit; }
/* Calendar selection highlight in brand gray */
.fc .fc-highlight { background: rgba(var(--mm-green-rgb), .18); }

/* Time Duration Modal Styling */
.duration-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.duration-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.duration-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.duration-option:active {
    transform: translateY(0);
}

.duration-time {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.duration-desc {
    font-size: 0.9em;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Duration Option Selected State */
.duration-option.selected {
    background: linear-gradient(135deg, rgba(136, 132, 216, 0.2), rgba(136, 132, 216, 0.1));
    border-color: rgba(136, 132, 216, 0.4);
}

.duration-option.selected .duration-time {
    color: var(--accent-color);
}

/* Mobile responsiveness for duration modal */
@media (max-width: 768px) {
    .duration-option {
        padding: 15px;
    }
    
    .duration-time {
        font-size: 1.1em;
    }
}

/* Booking Controls Styling */
.booking-controls {
    margin-bottom: 20px;
    text-align: center;
}

#selectDurationBtn {
    background: linear-gradient(135deg, rgba(136, 132, 216, 0.8), rgba(136, 132, 216, 0.6));
    border: 1px solid rgba(136, 132, 216, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#selectDurationBtn:hover {
    background: linear-gradient(135deg, rgba(136, 132, 216, 0.9), rgba(136, 132, 216, 0.7));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(136, 132, 216, 0.3);
}

#selectDurationBtn i {
    margin-right: 8px;
}

#selectedDurationDisplay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#selectedDurationText {
    font-weight: 500;
    color: var(--accent-color);
}

/* Notification animations */
@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(100px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from { 
        opacity: 1; 
        transform: translateX(0);
    }
    to { 
        opacity: 0; 
        transform: translateX(100px);
    }
}
