/*
Theme Name: Lederergasse Grid
Theme URI: https://www.ordination-lederergasse.at/
Author: MONOME
Description: Custom WordPress theme prototype for Ordination Lederergasse. Grid-based, no page builder, with structured content types for needs, services, people and FAQs.
Version: 0.1.0
Text Domain: lederergasse-grid
*/

:root {
  /* Visually matched to the existing Lederergasse appearance. Centralized here for exact fine-tuning. */
  --lg-paper: #ffffff;
  --lg-paper-soft: #f7f7f3;
  --lg-ink: #292b2b;
  --lg-muted: #6c706b;
  --lg-line: #dcded6;
  --lg-brand: #8eaf16;
  --lg-brand-dark: #667f0e;
  --lg-internal: #69a65a;
  --lg-surgery: #aaa0c3;
  --lg-admin: #c5cd68;
  --lg-display: Georgia, "Times New Roman", serif;
  --lg-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lg-max: 1560px;
  --lg-pad: clamp(18px, 3vw, 52px);
  --lg-gap: clamp(14px, 1.6vw, 24px);
  --lg-radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lg-paper);
  color: var(--lg-ink);
  font-family: var(--lg-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, textarea, select { font: inherit; }

.site-shell {
  width: min(100%, var(--lg-max));
  margin-inline: auto;
  border-inline: 1px solid var(--lg-line);
}
.lg-section {
  padding: clamp(42px, 6vw, 88px) var(--lg-pad);
  border-top: 1px solid var(--lg-line);
}
.lg-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--lg-gap);
  row-gap: var(--lg-gap);
}
.lg-section-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--lg-gap);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 42px);
}
.lg-section-head h2 { grid-column: 1 / span 7; margin: 0; }
.lg-section-head p, .lg-section-head a { grid-column: 9 / -1; justify-self: end; margin: 0; }

h1, h2, h3, .display {
  font-family: var(--lg-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(48px, 7vw, 112px); margin: 0; }
h2 { font-size: clamp(34px, 4.2vw, 64px); }
h3 { font-size: clamp(22px, 2vw, 32px); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--lg-brand-dark);
}
.lg-muted { color: var(--lg-muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--lg-paper) 93%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lg-line);
}
.header-top {
  min-height: 34px;
  padding: 6px var(--lg-pad);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px solid var(--lg-line);
  background: var(--lg-paper-soft);
}
.header-main {
  min-height: 86px;
  padding: 14px var(--lg-pad);
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 28px;
  align-items: center;
}
.site-branding a { text-decoration: none; }
.site-title {
  font-family: var(--lg-display);
  font-size: 25px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}
.site-title small {
  display: block;
  margin-top: 6px;
  font: 600 10px/1 var(--lg-sans);
  letter-spacing: .14em;
  color: var(--lg-muted);
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  justify-content: center;
  margin: 0;
  padding: 0;
}
.main-navigation a { text-decoration: none; font-size: 14px; }
.main-navigation a:hover { color: var(--lg-brand-dark); }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--lg-ink);
  background: var(--lg-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.button--light { background: transparent; color: var(--lg-ink); }
.button--brand { background: var(--lg-brand); border-color: var(--lg-brand); color: #fff; }

/* Hero */
.hero { padding: 0; border-top: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  min-height: min(78vh, 820px);
}
.hero-copy {
  grid-column: 1 / span 7;
  padding: clamp(54px, 8vw, 120px) var(--lg-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--lg-line);
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .lead {
  max-width: 710px;
  margin: 26px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--lg-muted);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero-side {
  grid-column: 8 / -1;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--lg-paper-soft);
}
.hero-image {
  min-height: 380px;
  background: linear-gradient(135deg, #eef0e8 0%, #dfe4d5 100%);
  display: flex;
  align-items: end;
  padding: 28px;
  color: var(--lg-muted);
  font-size: 13px;
}
.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--lg-line);
}
.hero-fact { padding: 24px; min-height: 150px; }
.hero-fact + .hero-fact { border-left: 1px solid var(--lg-line); }
.hero-fact strong { display: block; font-family: var(--lg-display); font-size: 22px; font-weight: 400; margin-bottom: 9px; }

.notice-bar {
  display: grid;
  grid-template-columns: 2fr 8fr 2fr;
  gap: var(--lg-gap);
  align-items: center;
  padding: 14px var(--lg-pad);
  border-top: 1px solid var(--lg-line);
  background: color-mix(in srgb, var(--lg-brand) 12%, white);
  font-size: 14px;
}
.notice-bar .eyebrow { color: var(--lg-ink); }
.notice-bar a { justify-self: end; }

/* Needs rail */
.needs-section { overflow: hidden; }
.needs-wrap { position: relative; grid-column: 1 / -1; }
.needs-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31vw);
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--lg-line);
  background: var(--lg-line);
}
.needs-rail::-webkit-scrollbar { display: none; }
.need-card {
  scroll-snap-align: start;
  min-height: 300px;
  padding: 28px;
  background: var(--lg-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background .2s ease;
}
.need-card:hover { background: var(--lg-paper-soft); }
.need-index { font-size: 12px; color: var(--lg-muted); }
.need-card h3 { margin: 20px 0 12px; max-width: 12ch; }
.need-card p { margin: 0; color: var(--lg-muted); max-width: 30ch; }
.need-arrow { font-size: 26px; line-height: 1; }
.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--lg-ink);
  background: var(--lg-paper);
  color: var(--lg-ink);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.rail-arrow--prev { left: -24px; }
