/* ==========================================================================
   Onepager – Basis-Styles
   ========================================================================== */
:root {
  --ink:      #14303a;   /* Text, dunkle Flächen */
  --paper:    #f5f7f6;   /* heller Hintergrund */
  --accent:   #1f8a70;   /* Buttons, Auswahl */
  --accent-2: #f2c14e;   /* Hervorhebung auf dunkel */
  --muted:    #5b6b70;
  --line:     #d7dedc;

  --content-max: 1200px;
  --nav-h: 72px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

/* Bootstrap setzt scroll-behavior: smooth – kollidiert mit jQuery.animate */
html { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Inhaltsbreite ---------- */
.op-content {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- Abschnitte: volle Viewport-Höhe ---------- */
.op-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 2rem) 6rem;
  overflow: hidden;
}
.op-section:focus { outline: none; }
.op-section > .op-content { position: relative; z-index: 1; }

.op-section.has-bg {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}
.op-section.has-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10, 28, 34, var(--bg-overlay, .5));
}

.op-theme-light { color: var(--ink); }
.op-theme-dark  { color: #fff; }
.op-theme-dark:not(.has-bg) { background: var(--ink); }
.op-section:nth-of-type(even).op-theme-light:not(.has-bg) { background: #fff; }

/* ---------- Typografie ---------- */
.op-display, .op-h2, .op-box h3, .navbar-brand {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
.op-display { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.02; max-width: 14ch; }
.op-h2      { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.op-lead    { font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 40ch; opacity: .9; margin: 1.5rem 0 2.5rem; }
.op-text    { max-width: 60ch; }
.op-small   { font-size: .875rem; color: var(--muted); }
.op-contact .op-display, .op-contact .op-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.op-btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #176b57;
  --bs-btn-hover-border-color: #176b57;
  --bs-btn-active-bg: #125646;
  --bs-btn-focus-shadow-rgb: 31, 138, 112;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
}
.op-btn--sm { padding: .45rem 1.1rem; }
.op-btn--light { --bs-btn-bg: var(--accent-2); --bs-btn-border-color: var(--accent-2); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: #e5ae2f; --bs-btn-hover-border-color: #e5ae2f; --bs-btn-hover-color: var(--ink); }

a:focus-visible, button:focus-visible, .op-calendar button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.op-nav {
  min-height: var(--nav-h);
  background: rgba(245, 247, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.op-nav .op-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.op-nav.is-scrolled { border-color: var(--line); }
.op-nav .navbar-brand { font-weight: 700; color: var(--ink); }
.op-nav .nav-link { color: var(--ink); }
.op-nav .nav-link.active { color: var(--accent); }

/* ---------- Scroll-Button ---------- */
.op-next {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  z-index: 2;
  width: 52px; height: 52px;
  margin-left: -26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  opacity: .75;
  transition: opacity .2s, transform .2s;
  animation: op-bounce 2.4s ease-in-out infinite;
}
.op-next:hover { opacity: 1; color: inherit; }
.op-next svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.op-next--top { animation: none; }
@keyframes op-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .op-next { animation: none; } }

/* ---------- Punkte-Navigation ---------- */
.op-dots {
  position: fixed; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  z-index: 1020;
  display: flex; flex-direction: column; gap: .75rem;
}
.op-dots a {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted); opacity: .45;
  box-shadow: 0 0 0 2px rgba(255,255,255,.7);
  transition: transform .2s, opacity .2s, background .2s;
}
.op-dots a.active { background: var(--accent); opacity: 1; transform: scale(1.35); }
@media (max-width: 767.98px) { .op-dots { display: none; } }

/* ---------- Inhaltsbausteine ---------- */
.op-box {
  height: 100%;
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: var(--paper);
}
.op-box h3 { font-size: 1.5rem; font-weight: 700; }
.op-box p  { margin: 0; color: var(--muted); }

.op-img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; border-radius: 4px; }

.op-stat { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; line-height: 1; color: var(--accent-2); }
.op-stat__label { margin-top: .5rem; font-size: 1.15rem; opacity: .85; }

/* ==========================================================================
   CTA-Seite
   ========================================================================== */
.op-cta { padding: calc(var(--nav-h) + 3rem) 0 4rem; min-height: 100vh; }
.op-cta__head { margin-bottom: 2rem; }
.op-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  height: 100%;
}
.op-panel__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; float: none; }
.op-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.op-confirm { max-width: 640px; margin: 4rem auto; text-align: center; }
.op-confirm .op-text { margin-inline: auto; }

/* ---------- Kalender ---------- */
.op-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.op-calendar__month { font-weight: 600; font-size: 1.15rem; }
.op-calendar__nav {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.op-calendar__nav:disabled { opacity: .3; }
.op-calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.op-calendar__wd { text-align: center; font-size: .8rem; color: var(--muted); padding-bottom: .25rem; }
.op-calendar__day {
  aspect-ratio: 1;
  border: 0; border-radius: 6px;
  background: transparent; color: #aab4b2;
  font-variant-numeric: tabular-nums;
}
.op-calendar__day.is-available { background: #e8f3f0; color: var(--ink); font-weight: 600; }
.op-calendar__day.is-available:hover { background: #cfe7e0; }
.op-calendar__day.is-selected { background: var(--accent); color: #fff; }
.op-calendar__day.is-today { box-shadow: inset 0 0 0 1px var(--muted); }

.op-calendar__times { margin-top: 1.5rem; }
.op-calendar__times-title { font-weight: 600; margin-bottom: .5rem; }
.op-calendar__slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.op-calendar__slot {
  min-width: 5.5rem;
  padding: .45rem .75rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.op-calendar__slot:hover { border-color: var(--accent); }
.op-calendar__slot.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.op-calendar__empty { color: var(--muted); }
.op-calendar__summary { margin: 1rem 0 0; font-weight: 600; min-height: 1.6em; }
