/* ==========================================================================
   Kardiologie Dr. Marin — Revamp 2026
   ========================================================================== */

:root {
  --ink: #14212b;
  --ink-soft: #3a4a57;
  --mist: #e7eef3;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: rgba(20, 33, 43, 0.1);
  --accent: #c8102e;
  --accent-deep: #9a0c22;
  --accent-soft: rgba(200, 16, 46, 0.1);
  --sea: #1f4e5f;
  --sea-soft: #d5e6ec;
  --shadow: 0 18px 50px rgba(20, 33, 43, 0.12);
  --shadow-soft: 0 8px 28px rgba(20, 33, 43, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 78, 95, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(200, 16, 46, 0.05), transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease), color 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-place {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header.is-nav-open .nav-toggle-bars {
  background: transparent;
}
.site-header.is-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--ink);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

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

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(245, 248, 250, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-header.is-nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-radius: 10px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 33, 43, 0.35) 0%, rgba(20, 33, 43, 0.55) 42%, rgba(20, 33, 43, 0.88) 100%),
    linear-gradient(90deg, rgba(20, 33, 43, 0.55), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0 0 1.25rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

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

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn[hidden],
[hidden] {
  display: none !important;
}

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

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

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.125rem;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Praxiskonzept */

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: 28rem;
}

.about-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--sea);
}

.about-gallery figure:first-child {
  grid-row: 1 / span 2;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-gallery figure:hover img {
  transform: scale(1.04);
}

.about-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(20, 33, 43, 0.75));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    min-height: 22rem;
  }
}

@media (max-width: 560px) {
  .about-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .about-gallery figure:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .about-gallery figure:not(:first-child) {
    aspect-ratio: 1;
  }
}

/* Leistungen */

.services-section {
  background:
    linear-gradient(180deg, rgba(31, 78, 95, 0.06), transparent 40%),
    var(--mist);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}

.service-panel h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.service-panel-note {
  margin: -0.9rem 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.service-list a:hover {
  text-decoration: underline;
}

.service-pdf-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
}

.service-pdf-link:hover {
  text-decoration: underline;
}

.service-pdf-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  vertical-align: baseline;
}

.service-pdf-tag svg {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.service-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
}

.service-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.service-list .subhead {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.service-list .subhead::before {
  background: var(--sea);
}

@media (max-width: 760px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Team */

.team-section {
  background:
    linear-gradient(160deg, #16313d 0%, #1f4e5f 48%, #14212b 100%);
  color: var(--white);
}

.team-section .section-kicker {
  color: #f0a0ab;
}

.team-section .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.team-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-body {
  padding: 1.15rem 1.2rem 1.4rem;
}

.team-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.team-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.team-link {
  color: #ffd0d6;
  font-weight: 600;
  text-decoration: none;
}

.team-link:hover {
  color: var(--white);
}

.staff-ensemble {
  margin: 0 0 2.5rem;
  width: 100%;
}

.staff-ensemble-photo {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 3 / 1;
}

.staff-ensemble-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.staff-ensemble-names {
  margin-top: 1.15rem;
  text-align: center;
}

.staff-ensemble-names h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0a0ab;
  margin: 0 0 0.65rem;
}

.staff-ensemble-names ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.staff-ensemble-names li {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.qual-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  text-align: center;
}

.qual-badge {
  display: block;
  margin: 0 auto 0.85rem;
}

.qual-badge img {
  width: 72px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.qual-item p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .qual-grid { grid-template-columns: 1fr 1fr; }

  .staff-ensemble-photo {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
}

/* Termine / Wizard */

.termine-section {
  background:
    linear-gradient(120deg, rgba(20, 33, 43, 0.72), rgba(31, 78, 95, 0.55)),
    url("../assets/img/praxis/bg-callout-unsplash.jpg") center / cover no-repeat;
  color: var(--white);
}

.doctolib-badge {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.35rem;
  background: #00264c;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
}

.doctolib-badge-brand {
  display: grid;
  place-items: center;
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.doctolib-badge-brand img {
  width: auto;
  height: 1.5rem;
  display: block;
}

.doctolib-badge-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.2rem;
  color: #fff;
}

.doctolib-badge-body p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.doctolib-badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  background: #fff;
  color: #00264c;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.doctolib-badge-btn:hover {
  color: #00264c;
  transform: translateY(-1px);
  opacity: 0.92;
}

.termine-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
}

.termine-divider::before,
.termine-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.termine-divider span {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .doctolib-badge {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.85rem;
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .doctolib-badge-brand {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0 0 0.85rem;
  }

  .doctolib-badge-btn {
    width: 100%;
  }
}

.termine-section .section-kicker {
  color: #ffc2c9;
}

.termine-section .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.termine-section .section-lead a {
  color: #ffd0d6;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.termine-section .section-lead a:hover {
  color: #fff;
}

.wizard {
  background: var(--white);
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 720px;
  margin-inline: auto;
}

.wizard-progress {
  display: flex;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 0;
}

.wizard-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--mist);
  transition: background 0.3s ease;
}

