/* Shinri website — component styles.
   Static-HTML translation of the React components in ds/components and
   ds/ui_kits/website. Values mirror the component source; tokens live in tokens.css. */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Icon (Lucide sprite) ---- */
.icon { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: middle; }
.icon--14 { width: 14px; height: 14px; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--22 { width: 22px; height: 22px; }
.icon--26 { width: 26px; height: 26px; }
.icon--34 { width: 34px; height: 34px; }
.icon--orange { color: var(--orange-500); }
.icon--yellow { color: var(--yellow-500); }
.icon--violet { color: var(--violet-700); }

/* ---- Eyebrow (the only uppercase in the system) ---- */
.eyebrow {
  font-family: var(--font-sans); font-size: var(--text-caption); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--orange-500);
}
.eyebrow--yellow { color: var(--yellow-500); }

/* ---- Button ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px;
  font-family: var(--font-sans); font-size: var(--text-body); font-weight: var(--weight-medium);
  line-height: 1; letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; cursor: pointer;
  border-radius: var(--radius-pill); border: 2px solid var(--violet-700);
  background: var(--violet-700); color: #fff;
  transition: var(--transition-color), transform var(--duration-fast) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { background: var(--violet-800); border-color: var(--violet-800); color: #fff; transform: translateY(-1px); }
.btn:active { background: var(--violet-900); border-color: var(--violet-900); }
.btn--sm { height: 38px; padding: 0 20px; font-size: var(--text-body-sm); gap: 8px; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--lg { height: 58px; padding: 0 36px; font-size: var(--text-lead); gap: 12px; }
.btn--lg .icon { width: 20px; height: 20px; }
.btn--secondary { background: transparent; color: var(--violet-700); }
.btn--secondary:hover { background: var(--violet-700); color: #fff; }
.btn--on-dark { background: #fff; color: var(--violet-700); border-color: #fff; }
.btn--on-dark:hover { background: var(--yellow-500); border-color: var(--yellow-500); color: var(--violet-700); }

/* ---- Header / NavBar ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.site-header__logo { display: flex; flex: none; }
.site-header__logo img { height: 56px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav__link {
  font-family: var(--font-sans); font-size: var(--text-body); color: var(--text-muted);
  text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--violet-700); }
.site-nav__link.is-active { color: var(--violet-700); font-weight: var(--weight-semibold); border-bottom-color: var(--orange-500); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: var(--radius-circle); border: 2px solid transparent; background: transparent;
  color: var(--violet-700); cursor: pointer; transition: var(--transition-color);
}
.nav-toggle:hover { background: var(--violet-050); }
.nav-toggle .icon { width: 18px; height: 18px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

/* ---- Sections ---- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); background: var(--paper); }
.section--warm { background: var(--paper-warm); }
.section--soft { background: var(--violet-050); }
.section--violet { background: var(--violet-700); color: #fff; }

.section-heading { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.section-heading h1, .section-heading h2 {
  margin: 0; font-family: var(--font-display); font-weight: var(--weight-regular);
  font-size: var(--text-display-2); line-height: var(--leading-display);
  letter-spacing: var(--tracking-display); color: var(--violet-700);
}
.section-heading__lead { margin: 0; max-width: 58ch; font-size: var(--text-lead); line-height: var(--leading-loose); color: var(--text-muted); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-top: 88px; min-height: 640px; }
.hero__image { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: 100%; overflow: hidden; border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block; }
.hero__inner { position: relative; padding-bottom: 120px; }
.hero__text { max-width: 50%; }
.hero h1 {
  margin: var(--space-5) 0 0; max-width: 13ch; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero); color: var(--violet-700);
}
.hero__lead { margin: var(--space-8) 0 0; max-width: 46ch; font-size: var(--text-lead); line-height: var(--leading-loose); color: var(--text-body); }
.hero__actions { display: flex; gap: var(--space-4); margin-top: var(--space-10); flex-wrap: wrap; }

/* ---- Card ---- */
.card { border-radius: var(--radius-lg); padding: var(--space-8); background: var(--surface-card); color: var(--text-body); border: 1px solid var(--border-default); }
.card--lg { padding: var(--space-10); }
.card--violet { background: var(--violet-700); color: #fff; border-color: var(--violet-700); }
.card--yellow-soft { background: var(--yellow-100); border-color: var(--yellow-200); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); color: var(--violet-700); }

/* ---- Pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.pillar { display: flex; flex-direction: column; gap: var(--space-4); }
.pillar p { margin: 0; font-size: var(--text-body-sm); line-height: 1.7; color: var(--text-muted); }

/* ---- Violet quote band ---- */
.quote-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-16); align-items: center; }
.quote { margin: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-size: var(--text-display-3);
  font-weight: 400; line-height: 1.22; letter-spacing: var(--tracking-display); color: var(--yellow-500);
}
.quote figcaption { font-size: var(--text-body-sm); letter-spacing: 0.02em; color: var(--yellow-500); }
.quote-band__aside { display: flex; flex-direction: column; gap: var(--space-5); }
.prose-on-dark { margin: 0; font-size: var(--text-body); line-height: var(--leading-loose); color: rgba(255, 255, 255, 0.86); max-width: var(--measure); }

