@font-face {
  font-family: 'Ro Olive';
  src: url('RoOlive.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --slate: #33251A;
  --slate-mid: #56412F;
  --sage: #4E7A57;
  --sage-light: #8FB396;
  --sage-pale: #E5EFE4;
  --sage-mist: #D8E8DA;
  --sage-text: #3A5E42;
  --sage-hover: #3A5E42;
  --honey: #F2B705;
  --honey-light: #FFD95C;
  --honey-pale: #FFF4B8;
  --honey-text: #6F4D00;
  --terracotta: #C1531F;
  --terracotta-deep: #8C3512;
  --terracotta-light: #E5A583;
  --terracotta-pale: #FAE3D5;
  --karmin: #AE2140;
  --karmin-pale: #F9DEE1;
  --lasurblau: #4A63A8;
  --lasurblau-deep: #2B3F79;
  --lasurblau-light: #A9B7DE;
  --lasurblau-pale: #E4E8F3;
  --sonne: #F6C600;
  --sonne-pale: #FFF4B8;
  --senf: #F3A712;
  --senf-pale: #FFE7A3;
  --paper: #FFFEF7;
  --paper-warm: #FFF2B8;
  --ink: #2A1C13;
  --ink-mid: #56412F;
  --ink-light: #7A6250;
  --line: #E7C94A;
  --white: #FFFFFF;
  --warning-bg: #FEF3C7;
  --warning: #F59E0B;
  --success-bg: #D1FAE5;
  --success: #10B981;
  --phone-bg: #DBEAFE;
  --phone: #3B82F6;
  --visit-bg: #EDE9FE;
  --visit: #8B5CF6;
  --error: #9F1239;
  --font-display: 'Ro Olive', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border-radius: 0.4rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  background: var(--slate);
  color: var(--white);
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 4rem;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(255, 254, 247, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo {
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-logo span {
  color: var(--ink-mid);
  font-style: normal;
  font-weight: 300;
}

.nav-links-panel {
  display: contents;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
  color: var(--ink-mid);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--sage);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--slate);
  letter-spacing: 0.16em;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: translateX(-50%) scale(1);
}

.has-submenu {
  position: relative;
}

.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-caret {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.has-submenu:hover .nav-caret,
.has-submenu:focus-within .nav-caret {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(51, 37, 26, 0.12);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.submenu a {
  padding: 0.7rem 1.4rem;
  text-align: center;
  white-space: nowrap;
}

.submenu a::after {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(253, 251, 247, 0.84);
  color: var(--slate);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
}

.nav-toggle-lines span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav.menu-open .nav-toggle-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.menu-open .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.site-nav.menu-open .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 6rem;
  background-image: linear-gradient(110deg, var(--paper) 32%, rgba(255, 242, 184, 0.72) 62%, rgba(255, 244, 184, 0.25) 100%);
  background-size: cover;
  background-position: center;
}

.hero-left > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--sage);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sage-light);
}

.hero-title {
  margin: 0 0 0.5rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.6rem, 5.5rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-title em,
.italic {
  color: var(--ink);
  font-style: normal;
  font-weight: 300;
}

.hero-subtitle {
  margin: 0 0 2.5rem;
  color: var(--ink-mid);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1.4;
}

.hero-desc {
  max-width: 42ch;
  margin: 0 0 3rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.85;
}

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

.btn-primary,
.btn-outline,
.btn-sage,
.btn-quiet,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.95rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
}

.btn-primary,
.admin-button {
  background: var(--slate);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.admin-button:hover,
.admin-button:focus-visible {
  background: var(--slate-mid);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}

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

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

.btn-sage:hover,
.btn-sage:focus-visible {
  background: var(--sage-hover);
  transform: translateY(-1px);
}

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-mid);
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  border-color: var(--slate);
  color: var(--slate);
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: linear-gradient(152deg, var(--paper-warm) 0%, var(--sage-pale) 58%, var(--sage-mist) 100%);
}

/* Soft light pool behind the ornaments */
.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 68% 38%, rgba(184, 208, 192, 0.65) 0%, rgba(184, 208, 192, 0) 72%);
  z-index: 0;
}