.wizard-progress span.is-done,
.wizard-progress span.is-current {
  background: var(--accent);
}

.wizard-progress span.is-done {
  background: var(--sea);
}

.wizard-body {
  padding: 1.5rem 1.35rem 1.75rem;
}

.wizard-step {
  display: none;
  animation: stepIn 0.4s var(--ease);
}

.wizard-step.is-active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.wizard-step > p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.choice-grid {
  display: grid;
  gap: 0.75rem;
}

.choice-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .choice-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: block;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  background: var(--paper);
  font-weight: 600;
}

.choice label small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.choice input:checked + label,
.choice label:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field .error {
  color: var(--accent);
  font-size: 0.85rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.summary-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.summary-box dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0;
}

.summary-box dt {
  color: var(--ink-soft);
  font-weight: 600;
}

.summary-box dd {
  margin: 0;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.consent input {
  margin-top: 0.25rem;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.wizard-error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 16, 46, 0.28);
  background: rgba(200, 16, 46, 0.08);
  color: #9a1028;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.wizard-error[hidden] {
  display: none !important;
}

.wizard-actions [data-wizard-prev]:not([hidden]) {
  margin-right: auto;
}

.termine-info {
  margin-top: 3rem;
}

.termine-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.termine-info-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.termine-info-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  line-height: 1.25;
}

.termine-info-card dl {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.termine-info-card dl > div {
  display: grid;
  gap: 0.2rem;
}

.termine-info-card dt {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.termine-info-card dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.termine-info-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.termine-info-card a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .termine-info-cards {
    grid-template-columns: 1fr;
    max-width: 36rem;
    margin-inline: auto;
  }
}

.wizard-success {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
}

.wizard-success h3 {
  color: var(--sea);
  margin-bottom: 0.75rem;
}

@media (max-width: 560px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .summary-box dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .summary-box dt {
    margin-top: 0.45rem;
  }

  .summary-box dt:first-child {
    margin-top: 0;
  }
}

/* Footer cards (inspiration kept & refined) */

.site-footer {
  background: #0e171e;
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.footer-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-heading {
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 500;
}

.footer-lead {
  color: rgba(255, 255, 255, 0.7);
  max-width: 32rem;
  margin: 0 auto;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 21 / 9;
  min-height: 220px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

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

.info-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.info-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.info-card h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.info-card::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1rem;
}

.info-card p {
  margin-bottom: 0.75rem;
}

.info-card .muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.info-card-note,
.info-card-contact {
  font-size: 0.92rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.email-note {
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

.email-note a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hours-summary {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
}

.hours-by-appointment {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.info-card .info-card-contact {
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
}

.legal-nav {
  display: flex;
  gap: 1.25rem;
}

.legal-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.legal-nav a:hover {
  color: var(--white);
}

@media (max-width: 900px) {
  .footer-cards {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .map-wrap {
    aspect-ratio: 16 / 11;
  }
}

/* Inner pages */

.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 1.5rem;
  background: linear-gradient(180deg, var(--mist), var(--paper));
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 500;
}

.page-content {
  padding: 1rem 0 4rem;
}

.page-content .prose {
  max-width: 46rem;
}

.prose h2,
.prose h3,
.prose h6 {
  font-family: var(--font-display);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.prose h6 {
  font-size: 1.05rem;
}

.prose p,
.prose dd {
  color: var(--ink-soft);
}

.vita-dl {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.85rem 1.25rem;
  margin: 2rem 0;
}

.vita-dl dt {
  font-weight: 700;
  text-align: right;
}

.vita-dl dd {
  margin: 0;
}

@media (max-width: 640px) {
  .vita-dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .vita-dl dt {
    text-align: left;
    margin-top: 0.85rem;
    color: var(--accent);
  }

  .vita-dl dt:first-child {
    margin-top: 0;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.back-link:hover {
  color: var(--accent);
}

/* To top */

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 90;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.to-top:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.to-top[hidden] {
  display: none;
}
