/* Bogentherapie-Website. Farben, Schriften, Rundungen kommen als CSS-Variablen aus dem Backend (Design je Site). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg, #000); color: var(--text, #ddd); font: 400 var(--fs, 17px)/1.6 var(--font-body, system-ui, sans-serif); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head, inherit); color: var(--heading, #fff); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
body.upper h1, body.upper .mark { text-transform: uppercase; letter-spacing: .02em; }
.rich a { color: var(--accent); }
.rich h1, .rich h2 { color: var(--accent); font-size: 1.6em; }
.rich h3 { font-size: 1.15em; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich img { border-radius: calc(var(--radius) / 2); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Kopfzeile */
.site-head { display: flex; align-items: center; gap: 20px; padding: 18px clamp(16px, 4vw, 40px); background: var(--surface); position: relative; z-index: 10; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: var(--logo-h, 70px); width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25em; color: var(--heading); letter-spacing: .03em; }
.tagline { font-family: var(--font-head); color: var(--muted); font-size: clamp(1.1em, 3vw, 1.8em); font-style: italic; margin-right: auto; }
.mainnav { display: flex; gap: 28px; }
.mainnav a { text-decoration: none; color: var(--heading); font-size: .95em; padding: 4px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a[aria-current] { border-bottom-color: var(--accent); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--heading); margin: 6px 0; transition: transform .2s; }
@media (max-width: 760px) {
  .burger { display: block; }
  .tagline { order: 3; width: 100%; text-align: center; }
  .mainnav { display: none; width: 100%; flex-direction: column; gap: 0; order: 4; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 0; border-bottom: 1px solid rgba(127,127,127,.25); font-size: 1.05em; }
}

/* Abschnitte */
main { min-height: 50vh; }
.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px); }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.ptitle { text-align: center; margin-bottom: 36px; }
.ptitle h1, .ptitle h2 { color: var(--accent); font-size: clamp(1.8em, 4.5vw, 2.6em); margin-bottom: .2em; }
.psub { color: var(--muted); font-size: 1.25em; margin: .3em 0 0; font-family: var(--font-head); }
.rule { width: 100px; border: 0; border-top: 1px solid var(--text); margin: 22px auto 0; opacity: .7; }
.intro .ptitle h1, .intro .ptitle h2 { color: var(--heading); font-size: clamp(1.5em, 3.5vw, 2em); }
.intro { padding-bottom: 20px; }
body.deco .mark, body.deco .intro .ptitle h1, body.deco .intro .ptitle h2 { position: relative; display: inline-block; }
body.deco .mark::before, body.deco .intro .ptitle h1::before, body.deco .intro .ptitle h2::before {
  content: ""; position: absolute; left: -12px; top: -10px; width: 20px; height: 18px; border-left: 3px solid var(--accent); border-top: 3px solid var(--accent); }

