/* Willi Schulz GmbH — statischer Nachbau (ehem. Elementor)
   Farben/Maße am Original (1920 px Referenz) abgenommen. */

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

:root {
  --navy: #204574;
  --text: #293133;
  --field-border: #69727d;
  --white: #ffffff;
  --shadow-card: 0 0 100px -54px rgba(0, 0, 0, 0.5);
  --shadow-ui: 0 0 50px -42px var(--navy), inset 0 0 50px -36px var(--navy);
  --shadow-btn: 0 0 50px -20px var(--navy), inset 0 0 50px -42px var(--navy);
  --shadow-btn-hover: 0 0 50px -30px var(--navy), inset 0 0 50px -44px var(--navy);
  --footer-h: 56px;
  --font: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  cursor: url("../img/cursor.png"), auto;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; }
a:hover, .btn:hover, button:hover, label[for]:hover {
  cursor: url("../img/cursor-hover.png"), pointer;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -100px;
  z-index: 3000;
  background: var(--white);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 0 0 24px 0;
  box-shadow: var(--shadow-ui);
}
.skip-link:focus { top: 0; }

/* ---------- Fixierte Hintergrundebenen ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  will-change: opacity;
}
.bg__layer img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
.bg__layer--z1 { z-index: 1; }
.bg__layer--z2 { z-index: 2; }
.bg__layer--z3 { z-index: 3; }
.bg__layer--z4 { z-index: 4; }
.bg__layer--start { opacity: 0; }
.pos-top img { object-position: 50% 0%; }
.pos-bottom img { object-position: 50% 100%; }
.pos-garten img { object-position: 55% 49%; transform: scale(1.3); }

/* ---------- Wellen ---------- */
@keyframes wave {
  0%, 2%, 100% { transform: translateX(0); }
  25% { transform: translateX(-25%); }
  50% { transform: translateX(-50%); }
  75% { transform: translateX(-25%); }
}

