/* Logopädische Praxis Oberwinzerfeld – statische Website (ohne WordPress) */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/quicksand.woff2) format("woff2");
}
@font-face {
  font-family: "Love Ya Like A Sister";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/loveya.woff2) format("woff2");
}

:root {
  --green: #9dc451;
  --green-dark: #45a12b;
  --green-deep: #3a8a22;
  --yellow: #f3d34a;
  --yellow-dark: #e6c22c;
  --text: #5f5f5f;
  --heading: #45a12b;
  --muted: #a1a1a1;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --line: #e6e6e6;
  --dark: #222222;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --max: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 600; line-height: 1.3; margin: 1.6em 0 .6em; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
li { margin: .3em 0; }
li::marker { color: var(--green); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }

/* ---------- Header / Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand img { height: 76px; width: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list > li { position: relative; margin: 0; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-top:hover, .nav-list > li:hover > .nav-top, .is-active > .nav-top, .nav-top[aria-current] { color: var(--green-dark); text-decoration: none; }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub, .sub2 {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; min-width: 330px; background: #fff;
  border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.sub { top: 100%; left: 0; }
.sub2 { top: -11px; left: 100%; }
.sub li, .sub2 li { margin: 0; position: relative; }
.sub a { display: block; padding: 7px 20px; color: var(--text); font-size: 15px; line-height: 1.4; }
.sub a:hover, .sub a[aria-current] { color: var(--green-dark); background: var(--bg-soft); text-decoration: none; }
.has-sub2 > a::after { content: "›"; float: right; margin-left: 10px; color: var(--muted); }
@media (min-width: 1101px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub,
  .has-sub2:hover > .sub2, .has-sub2:focus-within > .sub2 { opacity: 1; visibility: visible; transform: none; }
  .nav-list > li:last-child .sub { right: 0; left: auto; }
}

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--green-dark); margin: 6px 0; border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: block; }
  .brand img { height: 62px; } .topbar .wrap { min-height: 78px; }
  #nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 78px); height: calc(100dvh - 78px); background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
    padding: 10px 20px 40px; display: none;
  }
  #nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 15px; }
  .sub, .sub2 { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 10px 10px; min-width: 0; }
  .has-sub.open > .sub { display: block; }
  .sub2 { display: block; padding: 0 0 4px 16px; }
  .sub2 a { font-size: 14px; color: var(--muted); }
  .has-sub2 > a::after { content: none; }
  .has-sub.open .caret { transform: rotate(-135deg); }
}

/* ---------- Page banner ---------- */
.page-banner {
  background: var(--green) url(../img/FOND_Marc_3c.png) center / cover no-repeat;
  color: #fff; text-align: center; padding: 64px 0;
}
.page-banner h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 500; letter-spacing: .02em; }

/* ---------- Content ---------- */
.content { padding: 56px 20px 70px; max-width: 900px; }
.content > :first-child { margin-top: 0; }
.content p, .content li { color: var(--green-deep); }
.inner .content p, .inner .content li { color: var(--text); }
.lead { font-size: 1.1rem; }

