/* =========================================================
   Hypnosepraxis Höhn – Stylesheet
   Ruhige Naturtöne, angelehnt an das grüne Logo.
   Bewusst ohne externe Schriften (DSGVO-freundlich).
   ========================================================= */

:root {
  --green-900: #1f3a24;
  --green-800: #2b4d30;
  --green-700: #3a6a3f;
  --green-600: #4c8a4f;
  --green-500: #6aa35f;
  --green-100: #e7f0e3;
  --sand-50:  #fbf9f5;
  --sand-100: #f4efe6;
  --sand-200: #e9e1d3;
  --ink:      #26302a;
  --ink-soft: #55615a;
  --white:    #ffffff;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(31, 58, 36, .25);
  --shadow-sm: 0 4px 14px -6px rgba(31, 58, 36, .2);

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; color: var(--green-900); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green-800); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: .6em;
}
.eyebrow.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; background: var(--green-600); color: #fff; }
.btn-small:hover { background: var(--green-700); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.link-more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; }
.link-more::after { content: "→"; transition: transform .2s ease; }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 249, 245, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--sand-200); box-shadow: 0 2px 18px -10px rgba(0,0,0,.2); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 220px; height: auto; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block; padding: .5em .85em; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav a:not(.btn):hover, .site-nav a.active { background: var(--green-100); color: var(--green-800); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--green-900); border-radius: 2px;
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after  { content: ""; left: 0; top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* Foto gespiegelt (Steinturm rechts) und immer in voller Höhe,
   damit der Turm nie oben/unten abgeschnitten wird.
   Links läuft das Foto weich in die Hintergrundfarbe aus. */
.hero { background: #b9b8b1; }
.hero-media {
  position: absolute; top: 0; bottom: 0; right: 0; z-index: -2;
  height: 100%; aspect-ratio: 1715 / 998;
  background: url("../img/steinturm.jpg") center / 100% 100% no-repeat;
  transform: scaleX(-1);
  /* in Elementkoordinaten: rechts = nach dem Spiegeln links */
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
          mask-image: linear-gradient(to right, #000 70%, transparent 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20, 38, 24, .88) 0%, rgba(20, 38, 24, .62) 40%, rgba(20, 38, 24, 0) 72%);
}
@media (max-width: 880px) {
  /* Handy: Turm mittig hinter dem Text */
  .hero-media { right: auto; left: 50%; transform: translateX(-74%) scaleX(-1); -webkit-mask-image: none; mask-image: none; }
  .hero::before { background: linear-gradient(180deg, rgba(20, 38, 24, .6), rgba(20, 38, 24, .85)); }
}
.hero-content { padding: 80px 0; max-width: 680px; margin-left: max(16px, (100% - 1140px) / 2); }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero .eyebrow { color: #cfe6c6; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 36em; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: rgba(255,255,255,.88); }
.trust li { display: flex; align-items: center; gap: .5em; }
.trust li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Zitat ---------- */
.quote-band { background: var(--green-800); color: #fff; padding: 56px 0; text-align: center; }
.quote-band figure { margin: 0 auto; max-width: 820px; }
.quote-band blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-style: italic; line-height: 1.45; }
.quote-band figcaption { margin-top: 14px; color: #cfe6c6; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-slim { padding: 56px 0; }
.section-tint { background: var(--sand-100); }
.section-dark { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #cfe6c6; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--ink-soft); }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-200);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(31,58,36,.35); }
.method p { color: var(--ink-soft); }
.method { padding-top: 0; overflow: hidden; display: flex; flex-direction: column; }
.method .link-more { margin-top: auto; }
.method-img { margin: 0 -28px 24px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-100); }
.method-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.method:hover .method-img img { transform: scale(1.05); }
.method-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--green-100);
  display: grid; place-items: center; margin-bottom: 20px;
}
.method-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--green-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Anwendungen ---------- */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic {
  background: #fff; border-radius: var(--radius-sm); padding: 22px 22px 18px;
  border-left: 4px solid var(--green-500);
  box-shadow: var(--shadow-sm);
}
.topic h3 { font-size: 1.12rem; margin-bottom: .35em; }
.topic p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.topic-more { background: var(--green-100); border-left-color: var(--green-700); }
.goal {
  max-width: 760px; margin: 48px auto 0; text-align: center;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--green-800); line-height: 1.5;
}

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-500) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green-600); color: #fff;
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 0 0 8px var(--sand-50);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info { background: var(--sand-100); border-radius: var(--radius-sm); padding: 24px; }
.info h3 { font-size: 1.08rem; }
.info p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border-radius: var(--radius); background: var(--green-500); opacity: .25; z-index: 0;
}
.about-photo img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 3 / 2; }
.about .lead { font-size: 1.15rem; color: var(--green-700); font-weight: 600; }
.more summary { cursor: pointer; font-weight: 600; color: var(--green-700); margin-bottom: 1em; list-style: none; display: inline-flex; gap: .4em; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "▾"; transition: transform .2s ease; }
.more[open] summary::after { transform: rotate(180deg); }
.more[open] summary { margin-bottom: .8em; }

