:root {
  --max: 64rem;
  --text: #0f172a;
  --bg_white: #ffffff;
  --muted: #475569;
  --accent: #2563eb;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --important: rgba(243, 84, 166, 0.3);
}

* {
  box-sizing: border-box;
}

/* === Grundlayout === */
html body {
  scroll-padding-top: 4.25rem;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-size: clamp(12px, 1.5vw, 16px);
  line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg_white);
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 1rem;
}

/* === Header + Navigation === */
header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

nav ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  background: var(--surface);
  text-decoration: underline;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: #fdf6e3;
  font-weight: 600;
  font-size: 1rem; /* gleichmäßige Schriftgröße */
  transition: background 0.2s ease, transform 0.1s ease;
}

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

.btn.primary {
  background: #f7dd98;
  color: #000000;
  border-color: transparent;
}

/* === Hero-Bereich === */
.hero {
  background: linear-gradient(180deg, #fdf6e3, #ffffff);
  border-bottom: 1px solid var(--border);
}

.hero.hero-text .inner {
  display: block;
}

.hero .inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 1rem 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  margin: 0.25rem 0 2rem;
}

.hero .subheading {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 600;
  font-style: italic;
  margin: 0 1rem 2rem;
  color: #000000;
}

.hero p {
  color: var(--muted);
  margin: 0 1rem 2rem;
  font-size: clamp(1rem, 2vw, 1.4rem); /* wieder größer für normalen Text */
}

.hero p.lead,
.hero p.highlight {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem); /* kleiner für Hints */
}

.hero .highlight {
  color: #000000;
  font-weight: 600;
}

.cta {
  display: flex;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  flex-wrap: wrap;
}

/* === Sektionen === */
section {
  padding: 2.5rem 0;
}

section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

section p.lead {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  color: var(--muted);
  margin: 0.25rem 0 1.25rem;
}

/* === Karten / Container === */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.placeholder {
  aspect-ratio: 16/10;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.foot {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

/* === Formulare === */
form.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--text);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

form .checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

form button.btn.primary {
  margin-top: 1.5rem;
  cursor: pointer;
  font-size: 1rem;
}

/* === Info-Karten / FAQ === */
#anmeldeinfo .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#anmeldeinfo .card h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

#anmeldeinfo .card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* === Flash-Messages === */
#flash-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: 0.6rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInOut 5s ease forwards;
}

.flash.success {
  background: #16a34a;
}

.flash.error {
  background: #dc2626;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* === Kontaktbereich === */
#kontakt h2 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  margin-bottom: 1rem;
}

/* === Dropdown-Höhe Event === */
#event {
  height: 3rem;
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
}

/* === Mobile Anpassungen === */
@media (max-width: 600px) {
  .nav {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .brand span {
    font-size: 0.9rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.4rem;
  }

  nav a.btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  z-index: 1000;
}

#termine .list li {
  font-size: 1.5rem;     /* größerer Text */
  padding: 0.5rem 0;     /* mehr Abstand zwischen Terminen */
}

p.hint {
  font-size: 0.85rem; /* kleiner */
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}



