/* ==========================================================================
   Sanitätshaus Neusch – statische Website
   Masterlayout: FireShot Capture 221–224 (gemessen bei 1920 px Fensterbreite)
   ========================================================================== */

/* ---------- Schrift (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-light.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-regular.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-semibold.woff") format("woff"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-bold.woff") format("woff"); }

/* ---------- Farben & Maße ---------- */
:root {
  --blau: #5483b8;
  --gruen: #50b45a;
  --grau: #ececec;
  --text: #000;
  --rahmen: 18px;          /* blauer Rahmen rund um die Seite */
  --inhalt: 800px;         /* Inhaltsbreite */
  --fliess: 14px;          /* Fließtext Desktop */
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding: var(--rahmen) var(--rahmen) var(--rahmen);
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--fliess);
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blau); outline-offset: 2px;
}
p { margin: 0 0 .85em; }
h1, h2, h3, h4 { font-weight: 600; color: var(--blau); margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--blau); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 24px; top: 24px; }

/* ---------- Blauer Rahmen (fest, wie im Original) ---------- */
.rahmen { position: fixed; z-index: 90; background: var(--blau); pointer-events: none; }
.rahmen-o { top: 0; left: 0; right: 0; height: var(--rahmen); }
.rahmen-u { bottom: 0; left: 0; right: 0; height: var(--rahmen); }
.rahmen-l { top: 0; bottom: 0; left: 0; width: var(--rahmen); }
.rahmen-r { top: 0; bottom: 0; right: 0; width: var(--rahmen); }

/* ---------- Container ---------- */
.container { width: var(--inhalt); max-width: 100%; margin: 0 auto; }
.container-breit { padding: 0 26px; }

