/* Kontakt und Impressum: Kontaktmöglichkeiten sowie gegliederte rechtliche Angaben.
   Bei mehrfach definierten Selektoren gilt die CSS-Kaskade: spätere bzw. spezifischere Regeln können frühere überschreiben. */
.legal-section {
  padding: 0.5rem 0 4rem;
}

/* Impressum: gegliederte rechtliche Informationen. */
.legal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  max-width: 860px;
}

.legal-block {
  position: relative;
  padding: 1.35rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s var(--ee),
    box-shadow 0.2s var(--ee),
    transform 0.2s var(--ee);
}

.legal-block:hover {
  border-color: rgba(140, 82, 255, 0.55);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(140, 82, 255, 0.1);
  transform: translateY(-1px);
}

.legal-block h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legal-block h2::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid rgba(140, 82, 255, 0.62);
  border-radius: 8px;
  background: rgba(140, 82, 255, 0.14);
  color: #c4b5fd;
  content: "§";
  font-family: var(--font-mono);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-block p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-block a {
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(196, 181, 253, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 0.2s var(--ee),
    text-decoration-color 0.2s var(--ee);
}

.legal-block a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.legal-block a:focus-visible {
  outline: 2px solid #b99aff;
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================
   Kontakt
   ========================================================= */

.contact-hero {
  padding: 3rem 0 4rem;
}

/* Kontaktübersicht: Hauptkontakt und weitere Anlaufstellen. */
.contact-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-primary,
.contact-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(205, 183, 255, 0.78);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 35%),
    linear-gradient(135deg, #9b64ff 0%, #7b42e6 52%, #5a2ead 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 38px rgba(66, 27, 147, 0.34);
}

.contact-secondary {
  background:
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(135deg, #8c52ff 0%, #6d35d0 52%, #4e269c 100%);
}

.contact-overview h2 {
  max-width: 18ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-overview p {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border: 1px solid #ffffff;
  border-radius: 9px;
  background: #ffffff;
  color: #6230c3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 7px 16px rgba(39, 16, 97, 0.26);
  transition:
    transform 0.2s var(--ee),
    background 0.2s var(--ee),
    color 0.2s var(--ee),
    box-shadow 0.2s var(--ee);
}

.contact-button:hover {
  background: #f3edff;
  color: #4e269c;
  box-shadow: 0 9px 20px rgba(39, 16, 97, 0.34);
  transform: translateY(-1px);
}

.contact-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 900px) {
  .contact-overview {
    grid-template-columns: 1fr;
  }
}

/* Bildschirmabhängige Anpassungen: gelten nur bei der folgenden Breite bzw. Systemeinstellung. */
@media (max-width: 640px) {
  .legal-section {
    padding: 0.25rem 0 3rem;
  }

  .legal-content {
    gap: 0.7rem;
  }

  .legal-block {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }

  .legal-block h2 {
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
  }

  .legal-block p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .contact-hero {
    padding: 1.8rem 0 3rem;
  }

  .contact-overview {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-top: 1.4rem;
  }

  .contact-primary,
  .contact-secondary {
    min-height: 0;
    padding: 1.3rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .contact-overview h2 {
    max-width: none;
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .contact-overview p {
    font-size: 0.92rem;
  }

  .contact-actions {
    width: 100%;
    padding-top: 1.25rem;
  }

  .contact-button {
    flex: 1 1 100%;
    min-height: 42px;
  }
}
