/* Praxis Fabischack – Onepager
   Stil nachgebaut nach WordPress-Theme "Spacious Pro" (Farben, Maße, Typografie). */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-700-italic.woff2") format("woff2");
}

:root {
  --green: #15992e;
  --green-dark: #006700;
  --text: #666666;
  --heading: #222222;
  --nav: #444444;
  --title: #565656;
  --border: #eaeaea;
  --bg: #eaeaea;
  --bar: #f8f8f8;
  --footer: #333333;
  --toggle: #3a3a3a;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding: 30px 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/24px "Lato", sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; padding-bottom: 18px; color: var(--heading); font-weight: 400; }
h1 { font-size: 30px; line-height: 36px; }
h2 { font-size: 28px; line-height: 34px; }
h3 { font-size: 22px; line-height: 30px; }
p { margin: 0 0 15px; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
strong { font-weight: 700; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Boxed Layout */
#page {
  width: 97%;
  max-width: 1268px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 6px rgba(100, 100, 100, .3);
}
.inner-wrap { width: 94%; max-width: 1218px; margin: 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.header-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  position: relative;
}
.branding { display: flex; align-items: flex-start; gap: 32px; }
.branding img { width: 190px; height: auto; }
.site-title { padding: 25px 0 5px; font-size: 18px; line-height: 24px; }
.site-title a { color: var(--title); }
.site-title a:hover { color: var(--green); }
.site-description { margin: 0; font-size: 24px; line-height: 30px; color: var(--title); }

.main-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.main-nav li { padding-left: 25px; }
.main-nav a { display: block; padding: 16px 0; color: var(--nav); font-size: 16px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--green); }
.menu-toggle { display: none; }

/* Slider */
.slider { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border); background: var(--bar); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-progress { position: absolute; top: 0; left: 0; z-index: 3; height: 2px; width: 0; background: var(--green); }
.slider-progress.is-running { width: 100%; transition: width 6s linear; }
.slider-controls { position: absolute; left: 0; right: 0; bottom: 15px; z-index: 3; text-align: center; line-height: 0; }
.slider-controls button {
  width: 18px; height: 6px; margin: 0 4px; padding: 0;
  border: 0; background: #fff; cursor: pointer;
}
.slider-controls button:hover, .slider-controls button[aria-current="true"] { background: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slider-progress { display: none; }
}

/* Inhalt */
main { padding: 40px 0 10px; }
.section { padding-bottom: 35px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; margin-bottom: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 640px; margin-top: 10px; }

.patient-info { display: flow-root; }
.cert { float: left; width: 248px; margin: 5px 30px 20px 0; }
.cert img { border: 1px solid var(--border); }
.info-list, .patient-info blockquote { overflow: hidden; }
.phone { font-size: 22px; line-height: 30px; }
.info-list { list-style: square; padding-left: 35px; margin-bottom: 30px; }
.info-list li { padding-bottom: 5px; }
blockquote { margin: 0 0 20px; padding: 20px; border: 1px solid var(--border); border-left: 3px solid var(--green); font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

/* Rechtstexte */
.legal h2 { padding-top: 10px; }
.legal h3 { padding-top: 10px; padding-bottom: 10px; }
.legal ul { list-style: square; padding-left: 35px; margin-bottom: 15px; }
.legal li { padding-bottom: 5px; }

/* Platzhalter: vor Veröffentlichung entfernen */
.todo { background: #fff3b0; color: #6b5300; padding: 0 4px; }

/* Footer */
.footer-widgets { background: var(--footer); border-top: 1px solid var(--border); padding: 40px 0 15px; font-size: 14px; line-height: 18px; color: #aaaaaa; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-grid ul { max-width: 282px; }
.footer-grid h2 { font-size: 22px; line-height: 32px; color: #d5d5d5; padding-bottom: 15px; }
.footer-grid h2 span { border-bottom: 2px solid var(--green); padding-bottom: 5px; }
.footer-grid li { padding: 5px 0; border-bottom: 1px solid #444444; line-height: 1.5; }
.footer-grid a { color: #aaaaaa; }
.footer-grid a:hover { color: var(--green); }
.footer-socket { background: var(--bar); border-top: 1px solid var(--border); padding: 10px 0; text-align: center; font-size: 12px; }
.footer-socket p { margin: 0 0 5px; font-size: 14px; }
.footer-socket ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.footer-socket a { color: var(--text); }
.footer-socket a:hover, .footer-socket a[aria-current] { color: var(--green); }

/* Tablet */
@media (max-width: 1024px) {
  .branding { gap: 20px; }
  .branding img { width: 150px; }
  .site-title { padding-top: 15px; }
  .site-description { font-size: 20px; line-height: 26px; }
  .main-nav li { padding-left: 18px; }
}

/* Mobiles Menü (wie "better responsive menu" des Themes) */
@media (max-width: 900px) {
  body { padding: 15px 0; }
  .inner-wrap { width: 95%; }
  .header-wrap { flex-direction: column; align-items: center; padding-bottom: 15px; }
  .branding { flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .site-title { padding-top: 12px; }
  .main-nav { width: 100%; text-align: center; }
  .js .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 36px; padding: 0 10px;
    background: var(--toggle); border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 3px; background: #fff; }
  .menu-toggle:hover { background: var(--green); }
  .main-nav ul { flex-direction: column; margin-top: 10px; border-top: 1px solid var(--border); }
  .js .main-nav ul { display: none; }
  .js .main-nav.is-open ul { display: flex; }
  .main-nav li { padding: 0; border-bottom: 1px solid var(--border); }
  .main-nav a { padding: 10px 0; }

  .two-col { grid-template-columns: 1fr; gap: 10px; }
  .slider-controls { bottom: 5px; }
  .slider-controls button { width: 12px; height: 4px; margin: 0 3px; }
}

/* Smartphone */
@media (max-width: 600px) {
  main { padding-top: 25px; }
  h2 { font-size: 24px; line-height: 30px; }
  .site-description { font-size: 18px; line-height: 24px; }
  .media-pair { gap: 10px; }
  .cert { float: none; margin: 0 auto 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
}