/* ---------- Kopfbereich ---------- */
.kopf { background: #fff; border-bottom: 13px solid var(--blau); }
.kopf .container { display: flex; align-items: center; height: 88px; position: relative; }
.logo { flex: 0 0 auto; display: block; }
.logo img { height: 88px; width: auto; }
.seit { flex: 0 0 auto; margin-left: 77px; }
.seit img { width: 121px; height: auto; }

.hauptnav { margin-left: auto; height: 100%; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.hauptnav li { height: 100%; display: flex; align-items: flex-start; }
.hauptnav a {
  display: flex; align-items: center;
  height: 78px; margin-top: 6px; padding: 0 12.5px;
  font-size: 12.5px; font-weight: 300; color: var(--gruen); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: background-color .2s, color .2s;
}
.hauptnav a:hover { text-decoration: none; color: #2f8a38; }
.hauptnav a[aria-current="page"] {
  background: var(--gruen); color: #fff; font-weight: 600;
  border-bottom-color: var(--blau);
  padding: 0 11px;
}

.menue-knopf { display: none; }

/* ---------- Slider (Startseite) ---------- */
.slider { position: relative; overflow: hidden; background: #e9eef4; aspect-ratio: 1500 / 430; }
.slider-spur { display: flex; height: 100%; transition: transform .6s ease; will-change: transform; }
.slide { flex: 0 0 100%; height: 100%; margin: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 88px; border: 0; padding: 0; cursor: pointer;
  background: rgba(230, 230, 230, .45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: .8; transition: opacity .2s, background-color .2s;
}
.slider-pfeil:hover { opacity: 1; background: rgba(0, 0, 0, .25); }
.slider-pfeil svg { width: 12px; height: 22px; }
.slider-pfeil.zurueck { left: 0; }
.slider-pfeil.weiter { right: 0; }
.slider-punkte { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 1px; }
.slider-punkte button {
  width: 13px; height: 13px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 0; background: rgba(0, 0, 0, .6);
}
.slider-punkte button[aria-current="true"] { background: rgba(255, 255, 255, .85); }

/* ---------- Titelbild Unterseiten ---------- */
.titelbild { position: relative; aspect-ratio: 1500 / 430; background: #dfe8f1 center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.titelbild picture, .titelbild > img { position: absolute; inset: 0; }
.titelbild picture img, .titelbild > img { width: 100%; height: 100%; object-fit: cover; }
.titelbild h1 {
  position: relative; z-index: 1;
  color: #fff; background: rgba(0, 0, 0, .5);
  font-size: 44px; line-height: 66px; font-weight: 600;
  padding: 0 13px; text-align: center;
}

/* ---------- Inhaltsbereiche ---------- */
.abschnitt { padding: 50px 0 50px; text-align: center; }
.abschnitt-grau { background: var(--grau); }
.intro { padding-top: 45px; padding-bottom: 80px; }
.intro .fliesstext { margin-top: 20px; }
.ueberschrift-gross { font-size: 45px; line-height: 48px; letter-spacing: 0; }
.ueberschrift-gross .und { display: inline; width: auto; height: 0.98em; vertical-align: -0.13em; margin-left: .05em; }
.ueberschrift-mittel { font-size: 32px; line-height: 1.3; }
.ueberschrift-klein { font-size: 19.5px; line-height: 1.3; }
.fliesstext p:last-child { margin-bottom: 0; }
.hervor { color: var(--blau); font-weight: 700; }

/* Leistungen */
.leistungen { padding: 41px 0 54px; }
.leistungen .fliesstext { margin-top: 19px; }
.leistungsliste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 53px; margin-top: 54px; text-align: left; }
.leistungsliste ul { list-style: none; margin: 0; padding: 0; }
.leistungsliste li { display: flex; align-items: center; min-height: 56px; margin-bottom: 10px; line-height: 1.1; }
.leistungsliste li.doppelt { margin-bottom: 20px; }
.leistungsliste li:last-child { margin-bottom: 0; }
.leistungsliste svg { flex: 0 0 56px; width: 56px; height: 56px; margin-right: 28px; }

/* Haus & Team */
.haus-team { padding: 42px 0 43px; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; column-gap: 53px; }
.rundbild { width: 224px; height: 224px; border-radius: 50%; overflow: hidden; margin: 20px auto 0; }
.rundbild img { width: 100%; height: 100%; object-fit: cover; }

.produktbild { padding: 96px 0 0; }
.intro.unterseite { padding-bottom: 0; }
.nur-desktop { display: inline; }
.produktbild .rundbild { margin-top: 0; }

/* ---------- Kontaktboxen (alle Seiten) ---------- */
.infoboxen { padding: 62px 0 44px; border-top: 1px solid #f4f4f4; text-align: center; }
.infoboxen.ohne-linie { border-top: 0; padding-top: 59px; }
.infoboxen .container { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
.infobox-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--blau); margin: 0 auto 19px; display: flex; align-items: center; justify-content: center; }
.infobox-icon svg { width: 22px; height: 22px; fill: #fff; }
.infobox h2 { font-size: 19.5px; line-height: 1.3; letter-spacing: 1px; margin-bottom: 13px; font-weight: 600; }
.infobox p { margin: 0; line-height: 1.65; }
.infobox a { color: inherit; }
.infobox a:hover { color: var(--blau); }
.nowrap { white-space: nowrap; }

/* ---------- Karte (statisches Bild, kein Google-Embed) ---------- */
.karte { display: block; height: 352px; background: #eee url("../img/karte-neusch.jpg") center / cover no-repeat; position: relative; }
.karte-hinweis {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(255, 255, 255, .92); color: #333; font-size: 12px; line-height: 1.4;
  padding: 6px 10px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.karte:hover .karte-hinweis { color: var(--blau); text-decoration: underline; }
.karte:hover { text-decoration: none; }

/* ---------- Fußzeile ---------- */
.fuss { padding: 16px 0 70px; font-size: 10px; line-height: 1.6; }
.fuss .container { display: flex; justify-content: space-between; align-items: center; }
.fuss p { margin: 0; color: #0a0a0a; }
.fuss ul { list-style: none; margin: 0 -2px 0 0; padding: 0; display: flex; }
.fuss li + li { border-left: 1px solid #e1e1e1; margin-left: 6px; padding-left: 7px; }

/* ---------- Kontaktseite ---------- */
.kontakt-kopf { padding: 45px 0 0; text-align: center; }
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4%; padding: 76px 0 50px; text-align: left; }
.kontakt-raster h2 { font-size: 19.5px; line-height: 1.3; }
.rechts { text-align: right; }
.rechts .tel-gross { display: block; font-size: 19.5px; font-weight: 700; color: var(--blau); line-height: 1.6; }
.rechts .tel-gross:hover { text-decoration: none; color: #3b6a9e; }
.rechts img { margin: 7px 0 0 auto; width: 582px; }

.formular { margin-top: 13px; }
.formular .feld { margin-bottom: 15px; }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular textarea {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #f1f1f1; border-radius: 0; background: #f8f8f8;
  font: 14px/1.4 Arial, Helvetica, sans-serif; color: #333;
  -webkit-appearance: none; appearance: none;
}
.formular textarea { height: 174px; padding: 12px; resize: vertical; display: block; }
.formular ::placeholder { color: #939393; opacity: 1; }
.formular .check { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px 3px; font-weight: 700; font-size: 13px; }
.formular .check input { width: 13px; height: 13px; margin: 0; }
.formular .stern { color: var(--gruen); }
.formular .einwilligung { margin-bottom: 12px; }
.formular .einwilligung strong { color: var(--blau); }
.formular .rechen input { font-family: inherit; color: #000; font-size: 13px; }
.formular .rechen { margin-top: 14px; }
.formular button {
  height: 45px; padding: 0 41px; border: 0; cursor: pointer;
  background: var(--gruen); color: #fff; font: 600 12.5px/1 "Open Sans", Arial, sans-serif;
}
.formular button:hover { background: #3f9f49; }
.formular .honig { position: absolute; left: -5000px; }
.meldung { padding: 12px 14px; margin: 0 0 18px; border-left: 4px solid var(--gruen); background: #f1f8f2; }
.meldung.fehler { border-left-color: #c0392b; background: #fbf0ee; }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding: 47px 0 60px; text-align: left; }
.rechtstext h1 { text-align: center; margin-bottom: 30px; }
.rechtstext h2 { font-size: 19.5px; line-height: 1.3; margin: 32px 0 10px; }
.rechtstext h3 { font-size: 15px; line-height: 1.3; margin: 22px 0 6px; }
.rechtstext ul { margin: 0 0 .85em; padding-left: 1.3em; }
.rechtstext li { margin-bottom: .3em; }
.rechtstext a { word-break: break-word; }

/* Nach-oben-Knopf */
.nach-oben {
  position: fixed; right: 30px; bottom: 30px; z-index: 80; width: 44px; height: 44px; border-radius: 2px;
  background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; }
.nach-oben:hover { background: var(--blau); text-decoration: none; }
.nach-oben svg { width: 16px; height: 16px; fill: #fff; }

/* ==========================================================================
   Tablet (768–989 px)
   ========================================================================== */
@media (max-width: 989px) {
  :root { --inhalt: 92%; }
  .seit { margin-left: 24px; }
  .seit img { width: 96px; }
  .hauptnav a { padding: 0 9px; }
  .logo img { height: 76px; }
  .rechts img { width: 100%; max-width: 576px; }
}

/* ==========================================================================
   Handy (< 768 px) – Fließtext 16 px
   ========================================================================== */
@media (max-width: 767px) {
  :root { --rahmen: 0px; --fliess: 16px; --inhalt: calc(100% - 32px); }
  .rahmen { display: none; }
  body { padding: 0; line-height: 1.6; }

  .kopf { border-bottom-width: 6px; position: sticky; top: 0; z-index: 70; }
  .kopf .container { height: 72px; }
  .logo img { height: 64px; }
  .seit { margin-left: auto; margin-right: 8px; }
  .seit img { width: 74px; }

  .menue-knopf {
    display: flex; align-items: center; justify-content: center; flex: 0 0 48px;
    width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; color: var(--gruen);
  }
  .menue-knopf span, .menue-knopf span::before, .menue-knopf span::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .25s, background-color .25s;
  }
  .menue-knopf span::before, .menue-knopf span::after { content: ""; position: absolute; left: 0; }
  .menue-knopf span::before { top: -7px; }
  .menue-knopf span::after { top: 7px; }
  .menue-offen .menue-knopf span { background: transparent; }
  .menue-offen .menue-knopf span::before { transform: translateY(7px) rotate(45deg); }
  .menue-offen .menue-knopf span::after { transform: translateY(-7px) rotate(-45deg); }

  .hauptnav {
    position: absolute; top: 100%; left: -16px; right: -16px; height: auto; margin: 6px 0 0;
    background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.12); display: none;
  }
  .menue-offen .hauptnav { display: block; }
  .hauptnav ul { flex-direction: column; height: auto; }
  .hauptnav li { height: auto; display: block; border-top: 1px solid #eee; }
  .hauptnav a, .hauptnav a[aria-current="page"] { height: auto; margin: 0; padding: 14px 16px; font-size: 16px; font-weight: 400; border-bottom: 0; }
  .hauptnav a[aria-current="page"] { font-weight: 600; }

  .slider-pfeil { width: 26px; height: 52px; }
  .slider-punkte { bottom: 6px; }
  .slider-punkte button { width: 10px; height: 10px; }
  .titelbild h1 { font-size: 22px; line-height: 38px; padding: 0 10px; }

  .abschnitt { padding: 36px 0; }
  .intro { padding-top: 32px; padding-bottom: 40px; }
  .ueberschrift-gross { font-size: 28px; line-height: 1.2; }
  .ueberschrift-mittel { font-size: 26px; }
  .ueberschrift-klein { font-size: 20px; }
  .leistungen { padding: 32px 0 36px; }
  .leistungsliste { grid-template-columns: 1fr; margin-top: 28px; }
  .leistungsliste ul + ul { margin-top: 10px; }
  .leistungsliste li, .leistungsliste li.doppelt { margin-bottom: 10px; line-height: 1.3; }
  .leistungsliste ul:first-child li:last-child { margin-bottom: 10px; }
  .leistungsliste svg { flex-basis: 48px; width: 48px; height: 48px; margin-right: 18px; }
  .zwei-spalten { grid-template-columns: 1fr; row-gap: 36px; }
  .rundbild { width: 200px; height: 200px; }
  .nur-desktop { display: none; }
  .produktbild { padding-top: 40px; }

  .infoboxen, .infoboxen.ohne-linie { padding: 40px 0 36px; }
  .infoboxen .container { grid-template-columns: 1fr; row-gap: 30px; }
  .infobox-icon { width: 64px; height: 64px; }
  .infobox h2 { font-size: 20px; }

  .karte { height: 240px; }
  .fuss { padding: 16px 0 24px; font-size: 13px; }
  .fuss .container { flex-direction: column; gap: 8px; }

  .container-breit { padding: 0 16px; }
  .kontakt-kopf { padding-top: 28px; }
  .kontakt-raster { grid-template-columns: 1fr; padding: 32px 0 40px; row-gap: 36px; }
  .rechts { text-align: left; order: -1; }
  .rechts .tel-gross { font-size: 22px; margin-top: 4px; }
  .rechts img { margin: 20px auto 0; width: 100%; max-width: 360px; }
  .formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular textarea { height: 48px; font-size: 16px; }
  .formular textarea { height: 180px; }
  .formular .check { font-size: 16px; }
  .formular .check input { width: 20px; height: 20px; }
  .formular button { height: 50px; font-size: 16px; width: 100%; }

  .rechtstext { padding: 32px 0 40px; }
  .nach-oben { right: 16px; bottom: 16px; }
}
