/* ==========================================================
   Flora Apotheke am EvK Eickel e.K.
   Design direction: botanical, lavender and leaf green,
   clean sans-serif typography, soft varied shapes.
   ========================================================== */

:root {
  --bg: #F6F5FA;
  --surface: #FFFFFF;
  --ink: #1F1A38;
  --plum: #2B2350;
  --plum-2: #3B3166;
  --leaf: #2D7A58;
  --leaf-d: #226347;
  --leaf-l: #5DB38C;
  --mint: #DDEFE6;
  --lilac: #D9D3F0;
  --lilac-d: #B9AEEA;
  --violet: #7B6BC4;
  --muted: #5C5878;
  --line: #DAD6EA;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --container: 1320px;
  --header-h: 76px;
}

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
h3 { font-size: 1.28rem; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--plum); color: #fff; padding: .75rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem;
  background: var(--leaf); color: #fff;
  font: 600 1rem/1 var(--font-body);
  border: 2px solid var(--leaf);
  border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--leaf-d); border-color: var(--leaf-d); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum); }
.btn-outline:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn-light { background: #fff; color: var(--plum); border-color: #fff; }
.btn-light:hover { background: var(--lilac); border-color: var(--lilac); color: var(--plum); }
.btn-small { padding: .7rem 1.2rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(246, 245, 250, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(43, 35, 80, .06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum); }
.brand-text small { font-size: .82rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink);
  padding: .3rem 0; background: linear-gradient(var(--leaf), var(--leaf)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s, color .2s;
}
.nav a:not(.btn):hover, .nav a.active { background-size: 100% 2px; color: var(--leaf-d); }

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

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.hero-tag {
  display: inline-block; padding: .4rem 1rem; margin-bottom: 1.5rem;
  background: var(--mint); color: var(--leaf-d); border-radius: 999px;
  font-weight: 600; font-size: .95rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.03em; color: var(--plum);
  font-weight: 700; max-width: 14ch;
}
.hero-lead { margin-top: 1.6rem; max-width: 58ch; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.hero-points { margin-top: 2.8rem; display: grid; gap: 1rem; max-width: 520px; }
.hero-points li { display: flex; align-items: center; gap: .9rem; font-weight: 500; }
.hero-points .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--lilac); color: var(--plum); flex: none; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; }
.sprig { width: 100%; height: auto; }
.buds use { fill: var(--lilac-d); transform-box: fill-box; }
.buds .b2 { fill: var(--violet); }
.sprig { overflow: visible; }

.float-panel {
  position: absolute; background: var(--surface);
  padding: 1rem 1.25rem; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(43, 35, 80, .12);
  display: flex; flex-direction: column; line-height: 1.3;
}
.panel-label { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.float-panel strong { font-family: var(--font-head); color: var(--plum); font-size: 1.08rem; }
.panel-address { left: -2%; bottom: 10%; border-radius: 18px 18px 18px 4px; }
.panel-owner { right: 0; top: 8%; border-radius: 18px 4px 18px 18px; }

/* single orchestrated entrance */
.js .hero-copy > *, .js .hero-visual { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: .08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.js .hero-visual { animation-delay: .2s; }
.js .float-panel { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: .7s; }
.js .panel-owner { animation-delay: .85s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Info bar ---------- */
.info-bar { background: var(--plum); color: #fff; }
.info-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.9rem 0; }
.info-bar-grid > div { padding-left: 1.2rem; border-left: 2px solid var(--leaf-l); display: flex; flex-direction: column; gap: .15rem; }
.info-key { font-size: .85rem; color: var(--lilac-d); }
.info-val { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.info-val:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-visual { position: relative; max-width: 520px; }
.about-art { width: 100%; height: auto; }
.about-note {
  position: absolute; right: -12%; bottom: 8%; width: min(280px, 70%);
  background: var(--leaf); color: #fff; padding: 1.3rem 1.4rem; border-radius: 22px 22px 4px 22px;
  display: flex; flex-direction: column; gap: .4rem; box-shadow: 0 16px 36px rgba(45, 122, 88, .28);
}
.about-note strong { font-family: var(--font-head); font-size: 1.2rem; }
.about-note span { font-size: .95rem; opacity: .95; line-height: 1.45; }

.about-copy h2 { color: var(--plum); max-width: 18ch; margin-bottom: 1.5rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p:not(.lead) { color: var(--muted); max-width: 66ch; }
.about-copy .lead { max-width: 62ch; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.value { padding-top: 1rem; border-top: 3px solid var(--violet); }
.value:nth-child(2) { border-color: var(--leaf); }
.value:nth-child(3) { border-color: var(--plum); }
.value h3 { margin-bottom: .4rem; color: var(--plum); }
.value p { font-size: .98rem; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--surface); border-radius: 56px 56px 0 0; }
.services-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.services-intro h2 { color: var(--plum); margin-bottom: 1.4rem; }
.services-intro p { margin-bottom: 1.1rem; color: var(--muted); }
.services-intro .lead { color: var(--ink); }
.services-intro .btn { margin-top: .6rem; }
.small-note { margin-top: 1.6rem !important; font-size: .9rem; padding: 1rem 1.1rem; background: var(--bg); border-radius: 12px; border-left: 4px solid var(--lilac-d); }

.service { display: grid; grid-template-columns: 76px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding-left .25s; }
.service:first-child { padding-top: 0; }
.service:hover { padding-left: .6rem; }
.service-icon { width: 76px; height: 76px; border-radius: 24px 24px 24px 6px; background: var(--mint); color: var(--leaf-d); display: grid; place-items: center; transition: background .25s, color .25s; }
.service:nth-child(even) .service-icon { background: var(--lilac); color: var(--plum); border-radius: 24px 24px 6px 24px; }
.service:hover .service-icon { background: var(--plum); color: #fff; }
.service-icon .icon { width: 34px; height: 34px; }
.service h3 { color: var(--plum); font-size: 1.45rem; margin-bottom: .5rem; }
.service p { color: var(--muted); max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags li { font-size: .85rem; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); }

/* ---------- Benefits ---------- */
.benefits { background: var(--plum); color: #fff; margin-top: -1px; }
.benefits-head { max-width: 760px; margin-bottom: 3rem; }
.benefits-head h2 { margin-bottom: 1rem; }
.benefits-head .lead { color: var(--lilac); }

.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.25rem; }
.bento-item { background: var(--plum-2); padding: 2rem; border-radius: 12px; transition: transform .25s, background .25s; }
.bento-item:hover { transform: translateY(-4px); background: #43387A; }
.bento-item h3 { margin-bottom: .7rem; }
.bento-item p { color: var(--lilac); font-size: 1rem; }
.bento-item p + p { margin-top: .9rem; }
.b-large { grid-row: span 2; position: relative; overflow: hidden; border-radius: 36px 12px 12px 12px; padding-bottom: 12rem; background: var(--leaf-d); }
.b-large:hover { background: var(--leaf-d); }
.b-large p { color: #E6F5EC; }
.b-large h3 { font-size: 1.7rem; }
.bento-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.b-light { background: var(--lilac); color: var(--plum); }
.b-light p { color: #4A4468; }
.b-light:hover { background: #E4DFF6; }
.bento-item:nth-child(2) { border-radius: 12px 36px 12px 12px; }
.bento-item:nth-child(5) { border-radius: 12px 12px 36px 12px; }

/* ---------- Visit ---------- */
.visit { background: var(--mint); }
.visit-head { max-width: 700px; margin-bottom: 3rem; }
.visit-head h2 { color: var(--plum); margin-bottom: 1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; position: relative; }
.steps li { position: relative; padding-top: 4.2rem; }
.steps li::before { content: ""; position: absolute; top: 25px; left: 56px; right: -2rem; height: 2px; background: repeating-linear-gradient(90deg, var(--leaf-l) 0 8px, transparent 8px 16px); }
.steps li:last-child::before { display: none; }
.step-no { position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font: 700 1.3rem var(--font-head); }
.steps h3 { color: var(--plum); margin-bottom: .6rem; }
.steps p { color: #3E4A48; max-width: 40ch; }
.visit-note { margin-top: 3rem; font-size: .95rem; padding-top: 1.4rem; border-top: 1px solid rgba(43, 35, 80, .18); color: #3E4A48; max-width: 80ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-intro h2 { color: var(--plum); margin-bottom: 1.2rem; }
.faq-intro .lead { color: var(--muted); }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: .9rem; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: var(--violet); box-shadow: 0 10px 28px rgba(43, 35, 80, .08); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.3rem 4rem 1.3rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--plum); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .25s, background .25s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--leaf); color: #fff; }
.faq-list details p { padding: 0 1.5rem 1.4rem; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.5rem; }
.contact-card { background: var(--plum); color: #fff; padding: clamp(2rem, 4vw, 3.5rem); border-radius: 40px 12px 12px 12px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card h2 { margin-bottom: 1rem; }
.contact-card .lead { color: var(--lilac); }
.contact-details { margin: 2.2rem 0; width: 100%; display: grid; gap: 1.4rem; }
.contact-details > div { padding-left: 1.1rem; border-left: 3px solid var(--leaf-l); }
.contact-details dt { font-size: .88rem; color: var(--lilac-d); margin-bottom: .15rem; }
.contact-details dd { margin: 0; font-size: 1.1rem; font-weight: 500; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--lilac-d); }
.contact-details a:hover { border-color: #fff; }

.contact-form { background: var(--surface); border: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.2rem); border-radius: 12px 12px 40px 12px; }
.contact-form h3 { font-size: 1.7rem; color: var(--plum); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--plum); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 3px rgba(123, 107, 196, .2); }
.field.invalid input, .field.invalid textarea { border-color: #B3261E; }
.error { color: #B3261E; font-size: .88rem; margin-top: .35rem; min-height: 0; }
.field.check { display: grid; grid-template-columns: auto 1fr; gap: 0 .7rem; align-items: start; }
.field.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--leaf); }
.field.check label { font-weight: 400; margin: 0; color: var(--muted); }
.field.check .error { grid-column: 1 / -1; }
.form-hint { font-size: .9rem; color: var(--muted); margin-bottom: 1.3rem; }
.form-status { margin-top: 1rem; font-weight: 500; color: var(--leaf-d); }

/* ---------- Footer ---------- */
.site-footer { background: #1A1535; color: var(--lilac); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.footer-brand > span { color: var(--lilac-d); }
.footer-brand p { margin-top: 1rem; max-width: 36ch; font-size: .98rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li + li { margin-top: .45rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(217, 211, 240, .18); font-size: .9rem; }

/* ---------- Reveal (subtle) ---------- */
.js .reveal { opacity: 0; transition: opacity .8s ease; }
.js .reveal.in { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .about-grid, .services-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .about-visual { margin: 0 auto 2.5rem; }
  .about-note { right: 0; }
  .services-intro { position: static; }
  .info-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-large { grid-row: auto; grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: .5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(43, 35, 80, .1);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.05rem; }
  .nav-cta { margin-top: 1.1rem; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps li::before { display: none; }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(var(--container), 100% - 2rem); }
  .info-bar-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .bento { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service-icon { width: 64px; height: 64px; }
  .services { border-radius: 32px 32px 0 0; }
  .float-panel { padding: .75rem .9rem; }
  .panel-address { left: 0; bottom: 4%; }
  .panel-owner { top: 2%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .about-note { position: static; width: 100%; margin-top: 1rem; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; }
}
