/* =========================================================
   Die Hebamme Tirol – Elisabeth Saxer
   Modernes, warmes One-Pager-Theme
   ========================================================= */

:root {
  --cream:      #FBF7F2;
  --sand:       #F3EAE0;
  --sand-deep:  #EADDCE;
  --ink:        #3B342E;
  --muted:      #7C7168;
  --terra:      #C08268;
  --terra-dark: #A6684F;
  --sage:       #9CAB8E;
  --sage-dark:  #77896A;
  --white:      #ffffff;
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 18px 50px -22px rgba(59, 52, 46, .35);
  --shadow-sm:  0 8px 24px -14px rgba(59, 52, 46, .35);
  --maxw:       1160px;
  --heading:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:       "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--terra-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terra); }

h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / section intro ---------- */
.eyebrow {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--terra);
  margin: 0 0 .8em;
  display: inline-block;
}

.lead { font-size: 1.22rem; font-weight: 600; color: var(--sage-dark); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--terra); color: var(--white);
  padding: .85em 1.8em; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .02em;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--terra-dark); color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--sand-deep); box-shadow: none; }
.btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--terra); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(59,52,46,.07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.nav__logo img { height: 40px; width: auto; }
.nav__logo .wordmark { font-family: var(--heading); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.nav__menu { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a { color: var(--ink); font-weight: 600; font-size: .96rem; position: relative; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--terra); transition: width .25s ease; }
.nav__menu a:hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background-size: cover; background-position: center 30%;
  color: var(--white);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(59,52,46,.62) 0%, rgba(59,52,46,.28) 55%, rgba(59,52,46,.15) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 640px; padding: 120px 0; }
.hero .eyebrow { color: #F4D9CC; }
.hero h1 { color: var(--white); font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: .25em; letter-spacing: -.02em; }
.hero__tag { font-family: var(--heading); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: #F7ECE3; margin-bottom: 1.4em; line-height: 1.35; letter-spacing: .005em; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__actions .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.14); border-color: var(--white); }

/* ---------- Section base ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--deep { background: var(--sand-deep); }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__head p { color: var(--muted); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 3/2; }
.split__body h2 { margin-bottom: .35em; }

.tags { list-style: none; margin: 1.2em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { background: var(--white); border: 1px solid var(--sand-deep); color: var(--ink); padding: .4em 1em; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.section--sand .tags li, .section--deep .tags li { background: var(--cream); }

/* ---------- Cards (Angebote) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3/2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.5rem; margin-bottom: .3em; }
.card__meta { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--terra-dark); }
.card__sub { color: var(--sage-dark); font-family: var(--sans); font-style: italic; font-weight: 600; font-size: 1.02rem; margin: -.2em 0 .8em; }

/* ---------- Info list ---------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(156,171,142,.25);
}

/* ---------- Team (Behandlungsraum) ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.team__member { background: var(--cream); border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--sand-deep); }
.team__member h4 { color: var(--terra-dark); font-size: 1.5rem; margin-bottom: .4em; }
.team__member .checklist li::before { background: var(--terra); box-shadow: 0 0 0 4px rgba(192,130,104,.2); }
.team__member .phone { margin-top: 1em; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact__card { background: var(--white); border-radius: var(--radius); padding: clamp(32px, 4vw, 52px); box-shadow: var(--shadow); }
.contact__row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3em; }
.contact__row:last-child { margin-bottom: 0; }
.contact__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--terra-dark); }
.contact__ico svg { width: 22px; height: 22px; }
.contact__row strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.contact__row span, .contact__row a { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.contact__aside { color: var(--muted); }
.contact__aside .lead { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9CFC6; padding: 64px 0 32px; }
.site-footer a { color: #EAD9CD; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__brand { font-family: var(--heading); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; color: var(--white); margin-bottom: .3em; }
.footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; margin: 0; }
.footer__nav a { color: #D9CFC6; font-weight: 600; }
.footer__nav a:hover { color: var(--white); }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #A79B90; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Rechtliche Unterseiten (Impressum / Datenschutz) ---------- */
.container.narrow { max-width: 820px; }

.page-head { background: var(--sand); padding: clamp(52px, 8vw, 96px) 0 clamp(30px, 5vw, 52px); border-bottom: 1px solid rgba(59,52,46,.06); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0; }
.page-head p.sub { color: var(--muted); margin: .6em 0 0; font-size: 1.1rem; }

.prose { font-size: 1.05rem; color: var(--ink); }
.prose h2 { margin: 1.9em 0 .5em; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.4em 0 .4em; font-size: 1.2rem; }
.prose p, .prose ul { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--terra-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--terra); }
.prose strong { font-weight: 700; }

.address-card { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm); margin: 0 0 1.6em; }
.address-card p { margin: 0; line-height: 1.9; }

.legal-note { background: var(--cream); border: 1px solid var(--sand-deep); border-left: 4px solid var(--terra); border-radius: var(--radius-sm); padding: 16px 20px; font-size: .9rem; color: var(--muted); margin: 1.6em 0; }

/* IT-Firmen "Umsetzung der Website" */
.credits { margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--sand-deep); }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-top: 1.4em; }
.credit-card { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.credit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.credit-logo { height: 60px; display: grid; place-items: center; }
.credit-logo img { max-height: 60px; width: auto; object-fit: contain; }
.credit-name { font-family: var(--heading); font-weight: 700; font-size: 1.05rem; }
.credit-role { font-size: .82rem; color: var(--muted); margin-top: -8px; }

/* ---------- Reveal on scroll (nur mit JS; ohne JS bleibt alles sichtbar) ---------- */
.has-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .has-js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 16px 24px 28px; gap: 0; border-bottom: 1px solid rgba(59,52,46,.1);
    transform: translateY(-140%); transition: transform .35s ease; box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow:auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { border-bottom: 1px solid var(--sand-deep); }
  .nav__menu a { display: block; padding: 14px 4px; }
  .nav__menu a::after { display: none; }
  .nav__toggle { display: block; }
  .split, .contact { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__media img { aspect-ratio: 3/2; }
}
