/* ==========================================================================
   Urologische Gemeinschaftspraxis Braunschweig – uro-bs.de
   Farben und Typografie übernommen aus dem bisherigen Avada-Theme
   ========================================================================== */

/* --- Schrift (selbst gehostet, kein Google-Server-Kontakt) --------------- */
@font-face {
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/catamaran-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: 'Catamaran';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/catamaran-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;
}

/* --- Variablen ---------------------------------------------------------- */
:root {
  --blau: #67b7e1;
  --blau-hover: #219de0;
  --blau-dunkel: #105378;
  --text: #67615a;
  --heading: #333338;
  --bg: #f5f5f1;
  --weiss: #ffffff;
  --linie: #e0dede;
  --breite: 1200px;   /* entspricht site_width des bisherigen Themes */
  --nav-hoehe: 54px;
  color-scheme: only light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Catamaran', Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.2px;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--heading); text-decoration: none; }
a:hover { color: var(--blau); }

h1, h2, h3, h4 { color: var(--heading); margin: 0 0 .8em; }
h1 { font-size: 39px; font-weight: 400; line-height: 1.22; }
h2 { font-size: 22px; font-weight: 600; line-height: 1.61; letter-spacing: 2px; }
h3 { font-size: 20px; font-weight: 400; line-height: 1.27; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blau); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Kopfbereich -------------------------------------------------------- */
.site-header { background: var(--weiss); }

.logo-bar { text-align: center; padding: 22px 24px 14px; }
.logo-bar img { margin: 0 auto; width: 100%; max-width: 900px; }

.mainnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.mainnav > ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--breite);
}
.mainnav a {
  display: block;
  padding: 0 2px;
  line-height: var(--nav-hoehe);
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 3px solid transparent;
}
.mainnav a:hover,
.mainnav li:hover > a,
.mainnav a:focus-visible { color: var(--blau); border-bottom-color: var(--blau); }
.mainnav a[aria-current="page"] { color: var(--blau); border-bottom-color: var(--blau); }

/* Untermenü Kontakt (Doctolib) */
.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 400px;
  background: var(--weiss);
  border: 1px solid var(--linie);
  box-shadow: 0 6px 18px rgba(0,0,0,.09);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; }
.sub a {
  line-height: 1.5;
  padding: 10px 22px;
  font-weight: 400;
  border-bottom: 0;
  white-space: nowrap;
}
.sub a:hover { color: var(--blau); border-bottom: 0; background: #fafafa; }
.sub svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 10px; fill: var(--text); }
.sub a:hover svg { fill: var(--blau); }

/* Menü-Umschalter für schmale Bildschirme (ohne JavaScript) */
.nav-toggle { display: none; }
.nav-label { display: none; }

/* --- Hero mit feststehendem Bild (nur Startseite) ----------------------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 1;
  /* Höhe richtet sich nach dem Inhalt, nicht nach dem Bild —
     dadurch bleibt über der Überschrift und unter den Schaltflächen
     nur so viel Bild stehen wie nötig. */
  height: auto;
  padding: clamp(38px, 4vw, 72px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2f33 url('../img/hero.jpg') center 62% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
}
.hero-inner { position: relative; text-align: center; padding: 0 24px; }
.hero h1 {
  color: var(--weiss);
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 38px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
/* Termin-Schaltflächen stehen untereinander und sind gleich breit */
.termine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.termine .btn { margin: 0; width: 100%; }
.hero .termine { max-width: 520px; margin: 0 auto; }
.site-footer .termine { align-items: stretch; margin-bottom: 4px; }

/* --- Schaltflächen ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 30px;
  background: var(--blau);
  color: var(--weiss);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 0;
  transition: background .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--blau-hover); color: var(--weiss); }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* --- Inhaltsbereich (schiebt sich über das Hero-Bild) ------------------- */
.content {
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.content .wrap { padding-top: 70px; padding-bottom: 70px; }

.intro {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.61;
  letter-spacing: 2px;
  color: var(--heading);
  max-width: 900px;
  margin: 0 auto 60px;
}

.spalten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}
.spalten h2, .spalten h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.5;
  min-height: 3em;     /* Platz für zwei Zeilen, damit die Bilder auf einer Linie beginnen */
  margin-bottom: 20px;
}
.spalten img {
  margin-bottom: 20px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;   /* beide Bilder exakt gleich hoch, unabhängig vom Original */
}
.spalten p { margin: 0; font-size: 16px; line-height: 1.75; }

