@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #eef4e8;
  --bg-strong: #d9e6cf;
  --ink: #172017;
  --muted: #3f4d3e;
  --accent: #2f6f2d;
  --accent-dark: #174c24;
  --accent-rgb: 47, 111, 45;
  --accent-dark-rgb: 23, 76, 36;
  --leaf: #6fae28;
  --brown: #9b5134;
  --brown-dark: #6f3a24;
  --brown-rgb: 155, 81, 52;
  --paper: #fbfaf5;
  --line: rgba(23, 32, 23, 0.12);
  --shadow: 0 24px 60px rgba(18, 31, 16, 0.18);
  --radius: 26px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 18%, #fffdf4 0%, var(--bg) 54%, var(--bg-strong) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

html.js-loading .page,
html.js-loading .auth-page,
html.js-loading .cookie-banner {
  opacity: 0;
  visibility: hidden;
}

html.js-enabled:not(.cookie-ready) .cookie-banner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.js-loading body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(circle at 50% 35%, #fffdf4 0%, var(--bg) 55%, var(--bg-strong) 100%);
}

html.js-loading body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 3px solid rgba(var(--accent-rgb), 0.18);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: boot-spin 0.8s linear infinite;
}

html.js-ready .page,
html.js-ready .auth-page {
  animation: page-fade-in 0.22s ease both;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js-loading body::after {
    animation: none;
  }

  html.js-ready .page,
  html.js-ready .auth-page {
    animation: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 50px;
  position: relative;
  transition: filter 0.2s ease;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}

.page::before {
  width: 320px;
  height: 320px;
  top: -120px;
  right: 0;
  background: rgba(var(--accent-rgb), 0.2);
}

.page::after {
  width: 280px;
  height: 280px;
  bottom: 80px;
  left: 0;
  background: rgba(var(--brown-rgb), 0.14);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(18, 31, 16, 0.12);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: clamp(138px, 15vw, 190px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 10px 18px rgba(var(--accent-dark-rgb), 0.2));
  transition: transform 0.2s ease, filter 0.2s ease;
  flex: 0 0 auto;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 22px rgba(var(--accent-dark-rgb), 0.26));
}

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

.auth-flag {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  max-width: 240px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auth-flag:hover,
.auth-flag:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.12);
  outline: none;
  transform: translateY(-1px);
}

.auth-flag[hidden] {
  display: none !important;
}

.auth-flag-label {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 600;
}

.auth-flag-user {
  font-weight: 500;
  word-break: break-word;
}

.brand-name {
  font-family: "Poppins", "Trebuchet MS", sans-serif;
  font-size: 21px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.brand:hover .brand-name {
  color: var(--accent-dark);
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: break-word;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.08);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav-link {
  background: none;
  border: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  padding: 0 6px;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-dark);
}

.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
  margin-top: 6px;
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--paper);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  min-width: 220px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-link {
  font-size: 14px;
  color: var(--ink);
  padding: 6px 8px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link.active {
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.1);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

main {
  display: grid;
  gap: 80px;
  padding: 60px 0 20px;
  min-width: 0;
}

.section {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent-dark);
}

h1 {
  font-size: 46px;
  line-height: 1.1;
  hyphens: auto;
  overflow-wrap: break-word;
}

h2 {
  font-size: 32px;
  hyphens: auto;
  overflow-wrap: break-word;
}

p {
  line-height: 1.7;
  overflow-wrap: break-word;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  min-width: 0;
}

.hero-text {
  font-size: 16px;
  color: var(--muted);
  margin-top: 14px;
}

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

.termine-main {
  gap: 34px;
}

.termine-intro {
  grid-template-columns: minmax(0, 760px);
  gap: 0;
}

.termine-intro .section {
  gap: 16px;
}

.termine-intro .hero-text {
  margin-top: 0;
}

.termine-intro .hero-actions {
  margin-top: 4px;
}

.btn {
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--accent-dark-rgb), 0.35);
}

.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(var(--accent-dark-rgb), 0.4);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}

