/* ==========================================================
   Lindach-Apotheke e.K. – Editorial pharmacy design
   Palette: paper #f4f0e8 · pine #16372f · sage #2f6b58 · terracotta #c8642f
   ========================================================== */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d8;
  --card: #fbf9f4;
  --pine: #16372f;
  --pine-2: #1f4a3f;
  --sage: #2f6b58;
  --mist: #dfe8df;
  --terra: #c8642f;
  --terra-dark: #a8501f;
  --ink: #1b2622;
  --muted: #59655f;
  --line: rgba(22, 55, 47, 0.16);

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

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 10vw, 144px);
  --radius: 6px;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, address { margin: 0; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--pine); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); z-index: 200;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--pine); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -0.025em; }
h1 em { font-style: italic; color: var(--terra); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.25; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 56ch; }

.eyebrow, .section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage);
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }
.section-label { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--terra); }
.btn-accent { background: var(--terra); color: #fff; }
.btn-accent:hover { background: var(--terra-dark); }
.btn-ghost { border-color: var(--pine); color: var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--paper); }
.btn-small { padding: 12px 22px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 240, 232, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(22, 55, 47, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--pine); color: var(--paper);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; }
.brand-text small { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav ul a {
  text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink);
  padding: 6px 0; background: linear-gradient(var(--terra), var(--terra)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s;
}
.main-nav ul a:hover { background-size: 100% 2px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--pine); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-bottom: clamp(56px, 7vw, 100px);
}
.hero-copy h1 { margin: 22px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 52px;
  border-top: 1px solid var(--line);
}
.hero-facts li { padding: 20px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.hero-facts li:last-child { border-right: 0; margin-right: 0; }
.hero-facts span { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-facts strong { font-size: 0.95rem; color: var(--pine); font-weight: 600; }

.hero-visual { position: relative; }
.arch { border-radius: 260px 260px 12px 12px; overflow: hidden; background: var(--mist); box-shadow: 0 30px 60px -30px rgba(22, 55, 47, 0.45); }
.arch svg { width: 100%; height: auto; }
.hero-note {
  position: absolute; left: -28px; bottom: 36px; max-width: 270px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--terra);
  padding: 16px 18px; border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(22, 55, 47, 0.4);
  font-size: 0.9rem; line-height: 1.5;
}
.note-label { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--terra); margin-bottom: 4px; }

.marquee { background: var(--pine); color: var(--paper); overflow: hidden; padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; padding: 0 28px; white-space: nowrap; position: relative;
}
.marquee-track span::after { content: "✦"; position: absolute; right: -6px; color: var(--terra); font-style: normal; font-size: 0.8rem; top: 50%; transform: translateY(-50%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.about-head h2 { max-width: 14ch; }
.about-image { margin-top: 44px; position: relative; border-radius: var(--radius); overflow: hidden; }
.about-image svg { width: 100%; height: auto; }
.image-tag {
  position: absolute; left: 0; bottom: 0; background: var(--pine); color: var(--paper);
  padding: 10px 18px; font-size: 0.82rem; letter-spacing: 0.04em;
}
.about-body p { color: var(--muted); margin-bottom: 20px; max-width: 64ch; }
.about-body .big-text {
  font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.45; color: var(--pine); margin-bottom: 28px;
}
.mini-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.mini { padding: 26px 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line); }
.mini:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.mini-num { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 1.1rem; }
.mini h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.mini p { font-size: 0.93rem; margin-bottom: 0; }

/* Services – editorial list */
.services { background: var(--paper-2); }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; align-items: end; margin-bottom: 56px; }
.services-head .section-label { grid-column: 1 / -1; margin-bottom: 0; }
.services-head p:last-child { color: var(--muted); max-width: 50ch; }

.service-list { border-top: 2px solid var(--pine); }
.service {
  display: grid; grid-template-columns: 90px 1.4fr 0.6fr; gap: 24px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .3s;
}
.service:hover { background: var(--card); padding-inline: 20px; }
.service-no { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); font-style: italic; }
.service-main h3 { font-size: 1.55rem; margin-bottom: 10px; }
.service-main p { color: var(--muted); max-width: 62ch; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.service-tags li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--pine); color: var(--pine); border-radius: 999px; padding: 6px 14px;
}
.services-note { margin-top: 28px; font-size: 0.9rem; color: var(--muted); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 7vw, 110px); }
.visit-copy h2 { margin-bottom: 20px; }
.visit-copy > p:not(.section-label) { color: var(--muted); max-width: 46ch; }
.visit-quote {
  margin-top: 40px; padding: 32px; background: var(--pine); color: var(--paper);
  border-radius: var(--radius) var(--radius) var(--radius) 48px;
}
.visit-quote p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; font-style: italic; }