/* Hero (Video oder Bild) */
.hero { position: relative; overflow: hidden; background: #111; display: flex; align-items: center; }
.hero.h-voll { min-height: 100vh; } .hero.h-gross { min-height: 72vh; } .hero.h-mittel { min-height: 52vh; } .hero.h-klein { min-height: 36vh; }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.noimg { background: radial-gradient(ellipse at 70% 40%, color-mix(in srgb, var(--accent) 45%, #000), #000 70%); }
.hero-text { position: relative; padding: clamp(24px, 6vw, 80px); max-width: 760px; }
.hero-text h1 { font-size: clamp(2.6em, 8vw, 5em); font-weight: 400; margin: 0 0 .3em; color: var(--heading); text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-text p { letter-spacing: .25em; font-weight: 700; color: var(--heading); text-transform: uppercase; margin: 0; }

/* Bild + Text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.split.noimg { grid-template-columns: 1fr; max-width: 860px; }
.split.img-right .split-img { order: 2; }
.split-img img.round { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: min(100%, 420px); margin: 0 auto; }
.split-img img.soft { border-radius: var(--radius); width: 100%; }
.split-text .rich { color: var(--heading); }
.split-text .mark.big { font-size: clamp(1.6em, 3.6vw, 2.3em); text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.img-right .split-img { order: 0; } .split-text { text-align: center; } }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile { background: var(--card-bg); color: var(--card-text); text-align: center; padding: 18px 16px 22px; }
.tile .ico { width: 52px; height: 52px; margin: 0 auto 8px; color: var(--card-text); opacity: .75; }
.tile h3 { color: var(--card-text); font-size: 1.35em; font-weight: 400; }
.tile p { margin: 0; font-size: .92em; }
.icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.icon-item h3 { color: var(--muted); font-weight: 400; font-size: 1.35em; margin-top: 14px; }
.icircle { display: inline-flex; width: 96px; height: 96px; border: 2px solid var(--accent); border-radius: 50%; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.icircle .ico { width: 50px; height: 50px; }

/* Über mich */
.about { text-align: center; }
.portrait img { width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 40px; }
.about-name { font-size: clamp(2em, 5vw, 3em); color: var(--muted); }
.about-sub { font-size: 1.1em; }
.about-hl { color: var(--accent); font-weight: 700; font-size: 1.1em; }
.about .rich { margin-bottom: 28px; }
.about .ptitle { margin-top: 50px; }
.btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 24px 0 10px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--btn-bg); color: var(--btn-text); padding: 14px 30px; border-radius: 999px; text-decoration: none; border: 0; font: inherit; cursor: pointer; }
.btn .ico { width: 20px; height: 20px; }
.btn:hover { filter: brightness(1.2); }

/* FAQ */
.faq-group { margin-bottom: 50px; }
.faq-group h2 { color: var(--accent); font-size: 1.6em; }
.faq { border: 1px solid var(--muted); }
.faq details { border-bottom: 1px solid var(--muted); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; gap: 10px; color: var(--heading); font-size: .95em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-weight: 700; width: 12px; flex: none; }
.faq details[open] summary { color: var(--accent); border-bottom: 1px solid var(--muted); }
.faq details[open] summary::before { content: "–"; }
.faq .rich { padding: 12px 18px 6px; font-size: .92em; }

/* Galerie & Zertifikate */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; }
.gallery img, .certs img { width: 100%; cursor: zoom-in; }
.gallery figure a, .certs figure a { position: relative; display: block; }
.gallery figcaption { color: var(--muted); font-size: .85em; padding: 4px 2px 0; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.certs figure { margin: 0; background: #f2f2f2; color: #444; display: flex; flex-direction: column; }
.certs img { aspect-ratio: 3/4; object-fit: cover; }
.certs figcaption { padding: 8px; text-align: center; font-size: .78em; line-height: 1.35; }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; color: #fff; text-shadow: 0 0 12px #000; }

/* Kontakt */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; margin: 10px 0 60px; }
.info { display: flex; align-items: center; gap: 18px; }
.info h3 { margin: 0; font-size: 1.15em; }
.info p { margin: 4px 0 0; overflow-wrap: anywhere; }
.info a { text-decoration: none; }
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-title { text-align: center; font-size: clamp(1.6em, 4vw, 2.6em); margin-bottom: 36px; }
form.contact label, .cust-login label { display: block; color: var(--muted); margin-bottom: 18px; }
form.contact input:not([type=checkbox]), form.contact textarea, .cust-login input {
  display: block; width: 100%; margin-top: 6px; padding: 18px 24px; border: 1px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--bg) 90%, #fff); color: var(--heading); font: inherit; }
form.contact textarea { border-radius: 28px; resize: vertical; min-height: 180px; }
form.contact input:focus, form.contact textarea:focus, .cust-login input:focus { outline: 2px solid var(--accent); }
form.contact .invalid { border-color: var(--accent) !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { border: 1px solid var(--muted); padding: 16px; margin: 10px 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; }
.captcha img { border-radius: 6px; background: #eee; }
.captcha label { grid-column: 1 / -1; margin: 0 !important; }
.cap-new { justify-self: start; background: none; border: 1px solid var(--muted); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9em; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: .9em; }
.consent input { margin-top: 5px; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.send { display: block; margin: 10px auto 0; min-width: 260px; padding: 20px 40px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.send:disabled { opacity: .6; }
.form-msg { padding: 14px 18px; border-radius: 12px; margin: 16px 0 0; }
.form-msg.ok { background: #16391f; color: #c9f2d2; }
.form-msg.err { background: #4a1414; color: #ffd6d6; }

/* Kundenbereich */
.cust-login { max-width: 420px; margin: 30px auto; text-align: center; }
.cust-login > .ico { width: 54px; height: 54px; color: var(--accent); margin: 0 auto 16px; }
.cust-hello { text-align: center; color: var(--muted); }
.folder { border: 1px solid color-mix(in srgb, var(--muted) 50%, transparent); border-radius: var(--radius); margin: 0 0 16px; padding: 4px 18px; }
.folder summary { cursor: pointer; padding: 12px 0; display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; font-size: 1.1em; }
.folder summary .ico { width: 24px; height: 24px; color: var(--accent); }
.folder summary small { color: var(--muted); font-weight: 400; }
.folder-desc { color: var(--muted); margin-top: 0; }
.files { list-style: none; margin: 0 0 12px; padding: 0; }
.files a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; text-decoration: none; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); }
.files a:hover { background: color-mix(in srgb, var(--bg) 85%, #fff); }
.files .ico { width: 22px; height: 22px; color: var(--accent); flex: none; }
.files span { flex: 1; }
.files small { color: var(--muted); }
.cust-logout { text-align: center; margin-top: 30px; }
.cust-logout button { background: none; border: 1px solid var(--muted); color: var(--text); padding: 8px 20px; border-radius: 999px; cursor: pointer; font: inherit; }

/* Fußzeile */
.site-foot { text-align: center; padding: 50px 20px 40px; background: var(--surface); }
body.fbar .site-foot { border-bottom: 18px solid var(--accent); }
.social { display: flex; gap: 40px; justify-content: center; margin-bottom: 40px; }
.social a { color: var(--heading); }
.social svg { width: 34px; height: 34px; }
.foot-logo { height: 60px; width: auto; margin: 0 auto 30px; }
.foot-text { color: var(--muted); font-size: .9em; max-width: 640px; margin: 0 auto 20px; }
.foot-text a { color: var(--accent); }
.domains { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 24px; }
.domains a { color: var(--heading); font-style: italic; font-weight: 700; font-size: 1.15em; text-decoration: none; letter-spacing: -.02em; }
.domains span { color: var(--accent); font-weight: 400; }
.foot-nav { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: .95em; }
.foot-nav a:hover, .foot-nav a[aria-current] { color: var(--accent); }
.to-top { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top .ico { width: 22px; height: 22px; }
.notfound { text-align: center; }

/* Lightbox (aus der Fotoseite) */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 100; display: none; }
.lb.open { display: block; }
.lb-stage { position: absolute; inset: 0 0 48px; display: flex; align-items: center; justify-content: center; padding: 20px 60px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .2s; }
.lb-stage img.loading { opacity: .3; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; color: #ddd; font-size: 14px; }
.lb button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer; font-size: 30px; width: 50px; height: 50px; border-radius: 50%; }
.lb button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 12px; right: 12px; font-size: 22px !important; }
.lb-prev { left: 8px; top: calc(50% - 25px); } .lb-next { right: 8px; top: calc(50% - 25px); }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) { .lb-stage { padding: 10px; } .lb-prev, .lb-next { top: auto !important; bottom: 54px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
