/* ----- Tokens ----- */
:root {
  --bg: #f7f5f1;
  --bg-soft: #ecebe5;
  --surface: #ffffff;
  --ink: #15252b;
  --ink-soft: #4d6168;
  --ink-muted: #7d8c91;
  --line: #e2ddd2;
  --primary: #0f5f73;
  --primary-deep: #0a4254;
  --primary-soft: #d8ebef;
  --accent: #c98a4b;
  --accent-soft: #f4e6d3;
  --shadow-sm: 0 1px 2px rgba(15, 37, 43, .06), 0 2px 6px rgba(15, 37, 43, .04);
  --shadow-md: 0 6px 24px rgba(15, 37, 43, .08), 0 2px 8px rgba(15, 37, 43, .04);
  --shadow-lg: 0 24px 60px rgba(15, 37, 43, .12), 0 8px 24px rgba(15, 37, 43, .06);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 .8em;
  padding: .35em .7em;
  background: var(--primary-soft);
  border-radius: 999px;
}
.eyebrow.centered { display: block; text-align: center; margin-inline: auto; width: max-content; }
.centered { text-align: center; }
.section-intro { text-align: center; max-width: 56ch; margin: 0 auto 2.5rem; color: var(--ink-soft); font-size: 1.05rem; }
.accent { color: var(--primary); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: white; padding: .6em 1em; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(247, 245, 241, .94); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--primary); color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.05rem; }
.brand-text small { color: var(--ink-muted); font-size: .78rem; }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.6rem;
}
.primary-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.primary-nav a:hover { color: var(--primary); text-decoration: none; }
.primary-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--primary); transition: right .25s;
}
.primary-nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  background: var(--primary); color: white !important;
  padding: .55rem 1.05rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--primary-deep); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 0;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.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 { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(15, 95, 115, .12), transparent 70%),
    radial-gradient(40% 40% at 0% 80%, rgba(201, 138, 75, .10), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .15s, background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-meta {
  list-style: none; margin: 0; padding: 1.4rem;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.hero-meta li { display: flex; flex-direction: column; }
.hm-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .25em; }
.hm-value { font-weight: 500; }
.hm-value a { color: var(--ink); }
.hm-value a:hover { color: var(--primary); }

/* ----- Sections ----- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-praxis { background: var(--surface); border-block: 1px solid var(--line); }
.section-leistungen { background: var(--bg); }
.section-hours { background: var(--surface); border-block: 1px solid var(--line); }
.section-contact { background: var(--bg); }

.two-col {
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}
.col-text > h2 { margin-top: 0; }

/* Profile card */
.profile-card {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.profile-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Fraunces', serif;
  font-size: 1.9rem; font-weight: 500;
  letter-spacing: .03em;
  box-shadow: 0 0 0 6px white, 0 0 0 7px var(--line);
}
.profile-card h3 { margin-bottom: .25em; font-size: 1.25rem; }
.profile-role { color: var(--ink-soft); margin-bottom: 1.2em; font-size: .95rem; }
.qualifications {
  list-style: none; margin: 0 0 1.2em; padding: 1em 0;
  border-block: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .35em;
  font-size: .95rem;
}
.profile-langs { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.profile-langs span { font-weight: 600; color: var(--ink); margin-right: .25em; }

.checklist {
  list-style: none; margin: 1.2em 0 0; padding: 0;
  display: grid; gap: .55em;
}
.checklist li {
  position: relative; padding-left: 1.9em;
  color: var(--ink-soft);
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .4em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5f73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  margin-bottom: 1.1em;
}
.card-icon svg { width: 26px; height: 26px; }

/* Hours table */
.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hours th, .hours td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .98rem;
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; color: var(--ink); width: 40%; }
.hours td { color: var(--ink-soft); }
.hours tr.is-today { background: var(--primary-soft); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--primary-deep); font-weight: 600; }

.status {
  margin: 1rem 0 0; padding: .8rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: .95rem;
  display: flex; align-items: center; gap: .55rem;
}
.status::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-muted); flex: none;
}
.status.is-open::before { background: #2f9e6d; box-shadow: 0 0 0 4px rgba(47, 158, 109, .15); }
.status.is-closed::before { background: #c75252; }

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1.4em;
  display: flex; flex-direction: column; gap: .15em;
}
.callout strong { color: var(--ink); font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.1rem; }
.callout span { color: var(--ink-soft); font-size: .95rem; }

/* Contact */
.contact-list { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci {
  flex: none; width: 42px; height: 42px;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.contact-list strong { display: block; color: var(--ink); margin-bottom: .15em; }
.contact-list a { color: var(--ink-soft); }
.contact-list a:hover { color: var(--primary); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  position: relative;
}
.map-wrap iframe {
  width: 100%; height: 380px; border: 0; display: block;
  filter: saturate(.85);
}
.map-link {
  display: block; padding: .85rem 1rem;
  text-align: center; font-size: .9rem;
  color: var(--ink-soft); background: var(--surface);
  border-top: 1px solid var(--line);
}
.map-link:hover { color: var(--primary); text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d4dde0;
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.site-footer strong { color: white; font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.1rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: #b9c5c9; font-size: .95rem; }
.footer-nav a:hover { color: white; text-decoration: none; }
.site-footer small { display: block; color: #8294a0; font-size: .82rem; line-height: 1.5; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .primary-nav ul {
    position: absolute; top: 100%; right: 1rem; left: 1rem;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .6rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s, opacity .2s;
  }
  .primary-nav ul li { width: 100%; }
  .primary-nav a {
    display: block; padding: .8rem 1rem; border-radius: 10px;
  }
  .primary-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { display: block; text-align: center; margin-top: .25rem; }
  .nav-toggle[aria-expanded="true"] + ul {
    transform: none; opacity: 1; pointer-events: auto;
  }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .profile-card { position: static; }
  .hero-meta { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (max-width: 520px) {
  .btn { padding: .75rem 1.1rem; font-size: .92rem; }
  .hours th, .hours td { padding: .7rem .8rem; font-size: .92rem; }
}

/* Legal pages */
.legal {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.legal article {
  background: var(--surface);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.legal h1 { font-size: 2rem; margin-bottom: 1em; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal address { font-style: normal; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a.back { display: inline-block; margin-bottom: 1.5em; color: var(--primary); }