/* ---- Tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--border-default); margin-top: var(--space-10); }
.tabs__tab {
  appearance: none; background: transparent; border: none; border-bottom: 3px solid transparent;
  margin-bottom: -1px; padding: 12px 18px; cursor: pointer;
  font-family: var(--font-sans); font-size: var(--text-body); color: var(--text-muted); transition: var(--transition-color);
}
.tabs__tab[aria-selected="true"] { color: var(--violet-700); font-weight: var(--weight-semibold); border-bottom-color: var(--orange-500); }
.tabs__tab:hover { color: var(--violet-700); }
.tab-panels { margin-top: var(--space-8); max-width: 860px; }
.tab-panel + .tab-panel { margin-top: var(--space-10); }
.tab-panel__title { margin: 0 0 var(--space-4); font-size: var(--text-title); }
.js .tabs-no-js-hide { display: none; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.js .tab-panel[hidden] { display: none; }
.tabs { display: none; }
.js .tabs { display: flex; }

/* ---- Accordion (<details name> — exclusive, no JS) ---- */
.accordion { border-top: 1px solid var(--border-default); }
.accordion details { border-bottom: 1px solid var(--border-default); }
.accordion summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) 0; cursor: pointer; font-family: var(--font-display); font-size: var(--text-subtitle);
  line-height: 1.25; color: var(--violet-700);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { color: var(--orange-500); }
.accordion summary .icon-minus, .accordion details[open] summary .icon-plus { display: none; }
.accordion details[open] summary .icon-minus { display: inline-block; }
.accordion__body { padding-bottom: var(--space-6); font-size: var(--text-body); line-height: var(--leading-loose); color: var(--text-muted); max-width: var(--measure); }
.accordion__body p { margin: 0; }

/* ---- Kosten ---- */
.kosten .notice { max-width: 760px; }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-6) 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px;
  border-radius: var(--radius-sm); font-size: var(--text-caption); font-weight: var(--weight-medium); line-height: 1;
}
.badge--success { background: var(--status-success-soft); color: var(--status-success); }
.badge--info { background: var(--status-info-soft); color: var(--status-info); }
.notice {
  display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-5);
  border-radius: var(--radius-md); background: var(--status-info-soft); color: var(--text-body);
  font-size: var(--text-body-sm); line-height: 1.6;
}
.notice .icon { color: var(--status-info); margin-top: 2px; }
.notice p { margin: 0; }

/* ---- Team ---- */
.team { display: grid; gap: var(--space-6); margin-top: var(--space-12); }
.member { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-8); align-items: start; }
.member__portrait { width: 100%; height: 240px; object-fit: cover; object-position: center 20%; border-radius: var(--radius-md); display: block; }
.member__body { display: flex; flex-direction: column; gap: var(--space-3); }
.member h3 { line-height: 1.15; }
.member__role { font-size: var(--text-body-sm); color: var(--orange-500); font-weight: var(--weight-medium); }
.member__text { margin: 0; font-size: var(--text-body-sm); line-height: 1.7; color: var(--text-muted); }
.member__focus { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); }
.member__focus li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-body-sm); color: var(--text-body); }
.member__focus .icon { color: var(--orange-500); margin-top: 3px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-3); }
.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: var(--text-caption); font-weight: var(--weight-medium); letter-spacing: 0.03em; line-height: 1.2;
  background: var(--violet-100); color: var(--violet-700);
}
.guest { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-16); align-items: center; margin-top: var(--space-16); }
.guest h3 { margin: var(--space-4) 0; font-family: var(--font-display); font-weight: 400; font-size: var(--text-display-3); line-height: 1.1; color: var(--violet-700); }
.guest p { margin: 0; line-height: var(--leading-loose); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.fact { background: var(--violet-050); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.fact span { font-size: var(--text-body-sm); color: var(--violet-700); font-weight: var(--weight-medium); line-height: 1.35; }

/* ---- Praxis gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--space-4); margin-top: var(--space-12); }
.gallery a { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--violet-100); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a.gallery__tall { grid-row: span 2; }
.gallery a.gallery__wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-slow) var(--ease-out); }
.gallery a:hover img { transform: scale(1.02); }
.lightbox { padding: 0; border: none; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(48, 0, 64, 0.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lightbox img { display: block; max-width: min(1400px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-md); }
.lightbox__btn {
  position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: var(--radius-circle);
  border: none; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-color);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }
.lightbox__btn--close { top: 16px; right: 16px; transform: none; }

/* ---- Anfahrt ---- */
.anfahrt { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-10); margin-top: var(--space-12); align-items: stretch; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-default); min-height: 420px; display: flex; flex-direction: column; background: var(--paper); }
.map iframe { border: 0; width: 100%; flex: 1; min-height: 380px; display: block; }
.map__foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-5); border-top: 1px solid var(--border-default);
  font-size: var(--text-caption); color: var(--text-muted);
}
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.address { margin: var(--space-4) 0 0; font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; color: #fff; max-width: none; }
.route { display: flex; gap: var(--space-4); align-items: flex-start; }
.route .icon { color: var(--orange-500); margin-top: 3px; }
.route strong { display: block; font-weight: 600; color: var(--violet-700); font-size: var(--text-body); }
.route span { display: block; font-size: var(--text-body-sm); line-height: 1.6; color: var(--text-muted); }

/* ---- Kontakt ---- */
.kontakt { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-16); align-items: start; }
.kontakt__cta { margin-top: var(--space-10); display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.kontakt__cta p { margin: 0; color: var(--text-muted); }
.kontakt__note { font-size: var(--text-caption); color: var(--text-muted); }
.contact-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-5); font-size: var(--text-body); }
.contact-list > * { display: flex; gap: 12px; }
.contact-list .icon { color: var(--yellow-500); }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--yellow-500); }

