/* ==========================================================================
   Orthopädische Chirurgie Lüneburg — Dr. med. Lorenz Kamp
   Stylesheet im Stil der alten Praxisseite (Theme Highwind):
   blauer Kopfkasten wie das Praxisschild, Seitenleiste links, Inhalt rechts.

   Aufbau:
   1. Schriften (lokal, keine Verbindung zu Google)
   2. Farben und Maße
   3. Basis
   4. Kopfbereich: Navigation und Praxisschild
   5. Seitenaufbau: Seitenleiste und Inhalt
   6. Inhaltsbausteine
   7. Seiten: Team, Leistungen, Kontakt, Rechtstexte, Fehlerseite
   8. Fußbereich
   9. Barrierefreiheit und Druck
   ========================================================================== */


/* ==========================================================================
   1. Schriften
   Open Sans (SIL Open Font License, siehe assets/fonts/OFL.txt),
   variable Schrift: eine Datei deckt alle Stärken von 300 bis 800 ab.
   ========================================================================== */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ==========================================================================
   2. Farben und Maße
   ========================================================================== */

:root {
  /* Farben der alten Seite */
  --schild:      #007dbc;   /* blauer Kopfkasten */
  --hintergrund: #f8f8f9;
  --ueberschrift:#444854;
  --text:        #666a76;

  /* Links: etwas dunkler als das Schild-Blau, damit die Schrift auf dem
     hellen Hintergrund den Kontrast nach WCAG AA erreicht (5,3 : 1). */
  --link:        #006da5;
  --link-hover:  #00507a;

  --linie:       #e1e3e8;
  --flaeche:     #ffffff;
  --platzhalter: #e6e7eb;
  --platzhalter-text: #4f5360;

  --schrift: 'Open Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --breite: 1280px;
  --rand: clamp(1rem, 4vw, 2rem);
  --seitenleiste: 240px;
}


/* ==========================================================================
   3. Basis
   ========================================================================== */

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

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

/* Die Seite füllt immer den ganzen Bildschirm: Ist der Inhalt kurz, bleibt
   zwischen Inhalt und Fußleiste leerer Raum, und die Fußleiste sitzt unten. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.7;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--ueberschrift);
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p,
ul,
dl,
address {
  margin: 0 0 1.2em;
}

address {
  font-style: normal;
}

strong {
  color: var(--ueberschrift);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}


/* ==========================================================================
   4. Kopfbereich
   ========================================================================== */

/* --- Navigation --------------------------------------------------------- */

.nav {
  background: var(--flaeche);
}

/* Punkte mittig über dem Praxisschild, alle im selben Blau */
.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: 1.05rem 0;
  color: var(--link);
  font-size: 1.0625rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Aktuelle Seite in Schwarz hervorgehoben */
.nav a[aria-current="page"] {
  color: #222222;
  font-weight: 600;
}

/* Kleines Dreieck unter dem aktiven Punkt, wie auf der alten Seite */
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border: 8px solid transparent;
  border-bottom-color: var(--schild);
  border-top-width: 0;
  transform: translateX(-50%);
}

/* --- Praxisschild (blauer Kopfkasten) ----------------------------------- */

/* Höher und mit größerer Schrift, wie das Schild der alten Seite */
.schild {
  padding: clamp(2.6rem, 1.6rem + 3.6vw, 4.75rem) 0 clamp(2.9rem, 1.8rem + 4vw, 5.25rem);
  background: var(--schild);
  color: #ffffff;
  text-align: center;
}

.schild p {
  margin: 0;
}

