/* Zusätze zum 1:1-Abbild der früheren WordPress-Seite (Körperarchitektur Burg). Nur was die festgelegten Abweichungen
   brauchen, alles andere kommt unverändert aus den Original-Stylesheets unter /wp-content/ und /wp-includes/. Farben und
   Schriften gemessen in den Stylesheets der Altseite (19.11.2026): Petrol #3a6d83 (Sendeknopf in Roboto Slab, eckig),
   Text #666 in Open Sans 14 px, Credit-Leiste #171717. */

/* 1) Hinweis zur Speicherung (Info-Hinweis, Knopf „Nicht mehr anzeigen“). Ersetzt den Real Cookie Banner der Altseite.
      Weiß, Schrift und Knopf im Petrol der Seite (Weiß auf #3a6d83 5,7:1), der Knopf wie der Sendeknopf des Formulars.
      Sichtbar über transform + visibility, Höhe per ResizeObserver in --cookie-h. */
html { scroll-padding-bottom: var(--cookie-h, 0px); }
body.has-cookie { padding-bottom: var(--cookie-h, 0px); }
#cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000001;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem;
  margin: 0; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: #fff; color: #3a6d83; box-shadow: 0 -5px 13px rgba(0, 0, 0, .2);
  font-family: "Open Sans", Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.45; text-align: left;
  transform: translateY(110%); visibility: hidden;
}
#cookie.is-visible { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  #cookie { transition: transform .35s ease, visibility 0s linear .35s; }
  #cookie.is-visible { transition: transform .35s ease, visibility 0s; }
}
#cookie p { margin: 0; padding: 0; flex: 1 1 200px; max-width: 46rem; color: inherit; font-size: inherit; line-height: inherit; }
#cookie a { color: #3a6d83; text-decoration: underline; }
#cookie button {
  font: 400 16px/1.2 "Roboto Slab", Georgia, "Times New Roman", serif;
  min-height: 44px; margin: 0; padding: .45rem 1.1rem;
  border: 0; border-radius: 0; background: #3a6d83; color: #fff; cursor: pointer;
}
#cookie button:active { background: #2c5364; }   /* Druck-Feedback dunkler statt blasser, Kontrast steigt */
#cookie :focus-visible { outline: 3px solid #3a6d83; outline-offset: 2px; }
/* Die untere Leiste auf dem Handy (Anrufen, WhatsApp, Facebook, Bewertung; Divi-Sticky mit bottom:0) weicht dem Hinweis
   aus, solange er steht. Im Querformat bleibt dafür zu wenig Höhe, dort ist sie so lange ausgeblendet. */
body.has-cookie .et_pb_sticky--bottom { bottom: var(--cookie-h, 0px) !important; }
@media (max-height: 420px) { body.has-cookie .et_pb_sticky--bottom { display: none !important; } }

/* Fußknopf „Hinweis zur Speicherung“ (Widerruf): eigener Absatz unter „Datenschutzerklärung“ im Block „Information“, sieht
   aus wie die Links darüber (Schrift, Größe und Farbe erbt er vom Textmodul). Das Skript blendet ihn ein. */