/* ---- Footer ---- */
.site-footer { background: var(--violet-700); color: #fff; padding-top: var(--space-20); padding-bottom: var(--space-10); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-12); }
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.site-footer__brand img { height: 72px; width: auto; display: block; }
.site-footer__brand p { margin: 0; max-width: 34ch; font-size: var(--text-body-sm); line-height: 1.7; color: rgba(255, 255, 255, 0.76); }
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-body-sm); color: rgba(255, 255, 255, 0.86); }
.site-footer__col a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer__col a:hover { color: var(--yellow-500); }
.site-footer__col > span { display: flex; gap: 10px; }
.site-footer__col .icon { color: var(--yellow-500); margin-top: 3px; }
.site-footer__bottom {
  margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4);
  font-size: var(--text-caption); color: rgba(255, 255, 255, 0.6);
}
.site-footer__legal { display: flex; gap: var(--space-6); }
.site-footer__legal a { color: rgba(255, 255, 255, 0.86); text-decoration: underline; text-underline-offset: 0.18em; }
.site-footer__legal a:hover { color: var(--yellow-500); }

/* ---- Cookie consent ---- */
.consent {
  position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 80; max-width: 520px;
  background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay); padding: var(--space-6);
  font-size: var(--text-body-sm); line-height: 1.6; color: var(--text-body);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 var(--space-5); }
.consent__actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; }
.link-button {
  appearance: none; background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: rgba(255, 255, 255, 0.86); text-decoration: underline; text-underline-offset: 0.18em;
}
.link-button:hover { color: var(--yellow-500); }
html:not(.js) .link-button { display: none; }
@media (max-width: 640px) {
  .consent { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); max-width: none; }
  .consent__actions .btn { flex: 1; }
}

/* ---- Legal pages ---- */
.legal { max-width: 780px; }
.legal .section-heading { margin-bottom: var(--space-10); }
.legal__meta { font-size: var(--text-body-sm); color: var(--text-subtle); }
.legal h2 { font-size: var(--text-title); line-height: var(--leading-title); margin: var(--space-10) 0 var(--space-4); }
.legal h3 { font-size: var(--text-subtitle); margin: var(--space-8) 0 var(--space-3); }
.legal p, .legal li { line-height: var(--leading-loose); }
.legal ul { padding-left: 1.2em; max-width: var(--measure); }
.legal address { font-style: normal; background: var(--paper-warm); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); line-height: 1.7; margin-bottom: var(--space-6); }
.legal a { word-break: break-word; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero { min-height: 0; padding-top: 0; display: flex; flex-direction: column-reverse; }
  .hero__image { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .hero__inner { padding-top: var(--space-12); padding-bottom: var(--space-16); }
  .hero__text { max-width: none; }
  .quote-band, .guest, .anfahrt, .kontakt { grid-template-columns: 1fr; gap: var(--space-10); }
  .pillars { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .gallery a:first-child { grid-column: 1 / -1; }
  .gallery a.gallery__tall, .gallery a.gallery__wide { grid-row: auto; grid-column: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--space-2) var(--space-6) var(--space-6); background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-subtle); box-shadow: var(--shadow-raised);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__link { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
  .js .site-nav__link.is-active { border-bottom-color: var(--border-subtle); }
  .js .site-nav .btn { margin-top: var(--space-4); align-self: flex-start; }
  .site-nav { flex-wrap: wrap; gap: var(--space-3) var(--space-4); }
}
@media (max-width: 640px) {
  .member { grid-template-columns: 1fr; gap: var(--space-5); }
  .member__portrait { width: 200px; }
  .member__focus, .facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: var(--space-3); }
  .gallery a:first-child { grid-column: span 2; }
  .card--lg { padding: var(--space-6); }
  .btn--lg { height: 54px; padding: 0 26px; font-size: var(--text-body); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .map iframe { min-height: 300px; }
}