.abschluss {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--heading);
  margin: 70px 0 0;
}

/* --- Blaue Titelleiste (Unterseiten) ----------------------------------- */
.page-title {
  position: relative;
  z-index: 2;
  background: var(--blau);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-title h1 {
  font-family: 'Catamaran', Georgia, serif;
  color: var(--weiss);
  font-size: 47px;
  line-height: 1.4;
  margin: 0;
  padding: 20px 24px;
}

/* --- Fußbereich --------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--weiss);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.footer-grid h2 {
  color: var(--blau);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3.67px;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.sprechzeiten { width: 100%; border-collapse: collapse; margin-bottom: 34px; }
.sprechzeiten th,
.sprechzeiten td {
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  padding: 9px 0;
  border-bottom: 1px solid var(--linie);
}
.sprechzeiten th { width: 45%; }
.sprechzeiten tr:last-child th,
.sprechzeiten tr:last-child td { border-bottom: 0; }
.sprechzeiten .folgezeile th { border-top: 0; }

.hinweis { font-size: 16px; margin: 22px 0 0; }

.kontaktliste { list-style: none; margin: 0 0 28px; padding: 0; }
.kontaktliste li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.6;
}
.kontaktliste svg { width: 16px; height: 16px; fill: var(--blau); flex: none; margin-top: 6px; }

/* Karte: wird erst nach Klick geladen, vorher kein Kontakt zu Google */
.karte { position: relative; }
.karte-platzhalter {
  background: #e9e9e4;
  border: 1px solid var(--linie);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 30px 24px;
}
.karte-platzhalter p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 420px; }
.karte-platzhalter a { color: var(--blau-dunkel); text-decoration: underline; }
.karte iframe { width: 100%; height: 300px; border: 0; display: block; }

/* --- Schlusszeile ------------------------------------------------------- */
.copyright {
  position: relative;
  z-index: 2;
  background: var(--weiss);
  border-top: 1px solid var(--linie);
  padding: 20px 0;
  font-size: 15px;
  text-align: center;
}
.copyright a { color: var(--text); text-decoration: underline; }
.copyright a:hover { color: var(--blau); }

/* --- Nach-oben-Pfeil ---------------------------------------------------- */
.nach-oben {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51,51,56,.55);
  color: #fff;
}
.nach-oben:hover { background: var(--blau); color: #fff; }
.nach-oben svg { width: 16px; height: 16px; fill: currentColor; }

/* --- Anpassung an schmale Bildschirme ---------------------------------- */
@media (max-width: 1000px) {
  .hero { background-image: url('../img/hero-mobile.jpg'); }
  .hero .termine { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 782px) {
  .logo-bar { padding: 16px 16px 10px; }

  /* Menü einklappbar, rein über CSS */
  .nav-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--nav-hoehe);
    font-size: 16px;
    font-weight: 600;
    color: var(--heading);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .nav-label svg { width: 20px; height: 20px; fill: currentColor; }
  .mainnav > ul { display: none; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .mainnav a { line-height: 1.4; padding: 13px 18px; text-align: center; border-bottom: 0; }
  .mainnav a[aria-current="page"] { border-bottom: 0; }
  .has-sub > a::after { display: none; }
  .sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: #fafafa;
    padding: 0;
  }
  .sub a { white-space: normal; font-size: 16px; padding: 12px 18px; }

  .hero { padding: 44px 0 50px; }
  .hero h1 { margin-bottom: 26px; }
  .termine { gap: 11px; }
  .btn { font-size: 14px; padding: 13px 20px; }

  .content .wrap { padding-top: 45px; padding-bottom: 45px; }
  .intro { font-size: 19px; letter-spacing: 1px; margin-bottom: 40px; }
  .spalten { grid-template-columns: 1fr; gap: 38px; }
  .spalten h2, .spalten h3 { min-height: 0; }
  .page-title h1 { font-size: 33px; }
  .page-title { min-height: 100px; }
}

/* Wer Bewegungsreduktion eingestellt hat, bekommt kein Feststehen des Bildes */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { position: relative; }
}

@media print {
  .mainnav, .nach-oben, .karte { display: none; }
  .hero { position: relative; height: 300px; }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

.prose p { margin: 0 0 1.4em; }
.prose h2 {
  margin: 2.4em 0 .9em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--linie);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2em 0 .7em; font-size: 18px; font-weight: 600; letter-spacing: 1px; }

