/* HNO-Zentrum Eberbach – statischer Nachbau */

@font-face {
  font-family: "Exo";
  src: url("../fonts/exo-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f5f5;
  --box: #fff;
  --text: #666;
  --heading: #444;
  --muted: #737373;
  --line: #ebebeb;
  --link: #2a78a3;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --font: "Lucida Sans Unicode", "Lucida Grande", Arial, sans-serif;
  --font-head: "Exo", Arial, Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.7 var(--font);
}

a { color: var(--link); }
a:hover { color: #1d5878; }

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

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.box {
  background: var(--box);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Kopf + Slider */
.hero { position: relative; padding: 0; }

.logo {
  position: absolute;
  z-index: 3;
  top: -10px;
  left: 20px;
  margin: 0;
  padding: 10px 24px 14px;
  background: var(--box);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  font: 400 clamp(26px, 5vw, 44px)/1.2 var(--font-head);
  -webkit-font-smoothing: antialiased;
}
.logo a { color: var(--text); text-decoration: none; }

.slider { position: relative; padding: 20px; }
.slides { position: relative; aspect-ratio: 940 / 400; overflow: hidden; }
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.slides img.is-active { opacity: 1; }

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: #ccc;
  cursor: pointer;
}
.dots button[aria-current="true"] { background: #777; }

/* Banner */
.banner {
  margin-top: 30px;
  text-align: center;
  color: #6b6b6b;
  font: 400 clamp(16px, 2.4vw, 21px)/1.4 var(--font-head);
  -webkit-font-smoothing: antialiased;
}
.banner h1 { margin: 6px 0; font: inherit; color: inherit; }

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

/* Raster */
.grid {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

h2, h3 {
  margin: 0 0 14px;
  color: var(--heading);
  font: 400 16px/1.4 var(--font-head);
  -webkit-font-smoothing: antialiased;
}

.hours { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.hours th, .hours td { padding: 0 0 10px; text-align: left; vertical-align: top; font-weight: 400; }
.hours th { width: 34%; }

.contact { list-style: none; margin: 0; padding: 0; }
.contact li {
  position: relative;
  padding: 0 0 10px 26px;
}
.contact svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  fill: #b5b5b5;
}

/* Akkordeon */
.toggle { border-top: 1px solid var(--line); }
.toggle details { border-bottom: 1px solid var(--line); }
.toggle summary {
  position: relative;
  padding: 8px 30px 8px 0;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 4px;
  color: #bbb;
  font-size: 20px;
  line-height: 1.3;
}
.toggle details[open] summary::after { content: "\2212"; }
.toggle .content { padding: 0 0 15px; }
.toggle h4 { margin: 10px 0 4px; color: var(--heading); font-size: 13px; }
.toggle ul { margin: 0; padding-left: 20px; }
.toggle ul ul { list-style: circle; }

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Unterseiten */
.page { margin-top: 30px; }
.page h1 {
  margin: -20px -20px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font: 400 22px/1.3 var(--font-head);
  -webkit-font-smoothing: antialiased;
}
.page h2 { margin-top: 26px; font-size: 18px; }
.page h3 { margin-top: 20px; font-size: 15px; }
.page p, .page li { max-width: 75ch; overflow-wrap: break-word; }

/* Fuß */
.footer {
  margin: 30px 0;
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 16px 16px 0; }
  .logo { position: static; box-shadow: none; padding: 16px 16px 0; }
  .slider { padding: 12px 16px 16px; }
  .box { padding: 16px; }
  .page h1 { margin: -16px -16px 16px; padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides img { transition: none; }
}