.btn.outline {
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn.outline:hover {
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}

.modal-open {
  overflow: hidden;
}

.modal-open .page {
  filter: blur(3px);
}

.hero-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-image {
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(18, 31, 16, 0.22);
}

.vegetus-meaning-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-media.vegetus-meaning-image {
  height: auto;
}

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

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

.card {
  background: rgba(251, 247, 241, 0.8);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(18, 31, 16, 0.12);
  display: grid;
  gap: 12px;
  min-width: 0;
}

.card h3 {
  font-size: 22px;
  hyphens: auto;
  overflow-wrap: break-word;
}

.card p {
  color: var(--muted);
}

.media-card {
  display: grid;
  gap: 16px;
}

.media-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.split-card {
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 26px;
}

.split-content {
  display: grid;
  gap: 12px;
}

.split-media {
  width: 100%;
  height: 360px;
  object-fit: cover;
  justify-self: end;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.schedule-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(18, 31, 16, 0.12);
  display: grid;
  gap: 12px;
  border: 1px solid transparent;
  min-width: 0;
}

.schedule-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.schedule-card h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: break-word;
}

.schedule-card p {
  color: var(--muted);
}

.schedule-card--featured {
  border-color: rgba(var(--accent-rgb), 0.44);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), var(--paper) 42%);
  box-shadow: 0 22px 48px rgba(var(--accent-dark-rgb), 0.2);
}

.schedule-card--featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--leaf));
}

.schedule-featured-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--accent-dark);
}

.schedule-card--skeleton {
  min-height: 190px;
  gap: 16px;
  pointer-events: none;
}

.schedule-skeleton-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.skeleton-line {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(27, 26, 23, 0.07) 0%,
    rgba(var(--accent-rgb), 0.14) 46%,
    rgba(27, 26, 23, 0.07) 100%
  );
  background-size: 220% 100%;
  animation: skeleton-pulse 1.35s ease-in-out infinite;
}

.skeleton-line--date {
  width: 96px;
  height: 14px;
}

.skeleton-line--location {
  width: 76px;
  height: 14px;
}

.skeleton-line--title {
  width: 78%;
  height: 26px;
}

.skeleton-line--text {
  width: 100%;
  height: 13px;
}

.skeleton-line--text.short {
  width: 68%;
}

