/* ==========================================================
   loyola – Betreuung zu Hause
   ========================================================== */

:root {
  --ivory: #fbf8f3;
  --sand: #f3ece2;
  --sand-deep: #e9dfd1;
  --ink: #1d2733;
  --ink-soft: #2c3846;
  --muted: #5b6573;
  --line: #e4dacb;
  --blue: #0b84b8;        /* logo blue, deepened for readable text */
  --blue-bright: #00b0f0; /* logo blue, accents only */
  --gold: #e2ae2f;        /* the heart */
  --gold-soft: #f6e7bf;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(29, 39, 51, .04), 0 12px 32px -12px rgba(29, 39, 51, .18);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50, "opsz" 96;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; font-variation-settings: "SOFT" 50, "opsz" 24; }
h1 em, h2 em { font-style: italic; color: var(--blue); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.lead { font-size: 1.15em; color: var(--ink-soft); max-width: 36em; }
.section-head { max-width: 44rem; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: .8em 1.6em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--blue); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: var(--gold); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(29,39,51,.35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height .3s; }
.header.is-scrolled .header__inner { height: 70px; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 46px; padding: .6em 1.3em; font-size: .95rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  border-radius: 12px; color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(29,39,51,.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; min-height: 54px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .6em; }
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fae6b; box-shadow: 0 0 0 4px rgba(63,174,107,.15); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 62% center;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
}
.hero__card {
  position: absolute; left: -36px; bottom: 40px; max-width: 270px;
  background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; line-height: 1.45;
}
.hero__card strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.hero__card img { width: 34px; height: 34px; flex: none; }
.hero__card span { color: var(--muted); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__card { left: 16px; bottom: 16px; }
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { padding: 30px 26px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin-bottom: 4px; }
.trust__item span { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; }
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item { padding: 24px 20px; }
  .trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: 0; padding-left: 0; }
  .trust__item + .trust__item { border-top: 1px solid var(--line); }
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 5 / 6; object-fit: cover; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
}

.quote {
  margin: 2rem 0 0; padding: 1.4rem 0 0 1.6rem; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--ink);
}
.quote cite { display: block; margin-top: .7rem; font: 500 .9rem var(--sans); font-style: normal; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2733' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; transition: transform .35s, box-shadow .35s, border-color .35s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sand);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--blue);
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--muted); font-size: .96rem; margin: 0; }
.service--cta { background: var(--ink); color: var(--ivory); border-color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.service--cta p { color: rgba(251,248,243,.75); }
.service--cta .btn { align-self: flex-start; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--ink); }
.step__num {
  font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--blue);
  font-style: italic; margin-bottom: 18px; display: block;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.person { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; }
.person__photo {
  width: 170px; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; background: var(--sand-deep);
}
.person__mono {
  width: 170px; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--sand-deep);
  display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--ink-soft); font-style: italic;
}
.person h3 { margin-bottom: .15em; }
.person__role { color: var(--blue); font-weight: 600; font-size: .92rem; margin-bottom: .9em; display: block; }
.person p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
  .person__photo, .person__mono { width: 150px; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; display: flex; flex-direction: column;
}
.plan--featured { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.plan__name { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .2em; }
.plan__for { color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }
.plan--featured .plan__for, .plan--featured .plan__meta { color: rgba(251,248,243,.72); }
.plan__hours { font-size: .95rem; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.plan--featured .plan__hours { border-color: rgba(251,248,243,.18); }
.plan__price { margin-top: auto; }
.plan__price small { display: block; font-size: .85rem; color: var(--muted); }
.plan--featured .plan__price small { color: rgba(251,248,243,.7); }
.plan__price strong { font-family: var(--serif); font-weight: 400; font-size: 2.3rem; line-height: 1.1; }
.plan__price span { font-size: .95rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

.pricing-details {
  margin-top: 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px);
  background: var(--ivory); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
}
.pricing-details h3 { margin-bottom: .6em; }
.pricing-details dl { margin: 0; display: grid; gap: 0; }
.pricing-details dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pricing-details dt { color: var(--ink-soft); }
.pricing-details dd { margin: 0; font-weight: 600; text-align: right; }
.pricing-details .fine { font-size: .88rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 860px) { .pricing-details { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--ivory); position: relative; overflow: hidden; }
.contact::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(226,174,47,.18), transparent 65%);
  pointer-events: none;
}
.contact .eyebrow { color: rgba(251,248,243,.65); }
.contact h2 em { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: end; position: relative; z-index: 1; }
.contact .lead { color: rgba(251,248,243,.8); }
.contact__phone {
  display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--ivory); text-decoration: none; line-height: 1.1; margin: .4rem 0 1.4rem;
  border-bottom: 1px solid rgba(251,248,243,.3); padding-bottom: 6px; transition: border-color .3s, color .3s;
}
.contact__phone:hover { color: var(--gold); border-color: var(--gold); }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--gold); }
.contact__list small { display: block; color: rgba(251,248,243,.6); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.contact__list a { color: var(--ivory); }
.contact__list a:hover { color: var(--gold); }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 2.2rem; }
.signature img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.signature span { font-size: .92rem; color: rgba(251,248,243,.7); line-height: 1.4; }
.signature strong { color: var(--ivory); display: block; font-weight: 600; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #151d27; color: rgba(251,248,243,.65); font-size: .92rem; padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer a { color: rgba(251,248,243,.8); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ---------- Sub pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.page-hero .lead { margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.legal { font-size: .97rem; color: var(--ink-soft); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p { overflow-wrap: anywhere; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); }
.box h3 { margin-bottom: .8em; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* ---------- Test banner ---------- */
.test-banner { background: var(--gold); color: var(--ink); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
