/* ==========================================================================
   Stillberatung Elisabeth Dressel – global styles
   Beige / natural palette. Colors are centralised as CSS variables below.
   ========================================================================== */

/* ---------- Palette (beige / natural) ------------------------------------- */
:root {
  --beige-1: #F3E5DA;   /* lightest warm beige */
  --beige-2: #E9D4C1;   /* soft beige */
  --beige-3: #D1B7A0;   /* mid taupe-beige (borders/dividers) */
  --taupe:   #A18168;   /* palette accent – decorative / large text only */
  --taupe-deep:   #8A6A51; /* headings, badges, buttons (AA with white) */
  --taupe-deeper: #74563F; /* hover */
  --text:      #4A3B30; /* body text  (~10:1 on beige) */
  --text-soft: #6E5A4B; /* muted notes (~6.8:1 on beige) */
  --base:    #FBF8F4;   /* airy near-white base */
  --surface: #FFFFFF;   /* cards */
  --shadow: rgba(138, 106, 81, 0.14);
}

/* ---------- Fonts (self-hosted, no external requests) ---------------------- */
@font-face {
  font-family: 'Dancing Script';
  src: url('/assets/fonts/static/DancingScript-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('/assets/fonts/static/DancingScript-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('/assets/fonts/static/DancingScript-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('/assets/fonts/static/DancingScript-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poiret One';
  src: url('/assets/fonts/static/PoiretOne-Regular.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/static/OpenSans-Regular.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/static/OpenSans-Bold.ttf') format('truetype');
  font-weight: bold; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/assets/fonts/static/OpenSans-Italic.ttf') format('truetype');
  font-weight: normal; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/static/Quicksand-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/static/Quicksand-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/static/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Base ---------------------------------------------------------- */
html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  margin: 0;
  overflow-y: scroll;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 50vh;
  flex: 1;
  font-size: 1.15em;
  line-height: 1.6;
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  /* Clean near-white base with the transparent watercolor-bubble PNG, softened
     by a near-white veil (not beige — just lightens the bubbles, no colour). */
  background-color: var(--base);
  background-image:
    linear-gradient(rgba(251, 248, 244, 0.72), rgba(251, 248, 244, 0.72)),
    url('/assets/images/background.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
}

@media (min-width: 768px) {
  body { background-attachment: fixed; }
}

.page-wrapper { flex: 1; display: flex; flex-direction: column; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

h1, h2 {
  font-family: 'Poiret One', sans-serif;
  color: var(--taupe-deep);
  text-align: center;
}
h1 { font-size: 2.2em; margin-top: 1em; }
h2 { font-size: 1.9em; margin-top: 1em; }

a { color: var(--taupe-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Single-page section rhythm ------------------------------------ */
.section {
  padding: 3.4em 1em;
  scroll-margin-top: 120px; /* so anchor jumps clear the fixed header */
}

.section--tint { background: rgba(233, 212, 193, 0.38); }

.section-inner { max-width: 1040px; margin: 0 auto; }

/* ---------- Header / navigation ------------------------------------------- */
.top-menu {
  background: rgba(251, 247, 243, 0.92);
  box-shadow: 0 1px 6px rgba(138, 106, 81, 0.12);
  padding: 8px 0; /* header grows to fully contain the logo */
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-wrapper { display: flex; align-items: center; }
.logo-img { height: 90px; object-fit: contain; display: block; }

.menu-links { display: flex; gap: 20px; }

.menu-links .item { color: var(--text) !important; font-weight: 500; }
.menu-links .item:hover { color: var(--taupe-deep) !important; }
.menu-links .item.active {
  color: var(--taupe-deep) !important;
  border-bottom: 2px solid var(--taupe);
}

/* Hidden on desktop; !important beats Semantic's two-class `.ui.icon.button`.
   Borderless, calm icon in the taupe accent instead of a beige box. */
.burger-button {
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--taupe-deep) !important;
  padding: 0.4rem !important;
  margin: 0 !important;
}
.burger-button:hover { background: transparent !important; color: var(--taupe-deeper) !important; }
.burger-button i.icon { font-size: 1.6em; margin: 0; }

.ui.menu,
.ui.menu .item,
.ui.menu .dropdown .menu > .item {
  font-family: 'Quicksand', sans-serif !important;
}

@media (max-width: 768px) {
  .menu-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
  }
  .menu-links.show { display: flex !important; }
  .burger-button { display: block !important; }
  .logo-img { height: 62px; }
}

@media (min-width: 769px) {
  .menu-links { margin: 0 auto; }
  .logo-img { height: 100px; }
}

/* ---------- Footer -------------------------------------------------------- */
.footer-menu {
  background: rgba(243, 229, 218, 0.9);
  padding: 1.5em 0;
  border-top: 1px solid var(--beige-3);
  box-shadow: 0 -1px 4px rgba(138, 106, 81, 0.1);
  font-family: 'Quicksand', sans-serif;
  margin-top: 4em;
}

.footer-menu .ui.list .item {
  color: var(--text-soft) !important;
  font-size: 0.95em;
  padding: 0.2em 0;
}

.footer-menu .ui.list .item:hover {
  color: var(--taupe-deep);
  text-decoration: underline;
}

/* ---------- Cookie banner ------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--beige-3);
  box-shadow: 0 -2px 6px rgba(138, 106, 81, 0.1);
  padding: 1em 0;
  z-index: 9999;
  text-align: center;
  font-size: 0.95em;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner .ui.button {
  background: var(--taupe-deep);
  color: #fff;
}
.cookie-banner .ui.button:hover { background: var(--taupe-deeper); color: #fff; }

/* ---------- Accordion (used by FAQ / optional lists) ---------------------- */
.custom-accordion .custom-title {
  cursor: pointer;
  padding: 1em;
  font-weight: bold;
  background: none;
  border-bottom: 1px solid var(--beige-3);
  transition: background 0.2s ease;
}
.custom-accordion .custom-title:hover { background: rgba(233, 212, 193, 0.35); }
.custom-accordion .custom-content {
  display: none;
  padding: 0.5em 1em 1em 1em;
  border-bottom: 1px solid var(--beige-2);
}
.custom-accordion .custom-content.active { display: block; }
.custom-accordion .custom-title.active { color: var(--taupe-deep); }

/* ---------- Hero (Section 1) ---------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5em;
  max-width: 1040px;
  margin: 0.5em auto;
}

.hero-text { flex: 1 1 320px; }
.hero-img-wrap { flex: 0 1 360px; text-align: center; }

.hero-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  /* Rounded capsule shape … */
  border-radius: 37.5% / 27%;
  /* … plus a soft feathered edge (Verlauf). `closest-side` makes the fade
     reach all four edges (not just the far corners), so the whole perimeter
     dissolves softly into the background. */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 45%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse closest-side at 50% 45%, #000 60%, transparent 100%);
}

.hero-eyebrow {
  font-family: 'Dancing Script', cursive;
  font-size: 2.6em;
  line-height: 1.1;
  color: var(--taupe);
  margin: 0 0 0.15em 0;
}

.hero-name {
  font-family: 'Poiret One', sans-serif;
  font-size: 2.2em;
  color: var(--taupe-deep);
  text-align: left;
  margin: 0.1em 0 0.05em 0;
}

.hero-role { font-weight: 600; margin: 0 0 0.7em 0; }

.hero-services { color: var(--text-soft); font-size: 0.95em; letter-spacing: 0.01em; }

/* ---------- Readable prose ------------------------------------------------ */
.home-prose {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: left;
}
.home-prose p { margin: 0 0 1.1em 0; }

.section-eyebrow {
  font-family: 'Poiret One', sans-serif;
  font-size: 1.9em;
  text-align: center;
  color: var(--taupe-deep);
  margin: 0 0 1.3em 0;
}

/* Soft empathetic lines */
.reflect { margin: 0 0 1.2em 0; }
.reflect p { position: relative; margin: 0.55em 0; padding-left: 1.3em; }
.reflect p::before { content: "•"; position: absolute; left: 0.2em; color: var(--taupe); }

.reflect-close { font-weight: 600; text-align: center; margin: 1.4em 0 !important; }

/* Pull quotes */
.pull-quote {
  font-family: 'Poiret One', sans-serif;
  font-size: 1.7em;
  line-height: 1.3;
  text-align: center;
  color: var(--taupe-deep);
  margin: 2em auto !important;
}

/* Emphasised question groups */
.q-group {
  background: var(--beige-1);
  border-left: 3px solid var(--taupe);
  border-radius: 12px;
  padding: 1.2em 1.5em;
  margin: 1.6em 0;
}
.q-group p { margin: 0.4em 0 !important; }
.q-lead { font-weight: 600; margin-bottom: 0.7em !important; }

.closing {
  font-family: 'Poiret One', sans-serif;
  font-size: 1.6em;
  line-height: 1.4;
  text-align: center;
  color: var(--taupe-deep);
  margin: 2.6em 0 0.5em 0 !important;
}

@media (max-width: 768px) {
  .hero { gap: 1.5em; }
  .hero-text { text-align: center; }
  .hero-name { text-align: center; }
  .hero-eyebrow { font-size: 2.2em; }
  .hero-img-wrap { order: -1; flex-basis: auto; width: 100%; }
  .pull-quote { font-size: 1.4em; }
  h1 { font-size: 1.9em; }
  h2, .section-eyebrow { font-size: 1.6em; }
}

/* ---------- Service cards (Section 5) ------------------------------------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5em;
  max-width: 780px;
  margin: 2em auto 1em auto;
}

@media (max-width: 620px) {
  .service-cards { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--beige-2);
  border-top: 3px solid var(--taupe);
  border-radius: 14px;
  padding: 1.5em 1.4em;
  box-shadow: 0 6px 18px var(--shadow);
}

.service-card h3 {
  font-family: 'Poiret One', sans-serif;
  font-size: 1.4em;
  color: var(--taupe-deep);
  margin: 0 0 0.5em 0;
}

.service-card p { margin: 0.4em 0; font-size: 0.95em; line-height: 1.6; }

/* Featured / focus card (Wochenbettbegleitung) */
.service-card--featured {
  text-align: center;
  padding: 1.5em 1.4em;
  background: linear-gradient(135deg, var(--beige-1), var(--beige-2));
  border: 2px solid var(--beige-3);
  box-shadow: 0 10px 28px var(--shadow);
}

.service-card--featured h3 { font-size: 1.5em; color: var(--taupe-deep); }
.service-card--featured p { font-size: 1.02em; max-width: 640px; margin-left: auto; margin-right: auto; }

.service-badge {
  display: inline-block;
  margin-bottom: 0.8em;
  padding: 0.35em 1em;
  background: var(--taupe-deep);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ---------- Call-to-action (Section 7) + credentials ---------------------- */
.cta-block {
  background: var(--beige-2);
  border-radius: 16px;
  padding: 2.4em 1.8em;
  text-align: center;
  max-width: 760px;
  margin: 1em auto;
}

.cta-block h2 { font-family: 'Poiret One', sans-serif; font-size: 1.7em; margin: 0 0 0.6em 0; }
.cta-block p { max-width: 620px; margin: 0.6em auto; line-height: 1.7; }

.cta-button {
  display: inline-block;
  margin-top: 1.3em;
  background: var(--taupe-deep);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  padding: 0.8em 1.9em;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.cta-button:hover { background: var(--taupe-deeper); color: #fff; }

.credentials {
  max-width: 720px;
  margin: 2.5em auto 0 auto;
  background: var(--beige-1);
  border-radius: 12px;
  padding: 1.4em 1.7em;
  font-size: 0.95em;
  line-height: 1.7;
}
.credentials h3 { font-family: 'Poiret One', sans-serif; font-size: 1.3em; text-align: center; margin: 0 0 0.6em 0; color: var(--taupe-deep); }
.credentials ul { margin: 0.4em 0 0 0; padding-left: 1.2em; }
.credentials li { margin: 0.3em 0; }

/* ---------- Honorar / price list (Section 8) ------------------------------ */
.price-list { max-width: 760px; margin: 1.5em auto 0 auto; text-align: left; }

.price-item {
  background: var(--surface);
  border: 1px solid var(--beige-2);
  border-radius: 14px;
  padding: 1.3em 1.5em;
  margin-bottom: 1.2em;
  box-shadow: 0 4px 14px var(--shadow);
}

.price-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2em 1em;
}

.price-item h3 { font-family: 'Poiret One', sans-serif; font-size: 1.4em; color: var(--taupe-deep); margin: 0; }

.price-tag { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.2em; color: var(--taupe-deep); white-space: nowrap; }

.price-item .desc { margin: 0.6em 0 0 0; line-height: 1.6; }
.price-item ul { margin: 0.7em 0 0 0; padding-left: 1.2em; line-height: 1.6; }
.price-item li { margin: 0.25em 0; }
.price-note { margin: 0.7em 0 0 0; font-size: 0.88em; color: var(--text-soft); font-style: italic; }

.price-item--featured {
  background: linear-gradient(135deg, var(--beige-1), var(--beige-2));
  border: 2px solid var(--beige-3);
}

/* Info notes (Gutscheine, Herzensanliegen, Hinweis) */
.info-block {
  max-width: 760px;
  margin: 0 auto 1em auto;
  background: var(--beige-1);
  border-radius: 12px;
  padding: 1.1em 1.4em;
  text-align: left;
}
.info-block h4 { font-family: 'Poiret One', sans-serif; font-size: 1.2em; color: var(--taupe-deep); margin: 0 0 0.4em 0; }
.info-block p { margin: 0.3em 0; line-height: 1.6; font-size: 0.95em; }

/* ---------- Contact (Section 10) ------------------------------------------ */
.contact-block {
  max-width: 640px;
  margin: 1.5em auto 0 auto;
  background: var(--surface);
  border: 1px solid var(--beige-2);
  border-radius: 16px;
  padding: 2em 1.8em;
  box-shadow: 0 6px 18px var(--shadow);
  text-align: center;
}

.contact-intro { font-size: 1.1em; margin: 0 0 1.2em 0; }

.contact-list { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 1.05em; }
.contact-list li { margin: 0.5em 0; }
.contact-list .icon { color: var(--taupe); margin-right: 0.4em; }
.contact-list a { color: var(--taupe-deep); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- FAQ placeholder (Section 9 – hidden until content provided) ---- */
.faq-list { max-width: 760px; margin: 1.5em auto 0 auto; text-align: left; }

/* ---------- Back-to-top (calm, appears after scrolling) ------------------- */
.back-to-top {
  position: fixed;
  right: 1.2em;
  bottom: 1.4em;
  z-index: 9998;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--taupe-deep);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(138, 106, 81, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--taupe-deeper); color: #fff; }

/* ---------- Competence note (Medizinische Begleitung) --------------------- */
.med-note {
  background: var(--beige-1);
  border-left: 3px solid var(--taupe);
  border-radius: 12px;
  padding: 1.6em 1.8em;
  line-height: 1.8;
  margin: 0.6em 0 2.4em 0;
}
.med-note h3 {
  font-family: 'Poiret One', sans-serif;
  font-size: 1.45em;
  text-align: left;
  color: var(--taupe-deep);
  margin: 0 0 0.6em 0;
}
.med-note p { margin: 0 0 1em 0; }
.med-note p:last-child { margin-bottom: 0; }

/* ---------- Helpers ------------------------------------------------------- */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
