/* ==========================================================================
   A-Team München – Anästhesie
   Stylesheet für alle Seiten

   Aufbau
   1.  Grundlagen (Schrift, Farben, Reset)
   2.  Kopfbereich (Header, Hero, Navigation)
   3.  Fußbereich (Footer)
   4.  Gemeinsame Bausteine (Akkordeon, Teal-Titelbox)
   5.  Startseite
   6.  Anästhesie-Angebot
   7.  Ärzte- und Team-Seiten
   8.  Kontakt-Seiten
   9.  Patienten-Information
   10. Impressum / Datenschutz
   11. Mobile Ansicht (unter 1060 px Breite)

   Die Desktop-Ansicht ist 1024 px breit und wird zentriert. Header, Hero
   und Footer sind dabei ein Stück breiter bzw. gehen über die volle
   Fensterbreite. Positionsangaben im Header/Hero beziehen sich auf die
   obere linke Ecke dieser 1024-px-Spalte.
   ========================================================================== */


/* ==========================================================================
   1. Grundlagen
   ========================================================================== */

@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/titilliumweb-light-webfont.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/titilliumweb-semibold-webfont.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Titillium Web";
  src: url("../fonts/titilliumweb-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #25b4b1;
  --teal-dark: #4fa29f;
  --blue: #179cd7;
  --blue-light: #60bbd7;
  --sky: #009fe3;
  --tab-active: #369de2;
  --tab-idle: #dfdfdf;
  --text-muted: #7f7f7f;
  --line: #e5e5e5;
  --footer-bg: #eeeeee;
  --footer-button: #d2d2d2;
  --panel-bg: #f2f6f9;

  --page-width: 1024px;
  --font: "Titillium Web", Arial, Helvetica, sans-serif;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: #000;
  font: 400 14px/17px var(--font);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Der Seitenrahmen hält den Footer am unteren Fensterrand,
   auch wenn eine Seite wenig Inhalt hat. */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
}

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


/* ==========================================================================
   2. Kopfbereich
   ========================================================================== */

.site-header {
  position: relative;
  height: 306px;               /* Unterseiten */
}

.site-header--home {
  height: 430px;
}

.site-header--plain {
  height: 216px;               /* Impressum / Datenschutz: nur Logo + Linie */
}

/* Hintergrundbild über die volle Breite */
.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 73px;
  height: 233px;
  background: url("../images/hero-sub-bg.png") center / cover no-repeat;
}

.site-header--home .hero-bg {
  top: 74px;
  height: 356px;
  background-image: url("../images/hero-home-bg.png");
}

.site-header--contact .hero-bg {
  top: 56px;
  height: 250px;
  background: #f8f8f8;
}

.site-header--plain .hero-bg {
  display: none;
}

/* Zentriertes Bild über dem Hintergrund (1224 px breit) */
.hero-art {
  position: absolute;
  left: 50%;
  top: 73px;
  width: 1224px;
  height: 233px;
  margin-left: -612px;
  background: center / 1224px auto no-repeat;
}

.site-header--home .hero-art {
  top: 74px;
  height: 356px;
  background-image: url("../images/hero-home-stethoscope.png");
}

.site-header--team .hero-art {
  top: 128px;
  height: 178px;
  background-image: url("../images/hero-team.png");
}

.site-header--offer .hero-art {
  top: 146px;
  height: 160px;
  width: 1056px;
  margin-left: -495px;          /* Bild beginnt bei x = 17 der 1024-px-Spalte */
  background-size: 1056px auto;
  background-image: url("../images/hero-angebot.png");
}

.site-header--patients .hero-art {
  background-image: url("../images/hero-patienten.png");
}

.site-header--contact .hero-art {
  top: 143px;
  height: 163px;
  background-image: url("../images/hero-kontakt.png");
}

.site-header--plain .hero-art {
  display: none;
}

/* Weiße Fläche mit blauer EKG-Linie; darunter scheint das Hero-Bild durch */
.header-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 46px;
  height: 170px;
  background: url("../images/header-line.png") calc(50% + 90px) center no-repeat;
}

/* 1024 px breite Spalte, in der Logo, Navigation und Titelbox sitzen */
.header-inner {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--page-width);
  height: 100%;
  margin-left: -512px;
}

.logo {
  position: absolute;
  left: -6px;
  top: 31px;
}

.doctor-nav a {
  position: absolute;
  top: 133px;
  color: var(--sky);
}

.doctor-nav a:nth-child(1) { left: -1px; }
.doctor-nav a:nth-child(2) { left: 171px; }
.doctor-nav a:nth-child(3) { left: 347px; }

.doctor-nav a:hover {
  text-decoration: underline;
}

