/* Roboto (variable font, latin subset) – self-hosted like the original site */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}

:root {
  --box-bg: rgba(0, 161, 185, 0.6);
  --mint: #00ffcc;
  --mint-light: #c9f1e9;
  --nav-hover: #009dc3;
  --line: rgba(255, 255, 255, 0.4);
  --dropdown: #488a96;
  --dropdown-hover: #366b75;
  --text: #ffffff;
  /* Box padding plus the inner section/column padding of the original layout */
  --box-pad-y: 20px;
  --box-padding: 25px;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --box-pad-y: 60px; --box-padding: 80px; }
}

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

html { scroll-padding-top: 20px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mint); text-decoration: none; }
a:hover, a:focus { color: var(--mint-light); }

h1, h2, h3 {
  font-weight: 600;
  color: var(--mint);
  line-height: 1.5;
  margin: 0 0 15px;
}
h1 { font-size: 20px; text-transform: uppercase; }
h2 { font-size: 15px; text-transform: uppercase; }
h3 { font-size: 14px; }
p { margin: 0 0 0.9em; }
strong { font-weight: 600; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }

/* Full-page background slideshow (fixed behind everything) */
.bg-slider {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #e9eef0;
}
.bg-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  opacity: 0;
  transition: opacity 500ms ease;
}
.bg-slider .slide.active { opacity: 1; }

/* Boxed, translucent content container */
.site-container {
  max-width: 1110px;
  min-height: 620px;
  margin: 0 auto;
  padding: var(--box-pad-y) var(--box-padding);
  background: var(--box-bg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .site-container { margin-top: 100px; }
}

/* Divider lines */
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.divider-wide { margin: 25px calc(var(--box-padding) * -1); }

/* Header */
.header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.logo img { width: 270px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.main-menu { margin-top: 42px; }
.main-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.main-menu > ul > li {
  position: relative;
  margin-right: 12px;
  border-right: 2px solid var(--mint);
}
.main-menu > ul > li:last-child { border-right: 0; }
.main-menu a {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1em;
}
.main-menu > ul > li > a { margin-right: 12px; }
.main-menu a:hover,
.main-menu a:focus { color: var(--nav-hover); }
.main-menu li.current > a,
.main-menu a[aria-current="page"] { color: var(--mint); }

/* Little chevron for items with a submenu */
.main-menu .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.main-menu .sub {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding-top: 12px;
  display: none;
  z-index: 20;
}
.main-menu .sub li { background: var(--dropdown); }
.main-menu .sub a {
  display: block;
  padding: 13px 20px;
  font-weight: 500;
  text-transform: none;
  color: #fff;
}
.main-menu .sub a:hover,
.main-menu .sub a:focus,
.main-menu .sub a[aria-current="page"] {
  background: var(--dropdown-hover);
  color: #fff;
}
.main-menu .has-sub:hover > .sub,
.main-menu .has-sub:focus-within > .sub { display: block; }

/* Layout helpers */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-sidebar { grid-template-columns: 1fr 2fr; gap: 40px; }
}

/* Accordions (native <details>) */
.accordion { border: 1px solid var(--line); align-self: start; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 20px;
  color: var(--mint);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  font-weight: 400;
  font-size: 16px;
}
.accordion details[open] > summary { border-bottom: 1px solid var(--line); }
.accordion details[open] > summary::before { content: "\2212"; }
.accordion summary:hover { color: var(--mint-light); }
.accordion .panel { padding: 15px 20px; }
.accordion .panel p:last-child { margin-bottom: 0; }
.accordion .qr { width: 250px; }

/* Map: click-to-load, nothing is requested from Google before the click */
.map { margin-top: 70px; }
.map.flush { margin-top: 0; }
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 400px;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
}
.map-consent p { margin: 0; max-width: 420px; }
.map-consent .map-hint { font-size: 12px; }
.map-consent button {
  padding: 12px 22px;
  border: 1px solid var(--mint);
  background: none;
  color: var(--mint);
  font: 600 14px/1.2 var(--font);
  text-transform: uppercase;
  cursor: pointer;
}
.map-consent button:hover,
.map-consent button:focus { background: var(--mint); color: #00505c; }
.map-consent.loaded { padding: 0; border: 0; }
.map-consent iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0%);
}

/* Contact & opening hours */
address { font-style: normal; margin: 0 0 0.9em; }
.hours-title { font-weight: 600; margin-bottom: 12px; }
.hours { border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  font-weight: 400;
  padding: 3px;
  vertical-align: top;
}
.hours th { width: 90px; }
.hours tr.today th, .hours tr.today td { color: var(--mint); }

/* Leistungen: two-column list */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li { padding-left: 1em; text-indent: -1em; }
.service-list li::before { content: "• "; }
@media (min-width: 768px) {
  .service-list { columns: 2; column-gap: 40px; }
}

/* Zahnärztinnen */
.dentists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .dentists { grid-template-columns: repeat(3, 1fr); }
}
.dentists img { margin-bottom: 12px; }

/* Carousel (Praxisräume, Mitarbeiter) */
.carousel { position: relative; padding: 0 30px; }
.carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}
@media (min-width: 600px) {
  .carousel-item { flex-basis: calc(100% / 3); }
}
.carousel-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.carousel-item figcaption {
  padding: 8px 10px 0;
  text-align: center;
  font-style: italic;
}
.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-btn::before {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}
.carousel-btn.prev { left: 0; }
.carousel-btn.prev::before { transform: rotate(135deg); }
.carousel-btn.next { right: 0; }
.carousel-btn.next::before { transform: rotate(-45deg); }
.carousel-btn:hover::before { border-color: var(--mint); }

/* Datenschutz */
.legal { overflow-wrap: break-word; }
.legal h2 { margin-top: 25px; }

/* Review markers in the copied legal texts – remove before going live */
.review-note {
  margin: 10px 0 15px;
  padding: 10px 14px;
  border-left: 4px solid #e0a800;
  background: #fff3cd;
  color: #533f03;
}
.review-note a { color: #533f03; }
.review-banner { margin-bottom: 25px; }
mark.review { background: #ffe58a; color: #000000; }

/* Links page */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin-bottom: 18px; }

/* Footer */
.site-footer { margin-top: 40px; }
.footer-menu { margin-left: -12px; }
.footer-menu a {
  display: inline-block;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 200;
  color: var(--mint);
}
.footer-menu a:hover, .footer-menu a:focus { color: #fff; }

/* Mobile navigation */
@media (max-width: 767px) {
  .logo img { width: 200px; }
  .nav-toggle { display: flex; }
  .main-menu {
    display: none;
    margin: 20px calc(var(--box-padding) * -1) 0;
    background: var(--dropdown);
  }
  .main-menu.open { display: block; }
  .main-menu > ul { display: block; }
  .main-menu > ul > li { margin: 0; border-right: 0; }
  .main-menu a,
  .main-menu > ul > li > a {
    display: block;
    margin: 0;
    padding: 14px 20px;
    line-height: 1.2;
  }
  .main-menu a:hover, .main-menu a:focus { background: var(--dropdown-hover); color: #fff; }
  .main-menu .sub {
    display: block;
    position: static;
    padding: 0;
    min-width: 0;
  }
  .main-menu .sub a { padding-left: 40px; }
  .main-menu .has-sub > a::after { display: none; }
  .divider-wide { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-slider .slide { transition: none; }
  .carousel-track { scroll-behavior: auto; }
}
