/* Theme tokens */
:root{
  --brand-green:     179,179,179; /* central brand rgb triplet for green usage */
  --mm-green:        #B3B3B3;  /* Primär jetzt neutral-grau */
  --mm-green-dark:   #B3B3B3;  /* Hover/Focus = Grau */
  --mm-green-weak:   rgba(179,179,179,0.12);  /* Flächen/Hintergrund = Grau schwach */
  --mm-text-dark:    #1a1a1a;
  --mm-shadow:       0 8px 24px rgba(0,0,0,.08);
  --mm-radius:       16px;
  /* Glass helpers */
  --mm-green-rgb:    179,179,179; /* #B3B3B3 */
  --glass-bg:        rgba(var(--mm-green-rgb), 0.30);
  --glass-bg-hover:  rgba(var(--mm-green-rgb), 0.44);
  --glass-border:    rgba(var(--mm-green-rgb), 0.70);
  --glass-shadow:    0 8px 24px rgba(var(--mm-green-rgb), .28);
  --glass-shadow-h:  0 10px 28px rgba(var(--mm-green-rgb), .36);
}

* { 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: #e5e7eb; /* light gray hero */
  color: var(--mm-text-dark);
  text-align: center;
  padding: 2rem 1.5rem 1.2rem;
}
.branding { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: .6rem; }
.logo { width: 400px; height: auto; }
.hero p { font-size: 1.2rem; opacity: .95; margin-bottom: .6rem; }

/* Primary button now glass-green */
.btn-primary{
  background: var(--glass-bg);
  color: var(--mm-text-dark);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding:.8rem 1.2rem;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .05s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary:hover{ background: var(--glass-bg-hover); box-shadow: var(--glass-shadow-h); border-color: var(--mm-green); }
.btn-primary:active{ transform: translateY(1px); }
.btn-primary:focus{ outline: 2px solid var(--mm-green); 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 green underline for section headings */
h2::after { content: ""; display:block; width:80px; height:4px; background: var(--mm-green); border-radius: 999px; margin:.4rem auto 0; }
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 restyle to green blocks */
.accordion { display: grid; gap: 1rem; text-align: left; }
.accordion-item {
  background: var(--mm-green-weak);
  border:1px solid var(--mm-green);
  border-radius: 14px;
  padding: .9rem 1rem;
  box-shadow: var(--mm-shadow);
}
.accordion-item summary{
  list-style: none;
  cursor: pointer;
  font-weight: 400;
  color: var(--mm-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.accordion-item[open]{
  border-color: var(--mm-green);
  background: var(--mm-green-weak);
}
/* 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: .6rem .4rem 0 .2rem; color: var(--mm-text-dark); }

/* Glass-style variant for accordions */
.glass-accordion {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(179, 179, 179, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  color: rgb(var(--brand-green));
  padding: 1rem 1.2rem;
  transition: all 0.2s ease;
}
.glass-accordion:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(179, 179, 179, 0.6);
}
.glass-accordion[open] {
  background: rgba(255,255,255,0.6);
  border-color: rgba(179,179,179,0.8);
}

/* 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); 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;
}
.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; }
#calendar { padding: 1rem; background:#ffffff; min-height:70vh; height:75vh; overflow:auto; }
/* Compact calendar tweaks */
#calendar .fc { min-width: 1000px; }
.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; }
.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); }

/* Impressum as card modal */
#impressumModal { background: rgba(0,0,0,.35); }
#impressumModal .modal__dialog {
  width: min(92%, 560px);
  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);
}
#impressumModal .modal__header,
#impressumModal .modal__body,
#impressumModal .modal__footer { background: #f9fafb; color:var(--mm-text-dark); }
#impressumModal .modal__header { padding: 1rem 1.2rem .4rem; }
#impressumModal .modal__body { padding: 0 1.2rem 1rem; }

@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; }
/* 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 green */
.fc .fc-highlight { background: rgba(var(--mm-green-rgb), .18); }