.steps { position: relative; display: grid; gap: 8px; }
.steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.step { position: relative; display: flex; gap: 24px; padding: 18px 0; }
.step-dot {
  flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--pine); color: var(--pine);
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; z-index: 1;
  transition: background .3s, color .3s;
}
.step:hover .step-dot { background: var(--terra); border-color: var(--terra); color: #fff; }
.step h3 { margin: 8px 0 6px; font-size: 1.25rem; }
.step p { color: var(--muted); max-width: 52ch; }

/* Benefits */
.benefits { background: var(--pine); color: var(--paper); }
.benefits h2, .benefits h3 { color: var(--paper); }
.benefits .section-label { color: #e9a77f; }
.benefits-head { max-width: 760px; margin-bottom: 56px; }
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.benefit {
  grid-column: span 2; padding: 34px 30px; border: 1px solid rgba(244, 240, 232, 0.22); border-radius: var(--radius);
  transition: background .3s, transform .3s, border-color .3s;
}
.benefit-wide { grid-column: span 3; }
.benefit:hover { background: var(--pine-2); transform: translateY(-4px); border-color: #e9a77f; }
.benefit-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--terra); display: grid; place-items: center; margin-bottom: 22px; }
.benefit-icon svg { width: 26px; height: 26px; color: #fff; }
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: rgba(244, 240, 232, 0.8); font-size: 0.97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p:not(.section-label) { color: var(--muted); max-width: 46ch; }
.details { margin-top: 36px; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 130px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.details dd { font-family: var(--serif); font-size: 1.2rem; color: var(--pine); }
.details a { text-decoration-color: var(--terra); text-underline-offset: 4px; }
.details a:hover { color: var(--terra); }
.safety-box { margin-top: 32px; padding: 20px 22px; background: var(--mist); border-left: 4px solid var(--sage); border-radius: var(--radius); font-size: 0.93rem; }
.safety-box strong { color: var(--pine); display: block; margin-bottom: 4px; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(22, 55, 47, 0.4); }
.form h3 { font-size: 1.7rem; margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--pine); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(22, 55, 47, 0.3); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(47, 107, 88, 0.2); }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.error { color: #b3261e; font-size: 0.85rem; margin-top: 6px; min-height: 0; }
.field.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pine); }
.field.check label { margin: 0; font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.field.check .error { grid-column: 2; }
.form .btn { margin-top: 8px; width: 100%; }
.form-status { margin-top: 16px; font-size: 0.93rem; color: var(--sage); font-weight: 600; }

/* Footer */
.site-footer { background: #0f2923; color: rgba(244, 240, 232, 0.8); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.brand-light { color: var(--paper); }
.brand-light .brand-mark { background: var(--terra); }
.brand-light small { color: rgba(244, 240, 232, 0.6); }
.footer-text { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.site-footer h4 { font-family: var(--serif); color: var(--paper); font-size: 1.1rem; margin-bottom: 16px; font-weight: 600; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #e9a77f; }
.site-footer address { line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(244, 240, 232, 0.16); padding-block: 24px 32px;
  display: flex; justify-content: space-between; gap: 24px; font-size: 0.85rem;
}
.footer-disclaimer { max-width: 64ch; text-align: right; color: rgba(244, 240, 232, 0.6); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .visit-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .hero-note { left: 12px; }
  .about-head h2 { max-width: none; }
  .services-head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 64px 1fr; }
  .service-tags { grid-column: 2; justify-content: flex-start; }
  .benefit, .benefit-wide { grid-column: span 3; }
  .benefit-wide { grid-column: span 6; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); background: none; }
  .nav-cta { margin-top: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; margin-right: 0; }
  .mini-panels { grid-template-columns: 1fr; }
  .mini { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding: 22px 0; }
  .mini:last-child { border-bottom: 0; }
  .benefit, .benefit-wide { grid-column: span 6; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .service:hover { padding-inline: 0; background: transparent; }
  .service-tags { grid-column: 1; }
  .details > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
  .hero-note { position: static; margin-top: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .btn, .benefit, .service { transition: none; }
}
