:root {
  color-scheme: light;
  --bg: #eef5fb;
  --bg-soft: #f6fafe;
  --surface: #ffffff;
  --surface-muted: #f7fbff;
  --line: #d2ddec;
  --line-strong: #8ca8c8;
  --ink: #213446;
  --muted: #637589;
  --brand: #73a3de;
  --brand-deep: #416f9e;
  --brand-soft: #dfeaf6;
  --accent: #d85e62;
  --team-staff-ring: #f10072;
  --team-doctor-ring: #0789c8;
  --success: #4d8c60;
  --warning: #af7a1f;
  --shadow: 0 12px 30px rgba(43, 70, 99, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1140px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbfe 0%, var(--bg) 100%);
}

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

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(140, 168, 200, 0.35);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--brand-deep);
}

.brand-copy strong {
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand-copy span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}

.site-nav a.is-active {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-deep);
}

.status-ribbon,
.sync-ribbon {
  border-bottom: 1px solid rgba(140, 168, 200, 0.28);
}

.status-ribbon {
  background: rgba(255, 255, 255, 0.92);
}

.sync-ribbon {
  background: rgba(115, 163, 222, 0.12);
  color: var(--muted);
}

.status-ribbon .shell,
.sync-ribbon .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-normal {
  background: rgba(77, 140, 96, 0.15);
  color: var(--success);
}

.status-limited {
  background: rgba(211, 157, 67, 0.18);
  color: var(--warning);
}

.status-emergency {
  background: rgba(216, 94, 98, 0.16);
  color: #9f373a;
}

.hero {
  position: relative;
  min-height: 650px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(23, 43, 64, 0.18), rgba(23, 43, 64, 0.3)),
    url("/images/hauseingang_2_2.jpg") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(238, 245, 251, 0), rgba(238, 245, 251, 1));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 28px;
  align-items: end;
  min-height: 650px;
  padding: 52px 0 72px;
}

.hero-copy,
.hero-panel,
.content-card,
.legal-card,
.form-card,
.footer-card,
.notice-card,
.team-card,
.service-card,
.info-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 760px;
  padding: 30px 34px 34px;
}

.hero-panel {
  padding: 24px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(115, 163, 222, 0.14);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h1,
.section-heading h2,
.page-hero h1,
.legal-card h1,
.form-card h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.hero p,
.section-heading p,
.page-hero p,
.hero-panel p,
.notice-card p,
.service-card p,
.team-card p,
.footer-card p,
.form-copy p,
.form-card p,
.mandatory-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-deep);
  border: 1px solid var(--line);
}

.button-disabled,
.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-appointment {
  min-width: min(100%, 740px);
  padding: 30px 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, #77a7e2 0%, #5f92cf 100%);
  color: #ffffff;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(66, 111, 158, 0.28);
}

.button-appointment .button-icon {
  font-size: 1.25em;
}

.hero-panel dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.hero-panel dt {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.section {
  padding: 48px 0 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.align-center {
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.content-card,
.legal-card,
.form-card,
.info-card {
  padding: 32px;
}

.notice-grid,
.team-grid,
.service-grid,
.info-grid {
  display: grid;
  gap: 22px;
}

.notice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-board {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.notice-board-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

.notice-board-lead h3 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  line-height: 1.1;
  color: var(--ink);
}

.notice-board-side {
  display: grid;
  gap: 22px;
}

.notice-card {
  padding: 24px;
  border: 1px solid var(--line);
}

.notice-card.notice-warning {
  background: #fff8ea;
}

.notice-card.notice-critical {
  background: #fff2f3;
}

.notice-card.notice-info {
  background: var(--surface-muted);
}

.team-section {
  padding-top: 56px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.92)),
    url("/images/theke_2_hell.jpg") center/cover no-repeat;
}

.team-card {
  padding: 22px 18px 26px;
  text-align: center;
}

.team-card img {
  width: 178px;
  height: 178px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--team-staff-ring);
}

.team-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.team-card.doctor img {
  border-color: var(--team-doctor-ring);
}

.team-card-lead {
  width: min(100%, 340px);
  margin: 0 auto 30px;
}

.team-grid-staff {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.appointment-section {
  padding: 56px 0 0;
  background: var(--bg-soft);
}

.appointment-section-page {
  padding-top: 48px;
}

.appointment-section__inner {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.appointment-section__header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.appointment-section__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--team-doctor-ring);
}

.appointment-section__header h1,
.appointment-section__header h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
}

.appointment-section__header p {
  margin: 0;
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--muted);
}

.appointment-widget {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.appointment-widget iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #ffffff;
}

