/* ==========================================================================
   BetaBe Events - Global Styles
   Reset, Design-Tokens, Typografie, Header/Footer, Buttons, Cards, Platzhalter
   ========================================================================== */

/* --- Schriften: lokal gehostet, keine Verbindung zu Google (Lizenz: OFL, siehe assets/fonts/) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --color-bg: #000000;         /* Schwarz */
  --color-bg-alt: #0a0f1e;     /* Card-/Sektions-Flaeche, Navy von betabe.de */
  --color-text: #f0f4ff;       /* Haupttext, von betabe.de */
  --color-text-muted: #99a7c3; /* Sekundaertext, von betabe.de */
  --color-accent: #3b82f6;     /* BetaBe-Blau */
  --color-accent-2: #60a5fa;   /* helles Blau fuer Gradients */
  --color-accent-3: #93c5fd;   /* hellstes Blau fuer Hover/Highlight */
  --gradient-primary: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Abgeleitete Tokens */
  --color-border: rgba(240, 244, 255, 0.10);
  --color-border-strong: rgba(240, 244, 255, 0.22);
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --space-section: clamp(3.5rem, 8vw, 7rem);
  --wrap: 1180px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--color-accent-3); }

:focus-visible {
  outline: 2px solid var(--color-accent-3);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --- Typografie ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 600; }

p { color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 600; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout-Helfer -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

main { flex: 1; }

.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.section-head p { max-width: 52ch; margin-top: 0.5rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.6rem;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.38);
}

.btn--ghost {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  background: rgba(240, 244, 255, 0.04);
}
.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-accent-3);
  background: rgba(147, 197, 253, 0.08);
  transform: translateY(-2px);
}

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--sm { padding: 0.7em 1.15em; font-size: 0.85rem; }
.btn--lg { padding: 1.1em 2.1em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn--disabled { opacity: 0.45; pointer-events: none; }

/* --- Header / Navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Bildmarke + Wortmarke. Wer nur das Icon will, loescht .logo__text im HTML. */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }

.logo__text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--color-text);
}
.logo__text span {
  margin-left: 0.5em;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.site-footer .logo img { height: 52px; }
.site-footer .logo__text { font-size: 1.35rem; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav__link:hover { color: var(--color-text); background: rgba(240, 244, 255, 0.06); }
.nav__link[aria-current="page"] { color: var(--color-text); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--gradient-primary);
}

.nav__cta { margin-left: 10px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  /* Hinweis: nicht position:fixed - der Header hat backdrop-filter und waere
     damit der Containing Block. Deshalb absolut zum Header positioniert. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--color-bg);
    padding: 28px 20px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav__link {
    display: block;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 0.6em 0.2em;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"] { color: var(--color-accent); }
  .nav__link[aria-current="page"]::after { display: none; }

  .nav__cta { margin: 24px 0 0; }
  .nav__cta .btn { width: 100%; }

  body.nav-open { overflow: hidden; }
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding-block: 3rem 2rem;
  margin-top: auto;
}

/* Kompakt gehalten: Marke und Socials nebeneinander, darunter eine Zeile
   mit den Rechtsseiten. Auf dem Handy bleibt das kurz statt endlos lang. */
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__brand { min-width: 0; }

.site-footer__tagline {
  margin-top: 0.7rem;
  max-width: 34ch;
  font-size: 0.9rem;
}

.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.socials a:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}
.socials svg { width: 20px; height: 20px; }

.site-footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Rechtsseiten als eine umbrechende Zeile statt als Liste */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer__legal a { color: var(--color-text-muted); }
.site-footer__legal a:hover { color: var(--color-text); }

.site-footer__meta { font-size: 0.85rem; }
.site-footer__meta a { color: var(--color-text-muted); }
.site-footer__meta a:hover { color: var(--color-text); }

@media (max-width: 599px) {
  .site-footer { padding-block: 2rem 1.5rem; }

  /* Logo und Socials in eine Zeile, Tagline darunter - spart eine Reihe */
  .site-footer__top { gap: 10px 14px; }
  .site-footer__brand { display: contents; }
  .site-footer__top .logo { order: 1; }
  .site-footer__top .socials { order: 2; }
  .site-footer__tagline { order: 3; flex-basis: 100%; margin-top: 0; font-size: 0.85rem; max-width: 34ch; }

  .site-footer .logo { gap: 9px; }
  .site-footer .logo img { height: 38px; }
  .site-footer .logo__text { font-size: 1.05rem; }
  .site-footer .socials { gap: 8px; }
  .site-footer .socials a { width: 36px; height: 36px; border-radius: 10px; }
  .site-footer .socials svg { width: 17px; height: 17px; }

  .site-footer__bottom { margin-top: 1.1rem; padding-top: 1rem; gap: 6px 16px; }
  .site-footer__legal { gap: 4px 14px; font-size: 0.8rem; }
  .site-footer__meta { font-size: 0.78rem; }
}

/* --- Media-Platzhalter ---------------------------------------------------- */
/* Prinzip: .media enthaelt immer den CSS-Platzhalter (kein externer Bilddienst).
   Ein echtes <img>/<video> liegt darueber. Fehlt die Datei, versteckt der
   onerror-Handler das Medium und der Platzhalter wird wieder sichtbar. */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  isolation: isolate;
}

