/* AVT Praxis – Nachbau des bisherigen Designs (WordPress-Theme „Spacious“ mit Anpassungen) */

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

:root {
  --accent: #8db03a;
  --accent-dark: #5b7e08;
  --text: #666666;
  --text-body: #787878;
  --text-light: #999999;
  --heading: #222222;
  --title: #444444;
  --border: #eaeaea;
  --divider: #999999;
  --footer-bg: #f0f6f6;
  --socket-bg: #f8f8f8;
  --button-bg: #e9f2f2;
  --input-bg: #f8f8f8;
  --font: "Lato", sans-serif;
  --wrap: 1218px;
}

/* Grundlagen */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 var(--font); overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.inner-wrap { width: 94%; max-width: var(--wrap); margin: 0 auto; }

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

/* Kopfbereich */

.header-bar { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding: 15px 0; }

.brand { display: flex; align-items: flex-start; }
.brand-logo { flex: none; padding-right: 20px; }
.brand-logo img { display: block; }
.brand-text { padding-top: 10px; }
.site-title { font-size: 36px; line-height: 54px; padding-bottom: 5px; }
.site-title a { color: var(--title); }
.site-title a:hover { color: var(--accent); }
.site-description { font-size: 16px; line-height: 24px; margin-bottom: 15px; color: var(--text); }

.main-nav { padding-top: 5px; }
.menu-toggle { display: none; }
.menu { display: flex; margin: 0; padding: 0; list-style: none; }
.menu li { position: relative; }
.menu > li { padding-left: 25px; }
.menu > li > a { display: block; padding: 16px 0 6px; font-size: 16px; line-height: 24px; color: var(--title); }
.menu > li > a:hover,
.menu > li:hover > a,
.menu > li.current > a,
.menu > li.current-ancestor > a { color: var(--accent); }

.sub-menu { display: none; position: absolute; top: 45px; left: 25px; z-index: 100; width: 200px; margin: 0; padding: 0; list-style: none; background: #fff; border-top: 1px solid var(--accent); }
.sub-menu li { border-bottom: 1px solid var(--border); }
.sub-menu a { display: block; padding: 6px 10px; font-size: 15px; line-height: 21px; color: var(--text); }
.sub-menu a:hover { color: var(--accent); }
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { display: block; }

.banner img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }

/* Inhalt */

.site-main { padding: 40px 0 10px; }
.content { width: 65.5763547%; margin: 0 auto; padding-bottom: 45px; }
.content::after { content: ""; display: table; clear: both; }

.content h1 { font-size: 30px; line-height: 1.5; color: var(--heading); padding-bottom: 18px; }
.content h2 { font-size: 28px; line-height: 1.5; color: var(--accent); padding-bottom: 18px; }
.content h3 { font-size: 26px; line-height: 1.5; color: var(--heading); padding-bottom: 18px; }
.content h4 { font-size: 24px; line-height: 1.5; color: var(--heading); padding-bottom: 18px; }
.content h5 { font-size: 22px; line-height: 1.5; color: var(--heading); padding-bottom: 18px; }
.content h6 { font-size: 19px; line-height: 1.5; color: var(--heading); padding-bottom: 18px; }
.content p { margin-bottom: 15px; line-height: 24px; color: var(--text-body); }
.content ul, .content ol { margin-bottom: 30px; padding-left: 35px; }
.content ul { list-style: square; }
.content li > ul, .content li > ol { margin-bottom: 0; }
.content hr { clear: both; height: 0; margin: 15px 0; border: 0; border-top: 1px solid var(--divider); }
.content blockquote { padding-left: 20px; border-left: 3px solid var(--accent); }
.content img { margin-bottom: 18px; vertical-align: top; }
.content img.align-left { float: left; margin: 0 20px 18px 0; }
.content img.align-right { float: right; margin: 0 0 18px 20px; }
.content img.align-center { display: block; margin: 0 auto 18px; }

/* Das Original setzt line-height: 1.5em auf alle Inline-Elemente; bei abweichender Schriftgröße ändert das die Zeilenhöhe */
.content :is(a, span, strong, em, b, i, u),
.widget :is(a, span, strong, em, b, i) { line-height: 1.5; }