.kb-fuss-hinweis[hidden] { display: none !important; }
.fuss-speicher {
  font: inherit; line-height: inherit; color: inherit;
  background: none; border: 0; margin: 0; padding: 0; min-height: 24px; cursor: pointer; text-align: inherit;
}
@media (hover: hover) { .fuss-speicher:hover { text-decoration: underline; } }
.fuss-speicher:active { text-decoration: underline; text-decoration-thickness: 2px; }
.fuss-speicher:focus-visible { outline: 2px solid #3a6d83; outline-offset: 2px; }
@media (forced-colors: active) { .fuss-speicher { color: LinkText; } }

/* 2) 500-Seite (neu, im Look der 404): Links im Text in Petrol und unterstrichen, sonst Divi-Standardblau #2ea3f2 mit
      2,8:1 auf Weiß. */
.kb-fehlerseite .entry p a { color: #3a6d83; text-decoration: underline; }
/* 2b) Impressum (page-id-20) und Datenschutz (page-id-22) tragen die Texte aus dem Redesign mit mehr Links im Fließtext:
       unterstrichen, damit sie nicht nur an der Farbe erkennbar sind (axe link-in-text-block). Farbe bleibt. */
.page-id-20 .et_pb_text_2 .et_pb_text_inner a, .page-id-22 .et_pb_text_2 .et_pb_text_inner a { text-decoration: underline; }

/* 3) Credit-Fuß nach Hausstandard (Footer_Standard.md) statt „Designed by MB-COMPUTERS | Powered by WordPress“: dunkle
      Leiste der früheren Seite (#171717), helles Petrol #8fc3d6 für Hover, Druck und Fokus. Auf #171717: Text #cfcfcf
      11,5:1, Link Weiß 18,1:1, #8fc3d6 9,4:1; Symbol Weiß auf dem Abzeichen 14:1, dunkel auf #8fc3d6 9,4:1. */
.ft-credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin: 0; padding: 20px clamp(20px, 5vw, 40px); background: #171717; border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: "Open Sans", Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 24px; color: #cfcfcf;
}
/* Textlink: immer unterstrichen (nur über die Farbe hebt er sich nicht 3:1 vom Text ab), inline-block für 24 px Zielhöhe.
   :first-child, weil auch span.ft-socials ein Kind ist: „> span > a“ träfe die Abzeichen mit. */
.ft-credit > span:first-child > a { display: inline-block; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ft-socials { display: inline-flex; gap: 16px; align-items: center; }   /* 16px: darunter überlappen die 44er-Trefferflächen */
.ft-socials a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s;
}
.ft-socials a::before { content: ""; position: absolute; inset: -8px; }   /* Optik 28×28, Trefferfläche 44×44 */
.ft-socials svg { width: 14px; height: 14px; fill: currentColor; }
@media (hover: hover) {
  .ft-credit > span:first-child > a:hover { color: #8fc3d6; }
  .ft-socials a:hover { background: #8fc3d6; color: #171717; }
}
.ft-credit > span:first-child > a:active { color: #8fc3d6; }   /* Druck-Feedback, am Handy gibt es kein Hover */
.ft-socials a:active { background: #8fc3d6; color: #171717; }
.ft-credit a:focus-visible { outline: 2px solid #8fc3d6; outline-offset: 3px; }
@media (max-width: 720px) { .ft-credit { flex-direction: column; gap: 8px; } }

/* 3b) Tastatur-Fokus (nur Fokus nachgerüstet, Hover 1:1 wie auf der früheren Seite): Divi schaltet den Fokusrahmen
       global ab (:focus{outline:0}). Doppelring: Weiß innen, dunkles Petrol #2c5364 außen, so steht auf jedem Grund ein
       Ring mit mindestens 3:1 (Weiß auf Petrol und auf Fotos, #2c5364 auf Weiß 8,3:1 und auf dem Hellblau #9bc2d3 der
       Formulare 4,4:1; das hellere #3a6d83 kam dort nur auf 2,99:1, gemessen 19.11.2026). Nur bei
       Tastaturbedienung; wer Maus oder Touch nutzt, sieht die Altseite. Der durchsichtige outline trägt den Ring im
       Kontrastmodus, dort fällt box-shadow weg. Hinweis, Credit und Fußknopf haben eigene Ringe (oben) und bleiben draußen;
       das :not mit der ID hebt die Regel zugleich über Divis Regeln. */
:where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):not(#cookie *, .ft-credit *, .fuss-speicher):focus-visible {
  outline: 2px solid transparent; outline-offset: 4px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2c5364;
}
/* Kopflogo: Der Link ist ein Inline-Element um das Bild, sein eigener Rahmen ist nur eine flache Zeile. Der Ring liegt
   deshalb am Bild; die ID hebt die Regel über die allgemeine oben. */
#et-boc .et_pb_menu__logo a:focus-visible { outline: none; box-shadow: none; }
#et-boc .et_pb_menu__logo a:focus-visible > img { outline: 2px solid transparent; outline-offset: 4px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2c5364; }
/* Datenschutz-Haken im Divi-Kontaktformular: Divi blendet das echte Kästchen aus (display:none), per Tastatur ließ sich das
   Formular so nicht absenden, und Screenreader fanden den Haken nicht. Das Kästchen liegt jetzt unsichtbar über Divis
   gezeichnetem (label i), Tab und Leertaste bedienen es, Divis Häkchen folgt über :checked. Ring wie oben, der
   durchsichtige outline am gezeichneten Kästchen trägt ihn im Kontrastmodus. */
html .et_pb_contact .et_pb_contact_field_checkbox { position: relative; }
html .et_pb_contact .et_pb_contact_field input[type=checkbox] {
  display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0;
}
html .et_pb_contact .et_pb_contact_field input[type=checkbox]:focus-visible + label i { outline: 2px solid transparent; outline-offset: 4px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2c5364; }

/* 3c) Gesundheitshinweis über dem Nachrichtenfeld beider Formulare (Bauskript Liste 18): Schrift des Formularbereichs,
       Farbe dunkles Petrol. Das geerbte Grau #666 kam auf dem hellblauen Formulargrund #9bc2d3 nur auf 3,0:1, #244858
       kommt auf 5,2:1. Divis eigene Texte dort (Petrol #3a6d83, 3,0:1) bleiben wie auf der Altseite. */
html .et_pb_contact p.kb-formhinweis {
  margin: 0 0 10px; padding: 0; font-family: "Open Sans", Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #244858;
}

/* 3d) Bewertungs-Zeile ohne Patientenzitate (Bauskript Liste 15): Die rechte Spalte trug nur den Slider. Leer blieb sie am
       Desktop eine weiße Fläche über 60 % der Breite und am Handy ein Spalt unter dem Foto. Sie fällt weg, die linke
       Spalte (Kasten mit Foto) steht mittig. */
#rezensionen .et_pb_column_16 { display: none; }
#rezensionen > .et_pb_row { justify-content: center; }

/* 4) Bewegung reduzieren: Einblend- und Übergangsanimationen der Seite enden sofort, nur wenn der Besucher das eingestellt
      hat. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  #cookie, #cookie * { transition: none !important; }
}

/* Druck: Hinweis und Fußknopf nicht mitdrucken */
@media print {
  #cookie, .kb-fuss-hinweis, .fuss-speicher { display: none !important; }
  body.has-cookie { padding-bottom: 0 !important; }
}