/* Telefonnummer + Kontakt-Link rechts oben */
.header-contact {
  position: absolute;
  left: 765px;
  top: 36px;
  width: 262px;
  height: 27px;
  border-top: 1px solid rgba(127, 127, 127, 0.3);
  border-bottom: 1px solid rgba(127, 127, 127, 0.3);
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 22px;
}

.header-contact__icon {
  position: absolute;
  left: 3px;
  top: 1px;
  padding: 2px 1px 3px 0;
}

.header-contact__phone,
.header-contact__link {
  position: absolute;
  top: 1px;
}

.header-contact__phone { left: 32px; }
.header-contact__link  { left: 200px; }

.header-contact a:hover {
  color: var(--blue);
}

.home-link {
  position: absolute;
  left: 0;
  top: 161px;
}

/* Türkise Titelbox auf den Unterseiten */
.hero-title {
  position: absolute;
  left: 0;
  top: 251px;
  width: 314px;
  height: 110px;
  display: flex;
  align-items: center;
  padding: 0 20px 2px;
  border-radius: 5px;
  color: #fff;
  font-size: 26px;
  line-height: 31px;
  isolation: isolate;
}

.site-header--team .hero-title {
  padding: 0 18px 6px;
}

.site-header--contact .hero-title {
  padding-bottom: 5px;
  line-height: 34px;
}

.hero-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 5px;
  background: var(--teal);
  opacity: 0.8;
}

.hero-title h1,
.hero-title h2 {
  width: 263px;
  font-size: inherit;
  line-height: inherit;
}

/* Textbox auf dem Hero-Bild der Startseite */
.hero-claim {
  position: absolute;
  left: 243px;
  top: 272px;
  width: 539px;
  height: 114px;
  padding-top: 25px;
  text-align: center;
  font-size: 27px;
  line-height: 32px;
  isolation: isolate;
}

.hero-claim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 4px solid #fff;
  background: #f2f4f4;
  opacity: 0.7;
}

.hero-claim h1,
.hero-claim p {
  font-size: inherit;
  line-height: inherit;
}

/* Mobile Navigation: auf dem Desktop ausgeblendet */
.menu-toggle,
.mobile-logo,
.mobile-menu {
  display: none;
}


/* ==========================================================================
   3. Fußbereich
   ========================================================================== */

.site-footer {
  flex-shrink: 0;
  height: 186px;
  background: var(--footer-bg);
}

.footer-inner {
  position: relative;
  width: var(--page-width);
  height: 100%;
  margin: 0 auto;
}

.footer-heading {
  position: absolute;
  top: 45px;
  font-weight: 600;
}

.footer-heading--members { left: 21px; }
.footer-heading--contact { left: 669px; }

.footer-logos {
  position: absolute;
  left: 0;
  top: 62px;
}

.footer-button {
  position: absolute;
  left: 376px;
  width: 250px;
  height: 20px;
  padding-top: 3px;
  background: var(--footer-button);
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}

.footer-button:hover {
  background: var(--blue);
  color: #fff;
}

.footer-button--team     { top: 44px; }
.footer-button--offer    { top: 70px; }
.footer-button--patients { top: 98px; }

.footer-contact {
  position: absolute;
  left: 671px;
  top: 67px;
  width: 202px;
  font-style: normal;
}

.footer-contact a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

.footer-legal {
  position: absolute;
  left: 892px;
}

.footer-legal--imprint { top: 70px; }
.footer-legal--privacy { top: 102px; }


/* ==========================================================================
   4. Gemeinsame Bausteine
   ========================================================================== */

/* Akkordeon auf Basis von <details> */
.accordion > summary {
  list-style: none;
  cursor: pointer;
}

.accordion > summary::-webkit-details-marker {
  display: none;
}

/* Große türkise Akkordeon-Leiste (Startseite) */
.about > summary {
  position: relative;
  height: 60px;
  padding: 15px 0 0 10px;
  border-radius: 10px;
  background: var(--teal) url("../images/accordion-down.png") right center no-repeat;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 27px;
  line-height: 32px;
  text-align: center;
  opacity: 0.8;
}

.about[open] > summary {
  border-radius: 10px 10px 0 0;
  background-image: url("../images/accordion-up.png");
}

.about__content {
  padding: 0 10px 25px;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.4);
  font-size: 21px;
  line-height: 25px;
}

.about__content::before {
  /* leere Eingangszeile, wie im Original */
  content: "";
  display: block;
  height: 19px;
}

.about__content p + p {
  margin-top: 25px;
}

.about__content p:last-child {
  margin-bottom: 29px;
}


/* ==========================================================================
   5. Startseite
   ========================================================================== */