.media--16-9 { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--free { aspect-ratio: auto; }

.media img,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s var(--ease);
}

.media img[hidden],
.media video[hidden] { display: none; }

.media__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  color: var(--color-text-muted);
  background:
    radial-gradient(120% 110% at 20% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(120% 110% at 90% 100%, rgba(59, 130, 246, 0.18), transparent 60%),
    var(--color-bg-alt);
  border: 1px dashed var(--color-border-strong);
  border-radius: inherit;
}

.media__placeholder svg { width: 30px; height: 30px; opacity: 0.6; }

.media__placeholder span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Event-Card (Home + Events-Seite, identische Komponente) -------------- */
.card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Quadratische Card: Foto vollflaechig, Titel gross in der Mitte,
   unten Datum/Location links und der Ticket-Button rechts. */
.event-card {
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(240, 244, 255, 0.16);
  background: var(--color-bg-alt);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
  cursor: pointer;
}

.event-card:hover,
.event-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(240, 244, 255, 0.32);
  box-shadow: var(--shadow-card);
}
.event-card:hover .media img { transform: scale(1.06); }

/* Hintergrundfoto */
.event-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  height: 100%;
}

/* Weicher Verlauf ueber dem Foto - Mitte fast klar, unten dunkel fuer die
   Textzeile. Kein harter Schnitt, damit der Uebergang ruhig wirkt. */
.event-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.18) 30%,
    rgba(0, 0, 0, 0.34) 58%,
    rgba(0, 0, 0, 0.72) 80%,
    rgba(0, 0, 0, 0.90) 100%
  ); */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  transition: opacity 0.35s var(--ease);
}
.event-card:hover .event-card__shade { opacity: 0.9; }

.event-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(16px, 4%, 24px);
}

.event-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(59, 130, 246, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.event-card__badge--past { background: rgba(0, 0, 0, 0.55); }

/* Der Titel steht im Cover-Bild selbst. Hier bleibt er unsichtbar, dient aber
   als Link ueber die ganze Card (und als Name fuer Screenreader). */
.event-card__title {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.event-card__title a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

/* Fusszeile: Datum + Location links, Ticket-Button rechts */
.event-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.event-card__date {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.1vw + 0.7rem, 1.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.event-card__place {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 244, 255, 0.78);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card__ticket {
  position: relative;
  z-index: 3; /* liegt ueber dem Card-Link, damit der Ticket-Klick gewinnt */
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              filter 0.25s var(--ease);
}
.event-card__ticket:hover {
  color: #fff;
  transform: scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45);
}

/* Glas-Variante fuer vergangene Events und wenn es noch keine Tickets gibt */
.event-card__ticket--ghost,
.event-card__ticket--off {
  background: rgba(240, 244, 255, 0.12);
  border: 1px solid rgba(240, 244, 255, 0.26);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.event-card__ticket--off { opacity: 0.75; pointer-events: none; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(240, 244, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* --- Zustaende (leer / laedt) -------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 24px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: rgba(240, 244, 255, 0.02);
}
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { max-width: 42ch; margin-inline: auto; }
.empty-state .btn { margin-top: 1.5rem; }

.is-loading {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 1rem 0;
}

/* --- Formulare (Kontakt + Reservierung) ---------------------------------- */
.field { display: grid; gap: 8px; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field label .optional {
  margin-left: 0.5em;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  opacity: 0.75;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95em 1.05em;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder { color: rgba(153, 167, 195, 0.65); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--color-accent); }

.field__error { font-size: 0.82rem; color: var(--color-accent-3); }
.field__error[hidden] { display: none; }

/* Zwei Felder nebeneinander, sobald Platz da ist (z. B. Vor-/Nachname) */
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.form-card[hidden] { display: none; }

.form-note {
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border-strong);
  background: rgba(240, 244, 255, 0.03);
}
.form-note a { color: var(--color-accent-3); text-decoration: underline; }
.form-note a:hover { color: var(--color-text); }

/* Erfolgsmeldung nach dem Absenden */
.form-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: clamp(32px, 7vw, 54px) clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.form-success[hidden] { display: none; }

.form-success h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.form-success p { max-width: 42ch; }
.form-success .btn { margin-top: 1rem; }

.form-success__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
}
.form-success__icon svg { width: 30px; height: 30px; }