.rail-arrow--next { right: -24px; }
.rail-arrow[disabled] { opacity: .28; cursor: default; }

/* Services */
.service-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1px; background: var(--lg-line); border: 1px solid var(--lg-line); }
.service-card { grid-column: span 4; min-height: 340px; padding: 28px; background: var(--lg-paper); display: flex; flex-direction: column; }
.service-card[data-team="interne"] { box-shadow: inset 0 5px 0 var(--lg-internal); }
.service-card[data-team="chirurgie"] { box-shadow: inset 0 5px 0 var(--lg-surgery); }
.service-card[data-team="beide"] { box-shadow: inset 0 5px 0 var(--lg-brand); }
.service-card h3 { margin: auto 0 14px; }
.service-card p { color: var(--lg-muted); margin: 0 0 20px; }
.service-card a { font-size: 13px; font-weight: 700; }

/* Process */
.process-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lg-line); }
.process-step { min-height: 230px; padding: 26px; position: relative; }
.process-step + .process-step { border-left: 1px solid var(--lg-line); }
.process-no { font-family: var(--lg-display); font-size: 42px; color: var(--lg-brand); }
.process-step h3 { margin: 42px 0 8px; font-family: var(--lg-sans); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.process-step p { color: var(--lg-muted); margin: 0; }

/* People */
.people-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1px; background: var(--lg-line); border: 1px solid var(--lg-line); }
.person-card { grid-column: span 4; background: var(--lg-paper); display: grid; grid-template-rows: 250px 1fr; min-height: 520px; }
.person-image { background: #ecece7; border-bottom: 1px solid var(--lg-line); overflow: hidden; }
.person-image img { width: 100%; height: 100%; object-fit: cover; }
.person-copy { padding: 26px; display: flex; flex-direction: column; }
.person-copy .team-chip { margin-bottom: 18px; }
.person-copy h3 { margin: 0 0 6px; }
.person-copy p { color: var(--lg-muted); }
.person-copy a { margin-top: auto; font-size: 13px; font-weight: 700; }
.team-chip { display: inline-flex; width: fit-content; padding: 5px 8px; border: 1px solid var(--lg-line); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.team-chip--interne { border-color: var(--lg-internal); }
.team-chip--chirurgie { border-color: var(--lg-surgery); }
.team-chip--administration { border-color: var(--lg-admin); }

/* FAQ + contact */
.split-section { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--lg-gap); }
.faq-column { grid-column: 1 / span 7; }
.contact-column { grid-column: 9 / -1; }
.faq-list { border-top: 1px solid var(--lg-line); }
details.faq-item { border-bottom: 1px solid var(--lg-line); }
details.faq-item summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; position: relative; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; font-weight: 400; }
details.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 56px 22px 0; color: var(--lg-muted); }
.contact-card { border: 1px solid var(--lg-line); padding: 26px; background: var(--lg-paper-soft); }
.contact-card h3 { margin-top: 0; }
.contact-card p { margin: 0 0 16px; }
.contact-card .button { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--lg-line); }
.footer-grid { padding: 28px var(--lg-pad); display: grid; grid-template-columns: 4fr 4fr 4fr; gap: var(--lg-gap); align-items: end; }
.footer-grid p { margin: 0; font-size: 12px; color: var(--lg-muted); }
.footer-grid nav { justify-self: center; }
.footer-grid nav a { margin-inline: 8px; font-size: 12px; }
.footer-grid .footer-mark { justify-self: end; text-align: right; }

@media (max-width: 1100px) {
  .header-main { grid-template-columns: 1fr auto; }
  .main-navigation { display: none; }
  .hero-copy { grid-column: 1 / span 8; }
  .hero-side { grid-column: 9 / -1; }
  .service-card, .person-card { grid-column: span 6; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--lg-line); }
  .process-step:nth-child(4) { border-top: 1px solid var(--lg-line); }
  .needs-rail { grid-auto-columns: minmax(260px, 46vw); }
}

@media (max-width: 760px) {
  :root { --lg-pad: 18px; }
  .site-shell { border-inline: 0; }
  .header-top { display: none; }
  .header-main { min-height: 68px; grid-template-columns: 1fr auto; }
  .header-cta { padding: 8px 11px; min-height: 40px; }
  .site-title { font-size: 18px; }
  .hero-grid { display: block; min-height: auto; }
  .hero-copy { border-right: 0; padding: 52px var(--lg-pad); }
  .hero-side { display: block; border-top: 1px solid var(--lg-line); }
  .hero-image { min-height: 260px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact + .hero-fact { border-left: 0; border-top: 1px solid var(--lg-line); }
  .notice-bar { grid-template-columns: 1fr; }
  .notice-bar a { justify-self: start; }
  .lg-section-head { display: block; }
  .lg-section-head h2 { margin-bottom: 12px; }
  .lg-section-head p, .lg-section-head a { display: inline-block; }
  .needs-wrap { margin-inline: 0; }
  .needs-rail { grid-auto-columns: 84vw; }
  .rail-arrow { width: 42px; height: 42px; }
  .rail-arrow--prev { left: -9px; }
  .rail-arrow--next { right: -9px; }
  .service-card, .person-card { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step + .process-step { border-left: 0; border-top: 1px solid var(--lg-line); }
  .split-section { display: block; }
  .contact-column { margin-top: 42px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav, .footer-grid .footer-mark { justify-self: start; text-align: left; }
}