.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-sm { font-size: 14px; }
.text-dark { color: #333; }
.text-muted { color: var(--text-light); }
.text-accent { color: var(--accent); }

/* Offene Platzhalter, der Build warnt, solange welche übrig sind */
mark.todo { padding: 0 3px; color: #333; background: #fff1a8; }

.spacer { display: block; }
.spacer-5 { height: 5px; }
.spacer-20 { height: 20px; }

/* Zweispaltige Bereiche */

.cols { display: flex; column-gap: 4%; margin-bottom: 1.5em; }
.col { flex: 0 0 48%; min-width: 0; }
.col > :first-child { margin-top: 0; }
.col > :last-child { margin-bottom: 0; }

/* Schaltflächen-Links (Startseite, Übersichtsseiten) */

.btn { display: block; margin: 1em 0; padding: 4px 20px; font-size: 16px; line-height: 24px; text-align: center; color: #000; background: var(--button-bg); transition: background-color .2s; }
.btn-soft { color: #464646; }
.btn:hover { background: #dde9e9; }
.btn:active { padding: 5px 20px 3px; }

/* Aufklappbare Bereiche */

.spoiler { margin-bottom: 1.5em; }
.accordion { margin-bottom: 1.5em; }
.accordion .spoiler { margin-bottom: .5em; }
.spoiler > summary { position: relative; min-height: 20px; padding: 7px 0 7px 27px; font-size: 13px; font-weight: 700; line-height: 20px; cursor: pointer; list-style: none; }
.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler > summary::before { content: ""; position: absolute; left: 5px; top: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(0, -50%) rotate(-45deg); transition: transform .2s; }
.spoiler[open] > summary::before { transform: translate(1px, -70%) rotate(45deg); }
.spoiler-content { padding: 1em 0 1em 27px; }
.spoiler-content > :last-child { margin-bottom: 0; }

/* Bildergalerie */

.gallery { display: flex; flex-wrap: wrap; margin-bottom: 1.5em; }
.gallery-item { display: block; margin: .5em; }
.gallery-item img { display: block; margin: 0; padding: 3px; background: #fff; border: 1px solid #ccc; border-radius: 5px; transition: all .2s; }
.gallery-item:hover img { background: #eee; border-color: #aaa; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px 50px; background: rgba(11, 11, 11, .85); }
.lightbox[hidden] { display: none; }
.lightbox figure { position: relative; text-align: center; }
.lightbox img { display: block; max-width: calc(100vw - 100px); max-height: calc(100vh - 100px); width: auto; height: auto; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 6px; font-size: 13px; line-height: 18px; color: #f3f3f3; text-align: left; }
.lightbox button { position: absolute; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; opacity: .7; font: 300 44px/1 var(--font); }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox .lb-close { top: 4px; right: 10px; width: 44px; height: 44px; font-size: 32px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; width: 50px; height: 90px; margin-top: -45px; }
.lightbox .lb-prev { left: 0; }
.lightbox .lb-next { right: 0; }

/* Formular */

.contact-form p { margin-bottom: 15px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea { display: inline-block; width: 100%; margin: 0 0 30px; padding: 1%; font: inherit; line-height: 20px; color: var(--text); background: var(--input-bg); border: 1px solid var(--border); border-radius: 3px; appearance: none; }
.contact-form textarea { resize: vertical; }
.contact-form [aria-invalid="true"] { border-color: #dc3232; }
.contact-form .field-error { margin: -25px 0 20px; font-size: 14px; color: #dc3232; }
input[type="submit"], .map-load { display: inline-block; margin-bottom: 30px; padding: 5px 25px; font: inherit; font-size: 16px; color: #fff; background: var(--accent); border: 0; border-radius: 3px; cursor: pointer; appearance: none; }
input[type="submit"]:hover, .map-load:hover { background: var(--accent-dark); }
.form-note:empty { display: none; }

/* Karte (wird erst nach Klick von Google geladen) */

.map-consent { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; min-height: 240px; margin-bottom: 1.5em; padding: 20px; text-align: center; background: var(--footer-bg); border: 1px solid var(--border); }
.map-consent-inner { max-width: 420px; }
.map-consent-inner p { font-size: 14px; }
.map-consent .map-load { margin-bottom: 15px; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Fußbereich */

.footer-widgets { background: var(--footer-bg); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 2.46305419%; padding: 30px 0 10px; font-size: 14px; line-height: 21px; color: var(--text-light); }
.footer-col { padding-bottom: 30px; }
.widget { padding-bottom: 25px; }
.widget-title { padding-bottom: 18px; font-size: 22px; line-height: 33px; color: var(--text-body); }
.widget p { margin-bottom: 15px; line-height: 18px; }
.widget a { color: var(--text-body); }
.widget a:hover { color: var(--accent); }

.footer-socket { padding: 10px 0; background: var(--socket-bg); border-top: 1px solid var(--border); }
.copyright { font-size: 12px; line-height: 18px; color: var(--text); }
.copyright a { color: var(--text); text-decoration: underline; }
.copyright a:hover { color: var(--accent); }

/* Responsive */

@media (max-width: 1078px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); column-gap: 6.4630542%; }
  .footer-col.is-empty { display: none; }
  .copyright { margin-bottom: 5px; text-align: center; }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .brand { flex-direction: column; align-items: center; text-align: center; }
  .brand-logo { padding-right: 0; margin-bottom: 10px; }
  .brand-text { padding-top: 0; margin-bottom: 10px; }
  .site-description { padding-bottom: 5px; }

  .main-nav { padding-top: 0; }
  .menu-toggle { display: block; width: 100%; margin: 0; padding: 5px 22px; font: 300 20px/1.5 var(--font); color: #000; text-align: center; background: #fff; border: 0; cursor: pointer; }
  .menu-toggle::before { content: "\2261"; margin-right: 10px; }
  .menu-toggle:hover, .main-nav.is-open .menu-toggle { color: #fff; background: var(--accent); }
  .menu { display: none; margin-top: 5px; }
  .main-nav.is-open .menu { display: block; }
  .menu > li { padding-left: 0; }
  .menu a,
  .menu > li > a,
  .sub-menu a { display: block; padding: 10px 40px; font-size: 16px; line-height: 24px; color: #000; background: #fff; border-bottom: 1px solid var(--border); }
  .sub-menu { display: block; position: static; width: auto; border-top: 0; }
  .sub-menu li { border-bottom: 0; }
  .sub-menu a { padding-left: 60px; }
  .menu li.current > a,
  .menu a:hover { color: #000; background: var(--accent); }

  .content { width: 100%; }
}

@media (max-width: 767px) {
  .cols { flex-direction: column; row-gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

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