.schild__titel {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4.1rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.schild__titel a {
  color: #ffffff;
  text-decoration: none;
}

.schild__titel a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.schild__name,
.schild__zusatz {
  font-size: clamp(0.74rem, 0.66rem + 0.4vw, 1rem);
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
}

.schild__name {
  margin-top: 0.85rem !important;
  font-weight: 700;
}

.schild__zusatz {
  margin-top: clamp(1.4rem, 1rem + 1.5vw, 2.3rem) !important;
  font-weight: 400;
}


/* ==========================================================================
   5. Seitenaufbau
   Die Seitenleiste besteht aus zwei Teilen: „Termin vereinbaren!“ steht im
   Quelltext vor dem Inhalt, Sprechzeiten und Adresse danach. Am Desktop
   stehen beide links untereinander, auf dem Handy steht der Termin-Kasten
   oben und der Rest unter dem Inhalt.
   ========================================================================== */

.seite {
  flex: 1 0 auto;              /* nimmt den freien Platz bis zur Fußleiste ein */
  display: grid;
  align-content: start;
  grid-template-columns: var(--seitenleiste) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "termin inhalt"
    "info   inhalt";
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.termin  { grid-area: termin; }
.inhalt  { grid-area: inhalt; min-width: 0; }
.info    { grid-area: info; align-self: start; }

/* --- Seitenleiste ------------------------------------------------------- */

.leiste {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.leiste__block {
  margin-bottom: 2.25rem;
}

.leiste__titel {
  margin: 0 0 0.5rem;
  color: var(--ueberschrift);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
}

.leiste p {
  margin: 0;
}

.termin__hinweis {
  color: var(--text);
}

.termin__telefon {
  display: inline-block;
  margin: 0.15rem 0 0.2rem;
  color: var(--ueberschrift);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.termin__telefon:hover {
  color: var(--link);
  text-decoration: underline;
}

.zeiten__tage {
  display: block;
}

.zeiten__uhr {
  display: block;
  margin-bottom: 0.35rem;
}


/* ==========================================================================
   6. Inhaltsbausteine
   ========================================================================== */

.inhalt > h1 {
  margin-bottom: 0.9em;
}

.inhalt h2 {
  margin-top: 0;
}

.abschnitt + .abschnitt {
  margin-top: 3.5rem;
}

/* Hinweiskasten */
.kasten {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--schild);
  background: var(--flaeche);
  color: var(--ueberschrift);
}

.kasten p {
  margin: 0;
}

.kasten p + p {
  margin-top: 0.6rem;
}

/* Schlichter Knopf, z. B. für die Routenplanung */
.knopf {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 3px;
  background: var(--link);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.knopf:hover {
  background: var(--link-hover);
  color: #ffffff;
}

/* Liste mit Jahreszahlen (Qualifikationen, Ausbildung) */
.lebenslauf {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.lebenslauf li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--linie);
}

.lebenslauf li:last-child {
  border-bottom: 1px solid var(--linie);
}

.lebenslauf__jahr {
  color: var(--ueberschrift);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Aufklappbarer Bereich (z. B. Ausbildung auf der Team-Seite).
   Natives details-Element: per Tastatur bedienbar, Vorleseprogramme
   melden „eingeklappt“ bzw. „ausgeklappt“. */
.aufklappen {
  margin: 0 0 2rem;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}

.aufklappen summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  color: var(--ueberschrift);
  cursor: pointer;
  list-style: none;
}

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

.aufklappen__titel {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Hinweis rechts: „anzeigen“ bzw. „ausblenden“ mit Pfeil */
.aufklappen__hinweis {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--link);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.aufklappen__hinweis::before {
  content: "anzeigen";
}

.aufklappen__hinweis::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.aufklappen[open] .aufklappen__hinweis::before {
  content: "ausblenden";
}

.aufklappen[open] .aufklappen__hinweis::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.aufklappen summary:hover .aufklappen__hinweis {
  color: var(--link-hover);
  text-decoration: underline;
}

.aufklappen .lebenslauf {
  margin: 0;
  padding: 0 1.1rem 0.4rem;
}

.aufklappen .lebenslauf li:last-child {
  border-bottom: 0;
}


/* ==========================================================================
   7. Seiten
   ========================================================================== */

/* --- Startseite --------------------------------------------------------- */

/* Begrüßung als Seitenüberschrift, Größe wie die Zwischenüberschrift der alten Seite */
.inhalt > h1.willkommen {
  margin-bottom: 1.1em;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 400;
  line-height: 1.35;
}

/* --- Team --------------------------------------------------------------- */

.arzt {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 13fr);   /* Foto gut ein Drittel */
  gap: 2.5rem;
  align-items: start;
}

.arzt__bild img,
.mitglied__bild img {
  width: 100%;
  background: var(--platzhalter);
}

.arzt__beruf {
  margin-bottom: 2rem;
}

.arzt h3 {
  margin-bottom: 0.7rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mitglied__bild {
  margin-bottom: 1rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--platzhalter);
}

.mitglied__bild img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mitglied h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.mitglied p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Leistungen --------------------------------------------------------- */

.leistung {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);    /* Fotos knapp die Hälfte */
  gap: 2.5rem;
  align-items: start;
}

.leistung + .leistung {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--linie);
}

.leistung__fotos {
  display: grid;
  gap: 1rem;
}

.leistung__fotos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Graue Bildfläche, bis die Fotos von Dr. Kamp da sind */
.foto-platzhalter {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: var(--platzhalter);
  color: var(--platzhalter-text);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.leistung__text > :last-child {
  margin-bottom: 0;
}

/* --- Kontakt ------------------------------------------------------------ */

.kontakt-daten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2.5rem;
  margin: 0 0 2.5rem;
}

.kontakt-daten dt {
  margin-bottom: 0.3rem;
  color: var(--ueberschrift);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kontakt-daten dd,
.kontakt-daten address {
  margin: 0;
}

.anfahrt__foto {
  margin: 0 0 1.5rem;
}

.anfahrt__foto img {
  width: 100%;
  max-width: 640px;
}

.anfahrt__wege {
  margin: 2rem 0 0;
}

.anfahrt__wege dt {
  color: var(--ueberschrift);
  font-weight: 600;
}

.anfahrt__wege dd {
  margin: 0.2rem 0 1.4rem;
}

/* --- Rechtstexte -------------------------------------------------------- */

.rechtstext {
  max-width: 46rem;
}

.rechtstext h2 {
  margin-top: 2.2rem;
  font-size: 1.25rem;
}

.rechtstext ul {
  padding-left: 1.25rem;
}

.rechtstext li {
  margin-bottom: 0.25rem;
}

/* --- Fehlerseite -------------------------------------------------------- */

.zurueck {
  margin-top: 2.5rem;
}


/* ==========================================================================
   8. Fußbereich
   ========================================================================== */

/* Gleicher heller Hintergrund wie die Seite. Zwei feine Linien gliedern:
   eine trennt die Seite von der Fußleiste, eine die Kontaktdaten von der
   Zeile mit Copyright, Impressum und Datenschutz. */
.fuss {
  background: var(--hintergrund);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.fuss__spalten {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.fuss__titel {
  margin: 0 0 0.5rem;
  color: var(--ueberschrift);
  font-size: 1rem;
  font-weight: 600;
}

.fuss p {
  margin: 0;
}

.fuss__unten {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
  font-size: 0.875rem;
}

/* Trennlinien nur so breit wie der Text, nicht bis in den Seitenrand */
.fuss__spalten::before,
.fuss__unten::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--rand);
  left: var(--rand);
  border-top: 1px solid var(--linie);
}

/* Impressum und Datenschutz im Blau der Navigation */
.fuss__recht {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.fuss__recht a {
  text-decoration: none;
}

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


/* ==========================================================================
   Kleine Bildschirme
   ========================================================================== */

@media (max-width: 860px) {
  .seite {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "termin"
      "inhalt"
      "info";
    padding-top: 0;
    padding-bottom: 3rem;
  }

  /* Termin-Kasten direkt unter dem Schild */
  .termin {
    margin: 0 calc(var(--rand) * -1) 2.25rem;
    padding: 1.1rem var(--rand) 1.2rem;
    border-bottom: 1px solid var(--linie);
    background: var(--flaeche);
  }

  .termin .leiste__block {
    margin-bottom: 0;
  }

  .info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--linie);
  }

  .info .leiste__block {
    margin-bottom: 0;
  }

  .fuss__spalten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .arzt,
  .leistung {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .arzt__bild {
    max-width: 300px;
  }

  .leistung__fotos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .kontakt-daten {
    grid-template-columns: minmax(0, 1fr);
  }

  .fuss__spalten {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 420px) {
  .nav ul {
    gap: 0 1.25rem;
  }

  .info {
    grid-template-columns: minmax(0, 1fr);
  }

  .lebenslauf li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}


/* ==========================================================================
   9. Barrierefreiheit und Druck
   ========================================================================== */

.sprungmarke {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ueberschrift);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.sprungmarke:focus {
  color: #ffffff;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.schild :focus-visible {
  outline-color: #ffffff;
}

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .nav,
  .sprungmarke {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .schild {
    padding: 1rem 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