.waves { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.wave {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 200%;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 1000% 1000% 0 0;
  animation: wave 40s linear -3s infinite;
  will-change: transform;
}
.wave--1 { bottom: -2.5em; height: 6vh;  opacity: 0.7; animation: wave 44s linear -8s infinite; }
.wave--2 { bottom: -1.25em; height: 30em; opacity: 0.8; background: rgba(255, 255, 255, 0.82); animation: wave 52s linear 0s infinite reverse; }
.wave--3 { bottom: -2.5em; height: 8em;  opacity: 0.9; animation: wave 54s ease -1s infinite reverse; }
.wave--4 { bottom: -2.5em; height: 12em; opacity: 0.9; animation: wave 44s linear -8s infinite; }

@media (max-width: 1100px) {
  .wave--1 { height: 32vh; }
  .wave--2 { height: 38vh; }
}

/* Intro/Outro: weiße Wellen, die beim Laden absinken und beim Verlassen aufsteigen */
.intro { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.intro__wave {
  position: fixed;
  left: 0;
  width: 200%;
  height: 0;
  background: #fff;
  border-radius: 1000% 1000% 0 0;
  will-change: height, transform;
}
.intro__wave--1 { bottom: -1.25em; opacity: 0.8; transition: height 1.2s ease;  animation: wave 52s linear 0s infinite reverse; }
.intro__wave--2 { bottom: -1.25em; opacity: 0.8; transition: height 1.2s ease;  animation: wave 52s linear 0s infinite reverse; }
.intro__wave--3 { bottom: -2.5em;  opacity: 1;   transition: height 0.95s ease; animation: wave 54s ease -1s infinite reverse; }
.intro__wave--4 { bottom: -2.5em;  opacity: 0.6; transition: height 0.7s ease; animation: wave 44s linear -8s infinite; }
.intro.is-covering { pointer-events: auto; }
.intro.is-covering .intro__wave { height: 300vh; }
.intro.no-transition .intro__wave { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .wave, .intro__wave { animation: none; }
  .intro__wave { transition: none; }
  .btn, .nav a, .site-header { transition: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 92px 10px 18px;
  background: var(--white);
  border-radius: 0 0 200px 0;
  box-shadow: var(--shadow-ui);
  transition: box-shadow 0.8s;
}
.site-header:hover {
  box-shadow: 0 0 50px -26px var(--navy), inset 0 0 50px -38px var(--navy);
}
.site-header__logo { display: block; flex: none; padding: 4px 6px; }
.site-header__logo img { width: 96px; height: auto; }

.nav { display: flex; align-items: center; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--navy);
  transition: transform 0.5s;
}
.nav a:hover { transform: scale(1.05); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: var(--footer-h);
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  font-size: 11.5px;
  line-height: 1.5;
}
.site-footer__legal a { padding: 4px 0; }
.site-footer__claim { text-align: center; }
.site-footer__claim p:first-child { font-size: 12.5px; }

.contact-box {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 20vw;
  height: var(--footer-h);
  padding: 4px 24px 0 76px;
  background: var(--white);
  border-radius: 100px 0 0 0;
  box-shadow: 0 0 50px -42px var(--navy), inset 0 0 50px -30px var(--navy);
  transition: box-shadow 0.8s;
  font-size: 11.5px;
}
.contact-box:hover { box-shadow: 0 0 50px -26px var(--navy), inset 0 0 50px -38px var(--navy); }
.contact-box a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.contact-box svg { width: 20px; height: 20px; flex: none; fill: var(--navy); }

/* ---------- Inhalt ---------- */
main { position: relative; z-index: 100; display: block; }

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: flex-end;
  padding-bottom: 19vh;
  text-align: center;
}
.hero h1 { font-size: 42px; line-height: 1.1; }
.hero p { margin-top: 20px; font-size: 20px; line-height: 1.5; }

.h2 { font-size: 28px; line-height: 1.2; text-align: center; }
.lead { font-size: 16px; line-height: 1.5; text-align: center; max-width: 1300px; }
.lead a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.stack { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }

/* Button (Pille) */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 80px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  box-shadow: var(--shadow-btn);
  transition: transform 0.5s, box-shadow 0.5s;
}
.btn:hover { transform: scale(1.05); box-shadow: var(--shadow-btn-hover); }
.btn-row { display: flex; justify-content: center; padding: 20px 0; }

/* Versprechen-Badges (1. / Sorglos / Abgesichert) */
.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 360px));
  gap: 24px;
  justify-content: center;
  width: 100%;
}
.badges--wide { grid-template-columns: repeat(3, minmax(0, 369px)); }
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 0 0 80px 0;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.badge__icon { width: 115px; height: 128px; fill: var(--navy); }
.badge__icon--care { transform: scale(1.4); }
.badge__title { font-size: 24px; line-height: 1.5; }
.badge__text { font-size: 14px; line-height: 1.5; margin-top: -6px; }

