:root {
  --ink: #1E2A2E;
  --paper: #EFF1EA;
  --mist: #E2E6DE;
  --plaque: #163C4A;
  --plaque-light: #1F4E60;
  --rooftop: #C1592F;
  --rooftop-text: #9E4522;
  --rooftop-on-dark: #E5936A;
  --vine: #6B7C4F;
  --radius: 4px;
  --max-width: 1120px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  font-size: 16px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 0;
  color: var(--plaque);
}

.section-eyebrow, .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rooftop-text);
  margin: 0 0 10px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--plaque);
  color: var(--paper);
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 2rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--plaque);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  color: var(--rooftop);
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 0;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink);
  margin-bottom: 32px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--plaque);
  color: var(--paper);
}

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

.btn-secondary {
  background: transparent;
  color: var(--plaque);
  border-color: var(--plaque);
}

/* Plaque (hero signature element) */
.plaque {
  background: var(--plaque);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: 0 18px 40px -18px rgba(22, 60, 74, 0.55);
  border: 1px solid var(--plaque-light);
}

.plaque-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.plaque-doctors {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 1rem;
}

.plaque-doctors li { margin-bottom: 2px; }

.plaque-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(239, 241, 234, 0.75);
  margin: 0;
}

.plaque-rule {
  border: none;
  border-top: 1px solid rgba(239, 241, 234, 0.25);
  margin: 20px 0;
}

.plaque-hours {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin: 0;
}

.plaque-hours > div {
  display: contents;
}

.plaque-hours dt {
  color: var(--rooftop-on-dark);
  font-weight: 500;
}

.plaque-hours dd {
  margin: 0;
}

/* Pulse line divider */
.pulse-line {
  width: 100%;
  height: 24px;
  display: block;
}

.pulse-line path {
  fill: none;
  stroke: var(--rooftop);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .pulse-line path {
    stroke-dashoffset: 700;
    animation: draw-pulse 1.6s 0.3s ease-out forwards;
  }
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

.pulse-line-footer {
  height: 12px;
  opacity: 0.5;
}

.pulse-line-footer path {
  stroke: var(--paper);
}

/* Notice bar */
.notice-bar {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 28px 0;
}

.notice-bar .container {
  border-left: 3px solid var(--rooftop);
  padding-left: 21px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.notice-bar strong { color: var(--rooftop-text); }

.notice-bar p {
  margin: 0 0 12px;
}

.notice-bar p:last-child { margin-bottom: 0; }

.notice-bar ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.notice-bar li { margin-bottom: 4px; }

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--mist);
}

/* Service list */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.service-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--mist);
}

.service-list {
  border-bottom: 1px solid var(--mist);
}

.service-mark {
  font-family: var(--font-mono);
  color: var(--rooftop);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
  width: 20px;
}

.service-list h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-list p {
  color: var(--ink);
  margin: 0;
  font-size: 0.96rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist);
  position: relative;
  background: var(--plaque);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.05) brightness(0.97);
  mix-blend-mode: luminosity;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  bottom: 40px;
  background: rgba(22, 60, 74, 0.28);
  pointer-events: none;
}

.gallery-grid figcaption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--paper);
  background: var(--plaque);
  position: relative;
}

/* Team plaques */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 1.5rem;
}

.team-plaque {
  background: var(--plaque);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.team-plaque h3 {
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 4px;
}

.team-plaque p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(239, 241, 234, 0.75);
  margin: 0;
}

.team-note {
  color: var(--ink);
}

/* Hours table */
.hours-table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.hours-table th, .hours-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(30, 42, 46, 0.12);
  text-align: left;
  font-weight: 400;
}

.hours-table th {
  color: var(--plaque);
  font-weight: 500;
  position: relative;
}

.hours-table tr[data-today="true"] {
  background: rgba(193, 89, 47, 0.1);
}

.hours-table tr[data-today="true"] th::after {
  content: "Heute";
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--rooftop-text);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