.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--green-500); }
.timeline li { position: relative; padding: 0 0 14px 22px; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--sand-100); border: 2px solid var(--green-600); }
.timeline span { display: inline-block; min-width: 4.5em; font-weight: 700; color: var(--green-800); }

/* ---------- Preise ---------- */
.price { text-align: center; }
.price-sub { color: var(--ink-soft); margin-bottom: 1.2em; min-height: 1.6em; }
.price-amount { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: var(--green-800); margin: 0; line-height: 1; }
.price-meta { margin: .5em 0 0; color: var(--ink-soft); font-size: .95rem; }
.price-featured { background: var(--green-800); border-color: var(--green-800); }
.price-featured h3, .price-featured .price-amount { color: #fff; }
.price-featured .price-sub, .price-featured .price-meta { color: #cfe6c6; }
.note { max-width: 760px; margin: 36px auto 0; text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 32px; margin-top: 18px; }
.logos img { width: 78px; height: 78px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.logos a:hover img, .logos img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(24px, 3vw, 32px); align-items: stretch; }
.contact-intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: end; margin-bottom: 12px; }
.contact-intro > :not(.contact-actions) { grid-column: 1; }
.contact-intro p:last-of-type { margin-bottom: 0; }
.contact-intro .contact-actions { grid-column: 2; grid-row: 2 / span 2; margin: 0; align-self: end; }
.contact-card { display: flex; flex-direction: column; }
.contact-card .download { margin-top: auto; }
.contact-card .link-more { margin-bottom: 24px; }
.contact-intro p { color: rgba(255,255,255,.85); font-size: 1.08rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.region-map { margin: 0; background: var(--sand-50); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.region-map svg { display: block; width: 100%; height: auto; flex: 1 1 auto; min-height: 0; max-height: 460px; margin: 0 auto; }
.region-map figcaption { color: var(--ink-soft); font-size: .92rem; padding: 8px 6px 0; }
.region-map figcaption strong { color: var(--green-900); }
.m-river { fill: none; stroke: #9cc3d6; stroke-width: 4; stroke-linecap: round; }
.m-lake { fill: #b9d7e4; stroke: #9cc3d6; stroke-width: 1.5; }
.m-water { font: italic 11px var(--font-sans); fill: #5b8ea6; }
.m-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-motorway { stroke: #c9c1b1; stroke-width: 5; }
.m-federal { stroke: #e2c46e; stroke-width: 3.5; }
.m-shield rect { fill: #3b6fb6; }
.m-shield-b rect { fill: #e2c46e; }
.m-shield text { font: 700 10px var(--font-sans); fill: #fff; text-anchor: middle; }
.m-shield-b text { fill: #3a3a2a; }
.m-dir { font: 600 12px var(--font-sans); fill: var(--ink-soft); }
.m-city circle { fill: #fff; stroke: var(--ink-soft); stroke-width: 2; }
.m-city text { font: 12px var(--font-sans); fill: var(--ink-soft); }
.m-big circle { fill: var(--ink-soft); stroke: #fff; stroke-width: 2.5; }
.m-big text { font: 700 15px var(--font-sans); fill: var(--ink); }
.m-home path { fill: var(--green-600); stroke: #fff; stroke-width: 2; }
.m-home-dot { fill: #fff; }
.m-pulse { fill: var(--green-500); opacity: .35; transform-origin: 240px 296px; animation: mapPulse 2.4s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
.m-label-bg { fill: var(--green-800); }
.m-label { font: 700 14px var(--font-sans); fill: #fff; }
.m-label-sub { font: 11px var(--font-sans); fill: #cfe6c6; }
@media (prefers-reduced-motion: reduce) { .m-pulse { animation: none; } }

.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); }
.contact-card h3 { color: var(--green-900); }
.contact-card address { font-style: normal; font-size: 1.08rem; margin-bottom: 1em; }
.contact-card .small { color: var(--ink-soft); font-size: .95rem; }
.download {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sand-100);
}
.download strong { display: block; color: var(--green-900); }
.download span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 26px 0; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Anruf-Button (nur Handy) ---------- */
.call-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-600); color: #fff; box-shadow: var(--shadow);
  place-items: center;
}
.call-fab svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 6px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1020px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .brand img { width: 180px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-200);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    padding: 12px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: .8em 1em; font-size: 1.05rem; }
  .site-nav .btn { display: flex; margin: 10px 0 0; justify-content: center; padding: .8em 1em; font-size: 1.05rem; }

  .cards-3, .info-grid { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .contact-intro { display: block; margin-bottom: 0; }
  .contact-intro .contact-actions { margin-top: 24px; }
  .contact-card { order: 2; }
  .region-map { order: 3; }
  .about-photo { max-width: 460px; }
  .call-fab { display: grid; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .topics, .steps { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 64px 0 56px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .card { padding: 26px 22px; }
  .method { padding-top: 0; }
  .method-img { margin: 0 -22px 20px; }
  .contact-card { padding: 24px 20px; }
  .download { flex-direction: column; align-items: flex-start; }
  .about-photo::before { inset: 14px -10px -14px 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   Unterseiten (Über mich)
   ========================================================= */
.page-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
.page-hero .eyebrow { color: #cfe6c6; }
.page-hero-lead { font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 38em; color: rgba(255,255,255,.9); margin: 0; }

.prose { max-width: 780px; }
.page-hero-slim { padding: clamp(40px, 6vw, 64px) 0; }
.page-hero-slim h1 { margin: 0; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.lead-note { background: var(--green-100); border-radius: var(--radius-sm); padding: 16px 20px; }
.prose p { font-size: 1.08rem; }
.hl { color: var(--green-700); font-weight: 600; }

.milestones { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.milestones::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--green-100); }
.milestones li { position: relative; display: grid; grid-template-columns: 100px 1fr; column-gap: 44px; padding: 0 0 28px; }
.milestones li::before { content: ""; position: absolute; left: 111px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--green-500); }
.ms-year { grid-row: 1 / span 2; text-align: right; font-weight: 700; color: var(--green-700); font-size: .98rem; padding-top: 1px; }
.milestones h3 { font-size: 1.15rem; margin: 0 0 .2em; }
.milestones p { margin: 0; color: var(--ink-soft); }
.ms-new::before { background: var(--green-600) !important; box-shadow: 0 0 0 6px rgba(106,163,95,.2); }
.ms-new h3::after { content: "neu"; margin-left: .6em; font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--green-600); padding: .2em .6em; border-radius: 99px; vertical-align: middle; }

.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; background: var(--green-100); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); }
.cta-box h2 { margin-bottom: .3em; }
.cta-box p { margin: 0; color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 560px) {
  .milestones::before { left: 7px; }
  .milestones li { grid-template-columns: 1fr; padding-left: 34px; }
  .milestones li::before { left: 0; }
  .ms-year { grid-row: auto; text-align: left; }
}

/* =========================================================
   Anamnesebogen (anamnese.html)
   ========================================================= */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); text-decoration: underline; cursor: pointer; }
.center { text-align: center; }
.tiny { font-size: .85rem; color: var(--ink-soft); margin: .8em 0 0; }

.form-hero { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.form-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.form-hero .eyebrow { color: #cfe6c6; }
.form-hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40em; color: rgba(255,255,255,.92); }
.form-hero-lead strong { color: #fff; background: rgba(255,255,255,.14); padding: 0 .3em; border-radius: 4px; }

.howto { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.howto li { display: flex; align-items: center; gap: .6em; font-weight: 600; }
.howto span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--green-800); font-family: var(--font-serif); }

.privacy-note { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: 16px 18px; max-width: 760px; }
.privacy-note svg { width: 28px; height: 28px; flex: none; fill: #cfe6c6; margin-top: 2px; }
.privacy-note p { margin: 0; font-size: .97rem; color: rgba(255,255,255,.9); }
.alt-download { margin: 20px 0 0; font-size: .95rem; color: rgba(255,255,255,.85); }
.alt-download a, .alt-download .linklike { color: #fff; }

.form-wrap { padding: 40px 0 80px; }
.form-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }

.form-progress { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.form-progress-title { font-weight: 700; margin-bottom: .6em; color: var(--green-900); }
.progress-bar { height: 8px; border-radius: 99px; background: var(--sand-100); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--green-500); transition: width .3s ease; }
.progress-text { font-size: .85rem; color: var(--ink-soft); margin: .5em 0 1em; }
.progress-steps { list-style: none; margin: 0; padding: 0; }
.progress-steps a { display: flex; align-items: center; gap: .55em; padding: .35em 0; color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.progress-steps a::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--sand-200); flex: none; transition: all .2s ease; }
.progress-steps a.complete { color: var(--green-800); }
.progress-steps a.complete::before { background: var(--green-500); border-color: var(--green-500); }
.progress-steps a:hover { color: var(--green-700); }

.form-card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-sm); margin-bottom: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .6em; margin-bottom: 1em; }
.sec-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: 1rem; flex: none; }

.fields { display: grid; gap: 20px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: .45em; color: var(--ink); padding: 0; }
.req { color: #b4532a; }
.field-hint { font-size: .87rem; color: var(--ink-soft); margin: .4em 0 0; }

.field input[type=text], .field input[type=date], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .7em .9em; border: 1.5px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--sand-50);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input[type=date] { max-width: 240px; }
.field textarea { resize: vertical; min-height: 3.2em; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(106,163,95,.18); }

.field-yn { padding: 12px 0; border-bottom: 1px solid var(--sand-100); display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.fields .field-yn + .field-yn { margin-top: -20px; }
.field-yn legend { float: left; width: 100%; margin: 0; font-weight: 500; }
.field-yn .yn { grid-column: 2; grid-row: 1; }
.field-detail { grid-column: 1 / -1; display: grid; gap: 16px; padding: 14px 16px; margin-top: 4px; background: var(--sand-50); border-left: 3px solid var(--green-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.field-detail[hidden] { display: none; }
.sub.invalid textarea { border-color: #c0603a; }
.sub.invalid::after { content: "Bitte angeben, welche Medikamente Sie einnehmen"; display: block; color: #b4532a; font-size: .85rem; font-weight: 600; margin-top: .35em; }
.field-detail label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .35em; color: var(--green-800); }
.field-detail input[type=text], .field-detail textarea { width: 100%; font: inherit; color: var(--ink); padding: .6em .8em; border: 1.5px solid var(--sand-200); border-radius: var(--radius-sm); background: #fff; resize: vertical; }
.field-detail input[type=text]:focus, .field-detail textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(106,163,95,.18); }
.sub .field-hint { margin: -.2em 0 .5em; }
.scale-row { display: flex; align-items: center; gap: 14px; }
.scale-row input { flex: 1; min-width: 0; accent-color: var(--green-600); }
.scale-out { min-width: 9.5em; text-align: center; font-weight: 700; color: var(--green-800); background: var(--green-100); border-radius: 8px; padding: .3em .6em; font-size: .95rem; }
.scale-out.is-empty { font-weight: 500; color: var(--ink-soft); background: var(--sand-100); font-style: italic; }
.scale-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; padding-right: calc(9.5em + 14px); }
@media (max-width: 560px) {
  .scale-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .scale-row input { order: 2; }
  .scale-out { min-width: 0; }
  .scale-ends { padding-right: 0; }
}

.yn { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.yn label { position: relative; cursor: pointer; }
.yn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.yn span { display: inline-block; min-width: 68px; text-align: center; padding: .45em 1em; border: 1.5px solid var(--sand-200); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); background: var(--sand-50); transition: all .15s ease; }
.yn label:hover span { border-color: var(--green-500); }
.yn input:checked + span { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.yn input:focus-visible + span { box-shadow: 0 0 0 4px rgba(106,163,95,.3); }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input { flex: 1; accent-color: var(--green-600); min-width: 0; }
.range-row span { color: var(--ink-soft); font-size: .9rem; }
.range-row output { min-width: 2.4em; text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--green-800); background: var(--green-100); border-radius: 8px; padding: .15em .4em; }

.field-check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; background: var(--sand-100); padding: 16px; border-radius: var(--radius-sm); }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green-600); flex: none; }

.field.invalid input, .field.invalid textarea { border-color: #c0603a; }
.field.invalid .yn span { border-color: #c0603a; }
.field.invalid.field-check label { outline: 2px solid #c0603a; }
.field.invalid::after { content: "Bitte ausfüllen"; display: block; color: #b4532a; font-size: .85rem; font-weight: 600; margin-top: .35em; grid-column: 1 / -1; }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; }
.form-actions .small { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Abschluss */
.done-inner { max-width: 1000px; }
.done-inner > h2, .done-inner > .eyebrow, .deadline { text-align: center; }
.deadline { font-size: 1.1rem; background: var(--green-100); color: var(--green-900); padding: 14px 18px; border-radius: var(--radius-sm); max-width: 720px; margin: 0 auto 40px; }
.done-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.done-step { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.done-step .step-num { display: inline-grid; margin: 0 0 14px; width: auto; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 99px; font-size: 1.05rem; box-shadow: none; }
.done-step h3 { font-size: 1.2rem; }
.done-step p { color: var(--ink-soft); font-size: .96rem; }
.done-step address { font-style: normal; font-weight: 600; color: var(--green-900); }

/* Startseite: Anamnese-Box mit zwei Buttons */
.download:has(.download-actions) { flex-direction: column; align-items: flex-start; }
.download-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-500); }
.btn-outline:hover { background: var(--green-100); }

#print-view { display: none; }

@media (max-width: 980px) {
  .form-layout { grid-template-columns: 1fr; gap: 20px; }
  .form-progress { top: var(--header-h); z-index: 20; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 10px 16px; margin: -40px -16px 0; border-width: 0 0 1px; }
  .form-progress-title, .progress-steps { display: none; }
  .progress-text { margin: .4em 0 0; }
  .done-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-yn { grid-template-columns: 1fr; }
  .field-yn .yn { grid-column: 1; grid-row: auto; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Druck / PDF des Anamnesebogens
   ========================================================= */
@media print {
  @page { size: A4; margin: 16mm 16mm 14mm; }
  body.page-form > *:not(#print-view) { display: none !important; }
  body.page-form { background: #fff; font-size: 10.5pt; color: #000; }
  #print-view { display: block !important; font-family: Arial, Helvetica, sans-serif; line-height: 1.4; }
  .pv-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #4c8a4f; padding-bottom: 8px; }
  .pv-head img { width: 200px; }
  .pv-meta { font-size: 9pt; text-align: right; color: #333; }
  .pv-title { font-family: Arial, Helvetica, sans-serif; font-size: 17pt; color: #1f3a24; margin: 12px 0 6px; text-align: center; }
  .pv-sec { margin-top: 12px; }
  .pv-sec h2 { font-family: Arial, Helvetica, sans-serif; font-size: 12pt; color: #fff; background: #3a6a3f; padding: 3px 8px; margin: 0 0 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-after: avoid; }
  .pv-sec table { width: 100%; border-collapse: collapse; }
  .pv-sec tr { break-inside: avoid; }
  .pv-sec th, .pv-sec td { text-align: left; vertical-align: top; padding: 5px 6px; border-bottom: 0.5pt solid #bbb; }
  .pv-sec th { width: 46%; font-weight: normal; color: #222; }
  .pv-sec td { font-weight: 600; }
  .pv-yn { white-space: nowrap; font-weight: normal; }
  .pv-box { display: inline-block; width: 11pt; height: 11pt; border: 1pt solid #000; text-align: center; line-height: 10pt; font-size: 9pt; font-weight: 700; vertical-align: -2pt; margin: 0 2pt 0 6pt; }
  .pv-yn .pv-box:first-child { margin-left: 0; }
  .pv-detail { margin-top: 3px; font-weight: 600; }
  .pv-detail em { font-weight: normal; font-style: normal; color: #444; }
  .pv-opts { font-weight: normal; display: block; line-height: 1.9; margin-top: 2px; }
  .pv-opt { display: inline-block; white-space: nowrap; margin-right: 10pt; }
  .pv-opts .pv-box { margin: 0 3pt 0 0; }
  .pv-line { display: inline-block; width: 100%; height: 1.3em; border-bottom: 0.5pt dotted #777; vertical-align: bottom; }
  .pv-detail .pv-line { width: 60%; }
  .pv-line.tall { height: 3.4em; }
  .pv-line.short { width: 3em; }
  .pv-confirm { break-inside: avoid; margin-top: 18px; }
  .pv-confirm p { margin: 0 0 30px; }
  .pv-confirm .pv-box { margin-left: 0; margin-right: 6pt; }
  .pv-sign { display: flex; gap: 40px; font-size: 9pt; color: #333; }
  .pv-sign > div { flex: 1; }
  .pv-sign .pv-line { display: block; margin-bottom: 4px; border-bottom: 0.75pt solid #000; height: 2em; }
  .pv-foot { margin-top: 18px; font-size: 8pt; color: #555; text-align: center; border-top: 0.5pt solid #bbb; padding-top: 6px; }
}
