/* ============================================
   Tokens
   ============================================ */
:root {
  --ink: #14181c;
  --ink-soft: #3a4148;
  --paper: #fbfcfd;
  --sky: #dbe9f2;
  --sky-deep: #4d7f9c;
  --sky-line: #b8d2e0;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1080px;
  --pad: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

a {
  color: inherit;
}

/* subtle paper grain for warmth against the flat blue/black palette */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sky-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.mark {
  font-family: var(--serif);
  font-weight: 440;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white) !important;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: clamp(72px, 14vw, 148px) 0 clamp(56px, 10vw, 96px);
  background: linear-gradient(180deg, var(--sky) 0%, #eef5f9 62%, var(--paper) 100%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  font-weight: 600;
  margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--white);
}

/* signature element: a single calm horizontal line that "breathes" —
   representing the steadiness the practice offers. Restrained, not decorative clutter. */
.hero-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sky-deep);
  opacity: 0.25;
  transform-origin: left center;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scaleX(1); opacity: 0.15; }
  50% { transform: scaleX(1); opacity: 0.4; }
}

/* ============================================
   Intro
   ============================================ */
.intro {
  padding: clamp(64px, 9vw, 100px) 0;
}

.intro-text {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 800px;
}

/* ============================================
   Section labels (shared)
   ============================================ */
.section-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sky-deep);
  margin: 0 0 20px;
}

.section-label-light {
  color: var(--sky);
}

/* ============================================
   Leistungen
   ============================================ */
.leistungen {
  padding: clamp(56px, 8vw, 88px) 0;
  border-top: 1px solid var(--sky-line);
}

.leistungen-single {
  background: var(--paper);
  border: 1px solid var(--sky-line);
  padding: clamp(32px, 5vw, 52px);
  max-width: 720px;
}

.leistungen-single h3 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(22px, 2.8vw, 27px);
  margin: 0 0 16px;
}

.leistungen-single p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15.5px;
}

.abrechnung {
  margin: 28px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================
   Schwerpunkte — dark band for contrast anchor
   ============================================ */
.schwerpunkte {
  background: var(--ink);
  color: var(--sky);
  padding: clamp(56px, 8vw, 88px) 0;
}

.schwerpunkte-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(219, 233, 242, 0.18);
}

.schwerpunkte-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(219, 233, 242, 0.18);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 340;
  color: var(--white);
}

.schwerpunkte-list li:nth-child(odd) {
  border-right: 1px solid rgba(219, 233, 242, 0.18);
  padding-right: 24px;
}

.schwerpunkte-list li:nth-child(even) {
  padding-left: 24px;
}

/* ============================================
   Praxis (location)
   ============================================ */
.praxis {
  padding: clamp(64px, 9vw, 104px) 0;
}

.praxis-inner {
  max-width: 640px;
}

.praxis h2 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.25;
  margin: 0 0 18px;
}

.praxis-desc {
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================
   Kontakt
   ============================================ */
.kontakt {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky) 100%);
  padding: clamp(64px, 10vw, 112px) 0 clamp(80px, 11vw, 120px);
  border-top: 1px solid var(--sky-line);
}

.kontakt h2 {
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 12px;
}

.kontakt-sub {
  color: var(--ink-soft);
  margin: 0 0 48px;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.kontakt-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--sky-line);
}

.kontakt-label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  font-weight: 600;
}

.kontakt-item a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  width: fit-content;
}

.kontakt-item a:hover,
.kontakt-item a:focus-visible {
  border-color: var(--sky-deep);
}

.kontakt-item span:not(.kontakt-label) {
  font-family: var(--serif);
  font-size: 19px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--sky-line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* ============================================
   Focus states (accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 3px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 720px) {
  .nav {
    gap: 18px;
    font-size: 14px;
  }
  .nav-cta {
    padding: 7px 14px;
  }
  .schwerpunkte-list {
    grid-template-columns: 1fr;
  }
  .schwerpunkte-list li:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }
  .schwerpunkte-list li:nth-child(even) {
    padding-left: 0;
  }
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .mark { font-size: 17px; }
  .nav a:not(.nav-cta) { display: none; }
}