/* Ornament emblems — desaturated & multiplied into the sage palette */
.hero-ornaments {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ornament {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: grayscale(0.65) sepia(0.45) hue-rotate(62deg) saturate(1.4) brightness(1.1) contrast(1.15)
    drop-shadow(10px 16px 14px rgba(51, 37, 26, 0.4)) drop-shadow(24px 38px 32px rgba(51, 37, 26, 0.22));
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}

.ornament-a {
  width: 62%;
  aspect-ratio: 3 / 2;
  top: 16%;
  right: 0%;
  opacity: 0.4;
  animation: ornament-drift 38s ease-in-out infinite;
}

@keyframes ornament-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-1.5%, 1.5%, 0) rotate(1.2deg); }
}

.hero-right::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  background: linear-gradient(to top, var(--sage-pale), transparent);
  z-index: 1;
}

.hero-info-card {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  z-index: 3;
  width: calc(100% - 4rem);
  max-width: 330px;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 4px 32px rgba(51, 37, 26, 0.14);
  transform: translateX(-50%);
}

.info-card-label {
  margin-bottom: 0.75rem;
  color: var(--ink-light);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-card-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.info-card-row:last-child {
  border-bottom: 0;
}

.info-card-day {
  color: var(--ink-light);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card-time {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.section-divider {
  height: 22px;
  margin: 0 4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'%3E%3Cpath d='M0 11c10-9 20-9 30 0s20 9 30 0 20-9 30 0 20 9 30 0 20-9 30 0 20 9 30 0 20-9 30 0 20 9 30 0' fill='none' stroke='%23E3D7C8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 120px 22px;
}

.section-ueber,
.section-zeiten {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  padding: 7rem 4rem;
}

.section-zeiten {
  grid-template-columns: 1fr 1fr;
}

.section-number {
  margin-bottom: -1rem;
  color: var(--paper-warm);
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.ueber-left h2,
.zeiten-left h2,
.termin-header h2,
.rezept-header h2,
.kontakt-left h2,
.leistungen-header h2,
.page-title {
  margin: 0;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
}

.ueber-right p {
  max-width: 58ch;
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.85;
}

.ueber-right .quote {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: normal;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--sage-light);
  border-radius: 999px;
  background: var(--sage-pale);
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-honey {
  border-color: var(--honey-light);
  background: var(--honey-pale);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.team-group-label {
  grid-column: 1 / -1;
  padding: 0.85rem 1.75rem;
  background: var(--paper-warm);
  color: var(--slate);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-group-label.partner {
  background: var(--honey-pale);
  color: var(--slate-mid);
}

.team-member {
  padding: 1.5rem 1.75rem;
  background: var(--white);
}

.team-member:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.team-member h3 {
  margin: 0 0 0.35rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.team-role {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--sage-text);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-role.partner {
  color: var(--honey-text);
}

.team-member p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 0.92rem;
  line-height: 1.7;
}

.section-leistungen,
.section-kontakt {
  position: relative;
  padding: 6rem 4rem;
  overflow: hidden;
  background: var(--slate);
  color: var(--white);
}

.section-leistungen::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(78, 122, 87, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.leistungen-header,
.termin-header,
.rezept-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.leistungen-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.leistungen-header h2,
.kontakt-left h2 {
  color: var(--white);
  font-style: normal;
}

.leistungen-header .section-label,
.kontakt-right .section-label {
  color: var(--sage-light);
}

.leistungen-header .section-label::after,
.kontakt-right .section-label::after {
  background: rgba(78, 122, 87, 0.4);
}

.leistungen-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.leistung-item {
  min-height: 220px;
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.leistung-item:nth-child(3n) {
  border-right: 0;
}

.leistung-item:nth-last-child(-n+3) {
  border-bottom: 0;
}

.leistung-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.leistung-icon,
.kontakt-row-icon {
  width: 2rem;
  height: 2rem;
  color: var(--sage-light);
}

.leistung-item h3 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.leistung-item p,
.termin-header p,
.rezept-header p,
.kontakt-left p {
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.8;
}

.termin-header p,
.rezept-header p {
  color: var(--ink);
}

.zeiten-table {
  width: 100%;
  border-collapse: collapse;
}

.zeiten-table tr {
  border-bottom: 1px solid var(--line);
}

.zeiten-table td {
  padding: 1rem 0;
  font-size: 1.02rem;
  vertical-align: top;
}

.zeiten-table td:first-child {
  width: 45%;
  color: var(--ink);
  font-weight: 500;
}

.zeiten-table td:last-child {
  color: var(--ink);
  font-weight: 400;
  text-align: right;
}

.geschlossen {
  color: var(--ink-light) !important;
  font-style: italic;
}

.notice,
.zeiten-note,
.termin-hinweis,
.rezept-hinweis {
  margin-top: 1.5rem;
  padding: 0.9rem 1.15rem;
  border-left: 2px solid var(--sage);
  border-radius: 0.75rem;
  background: var(--sage-pale);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.anmeldung-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.anmeldung-info h3 {
  margin: 0 0 0.75rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.anmeldung-info ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-mid);
  font-size: 0.92rem;
  line-height: 1.7;
}

.anmeldung-info li + li {
  margin-top: 0.4rem;
}

.termin-hinweis {
  margin: 0 0 1.75rem;
  border-color: var(--slate);
  background: var(--white);
}

.notice strong,
.termin-hinweis strong,
.rezept-hinweis strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--slate);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zeiten-right h3 {
  margin: 0 0 1.5rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
}

.kontakt-info,
.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.kontakt-row,
.kontakt-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1rem;
}

.kontakt-row-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--sage);
}

.kontakt-row-text {
  color: var(--ink);
  line-height: 1.6;
}

.kontakt-row-text strong,
.kontakt-detail-item strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.section-termin,
.section-rezept {
  padding: 6rem 4rem;
}

.section-termin {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.appointment-picker {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(253, 251, 247, 0.72);
  box-shadow: 0 14px 36px rgba(51, 37, 26, 0.1);
}

.appointment-picker-header {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.picker-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  background: var(--slate);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
}

.appointment-picker-header strong {
  display: block;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
}

.appointment-picker-header p {
  margin: 0.2rem 0 0;
  color: var(--ink-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

.picker-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.slot-day {
  margin: 0 0 1.5rem;
}

.slot-day-title {
  margin: 0 0 0.65rem;
  color: var(--ink-light);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot {
  position: relative;
  min-width: 78px;
  min-height: 46px;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--ink-mid);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.slot:hover,
.slot:focus-visible {
  border-color: var(--slate);
  color: var(--slate);
}

.slot.active {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--white);
}

.slot.empfohlen {
  border-color: var(--sage);
  color: var(--slate);
}

.slot.empfohlen::after {
  content: "●";
  position: absolute;
  top: 3px;
  right: 5px;
  color: var(--sage);
  font-size: 0.45rem;
}

.form-grid,
.termin-form,
.kontakt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

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

.form-group.full {
  grid-column: 1 / -1;
}

label,
.field-label {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkbox-label,
.radio-option label {
  letter-spacing: 0;
  text-transform: none;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  appearance: none;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  outline: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

select {
  padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(78, 122, 87, 0.14);
}

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

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

.form-checkbox {
  position: relative;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  top: 0.24rem;
  left: 0;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.form-checkbox .checkbox-control {
  position: relative;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.24rem;
  border: 1.5px solid var(--slate-mid);
  border-radius: 0.3rem;
  background: var(--white);
}

.form-checkbox input[type="checkbox"]:focus-visible + .checkbox-control {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-control {
  border-color: var(--slate);
  background: var(--slate);
}

.form-checkbox input[type="checkbox"]:checked + .checkbox-control::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.38rem;
  width: 0.35rem;
  height: 0.68rem;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
}

.radio-group {
  display: flex;
  gap: 0.45rem;
}

.radio-option {
  position: relative;
  flex: 1;
}

.radio-option input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.radio-option label {
  display: block;
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--ink-mid);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.radio-option input:checked + label {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--white);
}

.form-status {
  min-height: 1.4rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.form-status.success {
  color: var(--slate);
}

.form-status.error {
  color: var(--error);
}

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

.kontakt-left p {
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.82);
}

.kontakt-detail-item {
  color: rgba(255, 255, 255, 0.84);
}

.kontakt-detail-item svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--sage-light);
}

.kontakt-detail-item strong {
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kontakt-form input,
.kontakt-form textarea {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  border-color: var(--sage-light);
  background: rgba(255, 255, 255, 0.08);
}

.kontakt-form label {
  color: rgba(255, 255, 255, 0.84);
}

.kontakt-form .form-checkbox,
.kontakt-form .form-status {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 4rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  min-height: 100vh;
}

.legal-main {
  width: min(840px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.legal-logo {
  display: inline-block;
  margin-bottom: 3rem;
}

.legal-main h1 {
  margin: 0 0 2rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 300;
  line-height: 1.08;
}

.legal-main h2 {
  margin: 2.5rem 0 0.75rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
}

.legal-main p,
.legal-main li {
  color: var(--ink);
  font-size: 1.05rem;
}

.legal-main ul {
  padding-left: 1.2rem;
}

.rundgang-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
  background: var(--slate);
}

.login-card {
  width: min(420px, 100%);
  padding: 2rem;
  background: var(--paper);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.login-card h1,
.admin-top h1 {
  margin: 0 0 1.5rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
}

.admin-shell {
  min-height: 100vh;
  background: var(--paper);
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 247, 0.96);
}

.admin-shell .admin-top-brand {
  flex: 0 0 auto;
  gap: 0.75rem;
}

.admin-shell .admin-top .nav-logo {
  font-size: 1rem;
  white-space: nowrap;
}

.admin-top-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.admin-top-actions .btn-primary,
.admin-top-actions .btn-outline,
.admin-top-actions .btn-quiet {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  padding: 0.42rem 0.68rem;
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.admin-top-actions .admin-top-logout {
  border-color: transparent;
  color: var(--error);
}

.admin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 56px);
}

.admin-sidebar {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  background: var(--paper-warm);
}

.admin-content {
  min-width: 0;
  padding: 1.5rem;
}

.admin-section-title {
  margin: 0 0 1rem;
  color: var(--ink-light);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.request-card,
.appointment-card {
  padding: 0.85rem;
  border-left: 3px solid var(--warning);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  font-size: 0.82rem;
  cursor: pointer;
}

.request-card strong,
.appointment-card strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
}

.request-actions,
.calendar-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mini-button {
  min-height: 32px;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-button.danger {
  color: var(--error);
}

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.week-nav h2 {
  margin: 0;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
}

.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.calendar-toolbar .view-switch {
  margin-bottom: 0;
}

.calendar-jump {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.calendar-jump > label {
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-jump-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-jump input[type="date"] {
  width: auto;
  min-height: 38px;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.calendar-jump .mini-button {
  min-height: 38px;
  border-color: var(--honey);
  background: var(--honey-pale);
}

.calendar-today {
  color: var(--honey-text);
  font-size: 0.78rem;
  font-weight: 500;
  text-underline-offset: 0.2em;
}

.calendar-jump-hint {
  color: var(--ink-light);
  font-size: 0.72rem;
}

.calendar-wrap {
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 88px repeat(5, minmax(150px, 1fr));
  min-width: 840px;
}

.calendar-head,
.calendar-time,
.calendar-cell {
  min-height: 64px;
  padding: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-head {
  min-height: 72px;
  background: var(--sage-pale);
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 400;
}

.calendar-head-day,
.calendar-head-time {
  position: sticky;
  top: 0;
  z-index: 4;
}

.calendar-head-employee,
.calendar-head-corner {
  position: sticky;
  top: 72px;
  z-index: 3;
}

.calendar-head-corner {
  min-height: 44px;
}

.calendar-head-time,
.calendar-head-corner,
.calendar-time {
  position: sticky;
  left: 0;
}

.calendar-head-time {
  z-index: 6;
}

.calendar-head-corner {
  z-index: 5;
}

.calendar-time {
  z-index: 2;
}

.calendar-grid .day-boundary {
  border-left: 3px solid rgba(51, 37, 26, 0.42);
}

.calendar-time {
  color: var(--ink-light);
  font-size: 0.72rem;
}

.calendar-time,
.calendar-cell {
  min-height: 42px;
  padding: 0.3rem 0.45rem;
  border-bottom: 1px dashed rgba(51, 37, 26, 0.2);
}

.calendar-cell .appointment-card {
  padding: 0.4rem 0.5rem;
  margin-bottom: 0;
  font-size: 0.72rem;
  line-height: 1.3;
}

.calendar-cell.is-empty {
  padding: 0.3rem;
}

body.admin-shell .calendar-cell.is-unavailable {
  background: repeating-linear-gradient(135deg, rgba(51, 37, 26, 0.035) 0, rgba(51, 37, 26, 0.035) 6px, rgba(51, 37, 26, 0.075) 6px, rgba(51, 37, 26, 0.075) 7px);
}

.calendar-unavailable {
  display: block;
  padding: 0.35rem 0.2rem;
  color: var(--ink-light);
  font-size: 0.64rem;
  line-height: 1.25;
  text-align: center;
}

.calendar-time.phase-vorsorge,
.calendar-cell.phase-vorsorge {
  background: rgba(78, 122, 87, 0.08);
}

.calendar-time.phase-akut,
.calendar-cell.phase-akut {
  background: rgba(193, 83, 31, 0.09);
}

.calendar-time.phase-nachmittag,
.calendar-cell.phase-nachmittag {
  background: rgba(74, 99, 168, 0.08);
}

.calendar-phase-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 0 0 0.85rem;
  color: var(--ink-light);
  font-size: 0.72rem;
}

.calendar-phase-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.calendar-phase-legend i {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(51, 37, 26, 0.12);
  border-radius: 0.2rem;
}

.calendar-phase-legend .phase-vorsorge {
  background: rgba(78, 122, 87, 0.16);
}

.calendar-phase-legend .phase-akut {
  background: rgba(193, 83, 31, 0.17);
}

.calendar-phase-legend .phase-nachmittag {
  background: rgba(74, 99, 168, 0.16);
}

.calendar-add {
  width: 100%;
  min-height: 34px;
  border: 1px dashed transparent;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--ink-light);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.42;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.calendar-add span {
  display: inline-block;
  margin-right: 0.18rem;
  color: var(--honey-text);
  font-size: 1rem;
  line-height: 0;
}

.calendar-add:hover,
.calendar-add:focus-visible {
  border-color: var(--honey);
  background: var(--honey-pale);
  color: var(--slate);
  opacity: 1;
}

.calendar-add:active {
  transform: translateY(1px);
}

.manual-modal-context {
  margin: -0.35rem 0 1rem;
  color: var(--honey-text);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.appointment-card {
  border-left-color: var(--warning);
  border-top: 3px solid var(--ma-accent, transparent);
  background: var(--warning-bg);
  cursor: pointer;
}

.appointment-card.status-bestaetigt {
  border-left-color: var(--success);
  background: var(--success-bg);
}

.appointment-card.quelle-telefon {
  border-left-color: var(--phone);
  background: var(--phone-bg);
}

.appointment-card.quelle-email {
  border-left-color: var(--lasurblau);
  background: var(--lasurblau-pale);
}

.appointment-card.quelle-vor_ort {
  border-left-color: var(--visit);
  background: var(--visit-bg);
}

.mitarbeiter-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.mitarbeiter-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--slate);
  font-size: 0.78rem;
  cursor: pointer;
}

.mitarbeiter-filter-item input[type="checkbox"] {
  appearance: auto;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
}

.mitarbeiter-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ma-accent, var(--ink-light));
  flex: 0 0 auto;
}

.calendar-head-employee {
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--ma-accent, transparent);
  background: var(--ma-bg, var(--sage-pale));
  color: var(--slate);
  font-size: 0.7rem;
}

.view-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.view-switch-item {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.view-switch-item.is-active {
  background: var(--sage-pale);
  color: var(--ink);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  min-width: 910px;
}

.month-head {
  min-height: 40px;
  padding: 0.55rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sage-pale);
  color: var(--slate);
  font-size: 0.78rem;
}

.month-cell {
  min-height: 110px;
  padding: 0.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.month-cell.is-other-month {
  background: var(--paper);
  opacity: 0.55;
}

.month-day-number {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--ink-light);
  font-size: 0.78rem;
  text-decoration: none;
}

.appointment-card.compact {
  padding: 0.3rem 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.month-more {
  display: block;
  color: var(--ink-light);
  font-size: 0.66rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 28, 26, 0.45);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: 1rem;
}


.modal-close-x {
  position: absolute;
  top: .65rem;
  right: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.modal-close-x:hover,
.modal-close-x:focus-visible {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--white);
}

.modal-panel h2 {
  margin-top: 0;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
}

.slot-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.5rem;
}

.slot-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  letter-spacing: 0;
  text-transform: none;
}

.slot-checkboxes input[type="checkbox"] {
  appearance: auto;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
}

/* Admin dialogs stay beside the calendar so the selected day and its
   surrounding appointments remain visible while editing. */
body.admin-shell .modal {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0.75rem;
  background: rgba(28, 28, 26, 0.14);
  /* The calendar remains scrollable behind the visual backdrop. */
  pointer-events: none;
}

body.admin-shell .modal-panel {
  width: min(500px, 100%);
  max-height: none;
  height: calc(100vh - 1.5rem);
  margin-left: auto;
  overflow: auto;
  border: 1px solid rgba(231, 201, 74, 0.8);
  border-radius: 1rem;
  box-shadow: -18px 0 48px rgba(51, 37, 26, 0.15), 0 10px 28px rgba(51, 37, 26, 0.12);
  animation: admin-drawer-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes admin-drawer-in {
  from {
    opacity: 0;
    transform: translateX(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 700px) {
  body.admin-shell .modal {
    align-items: flex-end;
    padding: 0.5rem;
  }

  body.admin-shell .modal-panel {
    width: 100%;
    height: min(92vh, 760px);
    border-radius: 1rem;
    animation-name: admin-sheet-in;
  }
}

@keyframes admin-sheet-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-nav {
    height: auto;
    min-height: 68px;
    padding: 0 1.5rem;
    align-items: center;
  }

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

  .nav-links-panel {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: grid;
    grid-template-rows: 0fr;
    border: 0 solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 254, 247, 0.98);
    box-shadow: 0 18px 40px rgba(51, 37, 26, 0.12);
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, border-width 0.2s ease;
  }

  .nav-links {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
    min-height: 0;
  }

  .site-nav.menu-open {
    background: rgba(255, 254, 247, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
  }

  .site-nav.menu-open .nav-links-panel {
    grid-template-rows: 1fr;
    border-width: 1px;
    opacity: 1;
  }

  .submenu {
    position: static;
    display: flex;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: var(--paper-warm);
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .submenu li {
    border-top: 1px solid var(--line);
  }

  .submenu a {
    padding: 0.85rem 1.1rem 0.85rem 2.25rem;
    text-align: left;
    font-size: 0.9rem;
  }

  .nav-links li + li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.1rem;
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    letter-spacing: 0.04em;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-caret {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 7rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .ueber-left h2,
  .zeiten-left h2,
  .termin-header h2,
  .rezept-header h2,
  .kontakt-left h2,
  .leistungen-header h2,
  .page-title {
    font-size: 2.65rem;
  }

  .hero-right {
    height: 300px;
  }

  .section-ueber,
  .section-zeiten,
  .leistungen-header,
  .termin-header,
  .rezept-header,
  .kontakt-grid,
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-ueber,
  .section-zeiten,
  .section-termin,
  .section-rezept,
  .section-kontakt {
    padding: 4rem 1.5rem;
  }

  .section-divider {
    margin: 0 1.5rem;
  }

  .leistungen-grid {
    grid-template-columns: 1fr 1fr;
  }

  .leistung-item:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .leistung-item:nth-child(2n) {
    border-right: 0;
  }

  .leistung-item:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .leistung-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .form-grid,
  .termin-form,
  .kontakt-form,
  .picker-fields {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  html {
    font-size: 16px;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 3.15rem;
  }

  .hero-subtitle {
    font-size: 1.18rem;
  }

  .ueber-left h2,
  .zeiten-left h2,
  .termin-header h2,
  .rezept-header h2,
  .kontakt-left h2,
  .leistungen-header h2,
  .page-title {
    font-size: 2.25rem;
  }

  .legal-main h1 {
    font-size: 2.65rem;
  }

  .hero-info-card {
    bottom: 1.25rem;
    width: calc(100% - 2rem);
    padding: 1rem;
  }

  .hero-actions,
  .footer-links,
  .week-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-jump {
    justify-items: start;
  }

  .calendar-jump-controls {
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-outline,
  .btn-sage {
    width: 100%;
  }

  .leistungen-grid,
  .team-grid,
  .anmeldung-info {
    grid-template-columns: 1fr;
  }

  .leistung-item,
  .leistung-item:nth-child(2n),
  .leistung-item:nth-child(3n),
  .leistung-item:nth-last-child(-n+2),
  .leistung-item:nth-last-child(-n+3) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .inline-fields,
  .radio-group {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }

  .radio-option label,
  .radio-option:last-child label {
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .radio-option:last-child label {
    border-bottom: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    transform: none;
    transition: opacity 0.4s ease;
  }

  .ornament-a {
    animation: none;
  }

  .nav-links-panel {
    transition: opacity 0.15s ease;
  }
}

/* ============================================================
   Admin: Inhalte pflegen (Sprechzeiten, Meldungen, Einstellungen)
   ============================================================ */
.wartung-section {
  margin-bottom: 2rem;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.status-pill.ok {
  background: var(--success-bg);
  color: var(--success);
}

.status-pill.warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-pill.error {
  background: var(--warning-bg);
  color: #9f1239;
}
.meldungen-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meldungen-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--white);
}

.meldungen-item-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.meldung-typ-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.meldung-typ-info { color: #1d4ed8; }
.meldung-typ-warnung { color: #b45309; }
.meldung-typ-wichtig { color: #b91c1c; }

.meldung-status {
  font-size: 0.78rem;
}
.meldung-status.is-live { color: var(--success); }
.meldung-status.is-hidden { color: var(--ink-light); }

.meldung-text-preview {
  margin: 0.25rem 0;
  color: var(--ink-mid);
}

.meldung-zeitraum {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.meldungen-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.meldung-neu-title,
.meldung-neu-form {
  margin-top: 1rem;
}

.sprechzeiten-edit-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.sprechzeiten-edit-table th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  padding: 0.35rem 0.4rem;
}

.sprechzeiten-edit-table td {
  padding: 0.3rem 0.4rem;
  vertical-align: middle;
}

.sprechzeiten-edit-table input[type="text"] {
  width: 100%;
}

.sprechzeiten-edit-table input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  appearance: auto;
  accent-color: var(--sage);
  cursor: pointer;
}

.sprechzeiten-edit-closed {
  text-align: center;
  width: 5.5rem;
}

/* ============================================================
   Admin Dashboard (neues Layout)
   ============================================================ */
.admin-top-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-top-label {
  color: var(--ink-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-top-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.1rem 0.4rem;
  background: var(--slate);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.admin-badge-lg {
  font-size: 0.78rem;
  padding: 0.2rem 0.65rem;
}

.admin-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-notice {
  margin-bottom: 1.5rem;
}

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

.dash-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
}

.dash-card-full {
  grid-column: 1 / -1;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dash-card h2 {
  margin: 0;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
}

.dash-card-desc {
  margin: 0 0 1rem;
  color: var(--ink-mid);
  font-size: 0.92rem;
  line-height: 1.65;
}

.btn-sm {
  min-height: 36px;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
}

.dash-expand {
  /* controlled via hidden attribute */
}

.dash-form-box {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--sage-pale);
  margin-top: 1rem;
}

.dash-subhead {
  margin: 0 0 1rem;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
}

.dash-subhead-lg {
  margin: 0;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.dash-zeiten-preview {
  max-width: 380px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.perioden-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.periode-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
}

.periode-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

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

  .admin-dashboard {
    padding: 1.25rem;
  }
}

/* Admin: Terminsuche */
.admin-search {
  margin-bottom: 1.5rem;
}

.admin-search input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
}

.suche-ergebnisse {
  margin-top: 0.75rem;
}

.suche-gruppe-titel {
  margin: 0.75rem 0 0.4rem;
  color: var(--ink-light);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.suche-treffer {
  display: block;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.4rem;
  border-left: 3px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
}

.suche-treffer:hover,
.suche-treffer:focus-visible {
  border-left-color: var(--success);
}

.suche-treffer strong {
  display: block;
  color: var(--slate);
  font-weight: 500;
}

.suche-treffer span {
  color: var(--ink-light);
  font-size: 0.74rem;
}

/* Admin: Mitarbeiter, Verfuegbarkeit, Abwesenheiten */
.mitarbeiter-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.mitarbeiter-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.mitarbeiter-name.is-inactive {
  color: var(--ink-light);
}

.mitarbeiter-name em {
  margin-left: 0.4rem;
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.mitarbeiter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mitarbeiter-actions .form-status {
  margin-top: 0;
}

.verfuegbarkeit-details {
  flex-basis: 100%;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.verfuegbarkeit-details summary {
  cursor: pointer;
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verfuegbarkeit-table {
  width: 100%;
  margin: 0.75rem 0;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.verfuegbarkeit-table th,
.verfuegbarkeit-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.verfuegbarkeit-table th {
  color: var(--ink-light);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verfuegbarkeit-table input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  appearance: auto;
  accent-color: var(--sage);
}

.abwesenheiten-title {
  margin: 1rem 0 0.5rem;
  color: var(--ink-light);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.abwesenheiten-list {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.abwesenheiten-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.abwesenheit-form {
  margin-top: 0.5rem;
}

/* Dashboard drag-and-drop */
.calendar-cell[data-drop-date] {
  transition: background-color .15s ease, box-shadow .15s ease;
}
.calendar-cell.is-drop-target {
  background: #e4f2ea;
  box-shadow: inset 0 0 0 2px #2f8f5b;
}
.calendar-cell.is-drop-invalid {
  background: #f8e4e0;
  box-shadow: inset 0 0 0 2px #b3491f;
}
.appointment-card[draggable="true"] {
  cursor: grab;
}
.appointment-card.is-dragging {
  opacity: .45;
  cursor: grabbing;
}
.appointment-card.is-saving {
  opacity: .65;
  pointer-events: none;
}
.calendar-cell.is-drop-target,
.calendar-cell.is-drop-committed {
  position: relative;
  z-index: 2;
  background: #d8efdf;
  box-shadow: inset 0 0 0 3px #2f8f5b, 0 0 0 3px rgba(47, 143, 91, .18);
}
.calendar-cell.is-drop-target::after,
.calendar-cell.is-drop-committed::after {
  position: absolute;
  z-index: 3;
  top: .35rem;
  right: .35rem;
  left: .35rem;
  padding: .35rem .45rem;
  border-radius: .25rem;
  background: #2f8f5b;
  color: #fff;
  content: attr(data-drop-label);
  font-size: .68rem;
  line-height: 1.25;
  pointer-events: none;
  text-align: center;
}
.calendar-cell.is-drop-committed::after {
  background: #1d6fa8;
}

/* Hilfe (admin/hilfe.php) */
.hilfe-toc #hilfe-suche {
  width: 100%;
  margin-bottom: 1.25rem;
}

.hilfe-toc nav {
  display: flex;
  flex-direction: column;
}

.hilfe-toc-link {
  padding: 0.4rem 0.25rem;
  border-radius: 0.4rem;
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
}

.hilfe-toc-link:hover,
.hilfe-toc-link:focus-visible {
  background: var(--sage-pale);
}

.hilfe-toc-num {
  margin-right: 0.4rem;
  color: var(--sage-text);
  font-weight: 600;
}

.hilfe-content {
  max-width: 760px;
}

.hilfe-section {
  margin-bottom: 2.5rem;
}

.hilfe-section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  scroll-margin-top: 1rem;
}

.hilfe-section h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--sage-text);
  font-size: 1rem;
  scroll-margin-top: 1rem;
}

.hilfe-section p,
.hilfe-section ul,
.hilfe-section ol {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.hilfe-section table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hilfe-section th,
.hilfe-section td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hilfe-section th {
  color: var(--ink-light);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hilfe-section code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--paper-warm);
  font-size: 0.85em;
}

.hilfe-quickbox {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--sage-light);
  border-radius: 0.75rem;
  background: var(--sage-pale);
  margin-bottom: 1rem;
}

.hilfe-quickbox table {
  margin: 0;
}

.hilfe-callout {
  padding: 0.75rem 1rem;
  border: 1px solid;
  border-radius: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hilfe-callout-label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hilfe-callout.hilfe-tip {
  border-color: var(--lasurblau-light);
  background: var(--lasurblau-pale);
  color: var(--lasurblau-deep);
}

.hilfe-callout.hilfe-warn {
  border-color: var(--senf);
  background: var(--senf-pale);
  color: var(--honey-text);
}

.hilfe-callout.hilfe-danger {
  border-color: var(--karmin);
  background: var(--karmin-pale);
  color: var(--karmin);
}

.hilfe-checklist {
  list-style: none;
  padding-left: 0;
}

.hilfe-checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.hilfe-checklist li::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--ink-light);
  border-radius: 0.25rem;
}