.skeleton-line--tag {
  width: 112px;
  height: 12px;
  margin-top: 2px;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.callout {
  background: linear-gradient(130deg, rgba(var(--accent-rgb), 0.16), rgba(var(--brown-rgb), 0.1));
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.not-found-main {
  gap: 42px;
}

.not-found-hero {
  min-height: 44vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: clamp(46px, 9vw, 92px) 0 18px;
}

.not-found-hero h1 {
  max-width: 760px;
}

.not-found-hero .hero-text {
  max-width: 680px;
  margin-top: 0;
}

.not-found-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.not-found-links .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.not-found-links .card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 22px 48px rgba(18, 31, 16, 0.16);
}

.listing {
  display: grid;
  gap: 12px;
}

.listing a {
  color: var(--accent-dark);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.listing a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.info-section {
  display: grid;
  gap: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
}

.info-card {
  display: grid;
  gap: 12px;
}

.link-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.link-list a {
  color: var(--accent-dark);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.link-list a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.info-note {
  color: var(--muted);
  font-size: 14px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  min-width: 0;
}

.tile-card {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 31, 16, 0.14);
  display: grid;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(18, 31, 16, 0.18);
}

.tile-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.tile-body {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.tile-body p {
  color: var(--muted);
  font-size: 13px;
}

.contact-form {
  background: rgba(251, 247, 241, 0.9);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field[hidden] {
  display: none !important;
}

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

.form-field label {
  font-size: 14px;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  padding: 10px 4px;
  font-size: 16px;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field--select {
  position: relative;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-shell select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 14px 14px 0 0;
  padding: 9px 40px 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  min-height: 48px;
  box-shadow: inset 0 0 0 1px rgba(27, 26, 23, 0.04);
}

.select-shell select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
}

.select-shell select option {
  color: var(--ink);
}

.form-span {
  grid-column: 1 / -1;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.form-inline input {
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: center;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.form-check {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(540px, 100%);
  display: grid;
  grid-template-columns: 1fr;
}

.auth-panel {
  background: rgba(251, 247, 241, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-panel {
  display: grid;
  gap: 18px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-mode-toggle {
  border: none;
  background: transparent;
  padding: 0;
  justify-self: start;
  font: inherit;
  font-size: 14px;
  color: var(--accent-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.auth-mode-toggle:hover {
  color: var(--accent);
}

.termin-admin-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.auth-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--muted);
}

.termin-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.termin-admin-list {
  display: grid;
  gap: 16px;
}

.termin-admin-item {
  display: grid;
  gap: 12px;
}

.termin-admin-panel {
  display: grid;
  gap: 18px;
}

.termin-editor-panel {
  gap: 12px;
}

.termin-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.termin-admin-header h2 {
  font-size: 28px;
}

.termin-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.termin-admin-badge.secondary {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--leaf);
}

.termin-admin-item {
  border: 1px solid rgba(27, 26, 23, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.termin-admin-item.schedule-card--featured {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 247, 241, 0.86));
}

.termin-admin-item .schedule-date strong {
  color: var(--accent-dark);
}

.termin-admin-item .auth-actions {
  justify-content: flex-start;
}

.termin-admin-item .info-note {
  color: var(--muted);
}

.termin-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.termin-admin-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 26, 23, 0.06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.termin-admin-chip.published {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--leaf);
}

.termin-admin-chip.draft {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
}

.termin-admin-chip.archived {
  background: rgba(27, 26, 23, 0.08);
  color: var(--muted);
}

.termin-admin-actions {
  display: flex;
  justify-content: flex-start;
}

.termin-admin-save {
  min-width: 0;
}

.termin-editor-panel .contact-form {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  gap: 16px;
}

.termin-editor-card {
  padding: 24px;
  border: 1px solid rgba(27, 26, 23, 0.08);
  gap: 16px;
}

.termin-editor-card input,
.termin-editor-card textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.termin-editor-card input::placeholder,
.termin-editor-card textarea::placeholder {
  color: rgba(75, 68, 60, 0.58);
}

.termin-editor-card input:focus,
.termin-editor-card textarea:focus {
  outline: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.termin-editor-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 180px);
  gap: 18px;
  align-items: center;
}

.termin-editor-date-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.termin-editor-date-row input[type="date"] {
  width: 132px;
  padding: 3px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.termin-editor-date-separator {
  color: var(--muted);
  font-size: 14px;
}

.termin-editor-card .termin-editor-location-input {
  max-width: none;
  padding: 3px 4px;
  text-align: right;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.termin-editor-card .termin-editor-location-input::placeholder {
  color: var(--accent-dark);
  opacity: 0.72;
}

.termin-editor-card__title {
  min-width: 0;
}

.termin-editor-card__title input {
  padding: 2px 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.termin-editor-card__description {
  min-width: 0;
}

.termin-editor-card__description textarea {
  display: block;
  min-height: 118px;
  resize: vertical;
  padding: 2px 4px;
  color: var(--muted);
  line-height: 1.7;
}

.termin-editor-card__tag input {
  width: min(240px, 100%);
  padding: 2px 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.termin-editor-extra {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(27, 26, 23, 0.08);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 18px;
}

.termin-editor-extra label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.termin-editor-extra input:not([type="checkbox"]) {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 10px 0 12px;
}

.termin-editor-extra input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--accent);
}

.form-help {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  align-items: start;
}

.termin-editor-extra .form-field {
  align-content: start;
}

.termin-editor-panel .select-shell select {
  min-height: 46px;
  padding-top: 8px;
  padding-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.termin-editor-panel .select-shell::after {
  right: 12px;
}

.select-shell--custom::after {
  display: none;
}

.select-shell--custom select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select__button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(27, 26, 23, 0.08);
  border-bottom: 2px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  padding: 10px 42px 10px 14px;
  position: relative;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.custom-select__button::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.select-shell--custom.is-open .custom-select__button {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.select-shell--custom.is-open .custom-select__button::after {
  transform: translateY(-30%) rotate(225deg);
}

.custom-select__button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.custom-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(27, 26, 23, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(18, 31, 16, 0.18);
}

.select-shell--custom.is-open .custom-select__menu {
  display: grid;
}

.custom-select__option {
  width: 100%;
  border: none;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-select__option:hover,
.custom-select__option:focus-visible {
  outline: none;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent-dark);
}

.custom-select__option.is-selected {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--leaf);
  font-weight: 700;
}

.termin-editor-extra .termin-feature-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 1px solid rgba(27, 26, 23, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.termin-editor-extra .termin-feature-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.termin-feature-toggle__track {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(27, 26, 23, 0.16);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.termin-feature-toggle__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(18, 31, 16, 0.18);
  transition: transform 0.2s ease;
}

.termin-feature-toggle input:checked ~ .termin-feature-toggle__track {
  background: var(--accent);
}

.termin-feature-toggle input:checked ~ .termin-feature-toggle__track::after {
  transform: translateX(20px);
}

.termin-feature-toggle input:focus-visible ~ .termin-feature-toggle__track {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.termin-feature-toggle__text {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
}

.termin-feature-toggle__text strong {
  color: var(--ink);
  font-size: 14px;
}

.termin-feature-toggle__text small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.termin-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.termin-delete-modal[hidden] {
  display: none !important;
}

.termin-delete-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 14, 0.42);
  backdrop-filter: blur(10px);
}

.termin-delete-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(17, 13, 9, 0.28);
  padding: 34px 30px 30px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.termin-delete-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.16);
  color: #ff7a00;
  font-size: 28px;
  font-weight: 700;
}

.termin-delete-modal__dialog h2 {
  font-size: 34px;
}

.termin-delete-modal__dialog p {
  color: var(--muted);
  font-size: 18px;
}

.termin-delete-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.termin-delete-modal .btn {
  min-width: 130px;
}

.termin-delete-modal .btn.primary {
  box-shadow: none;
}

.auth-logout-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-logout-modal[hidden] {
  display: none !important;
}

.auth-logout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 14, 0.42);
  backdrop-filter: blur(10px);
}

.auth-logout-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(17, 13, 9, 0.28);
  padding: 34px 30px 30px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.auth-logout-modal__dialog:focus {
  outline: none;
}

.auth-logout-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 0, 0.16);
  color: #ff7a00;
  font-size: 28px;
  font-weight: 700;
}

.auth-logout-modal__dialog h2 {
  font-size: 34px;
}

.auth-logout-modal__dialog p {
  color: var(--muted);
  font-size: 18px;
}

.auth-logout-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.auth-logout-modal .btn {
  min-width: 130px;
}

.auth-logout-modal .btn.primary {
  box-shadow: none;
}

.footer {
  display: grid;
  gap: 18px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  width: 96px;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 10px 18px rgba(var(--accent-dark-rgb), 0.16));
  flex: 0 0 auto;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}

.footer-contact-block {
  display: grid;
  gap: 6px;
  align-content: start;
}

.footer-heading {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.footer-contact-block a {
  color: var(--accent-dark);
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--accent-dark);
  transition: color 0.2s ease, transform 0.2s ease;
}

.tag:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 320px;
  display: grid;
  gap: 12px;
  z-index: 50;
}

.cookie-banner a {
  color: var(--accent-dark);
  font-weight: 600;
  transition: color 0.2s ease;
}

.cookie-banner a:hover {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-actions .accept {
  background: var(--accent);
  color: #fff;
}

.cookie-actions .accept:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.cookie-actions .decline {
  background: transparent;
  border: 1px solid var(--line);
}

.cookie-actions .decline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.spacer {
  height: 6px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media {
    height: 280px;
    max-width: 440px;
    justify-self: start;
  }

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

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

  .termin-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    border-radius: 24px;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-logo {
    width: clamp(126px, 42vw, 168px);
    height: auto;
  }

  .brand-text {
    width: min(100%, 260px);
    max-width: none;
  }

  .brand-tag {
    font-size: 11px;
    line-height: 1.35;
  }

  .auth-flag {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .main-nav {
    position: static;
    justify-self: end;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    white-space: nowrap;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--paper);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 12px;
    width: auto;
    min-width: 0;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .dropdown {
    position: static;
    box-shadow: none;
    padding: 8px 0 0 12px;
    background: transparent;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-width: auto;
  }

  .page {
    padding-inline: 16px;
  }

  .page::before,
  .page::after {
    display: none;
  }

  .grid-3,
  .grid-2,
  .schedule-grid,
  .not-found-links {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .footer-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    align-items: flex-start;
  }

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

  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .termin-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .termin-admin-header {
    flex-direction: column;
  }

  .form-grid--compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .termin-editor-card__top {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }

  .termin-editor-card .termin-editor-location-input {
    max-width: 100%;
    text-align: left;
  }

  .termin-editor-date-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .termin-editor-date-row input[type="date"] {
    width: min(160px, 100%);
  }

  h1 {
    font-size: clamp(29px, 8vw, 36px);
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .skeleton-line {
    animation: none;
  }
}