.hub-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.hub-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 24px 26px; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; color: var(--green-dark);
  transition: .2s;
}
.hub-card:hover { background: var(--green); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.hub-card .arrow { font-size: 1.4rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  background: var(--yellow); color: #4a4a4a; font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; transition: .2s; border: 2px solid var(--yellow);
}
.btn:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: #333; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn-small { padding: 8px 18px; font-size: 12px; }

/* CTA */
.cta { background: var(--green-dark); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta h2 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home ---------- */
.hero { position: relative; height: min(78vh, 760px); min-height: 420px; overflow: hidden; background: #ddd; }
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center; opacity: 0;
  animation: fade 35s infinite, kenburns 35s infinite;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 7s; }
.slide:nth-child(3) { animation-delay: 14s; }
.slide:nth-child(4) { animation-delay: 21s; }
.slide:nth-child(5) { animation-delay: 28s; }
@keyframes fade { 0% { opacity: 0 } 4% { opacity: 1 } 20% { opacity: 1 } 24% { opacity: 0 } 100% { opacity: 0 } }
@keyframes kenburns { 0% { transform: scale(1.1) } 24% { transform: scale(1) } 100% { transform: scale(1) } }
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .slide:first-child { opacity: 1; }
}
.hero-quote {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  text-align: center; width: max-content; max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, .72); border-radius: 12px; padding: 8px 20px 6px;
  backdrop-filter: blur(3px); box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.quote { font-family: "Love Ya Like A Sister", cursive; font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.2; color: #5e5e5e; margin: 0; }
.quote-src { font-family: "Love Ya Like A Sister", cursive; color: var(--green-dark); font-size: clamp(.8rem, 1.1vw, .95rem); margin: 2px 0 0; text-align: right; }

.welcome {
  background: var(--green) url(../img/FOND_Marc_3c.png) center / cover no-repeat;
  color: #fff; text-align: center; padding: 80px 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.welcome h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; margin: 0 0 .2em; }
.welcome a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.welcome .strong { font-weight: 700; }
.welcome .big { font-size: 1.15em; font-weight: 600; }
.welcome .sign { font-family: "Love Ya Like A Sister", cursive; font-size: 1.6em; margin-top: 1.2em; }

.services { background: var(--bg-soft); padding: 80px 0; }
.section-title { text-align: center; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: .04em; margin: 0 0 .6em; }
.services .narrow p { text-align: center; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); text-align: center; padding-bottom: 34px; transition: .25s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 370 / 233; object-fit: cover; }
.card h3 { font-weight: 500; font-size: 1.7rem; margin: 28px 0 20px; }

.home-contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.hc-left { background: var(--green); color: #fff; padding: 70px clamp(24px, 6vw, 90px); }
.hc-left h2 { color: #fff; text-transform: uppercase; font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 1em; }
.hc-left dl { margin: 0 0 30px; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; }
.hc-left dt { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; padding-top: 4px; }
.hc-left dd { margin: 0; }
.hc-left dd a { color: #fff; }
.hc-right { background: #fff; display: grid; place-items: center; padding: 40px; }
.hc-right img { max-width: 420px; width: 90%; }
@media (max-width: 800px) {
  .home-contact { grid-template-columns: 1fr; }
  .hc-left dl { grid-template-columns: 1fr; gap: 0; }
  .hc-left dd { margin-bottom: 12px; }
}

/* ---------- Gallery ---------- */
.content:has(.gallery) { max-width: var(--max); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.g-item { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 3 / 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .15); color: #fff; border: 0; font-size: 2.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Vita ---------- */
.content:has(.vita) { max-width: var(--max); }
.vita { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 50px; align-items: start; }
.vita-photo { margin: 0; }
.vita-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.vita-text h5 { margin-top: 0; font-size: 1.6rem; }
@media (max-width: 760px) { .vita { grid-template-columns: 1fr; } .vita-photo { max-width: 340px; } }

/* ---------- Kontakt ---------- */
.content:has(.contact-grid) { max-width: var(--max); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.contact-card h2 { margin-top: 0; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; }
.note { margin-top: 30px; text-align: center; font-weight: 600; color: var(--green-dark) !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #bdbdbd; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.site-footer a { color: var(--green); }
.footer-logo { width: 170px; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #333; padding: 18px 0; font-size: 14px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #bdbdbd; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-banner { padding: 44px 0; }
  .welcome, .services { padding: 56px 0; }
  .hero { height: 60vh; }
  .hero-quote { bottom: 16px; padding: 6px 14px 4px; }
}

/* ---------- Laravel-Ergänzungen: breite Inhalte, Kontaktformular ---------- */
.content-wide { max-width: var(--max); }
.hc-right { flex-direction: column; gap: 30px; display: flex; align-items: center; justify-content: center; }
.hc-right img { max-width: 300px; }
.hc-right dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px; }
.hc-right dt { font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--green-dark); padding-top: 3px; }
.hc-right dd { margin: 0; }

.contact-form { display: grid; gap: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-size: 14px; font-weight: 600; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: #333;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(157, 196, 81, .45); border-color: var(--green); }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; }
.contact-form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-dark); flex: none; }
.contact-form button.btn { justify-self: start; cursor: pointer; font-family: inherit; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success, .form-errors { border-radius: 10px; padding: 14px 18px; font-size: 15px; }
.form-success { background: #eaf5dc; color: #2f6b1a; border: 1px solid #b9dc93; }
.form-errors { background: #fdecec; color: #9b1c1c; border: 1px solid #f3b9b9; }
.form-errors ul { margin: 6px 0 0; }
.form-errors li { color: inherit !important; }

.contact-form.on-green label, .contact-form.on-green .check { color: #fff; }
.contact-form.on-green .check a { color: #fff; text-decoration: underline; }
.contact-form.on-green input[type=text], .contact-form.on-green input[type=email], .contact-form.on-green input[type=tel], .contact-form.on-green textarea { border-color: transparent; }
.contact-form.on-green button.btn { background: #fff; border-color: #fff; color: var(--green-dark); }
.contact-form.on-green button.btn:hover { background: var(--yellow); border-color: var(--yellow); color: #333; }

.form-box { margin-top: 40px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.form-box h2 { margin-top: 0; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; } }

#formular { scroll-margin-top: 110px; }