/* Text-Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 592px));
  gap: 24px;
  justify-content: center;
  width: 100%;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 26px;
  background: var(--white);
  border-radius: 0 0 80px 0;
  box-shadow: var(--shadow-card);
}
.card__title { font-size: 20px; line-height: 1.5; }
.card__text { font-size: 14px; line-height: 1.5; color: var(--text); text-align: justify; hyphens: auto; }
.card__link { font-size: 14px; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 442px));
  gap: 28px 28px;
  justify-content: center;
  width: 100%;
}
.person {
  display: flex;
  background: var(--white);
  border-radius: 0 0 40px 0;
  overflow: hidden;
  min-height: 291px;
}
.person__photo { flex: 0 0 44.4%; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 18px 18px 12px;
}
.person__name { font-size: 16px; line-height: 1.5; }
.person__mail { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }

/* Historie (Über uns) */
.history { display: flex; flex-direction: column; align-items: center; gap: 120px; width: 100%; }
.history__row {
  position: relative;
  width: 100%;
  max-width: 1133px;
  background: var(--white);
  border-radius: 0 0 120px 0;
  box-shadow: var(--shadow-card);
}
.history__row--1 {
  display: grid;
  grid-template-columns: 282px 1fr;
  min-height: 404px;
}
.history__portrait {
  position: relative;
  align-self: start;
  width: 355px;
  margin: -37px 0 -95px -45px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transform: rotate(-4deg) scale(0.9);
  z-index: 2;
}
.history__portrait img { width: 100%; height: auto; }
.history__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 32px 40px 72px;
}
.history__title { font-size: 20px; line-height: 1.5; }
.history__body { font-size: 14px; line-height: 1.5; color: var(--text); text-align: justify; hyphens: auto; }
.history__quote { font-size: 16px; line-height: 1.5; }
.history__row--2 {
  display: grid;
  grid-template-columns: 1fr 458px;
  min-height: 305px;
  overflow: hidden;
}
.history__row--2 .history__text { padding: 20px 32px 32px 32px; }
.history__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 0 120px 0; }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 494px));
  gap: 24px;
  justify-content: center;
  width: 100%;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.map {
  position: relative;
  display: block;
  aspect-ratio: 454 / 200;
  overflow: hidden;
  background: #e8ecf1;
}
.map img { width: 100%; height: 100%; object-fit: cover; }
.map__pin { position: absolute; left: 41.8%; top: 63.7%; width: 30px; height: 40px; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.map__cta {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 7px 14px;
  border-radius: 80px;
  background: var(--white);
  font-size: 12px;
  line-height: 1;
  box-shadow: var(--shadow-btn);
}
.map__credit { font-size: 10px; line-height: 1.4; color: #5b6573; margin-top: -14px; }
.map__credit a { color: inherit; text-decoration: underline; }
.address__name { font-size: 16px; font-weight: 700; line-height: 1; }
.address { font-size: 14px; line-height: 1.5; font-style: normal; }

.moin { font-size: 32px; line-height: 1; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--field-border);
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}
.form textarea { height: 90px; padding: 8px 16px; resize: vertical; min-height: 90px; }
.form ::placeholder { color: #7a8594; opacity: 1; }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.form__check input { margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.form__check a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; height: 40px; padding: 0 24px; font-size: 16px; }
.form .btn[disabled] { opacity: 0.6; }
.form__status { font-size: 14px; line-height: 1.5; min-height: 21px; }
.form__status.is-error { color: #a12a2a; }

/* Rechtstexte */
.legal-band {
  width: 100%;
  background: rgba(255, 255, 255, 0.81);
  display: flex;
  justify-content: center;
  padding: 24px 20px calc(var(--footer-h) + 80px);
}
.legal {
  width: 100%;
  max-width: 920px;
  font-size: 16px;
  line-height: 1.5;
}
.legal p + p { margin-top: 16px; }
.legal h2 { font-size: 20px; line-height: 1.5; margin: 32px 0 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.hero--legal p { font-size: 16px; max-width: 1036px; }

/* Seitenabstände (vh, damit die Foto-Fenster beim Scrollen wie im Original wirken) */
.home-promise { padding-top: 35vh; }
.home-promise .h2 { margin-top: 10px; }
.home-team { padding-top: 60vh; }
.home-cta { min-height: 100vh; justify-content: flex-end; padding-top: 40vh; padding-bottom: calc(var(--footer-h) + 18vh); text-align: center; }

.rundum-cards { padding-top: 21vh; }
.rundum-promise { padding-top: 40vh; }
.rundum-more { padding-top: 55vh; padding-bottom: calc(var(--footer-h) + 22vh); }

.about-history { padding-top: 33vh; }
.about-team { padding-top: 26vh; padding-bottom: calc(var(--footer-h) + 22vh); }
.about-team .team { margin-top: 20px; }

.contact-section {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: calc(var(--footer-h) + 60px);
}

.danke-section {
  min-height: 100vh;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: calc(var(--footer-h) + 60px);
}

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 520px)); }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; max-width: 520px; }
}

