/* BM-Webdesign – Übergangsseite */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Markenfarben aus dem Logo */
  --pink: #ed0d91;
  --purple: #9b176a;
  --cyan: #00adef;
  --navy: #03466e;

  --bg: #ffffff;
  --surface: #f5f8fa;
  --text: #03466e;
  --muted: #4d6f86;
  --border: #dbe5eb;

  --radius: 999px;
  --max: 44rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pink);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Startseite ---------- */

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Dezente Farbflächen im Hintergrund, angelehnt an das Logo */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.hero::before {
  background: var(--pink);
  top: -14rem;
  right: -12rem;
}

.hero::after {
  background: var(--cyan);
  bottom: -16rem;
  left: -12rem;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  text-align: left;
}

.brand__symbol {
  width: 4rem;
  height: auto;
  flex-shrink: 0;
}

.brand__name {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pink);
}

.brand__sub {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  color: var(--navy);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.status__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}

h1 .accent {
  color: var(--pink);
  white-space: nowrap;
}

.hero .brand {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.lead {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1.1875rem;
  font-weight: 300;
  color: var(--muted);
  text-wrap: balance;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.contact a:hover {
  transform: translateY(-2px);
}

.contact svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-primary {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 6px 20px -8px rgba(237, 13, 145, 0.6);
}

.btn-primary:hover {
  background: #d10b80;
}

.btn-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--cyan);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--pink);
}

/* Farbstreifen oben – die vier Logofarben */
.stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--purple) 0 25%, var(--pink) 25% 50%, var(--cyan) 50% 75%, var(--navy) 75% 100%);
}

/* ---------- Rechtstexte ---------- */

.legal-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-header__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.legal-header .brand {
  margin: 0;
  text-decoration: none;
}

.legal-header .brand__symbol {
  width: 2.5rem;
}

.legal-header .brand__name {
  font-size: 1.25rem;
}

.legal-header .brand__sub {
  font-size: 0.8125rem;
}

.legal {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin-bottom: 2rem;
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.legal h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.legal h4 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin: 0 0 1rem;
  color: #2a4a5f;
}

.legal ul {
  padding-left: 1.25rem;
}

.back {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 500;
}

/* ---------- Meldeformular ---------- */

.hint {
  font-size: 0.9375rem;
  color: var(--muted);
}

.alert {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
}

.alert--danger {
  border-left-color: var(--pink);
}

.form {
  margin-top: 2rem;
}

.form fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

.form legend {
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.field label {
  font-weight: 500;
  color: var(--navy);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field__help {
  font-size: 0.875rem;
  color: var(--muted);
}

p.field__help {
  margin: 0 0 1rem;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #b9cbd6;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form textarea {
  resize: vertical;
  min-height: 6rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.25);
}

.form [aria-invalid="true"] {
  border-color: var(--pink);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check input {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--pink);
}

.check label {
  color: #2a4a5f;
}

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

.privacy {
  padding: 1rem 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  background: var(--surface);
  border-radius: 8px;
}

.form__status {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
  color: #8a0752;
  background: #fdeef6;
  border: 1px solid #f7b6d9;
  border-radius: 8px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #fff;
  background: var(--pink);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(237, 13, 145, 0.6);
  transition: background-color 0.15s ease;
}

.btn-submit:hover {
  background: #d10b80;
}

.btn-submit:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
}

.result:focus {
  outline: none;
}

.result h2 {
  margin-top: 0;
}

.result__ref {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.02em;
}

/* ---------- Responsive & Barrierefreiheit ---------- */

@media (max-width: 480px) {
  .brand {
    margin-bottom: 2.25rem;
  }

  .brand__symbol {
    width: 3.25rem;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .contact {
    flex-direction: column;
  }

  .contact a {
    width: 100%;
    justify-content: center;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot {
    animation: none;
  }

  .contact a {
    transition: none;
  }

  .contact a:hover {
    transform: none;
  }
}
