/* ============================================================
   Ordination Dr. Barbara Ebenbauer
   Warm-ruhige Ästhetik: Creme + Honig-Gelb + warmes Anthrazit
   ============================================================ */

:root {
  --paper: #fdfaf2;
  --paper-deep: #f7f0de;
  --espresso: #2e2822;
  --night: #1e1a15;
  --amber: #b07d1e;
  --butter: #f7e8c3;
  --cocoa: #322a1f;
  --ink: #2f2921;
  --ink-soft: #71685a;
  --line: #eae0cb;

  --font-display: "Outfit", "Helvetica Neue", sans-serif;
  --font-body: "Mulish", "Helvetica Neue", sans-serif;

  --radius: 10px;
  --wrap: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; margin-bottom: 0.35em; }

a { color: var(--espresso); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9em;
}

.section-intro {
  max-width: 34em;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.8;
  font-style: italic;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--espresso);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--espresso);
  border-radius: 8px;
  padding: 0.8em 1.7em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover { background: var(--night); }

.btn-ghost {
  background: transparent;
  color: var(--espresso);
}

.btn-ghost:hover { background: var(--butter); }

.btn-small { padding: 0.55em 1.2em; font-size: 0.85rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 250, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 72px;
}

.brand { text-decoration: none; line-height: 1.2; margin-right: auto; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cocoa);
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav { display: flex; gap: 1.5rem; }

.main-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding: 4px 0;
}

.main-nav a:hover { border-bottom-color: var(--amber); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 0;
}

/* Dezenter warmer Blob hinter dem Hero */
.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -8%;
  width: min(680px, 70vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--butter) 0%, rgba(247, 233, 203, 0.45) 55%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero-text .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 32em;
  margin: 1.4rem 0 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-facts li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  margin-right: 0.6em;
  vertical-align: 2px;
}

.hero-portrait {
  justify-self: center;
  width: min(340px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}

/* ---------- Quote-Band ---------- */

.quote-band {
  background: var(--butter);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cocoa);
  text-align: center;
  max-width: 26em;
  margin: 0 auto;
  line-height: 1.4;
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.section-tinted { background: var(--paper-deep); }

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}

.card p { font-size: 0.95rem; color: var(--ink-soft); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--butter);
  color: var(--amber);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 22px; height: 22px; }

/* ---------- Über mich ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  width: 100%;
}

.about-text p { margin-bottom: 1rem; color: var(--ink-soft); }
.about-text p:first-of-type { color: var(--ink); }

.timeline {
  list-style: none;
  margin-top: 1.8rem;
  border-left: 2px solid var(--espresso);
  padding-left: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 5px);
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--amber);
}

.timeline span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.timeline em { font-style: italic; opacity: 0.7; }

/* ---------- Praxis ---------- */

.gallery { margin-top: 2.5rem; }

.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.praxis-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.praxis-facts li {
  border-top: 2px solid var(--espresso);
  padding-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.praxis-facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

/* ---------- Ordinationszeiten ---------- */

.zeiten-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
}

.hours th, .hours td {
  padding: 0.9rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }

.hours th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--espresso);
  width: 45%;
}

.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Kontakt ---------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}

address { font-style: normal; margin-top: 1rem; display: grid; gap: 1rem; }

address a { color: var(--espresso); font-weight: 700; }

.kontakt-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
  align-self: start;
}

.kontakt-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.kontakt-form input,
.kontakt-form textarea {
  font: inherit;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 0.7em 0.9em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: 2px solid var(--espresso);
  outline-offset: 1px;
  border-color: var(--espresso);
}

.kontakt-form .btn { justify-self: start; }

.form-sent { font-size: 0.9rem; color: var(--espresso); font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--espresso);
  color: var(--butter);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.4rem;
}

.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; width: min(260px, 70vw); margin-bottom: 1rem; }
  .hero-text { text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .about-grid, .zeiten-grid, .kontakt-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 400px; margin-inline: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .cards, .praxis-facts { grid-template-columns: 1fr; }

  /* Weniger Scrollweg: engere Abstände */
  .section { padding: 2.25rem 0; }
  .hero { padding-top: 1.75rem; }
  .hero-grid { padding-bottom: 2.25rem; }
  .hero-portrait { width: min(200px, 60vw); margin-bottom: 0.5rem; }
  .hero-text .lead { font-size: 1.05rem; margin: 1rem 0 1.4rem; }
  .hero-facts { margin-top: 1.5rem; }
  .quote-band { padding: 1.75rem 0; }
  .section-intro { margin-bottom: 1.4rem; }
  .cards { gap: 0.8rem; margin-top: 1.6rem; }
  .gallery { margin-top: 1.6rem; }
  .gallery figure { aspect-ratio: 16 / 10; }
  .praxis-facts { gap: 0.9rem; margin-top: 1.6rem; }
  .timeline { gap: 0.7rem; margin-top: 1.4rem; }
  .kontakt-form { padding: 1.4rem; }
  .note { margin-top: 1.2rem; }

  /* Karten kompakt: Icon neben dem Text */
  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    padding: 1.1rem 1.2rem;
  }

  .card-icon {
    grid-row: 1 / 3;
    width: 38px;
    height: 38px;
    margin-bottom: 0;
    align-self: start;
  }

  .card-icon svg { width: 20px; height: 20px; }

  .card h3 { font-size: 1.05rem; margin-bottom: 0; align-self: center; }

  .card p { font-size: 0.9rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 24px 1rem;
  }

  .main-nav a { padding: 0.7rem 0; border-bottom: none; }

  body.nav-open .main-nav { display: flex; }

  .nav-toggle {
    display: grid;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--espresso);
    border-radius: 2px;
  }

  .header-inner { gap: 1rem; }
  .btn-small { display: none; }
}