.hours-note {
  color: var(--ink);
  margin-top: 1rem;
  font-size: 0.92rem;
}

/* Rezept ticket (QR appointment card) */
.rezept {
  max-width: 640px;
  background: var(--paper);
  border: 1.5px solid var(--plaque);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.rezept-perforation {
  height: 0;
  border-top: 2px dashed var(--plaque);
  margin: 0 24px;
  position: relative;
  top: 22px;
}

.rezept-perforation::before,
.rezept-perforation::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mist);
}

.rezept-perforation::before { left: -32px; }
.rezept-perforation::after { right: -32px; }

.rezept-body {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 44px 32px 32px;
  flex-wrap: wrap;
}

.rezept-text {
  flex: 1 1 280px;
}

.rezept-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--rooftop);
  margin: 0 0 8px;
}

.rezept-text p:not(.rezept-label) {
  margin: 0;
  color: var(--ink);
}

.rezept-qr {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border: 1px solid var(--mist);
  padding: 8px;
  background: #fff;
}

/* Contact */
.kontakt-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

address { font-style: normal; }

address a { text-decoration: none; border-bottom: 1px solid var(--rooftop); }

.kontakt-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--plaque);
}

.kontakt-photo img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(45%) contrast(1.05) brightness(0.97);
}

.kontakt-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper);
  background: var(--plaque);
  padding: 8px 14px;
}

/* Footer */
.site-footer {
  background: var(--plaque);
  color: var(--paper);
  padding-top: 24px;
}

.site-footer .container {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.site-footer a {
  color: var(--paper);
}

/* Hero signature */
.hero-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--plaque);
  margin: -16px 0 32px;
}

.plaque-address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(239, 241, 234, 0.85);
  margin: 0;
}

/* Service groups */
.service-group {
  margin-bottom: 2.5rem;
}

.service-group-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rooftop);
  display: inline-block;
}

.service-list h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plaque);
  margin: 0 0 6px;
}

.service-sublist {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.93rem;
}

.service-sublist li {
  margin-bottom: 6px;
}

.igel-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--rooftop-text);
  border: 1px solid rgba(158, 69, 34, 0.5);
  border-radius: 999px;
  padding: 1px 9px;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}

.igel-note {
  font-size: 0.88rem;
  color: rgba(30, 42, 46, 0.75);
  max-width: 70ch;
  margin-top: 1.2rem;
}

/* Arzt / Über mich */
.arzt-intro {
  max-width: 72ch;
  margin-bottom: 3rem;
}

.werdegang-title {
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.timeline {
  margin: 0;
  max-width: 720px;
}

.timeline > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(30, 42, 46, 0.15);
}

.timeline > div:last-child {
  border-bottom: 1px solid rgba(30, 42, 46, 0.15);
}

.timeline dt {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rooftop-text);
  white-space: nowrap;
}

.timeline dd {
  margin: 0;
}

.timeline-place {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(30, 42, 46, 0.7);
  margin-top: 2px;
}

/* Hours table head */
.hours-table thead th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 2px solid var(--plaque);
}

/* Akutsprechstunde box */
.akut-box {
  max-width: 560px;
  margin-top: 1.5rem;
  background: rgba(193, 89, 47, 0.07);
  border-left: 3px solid var(--rooftop);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.95rem;
}

.akut-box p { margin: 0 0 12px; }
.akut-box p:last-child { margin-bottom: 0; }

/* Legal pages (Impressum / Datenschutz) */
.legal-page {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-todo {
  background: rgba(193, 89, 47, 0.1);
  border: 1px dashed var(--rooftop);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .kontakt-inner {
    grid-template-columns: 1fr;
  }

  .timeline > div {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

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

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

  .hero { padding-top: 40px; }

  .hero h1 { font-size: 2.2rem; }

  .rezept-body { padding: 40px 20px 24px; }
}
