/* Legal page styles — shares tokens from colors_and_type.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body { background: var(--bg-1); }

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 32px;
  transition: color var(--dur-fast) var(--ease-out);
}
.legal-back:hover { color: var(--fg-1); text-decoration: none; }

.legal-eyebrow {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--bg-2); border: 1px solid var(--border-1);
  margin-bottom: 20px;
}

.legal-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin: 0 0 16px;
}

.legal-meta {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-1);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 48px 0 14px;
  letter-spacing: -0.015em;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin: 0 0 14px;
}

.legal-content ul, .legal-content ol {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--accent-1); }

.legal-content strong { color: var(--fg-1); font-weight: 600; }

.legal-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin: 14px 0 24px;
}
.legal-card p:last-child { margin-bottom: 0; }

/* Top nav slim */
.legal-nav {
  height: 64px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 50;
}
.legal-nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  height: 100%; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-nav-inner img { height: 24px; }
.lang-switch {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-switch button {
  background: transparent; border: 0; color: var(--fg-3);
  padding: 5px 12px; border-radius: var(--radius-pill);
  cursor: pointer; font-family: inherit;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  transition: all var(--dur-fast) var(--ease-out);
}
.lang-switch button.active {
  background: var(--gradient-violet); color: #fff;
}

.legal-footer {
  border-top: 1px solid var(--border-1);
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-3);
}
.legal-footer a {
  color: var(--fg-2);
  margin: 0 8px;
}

/* Leitsatz oben auf einer Case-Seite */
.legal-content .case-these {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-1);
  border-left: 2px solid var(--accent-1);
  padding: 2px 0 2px 18px;
  margin: 0 0 40px;
}

/* ---------- Team- und Rollen-Raster (Ueber uns) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 8px 0 12px;
}
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px;
}
.team-portrait {
  width: 104px; height: 104px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  background: var(--bg-4);
  border: 1px solid var(--border-soft);
}
.team-name { font-size: 19px; font-weight: 600; color: var(--fg-1); margin: 0 0 2px; }
.team-role { font-size: 15px; color: var(--accent-2); margin: 0 0 14px; }
.team-card p { font-size: 15px; line-height: 1.65; color: var(--fg-2); margin: 0 0 10px; }

.platzhalter {
  border: 1px dashed var(--accent-1);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--accent-1-12);
}
.platzhalter p { margin: 0 0 8px; color: var(--fg-2); }
.platzhalter strong { color: var(--fg-1); }

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Abschnitts-Trenner in den AGB (z. B. digitale Produkte) */
.legal-content h3.terms-part {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 17px;
  color: var(--accent-2);
}

/* ---------- Beitragskacheln (Blog-Uebersicht) ----------
   Die ganze Kachel ist anklickbar: Der Titel-Link legt sich per ::after
   ueber die Karte. Deshalb ist "Beitrag lesen" ein <span> und kein zweiter
   Link — sonst haette jede Kachel zwei Ziele fuer dasselbe.                */

.beitrag-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 8px 0 44px;
}

.beitrag {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.beitrag:hover {
  transform: translateY(-6px);
  border-color: var(--border-violet);
  box-shadow: 0 20px 44px -20px rgba(124, 58, 237, 0.6);
}
/* Tastaturbedienung: gleiche Rueckmeldung wie beim Zeigen mit der Maus */
.beitrag:focus-within {
  border-color: var(--border-violet);
  box-shadow: 0 0 0 2px var(--accent-1-40);
}

.beitrag-bild {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-soft);
}
.beitrag-bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.beitrag:hover .beitrag-bild img { transform: scale(1.06); }

.beitrag-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

/* Mit .legal-content davor, sonst gewinnen die allgemeinen Regeln fuer
   p/h2 weiter oben — die geben h2 zum Beispiel 48px Abstand nach oben,
   was in einer Kachel ein Loch reisst.                                    */
.legal-content .beitrag-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.legal-content .beitrag-titel {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.beitrag-titel a {
  color: var(--fg-1);
  text-decoration: none;
  transition: color 0.25s ease;
}
.beitrag-titel a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.beitrag-titel a:focus-visible { outline: none; }
.beitrag:hover .beitrag-titel a { color: var(--accent-2); }

.legal-content .beitrag-teaser {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 18px;
}
.legal-content .beitrag-mehr {
  margin: auto 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-2);
}
.beitrag-mehr .pfeil {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.beitrag:hover .beitrag-mehr .pfeil { transform: translateX(5px); }

@media (max-width: 700px) {
  .beitrag-liste { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .beitrag-titel { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .beitrag,
  .beitrag-bild img,
  .beitrag-mehr .pfeil { transition: none; }
  .beitrag:hover { transform: none; }
  .beitrag:hover .beitrag-bild img { transform: none; }
  .beitrag:hover .beitrag-mehr .pfeil { transform: none; }
}