.appointment-section__fallback {
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.appointment-section__fallback a {
  color: var(--team-doctor-ring);
  font-weight: 700;
  text-decoration: none;
}

.appointment-section__fallback a:hover {
  text-decoration: underline;
}

.appointment-callout {
  padding: 12px 0 10px;
  text-align: center;
}

.section-action-pair {
  background: var(--bg-soft);
}

.section-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.section-action-card {
  min-height: 220px;
}

.section-action-copy {
  display: flex;
  align-items: center;
}

.section-action-copy .section-heading {
  margin-bottom: 0;
}

.section-action-single {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  min-height: 220px;
}

.section-action-single .section-heading {
  width: 100%;
  margin-bottom: 0;
}

.section-action-button-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 8px;
}

.section-action-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-action-button {
  width: clamp(14rem, 66.666%, 28rem);
  min-height: 76px;
  padding: 0.95rem 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.15;
}

.section-action-button.button-appointment {
  min-width: 0;
  padding: 0.95rem 1.5rem;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
}

.prescription-section {
  background: var(--bg-soft);
}

.prescription-card {
  padding-top: 28px;
}

.prescription-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.prescription-layout-compact {
  grid-template-columns: 1fr;
}

.prescription-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.prescription-media img {
  max-width: 200px;
}

.prescription-copy img {
  width: 84px;
  height: 84px;
  margin: 6px 0 18px;
}

.prescription-copy-compact {
  text-align: center;
}

.prescription-copy-compact .hero-actions {
  justify-content: center;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 26px 24px;
  box-shadow: 0 0 10px rgba(120, 135, 150, 0.18);
}

.service-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.service-card h3,
.service-card p {
  text-align: center;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
}

.mandatory-section .content-card {
  padding-top: 28px;
}

.mandatory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mandatory-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mandatory-card h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.mandatory-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

.mandatory-card-alert {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.mandatory-card-alert img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.mandatory-card-alert p {
  font-size: 1.28rem;
  line-height: 1.45;
}

.mandatory-copy {
  display: none;
}

.info-card ul,
.footer-hours ul,
.legal-copy ul {
  margin: 0;
  padding-left: 20px;
}

.page-hero {
  padding: 56px 0 16px;
}

.page-hero .content-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
    url("/images/hauseingang_2_2.jpg") center/cover no-repeat;
}

.recipe-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.recipe-layout-compact {
  grid-template-columns: 1fr;
}

.form-copy ul {
  margin: 0;
  padding-left: 20px;
}

.form-state {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.form-state-success {
  background: rgba(77, 140, 96, 0.15);
  color: var(--success);
}

.form-state-error {
  background: rgba(216, 94, 98, 0.16);
  color: #9f373a;
}

.form-state-disabled {
  background: rgba(211, 157, 67, 0.18);
  color: var(--warning);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

label {
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid #e2eaf2;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: #f4f8fc;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 164px;
  resize: vertical;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-note,
.muted-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-row input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.recipe-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.site-footer {
  margin-top: 56px;
  padding: 28px 0 36px;
  background: rgba(115, 163, 222, 0.13);
  border-top: 1px solid rgba(140, 168, 200, 0.32);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
}

.footer-card {
  padding: 24px;
}

.map-frame {
  overflow: hidden;
  min-height: 280px;
  border-radius: 20px;
  background: #d8e4f0;
}

.map-frame iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.footer-hours ul {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.footer-hours li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-appointment,
.footer-address,
.footer-contact {
  margin: 18px 0 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-legal div {
  display: flex;
  gap: 14px;
}

.legal-copy p,
.legal-copy li {
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-grid,
  .recipe-layout,
  .footer-grid,
  .prescription-layout,
  .notice-board,
  .section-action-grid,
  .mandatory-grid {
    grid-template-columns: 1fr;
  }

  .team-grid-staff,
  .service-grid,
  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(140, 168, 200, 0.38);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
  }

  .section-action-card {
    min-height: unset;
  }

  .section-action-button {
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand-copy strong {
    font-size: 1.4rem;
  }

  .appointment-section {
    padding: 44px 0 0;
  }

  .appointment-widget {
    border-radius: 16px;
  }

  .appointment-widget iframe {
    min-height: 980px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-grid {
    min-height: 520px;
    padding: 36px 0 52px;
  }

  .form-grid,
  .team-grid-staff,
  .service-grid,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .button-appointment {
    padding: 22px 18px;
    font-size: 1.3rem;
  }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero-panel,
  .content-card,
  .form-card,
  .legal-card,
  .info-card,
  .footer-card {
    padding: 24px;
  }

  .status-ribbon .shell,
  .sync-ribbon .shell,
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions,
  .recipe-actions {
    justify-content: stretch;
  }

  .button,
  .button-appointment {
    width: 100%;
  }

  .mandatory-emergency {
    font-size: 1.35rem;
  }
}