.intro-klein {
  font-size: 20px;
  line-height: 1.7;
  color: var(--heading);
  margin-bottom: 1.6em !important;
}

.liste { list-style: none; margin: 0 0 1.6em; padding: 0; }
.liste li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--blau);
  border-radius: 50%;
}

.breitbild { width: 100%; margin: 2.4em 0; }

/* Text links, Bild rechts daneben (Praxisseite) */
.text-bild {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
  margin-bottom: 1em;
}
.text-bild > div > p:first-child { margin-top: 0; }
.text-bild img { width: 100%; }

/* Notfall-Kästen */
.karten { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 0 0 1.6em; }
.karte-box {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 3px solid var(--blau);
  padding: 26px 28px;
}
.karte-box h3 { margin-top: 0; }
.karte-box p { font-size: 16px; line-height: 1.65; margin-bottom: .9em; }
.karte-box .tel { font-weight: 600; margin-bottom: 0; }
.karte-box .tel a { color: var(--blau-dunkel); }

.karte-gross { margin: 2.2em 0; }
.karte-gross .karte-platzhalter { min-height: 420px; }
.karte-gross iframe { height: 420px; }

/* --- Reiter im Leistungsspektrum (ohne JavaScript) ---------------------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 2.6em 0;
  background: var(--weiss);
  border: 1px solid var(--linie);
}
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-label {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .5px;
  color: var(--heading);
  background: #fafaf8;
  border-left: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  cursor: pointer;
}
.tab-label:first-of-type { border-left: 0; }
.tab-label:hover { color: var(--blau); }
.tab-panel {
  grid-row: 2;
  grid-column: 1 / -1;
  display: none;
  padding: 34px 34px 14px;
}
.tab-radio:checked + .tab-label {
  background: var(--weiss);
  color: var(--blau);
  border-bottom-color: transparent;
  box-shadow: inset 0 3px 0 var(--blau);
}
.tab-radio:checked + .tab-label + .tab-panel { display: block; }
.tab-radio:focus-visible + .tab-label { outline: 2px solid var(--blau-dunkel); outline-offset: -2px; }
.tab-panel p:last-child, .tab-panel ul:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .karten { grid-template-columns: 1fr; }
  .text-bild { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}

@media (max-width: 782px) {
  .prose h2 { margin-top: 1.9em; }
  .text-bild { grid-template-columns: 1fr; gap: 24px; }
  .intro-klein { font-size: 18px; }
  .karte-gross .karte-platzhalter, .karte-gross iframe { min-height: 300px; height: 300px; }

  /* Reiter werden auf schmalen Bildschirmen zu aufgereihten Abschnitten */
  .tabs { grid-template-columns: 1fr; border: 0; background: none; }
  .tab-label {
    grid-row: auto;
    justify-content: flex-start;
    text-align: left;
    background: var(--blau);
    color: var(--weiss);
    border: 0;
    margin-top: 14px;
    padding: 13px 18px;
    font-size: 16px;
    cursor: default;
  }
  .tab-radio:checked + .tab-label { background: var(--blau); color: var(--weiss); box-shadow: none; }
  .tab-label:hover { color: var(--weiss); }
  .tab-panel {
    grid-row: auto;
    grid-column: auto;
    display: block;
    background: var(--weiss);
    border: 1px solid var(--linie);
    border-top: 0;
    padding: 22px 18px 6px;
  }
}

/* --- Impressum / Datenschutzerklärung ---------------------------------- */
.daten { width: 100%; border-collapse: collapse; margin: 0 0 1.8em; }
.daten th, .daten td {
  text-align: left;
  vertical-align: top;
  padding: 11px 0;
  font-size: 16px;
  line-height: 1.6;
  border-bottom: 1px solid var(--linie);
}
.daten th { width: 34%; font-weight: 600; color: var(--heading); padding-right: 20px; }
.daten tr:last-child th, .daten tr:last-child td { border-bottom: 0; }

.warnhinweis {
  background: var(--weiss);
  border-left: 3px solid var(--blau);
  padding: 16px 20px;
  font-size: 16px;
  margin: 0 0 1.8em !important;
}

.stand { margin-top: 2.6em !important; font-size: 15px; font-style: italic; }

.prose a { color: var(--blau-dunkel); text-decoration: underline; }
.prose a:hover { color: var(--blau); }

@media (max-width: 782px) {
  .daten th, .daten td { display: block; width: 100%; padding: 0; border-bottom: 0; }
  .daten th { padding-top: 14px; }
  .daten td { padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
}