.home-main {
  min-height: 902px;
}

.home-main .about {
  margin-top: 39px;
}

/* Drei Bildkarten */
.cards {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.card {
  position: relative;
  flex: 0 0 314px;
  height: 285px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.card img {
  width: 314px;
  height: 284px;
  object-fit: cover;
}

.card--team {
  flex-basis: 315px;
}

.card--team img {
  width: 315px;
  height: 260px;
  margin-top: 25px;
}

.card--team .card__label {
  padding-left: 21px;
}

.card__label {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 2px 14px 0;
  color: #fff;
  font-size: 16px;
  line-height: 18px;
  isolation: isolate;
}

.card__label::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px 10px 0 0;
  background: var(--teal);
  opacity: 0.8;
}

.card:hover .card__label::before {
  opacity: 1;
}

.card__label h2 {
  font-size: inherit;
  line-height: inherit;
}

/* Referenzen: Raster mit festen Positionen innerhalb der 1024-px-Spalte */
.references {
  position: relative;
  height: 409px;
  margin-top: 47px;
  margin-bottom: 22px;
}

.references__top {
  position: absolute;
  left: 0;
  top: 0;
  width: 1024px;
  height: 300px;
}

.references__sheet {
  position: absolute;
  left: 0;
  top: 0;
}

.references__title {
  position: absolute;
  left: 40px;
  top: 40px;
  color: var(--teal);
  font-size: 20px;
  line-height: 24px;
}

.references__item {
  position: absolute;
  display: block;
}

/* Unsichtbare Klickflächen über den Logos im Hintergrundbild */
.ref-link--algesiologikum { left: 21px;  top: 94px; width: 118px; height: 96px; }
.ref-link--swmbrk         { left: 205px; top: 94px; width: 207px; height: 96px; }
.ref-link--neuhann        { left: 462px; top: 94px; width: 206px; height: 93px; }
.ref-link--diakonie       { left: 711px; top: 94px; width: 124px; height: 93px; }
.ref-link--kinderzahn     { left: 889px; top: 89px; width: 114px; height: 101px; }

.ref-trammer-greber { left: 40px;  top: 224px; width: 240px; height: 63px; }
.ref-trammer-greber img { width: 69px; height: 63px; }
.ref-trammer-greber span {
  position: absolute;
  left: 80px;
  top: 15px;
  width: 160px;
}

.ref-deindl { left: 324px; top: 219px; }
.ref-aesthetic { left: 511px; top: 208px; }
.ref-vascura { left: 778px; top: 225px; }

.ref-kauer {
  left: 39px;
  top: 341px;
  width: 111px;
  font-weight: 700;
}

.ref-kauer strong { color: #e1007a; font-weight: 700; display: block; }

.ref-kinderchirurgen {
  left: 175px;
  top: 340px;
  width: 111px;
  font-weight: 700;
}

.ref-kinderchirurgen span { color: #1cb0d1; display: block; }

.ref-lachzahn { left: 311px; top: 322px; }


/* ==========================================================================
   6. Anästhesie-Angebot
   ========================================================================== */

.offer-main {
  min-height: 997px;
}

.offer-points {
  position: relative;
  height: 227px;
  margin-top: 109px;
  color: var(--blue);
  font-size: 22px;
  line-height: 26px;
}

.offer-points p,
.offer-points h2 {
  position: absolute;
  top: 0;
  font-size: inherit;
  line-height: inherit;
}

.offer-points .point-1 { left: 38px;  width: 279px; }
.offer-points .point-2 { left: 384px; width: 266px; }
.offer-points .point-3 { left: 726px; width: 241px; }

/* graue Trennbalken */
.offer-points .bar {
  position: absolute;
  top: 39px;
  width: 5px;
  height: 110px;
  background: var(--line);
}

.offer-points .bar-1 { left: 9px; }
.offer-points .bar-2 { left: 344px; }
.offer-points .bar-3 { left: 678px; }
.offer-points .bar-4 { left: 1012px; }

.offer-panel {
  position: relative;
  height: 265px;
  background: var(--panel-bg);
}

.offer-panel + .offer-panel {
  margin-top: -1px;
}

.offer-panel img {
  position: absolute;
  width: 334px;
  height: 225px;
}

.offer-panel--first img  { left: 21px;  top: 20px; }
.offer-panel--second img { left: 669px; top: 21px; }

.offer-panel__text {
  position: absolute;
  font-size: 16px;
  line-height: 19px;
}

.offer-panel--first .offer-panel__text {
  left: 465px;
  top: 50px;
  width: 463px;
}

.offer-panel--first h2 {
  margin-bottom: 26px;
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 26px;
}

.offer-panel--second .offer-panel__text {
  left: 95px;
  top: 61px;
  width: 448px;
}

.offer-main .offer-end {
  height: 132px;
}


/* ==========================================================================
   7. Ärzte- und Team-Seiten
   ========================================================================== */

.team-main {
  min-height: 812px;
}

/* Textbreite im Profil: Kaiser/Anke 555 px, alle anderen 485 px */
.team-main--karrer,
.team-main--kaestle,
.team-main--wolf,
.team-main--strebe,
.team-main--kaminski,
.team-main--korber {
  --text-width: 485px;
  --heading-height: 62px;
}

.team-main--kaiser   { min-height: 812px; }
.team-main--kaestle  { min-height: 859px; }
.team-main--wolf     { min-height: 868px; }

/* Reiter oben rechts: erst Ärzte, dann Praxisteam */
.team-tabs {
  position: absolute;
  left: 355px;
  top: 24px;                    /* y = 330 */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 654px;
  z-index: 1;                   /* liegt über dem Profilbereich, sonst nicht klickbar */
}

.team-tabs a {
  display: block;
  width: 156px;
  height: 31px;
  padding-top: 6px;
  border-radius: 4px;
  background: var(--tab-idle);
  color: #767676;
  line-height: 17px;
  text-align: center;
}

.team-tabs a:hover,
.team-tabs a[aria-current="page"] {
  background: var(--tab-active);
  color: #fff;
}

/* Foto links; bei Praxisteam-Seiten 70 px tiefer */
.team-photo {
  position: absolute;
  left: 0;
  top: 55px;                    /* y = 361 */
  width: 315px;
  height: 470px;
  overflow: hidden;
}

.team-photo img {
  width: auto;
  height: 470px;
  max-width: none;
  margin-left: 0;
}

.team-photo--wide img {
  margin-left: -25px;           /* 366 px breites Bild wird mittig beschnitten */
}

.team-photo--staff {
  top: 125px;                   /* y = 431 */
}

.team-photo__caption {
  position: absolute;
  left: 36px;
  top: 525px;                   /* direkt unter dem Foto (y = 831) */
  width: 227px;
  color: #a4a4a4;
  text-align: center;
}

/* Klickbare Bereiche über den Personen im Gruppenfoto */
.team-photo__hotspot {
  position: absolute;
  display: block;
}

/* Positionen der Personen im jeweiligen Gruppenfoto (relativ zum Foto) */
.team-main--kaiser .hotspot-kaiser   { left: 99px;  top: 32px; width: 112px; height: 414px; }
.team-main--kaiser .hotspot-karrer   { left: 211px; top: 41px; width: 98px;  height: 330px; }
.team-main--kaiser .hotspot-kaestle  { left: 21px;  top: 52px; width: 78px;  height: 310px; }

.team-main--karrer .hotspot-karrer   { left: 99px;  top: 12px; width: 129px; height: 435px; }
.team-main--karrer .hotspot-kaestle  { left: 228px; top: 51px; width: 81px;  height: 312px; }
.team-main--karrer .hotspot-kaiser   { left: 21px;  top: 51px; width: 78px;  height: 339px; }

.team-main--kaestle .hotspot-kaestle { left: 99px;  top: 33px; width: 112px; height: 414px; }
.team-main--kaestle .hotspot-kaiser  { left: 211px; top: 46px; width: 98px;  height: 347px; }
.team-main--kaestle .hotspot-karrer  { left: 21px;  top: 33px; width: 78px;  height: 360px; }

.team-profile {
  position: relative;
  margin-left: 410px;
  width: 593px;
  padding-top: 125px;           /* Überschrift bei y = 431 */
}

.team-profile h2 {
  height: var(--heading-height, 63px);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}

/* Abschnitte mit dünner Trennlinie, wie im Original */
.profile-section {
  width: 593px;
  padding-bottom: 16px;         /* zwei Leerzeilen im Original = 34 px Abstand */
  margin-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.profile-section--narrow {
  padding-bottom: 7px;          /* eine Leerzeile im Original = 17 px Abstand */
  margin-bottom: 9px;
}

.profile-section--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-section p {
  width: var(--text-width, 555px);
}

.profile-section p.spaced {
  margin-top: 17px;
}

.profile-section ul {
  width: var(--text-width, 555px);
  padding-left: 34px;
}

.profile-section li {
  position: relative;
}

.profile-section li::before {
  content: "-";
  position: absolute;
  right: 100%;
  margin-right: 6px;
}


/* ==========================================================================
   8. Kontakt-Seiten
   ========================================================================== */

.contact-main {
  min-height: 535px;
}

.contact-text {
  position: absolute;
  left: -1px;
  top: 114px;                   /* y = 420 */
  width: 315px;
}

.contact-text p + p {
  margin-top: 0;
}

.contact-text .spacer {
  height: 34px;
}

.contact-text strong {
  font-weight: 700;
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-form {
  position: absolute;
  left: 498px;
  top: 54px;                    /* y = 360 */
  width: 506px;
  display: grid;
  grid-template-columns: 222px 222px;
  column-gap: 62px;
  row-gap: 13px;
}

.form-field {
  display: block;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field__label {
  display: block;
  margin: 0 0 5px 1px;
  color: #6b6b6b;
  line-height: 14px;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  height: 28px;
  padding: 6px;
  border: 1px solid #c4c4c4;
  border-radius: 0;
  background: #f2f2f2;
  color: #4f4f4f;
  font: inherit;
  line-height: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  width: 506px;
  height: 167px;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #c4c4c4;
}

.form-field input:hover,
.form-field input:focus,
.form-field textarea:hover,
.form-field textarea:focus {
  border-color: #6b6b6b;
  background: #fff;
}

.form-field input:not(:placeholder-shown),
.form-field textarea:not(:placeholder-shown) {
  background: #fff;
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  border-color: #d7244c;
  background: #fff;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 0 2px;
}

.form-submit {
  width: 131px;
  height: 31px;
  padding: 0;
  border: 1px solid #6b6b6b;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
}

.form-submit:hover {
  background: #f2f2f2;
  color: var(--blue);
}

.form-submit:disabled {
  border-color: #dedede;
  background: #dedede;
  color: #c4c4c4;
  cursor: default;
}

.form-status {
  margin: 0;
  color: #999;
  font: italic 14px/1 Georgia, Palatino, "Palatino Linotype", Times, serif;
}

.form-status--error {
  color: #d7244c;
}

/* Honigtopf-Feld gegen Spam, für Menschen unsichtbar */
.form-honeypot {
  position: absolute;
  left: -9999px;
}

.contact-text--patients > p:first-child {
  width: 249px;
}

.contact-text--patients .spacer {
  height: 50px;
}

/* Danke-Seite: Text steht rechts, wie ein Profiltext der Team-Seiten */
.thanks-text {
  position: absolute;
  left: 410px;
  top: 125px;                   /* y = 431 */
  width: 485px;
}

.thanks-text h2 {
  height: 62px;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}


/* ==========================================================================
   9. Patienten-Information
   ========================================================================== */

.patients-main {
  min-height: 560px;
  padding-bottom: 60px;
}

/* Reiter-Liste links */
.patient-tabs {
  position: absolute;
  left: 0;
  top: 95px;                    /* y = 401 */
  width: 210px;
}

.patient-tabs button {
  display: block;
  width: 210px;
  height: 32px;
  margin: 0 0 8px;
  padding: 2px 10px 0;
  border: 1px solid #7f7f7f;
  border-width: 1px 0;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.patient-tabs button:hover {
  border-color: #999;
  background: var(--blue);
  color: #fff;
}

.patient-tabs button[aria-selected="true"] {
  border-color: #7f7f7f;
  background: var(--blue);
  color: #fff;
}

/* Inhaltsfläche rechts */
.patient-panels {
  margin-left: 210px;
  padding: 76px 0 0;            /* oberer Rand der Fläche bei y = 382 */
}

.patient-panel {
  width: 604px;
  padding: 20px 20px 40px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
}

.patient-panel[hidden] {
  display: none;
}

.patient-panel h2 {
  color: var(--blue);
  font-size: 18px;
  line-height: 25px;
}

.patient-panel h2 + p,
.patient-panel h2 + h3 {
  margin-top: 25px;
}

.patient-panel h3 {
  color: var(--blue);
  font-size: 15px;
  line-height: 21px;
}

.patient-panel p + p,
.patient-panel p + h2,
.patient-panel p + h3,
.patient-panel ul + p,
.patient-panel ul + h2,
.patient-panel ul + h3,
.patient-panel .accordion-list + h2 {
  margin-top: 20px;
}

.patient-panel h3 + p,
.patient-panel h3 + ul {
  margin-top: 0;
}

.patient-panel ul {
  padding-left: 34px;
}

.patient-panel li {
  position: relative;
}

.patient-panel li::before {
  content: "•";
  position: absolute;
  right: 100%;
  margin-right: 6px;
}

/* Einzelne Reiter weichen im Zeilenabstand etwas ab */
.patient-panel--rules h2 + h3 {
  margin-top: 20px;
}

.patient-panel .note {
  line-height: 17px;
}

.patient-panel--flow h2,
.patient-panel--pain h2,
.patient-panel--faq h2 {
  line-height: 22px;
}

.patient-panel--flow h2 + p,
.patient-panel--pain h2 + p {
  margin-top: 22px;
}

.patient-panel--flow h2,
.patient-panel--procedures h2 {
  color: var(--blue-light);
}

.patient-panel--procedures {
  padding-top: 18px;
}

.patient-panel--procedures h2:not(:first-child) {
  margin-top: 29px;
}

.patient-panel--faq h2 {
  position: relative;
  top: -3px;
}

.accordion-list--faq {
  width: 564px;
  margin-left: 10px;
}

.accordion-list--faq .accordion__content {
  padding-top: 6px;
}

.patient-panel p.tight {
  margin-top: 0;
}

.patient-panel--procedures .accordion-list {
  margin-top: 19px;
}

/* Fließtext im ersten Reiter ist größer */
.patient-panel--info {
  font-size: 16px;
  line-height: 22px;
}

.patient-panel--info p + p,
.patient-panel--info p + h2 {
  margin-top: 22px;
}

.patient-panel--info h2 + p {
  margin-top: 22px;
}

.patient-panel--info h2 {
  line-height: 25px;
}

.patient-panel .hint {
  color: var(--blue);
}

/* Aufklappbare Zeilen innerhalb der Reiter */
.accordion-list {
  margin-top: 20px;
}

.accordion-list .accordion > summary {
  position: relative;
  min-height: 36px;
  padding: 10px 40px 10px 10px;
  border: solid #eee;
  border-width: 1px 0;
  background: #fff url("../images/arrow-down.png") right center / contain no-repeat;
  color: var(--blue);
  line-height: 14px;
}

.accordion-list .accordion > summary:hover {
  background-color: var(--blue);
  background-image: none;
  color: #fff;
}

.accordion-list .accordion[open] > summary {
  border-color: var(--blue);
  background: var(--blue) url("../images/arrow-up.png") right center / contain no-repeat;
  color: #fff;
}

.accordion-list .accordion__content {
  padding: 5px 10px 17px;
  background: #fff;
  color: #000;
  line-height: 20px;
}

.accordion-list .accordion__content p + p {
  margin-top: 0;
}

.accordion-list .accordion__content .gap {
  height: 20px;
}

.patient-panel--kids .kids-image {
  margin-left: 39px;
  width: 490px;
  height: 150px;
}

.patient-panel--kids .kids-text {
  width: 569px;
  margin-top: 16px;
  line-height: 17px;
}

.patient-panel--kids .kids-text p + p {
  margin-top: 17px;
}

.patient-panel--kids .kids-text p.tight {
  margin-top: 0;
}

.patient-panel--kids .accordion-list {
  margin-top: 18px;
}

.accordion-list--kids .accordion__content {
  padding: 24px 9px 42px;
}

.accordion-list--kids .accordion__content > :is(p, ul, h3) + :is(p, ul, h3) {
  margin-top: 20px;
}

.accordion-list--kids .accordion__content > p.tight {
  margin-top: 0;
}

.dash-list {
  padding-left: 15px !important;
}

.dash-list li::before {
  content: "- " !important;
  position: static !important;
  margin: 0 !important;
}

.patient-panel .accordion__content h3 {
  margin-top: 20px;
  font-size: 18px;
  line-height: 25px;
}

.patient-panel .accordion__content h3:first-child {
  margin-top: 0;
}

.patient-panel .accordion__content h3 + p {
  margin-top: 20px;
}


/* ==========================================================================
   10. Impressum / Datenschutz
   ========================================================================== */

.legal-main {
  padding: 62px 0 0;
}

.legal-text {
  width: 668px;
  margin-left: 178px;
  padding-bottom: 53px;
}

.legal-text h1,
.legal-text h2,
.legal-text h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
}

.legal-text h2.legal-title {
  margin-top: 17px;
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
}

.legal-text p + p,
.legal-text p + h2,
.legal-text p + h3,
.legal-text ul + h2,
.legal-text ul + h3 {
  margin-top: 17px;
}

.legal-text p.tight {
  margin-top: 0;
}

/* Datenschutz: Überschriften und größere Lücken entsprechen zwei Leerzeilen */
.legal-text--privacy {
  padding-top: 18px;
  padding-bottom: 52px;
}

.legal-text--privacy p + h2,
.legal-text--privacy p.gap-large {
  margin-top: 34px;
}

.legal-text--privacy h1 + p,
.legal-text--privacy h2 + p {
  margin-top: 0;
}

.legal-text a {
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

.legal-text ul {
  padding-left: 34px;
}

.legal-text li {
  position: relative;
}

.legal-text li::before {
  content: "•";
  position: absolute;
  right: 100%;
  margin-right: 6px;
}


/* ==========================================================================
   11. Mobile Ansicht (unter 1060 px Breite)

   Orientiert sich an der früheren Handy-Version: blaue MENU-Fläche mit Logo,
   darunter die Inhalte untereinander.
   ========================================================================== */

@media (max-width: 1059px) {

  /* ---- Kopfbereich: MENU-Leiste + Logo ---- */
  .site-header,
  .site-header--home,
  .site-header--plain {
    height: auto;
    display: grid;
    grid-template-columns: 122px 1fr;
    grid-template-rows: 71px auto auto;
  }

  .hero-bg,
  .hero-art,
  .header-line,
  .logo,
  .doctor-nav,
  .header-contact,
  .home-link {
    display: none;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 71px;
    padding: 0 13px;
    border: 0;
    background: #169ad7;
    color: #fff;
    font: inherit;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 3px;
    cursor: pointer;
  }

  .menu-toggle__bars {
    display: block;
    width: 20px;
  }

  .menu-toggle__bars i {
    display: block;
    height: 4px;
    margin-top: 2px;
    border-radius: 10px;
    background: #fff;
  }

  .menu-toggle__bars i:first-child {
    margin-top: 0;
  }

  .mobile-logo {
    grid-column: 2;
    grid-row: 1;
    display: block;
    padding: 8px 0 0 27px;
  }

  .mobile-logo img {
    max-width: 100%;
    height: auto;
  }

  .mobile-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    background: #ededed;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 10px 20px;
    border-bottom: 1px solid #fff;
    background: var(--footer-bg);
    font-size: 18px;
    line-height: 22px;
    text-align: center;
  }

  .mobile-menu a:hover,
  .mobile-menu a:active {
    background: #169ad7;
    color: #fff;
  }

  /* Titelbox (türkis) rutscht unter die Leiste */
  .header-inner {
    position: static;
    grid-column: 1 / -1;
    grid-row: 3;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 16px;
  }

  .hero-title,
  .site-header--team .hero-title,
  .site-header--contact .hero-title {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    max-width: 568px;
    margin: 20px auto 0;
    padding: 16px 20px;
    font-size: 22px;
    line-height: 27px;
  }

  .hero-title h1,
  .hero-title h2 {
    width: auto;
  }

  .hero-title br {
    display: none;
  }

  /* Startseite: der Claim bleibt für Suchmaschinen erhalten, ist aber nicht sichtbar */
  .hero-claim {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero-claim::before {
    display: none;
  }

  /* ---- Seitenrahmen ---- */
  .site-main {
    width: auto;
    max-width: 600px;
    min-height: 0 !important;
    margin: 0 auto;
    padding: 0 16px 40px;
  }

  /* ---- Startseite ---- */
  .home-main .about {
    margin-top: 28px;
  }

  .about > summary {
    height: auto;
    min-height: 40px;
    padding: 11px 36px 9px 10px;
    background-image: url("../images/accordion-down-mobile.png");
    background-position: center;
    background-size: contain;
    font-size: 17px;
    line-height: 20px;
  }

  .about[open] > summary {
    background-image: url("../images/accordion-up-mobile.png");
  }

  .about__content {
    padding: 0 10px 20px;
    font-size: 17px;
    line-height: 20px;
  }

  .about__content::before {
    height: 20px;
  }

  .about__content p + p {
    margin-top: 20px;
  }

  .about__content p:last-child {
    margin-bottom: 0;
  }

  .about__content br {
    display: none;
  }

  .cards {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 28px;
  }

  .card,
  .card--team {
    flex: none;
    width: 100%;
    max-width: 315px;
    height: auto;
  }

  .card img,
  .card--team img {
    width: 100%;
    height: auto;
    aspect-ratio: 314 / 284;
  }

  .card--team img {
    aspect-ratio: 315 / 260;
  }

  /* Referenzen: Hintergrundbild skaliert, Klickflächen in Prozent */
  .references {
    height: auto;
    margin: 36px 0 0;
  }

  .references__top {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 300;
  }

  .references__sheet {
    width: 100%;
    height: auto;
  }

  .references__title {
    left: 3.9%;
    top: 12%;
    font-size: clamp(13px, 2vw, 20px);
  }

  .ref-link--algesiologikum { left: 2.05%; top: 31.3%; width: 11.5%; height: 32%; }
  .ref-link--swmbrk         { left: 20.0%; top: 31.3%; width: 20.2%; height: 32%; }
  .ref-link--neuhann        { left: 45.1%; top: 31.3%; width: 20.1%; height: 31%; }
  .ref-link--diakonie       { left: 69.4%; top: 31.3%; width: 12.1%; height: 31%; }
  .ref-link--kinderzahn     { left: 86.8%; top: 29.7%; width: 11.1%; height: 33.7%; }

  .references__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 30px;
    padding-top: 10px;
  }

  .references__more .references__item {
    position: static;
    max-width: 100%;
  }

  .ref-trammer-greber {
    display: flex;
    align-items: center;
    gap: 11px;
    width: auto;
    height: auto;
  }

  .ref-trammer-greber span {
    position: static;
    width: auto;
  }

  .ref-kauer,
  .ref-kinderchirurgen {
    width: auto;
  }

  .references__more img {
    max-width: 100%;
    height: auto;
  }

  /* ---- Angebot ---- */
  .offer-points {
    height: auto;
    margin: 28px 0;
    font-size: 20px;
    line-height: 24px;
  }

  .offer-points p,
  .offer-points h2 {
    position: static;
    width: auto;
    margin: 0 0 22px;
    padding-left: 15px;
    border-left: 5px solid var(--line);
  }

  .offer-points .bar {
    display: none;
  }

  .offer-panel {
    height: auto;
    margin: 0 -16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .offer-panel + .offer-panel {
    margin-top: 0;
  }

  .offer-panel img,
  .offer-panel--first img,
  .offer-panel--second img {
    position: static;
    width: 100%;
    max-width: 334px;
    height: auto;
    aspect-ratio: 334 / 225;
  }

  .offer-panel__text,
  .offer-panel--first .offer-panel__text,
  .offer-panel--second .offer-panel__text {
    position: static;
    width: auto;
  }

  .offer-main .offer-end {
    display: none;
  }

  /* ---- Ärzte- und Team-Seiten ---- */
  .team-tabs {
    position: static;
    width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .team-tabs a {
    width: auto;
  }

  .team-photo,
  .team-photo--staff {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 315px;
    height: auto;
    margin: 24px auto 0;
    aspect-ratio: 315 / 470;
  }

  .team-photo img,
  .team-photo--wide img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
  }

  .team-photo__hotspot {
    display: none;
  }

  .team-photo__caption {
    position: static;
    width: auto;
    margin-top: 8px;
  }

  .team-profile {
    width: auto;
    margin: 24px 0 0;
    padding: 0;
  }

  .team-profile h2 {
    height: auto;
    margin-bottom: 20px;
  }

  .profile-section,
  .profile-section p,
  .profile-section ul {
    width: auto;
  }

  /* ---- Kontakt ---- */
  .contact-text,
  .thanks-text {
    position: static;
    width: auto;
    margin-top: 24px;
  }

  .contact-text--patients > p:first-child {
    width: auto;
  }

  .thanks-text h2 {
    height: auto;
    margin-bottom: 12px;
  }

  .contact-form {
    position: static;
    width: auto;
    margin-top: 28px;
    grid-template-columns: 1fr;
  }

  .form-field input,
  .form-field textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .form-field textarea {
    height: 167px;
  }

  /* ---- Patienten-Information ---- */
  .patient-tabs {
    position: static;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
  }

  .patient-tabs button {
    width: auto;
    flex: 1 1 calc(50% - 8px);
    height: auto;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border-width: 1px;
  }

  .patient-panels {
    margin-left: 0;
    padding-top: 20px;
  }

  .patient-panel,
  .patient-panel--procedures {
    width: auto;
    padding: 0 0 20px;
  }

  .patient-panel--kids .kids-image {
    width: 100%;
    max-width: 490px;
    height: auto;
    margin-left: 0;
  }

  .patient-panel--kids .kids-text {
    width: auto;
  }

  .accordion-list--faq {
    width: auto;
    margin-left: 0;
  }

  /* ---- Impressum / Datenschutz ---- */
  .legal-main {
    padding-top: 28px;
  }

  .legal-text {
    width: auto;
    margin-left: 0;
    padding-bottom: 0;
  }

  /* ---- Fußbereich ---- */
  .site-footer {
    height: auto;
  }

  .footer-inner {
    position: static;
    width: auto;
    max-width: 600px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 20px 16px;
  }

  .footer-heading--members,
  .footer-logos,
  .footer-button {
    display: none;
  }

  .footer-heading,
  .footer-contact,
  .footer-legal {
    position: static;
    width: auto;
  }

  .footer-heading--contact {
    flex-basis: 100%;
    text-decoration: underline;
  }

  .footer-contact {
    flex: 1 1 100%;
  }

  .footer-legal--imprint,
  .footer-legal--privacy {
    text-decoration: underline;
  }
}