@media (max-width: 1024px) {
  .badges, .badges--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; }
  .history__row--1 { grid-template-columns: 220px 1fr; }
  .history__portrait { width: 290px; }
  .history__row--2 { grid-template-columns: 1fr 380px; }
  .site-footer__claim { display: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  :root { --footer-h: 52px; }

  .site-header { padding: 6px 14px 6px 10px; border-radius: 0 0 60px 0; }
  .site-header__logo img { width: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    padding: 84px 20px 26px;
    background: var(--white);
    border-radius: 0 0 60px 0;
    box-shadow: var(--shadow-ui);
    transform: translateY(-110%);
    transition: transform 0.45s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav ul { flex-direction: column; width: 100%; }
  .nav a { padding: 14px 6px; font-size: 18px; border-bottom: 1px solid rgba(32, 69, 116, 0.12); }
  .nav li:last-child a { border-bottom: 0; }

  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .hero { padding-bottom: calc(var(--footer-h) + 5vh); }
  .badge { padding: 16px; gap: 14px; }
  .badge__icon { width: 86px; height: 96px; }
  .h2 { font-size: 24px; }

  .badges, .badges--wide { grid-template-columns: minmax(0, 360px); gap: 18px; }
  .cards { grid-template-columns: minmax(0, 560px); }
  .cards > .card:last-child:nth-child(odd) { max-width: none; }
  .card { border-radius: 0 0 60px 0; }

  .team { grid-template-columns: minmax(0, 442px); gap: 18px; }
  .person { min-height: 0; }
  .person__photo { flex-basis: 42%; aspect-ratio: 196 / 291; }
  .person__mail { font-size: 11px; }

  .history { gap: 70px; }
  .history__row--1 { grid-template-columns: 1fr; padding-top: 24px; }
  .history__portrait { width: min(62vw, 260px); margin: -60px auto 0; transform: rotate(-4deg); }
  .history__text { padding: 24px 22px 44px; }
  .history__row--2 { grid-template-columns: 1fr; }
  .history__row--2 .history__text { padding: 22px 22px 26px; }
  .history__photo img { aspect-ratio: 458 / 305; }
  .history__row, .history__photo img { border-radius: 0 0 80px 0; }

  .contact { grid-template-columns: minmax(0, 494px); }

  .site-footer { grid-template-columns: 1fr; padding: 0 16px; font-size: 11px; }
  .contact-box { width: auto; gap: 6px; padding: 4px 10px 0 44px; border-radius: 60px 0 0 0; }
  .contact-box a { width: 44px; height: 44px; justify-content: center; }
  .contact-box .contact-box__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .contact-box svg { width: 22px; height: 22px; }

  .home-promise { padding-top: 30vh; }
  .home-team { padding-top: 45vh; }
  .home-cta { padding-top: 35vh; padding-bottom: calc(var(--footer-h) + 6vh); }
  .rundum-promise { padding-top: 32vh; }
  .rundum-more { padding-top: 40vh; }
  .about-history { padding-top: 30vh; }
  .about-team { padding-top: 18vh; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .person__body { padding: 8px 12px 14px 10px; }
}

@media print {
  .bg, .waves, .intro, .contact-box, .nav-toggle { display: none !important; }
  .site-header, .site-footer { position: static; box-shadow: none; }
  main { z-index: auto; }
}

.panel--center { max-width: 560px; text-align: center; align-items: center; }
.btn-row--multi { gap: 16px; flex-wrap: wrap; }

@media (max-width: 767px) {
  .hero h1, .hero p, .home-cta .h2, .home-cta .lead { text-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 4px rgba(255, 255, 255, 0.8); }
}
