/* ============================================================
   Praxis Dr. Kugler — Stylesheet
   Ruhiges, warmes Praxis-Design. Farben/Abstände in :root.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --ink:      #26302b;
  --ink-2:    #46514b;
  --paper:    #f5f3ec;
  --surface:  #ffffff;
  --line:     #e2ddd1;
  --sage:     #5f7d6b;
  --sage-d:   #47624f;
  --clay:     #bd7550;
  --clay-d:   #9c5c3c;
  --muted:    #7d817a;

  --display: 'Newsreader', Georgia, serif;
  --body:    'Source Sans 3', system-ui, sans-serif;

  --maxw: 1120px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-d); text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sage { background: var(--sage); color: #eef3ef; }
.section--sage h2, .section--sage h3 { color: #fff; }
.section--soft { background: #efece3; }

/* Trennstrich-Motiv (die Quelle nutzt viele "---") */
.rule { width: 54px; height: 3px; background: var(--clay); border: 0; margin: 0 0 1.6rem; border-radius: 2px; }
.center .rule { margin-inline: auto; }
.center { text-align: center; }

.eyebrow { font-family: var(--body); font-size: .95rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay); margin: 0 0 .9rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); color: var(--ink-2); max-width: 60ch; }
.section--sage .lede { color: #dce7df; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--body);
  font-size: 1.02rem; font-weight: 600; padding: .8rem 1.6rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-d); }
.btn--ghost { background: transparent; color: var(--sage-d); border-color: var(--sage); }
.btn--ghost:hover { background: var(--sage); color: #fff; }
.section--sage .btn--primary { background: #fff; color: var(--sage-d); }
.section--sage .btn--primary:hover { background: #eef3ef; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Topbar */
.topbar { background: var(--sage-d); color: #eef3ef; font-size: .95rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 1.6rem; padding-block: .5rem; }
.topbar a { color: #eef3ef; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.brand img { height: 46px; width: auto; }
.brand__txt small { display: block; font-family: var(--body); font-weight: 400; font-size: .72rem;
  letter-spacing: .04em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { font-size: 1rem; color: var(--ink-2); text-decoration: none; padding: .55rem .8rem; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--clay); font-weight: 600; }
.nav .has-sub { position: relative; }
.nav .has-sub > .sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: .4rem; box-shadow: 0 12px 30px rgba(38,48,43,.1);
  display: none; flex-direction: column; }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: flex; }
.nav .sub a { padding: .6rem .7rem; }
.nav .btn { padding: .55rem 1.1rem; color: #fff; }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; font: inherit; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem var(--gut) 1.25rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .has-sub > .sub { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
  .nav .btn { margin-top: .6rem; justify-content: center; }
}

/* Hero */
.hero { background: linear-gradient(180deg, #eef2ec 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero__inner { padding-block: clamp(3.5rem, 8vw, 7rem); max-width: 30ch; }
.hero h1 { margin-bottom: .3em; }
.hero .claim { font-family: var(--display); font-style: italic; color: var(--sage-d); font-size: clamp(1.2rem,1rem+.7vw,1.6rem); }

/* Cards / grids */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-2); margin-bottom: 0; }

/* Leistung-Chips */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; color: var(--sage-d); }

/* Sprechzeiten / Kontakt box */
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.info h3 { color: var(--sage-d); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.2rem; font-variant-numeric: tabular-nums; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-2); }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Team */
.member { text-align: center; }
.member img, .member .ph { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); background: #e7e3d8; margin-bottom: .9rem; }
.member .ph { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.member h3 { margin: 0; font-size: 1.15rem; }
.member p { color: var(--muted); margin: 0; }

/* Impressionen */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: #e7e3d8; }
.gallery .ph { display: grid; place-items: center; color: var(--muted); }

/* Notice list */
.notice { background: #efece3; border-left: 4px solid var(--clay); border-radius: 10px; padding: 1.3rem 1.5rem; }
.notice ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.notice li { margin-bottom: .5rem; color: var(--ink-2); }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose .muted { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--ink); color: #b9beb7; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; gap: 1.75rem; } }
.site-footer h4 { font-family: var(--body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8f88; margin: 0 0 .9rem; }
.site-footer a { color: #cdd2ca; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid #333d37; padding-block: 1.25rem; font-size: .85rem; color: #8a8f88;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-bottom a { color: #a9aea7; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; transition: none; } }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }
