/* ═══════════════════════════════════════════════════════════════════════
   Oeffentliche Seiten: Produktseite (/produkt) und Datenschutz (/datenschutz)

   Diese beiden Seiten sind ohne Anmeldung erreichbar - Google und Meta oeffnen
   sie bei ihren Pruefungen. Sie benutzen die Farben und Schriften des Viewers,
   aber ein eigenes, ruhiges Dokument-Layout: eine Spalte, angenehme Zeilenlaenge,
   nichts Klickbares ausser den Links.

   Sie verwenden bewusst NICHT das Agentur-Branding (--brand-primary wird zur
   Laufzeit ueberschrieben) fuer Namen und Logo - siehe PublicPage.jsx.
   ═══════════════════════════════════════════════════════════════════════ */

.pub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--mid);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Kopfzeile ───────────────────────────────────────────────────────── */
.pub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid var(--brd);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.pub-page a.pub-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.pub-brand-logo {
  height: 30px;
  width: auto;
}

.pub-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.pub-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pub-page a.pub-login-link {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pub-page a.pub-login-link:hover {
  opacity: .9;
}

/* ── Inhalt ──────────────────────────────────────────────────────────── */
.pub-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.pub-hero {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brd);
  margin-bottom: 8px;
}

.pub-hero h1,
.pub-doc-head h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 12px;
  text-wrap: balance;
}

.pub-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mid);
  margin: 0 0 24px;
  max-width: 62ch;
}

.pub-page a.pub-cta {
  display: inline-block;
  margin-bottom: 32px;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.pub-page a.pub-cta:hover {
  opacity: .9;
}

.pub-doc-head {
  margin-bottom: 12px;
}

.pub-doc-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 0 0 4px;
}

.pub-doc-updated {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ── Abschnitte ──────────────────────────────────────────────────────── */
.pub-section {
  margin-top: 34px;
  /* Beim Sprung ueber einen Anker (z. B. #loeschung) nicht unter die
     festgeklebte Kopfzeile rutschen. */
  scroll-margin-top: 80px;
}

.pub-section h2 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  color: var(--dark);
  margin: 0 0 10px;
}

.pub-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 22px 0 8px;
}

.pub-section p {
  margin: 0 0 12px;
  max-width: 68ch;
}

.pub-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.pub-section li {
  margin-bottom: 7px;
  max-width: 66ch;
}

/* Fliesstext-Links. Achtung: dieser Selektor hat zwei Stufen und schlaegt damit
   einstufige Regeln wie .pub-cta - Knoepfe und Marke stehen deshalb oben
   ebenfalls als .pub-page a.<klasse>. */
.pub-page a {
  color: var(--brand-primary);
}

.pub-page code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--acc2);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Hervorgehobener Kasten - u. a. fuer den Limited-Use-Absatz, den Google sucht. */
.pub-note {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--acc2);
  font-size: 14px;
}

.pub-note p:last-child {
  margin-bottom: 0;
}

/* ── Tabellen ────────────────────────────────────────────────────────── */
/* Breite Tabellen scrollen in sich; die Seite selbst nie seitwaerts. */
.pub-table-wrap {
  overflow-x: auto;
  margin: 0 0 18px;
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pub-table th {
  text-align: left;
  padding: 9px 12px;
  background: var(--acc2);
  color: var(--dark);
  font-weight: 700;
  white-space: nowrap;
}

.pub-table th:first-child { border-top-left-radius: 6px; }
.pub-table th:last-child { border-top-right-radius: 6px; }

.pub-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--brd);
  vertical-align: top;
}

/* Berechtigungsnamen (analytics.readonly, ads_read) lesen sich in gleichbreiter
   Schrift besser und lassen sich sauber in den Antrag kopieren. */
.pub-table-mono td:first-child {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--dark);
}

/* ── Fusszeile ───────────────────────────────────────────────────────── */
.pub-footer {
  border-top: 1px solid var(--brd);
  background: var(--bg);
}

.pub-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.pub-footer-copy {
  color: var(--muted);
}

.pub-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pub-page .pub-footer-links a {
  color: var(--mid);
  text-decoration: none;
}

.pub-page .pub-footer-links a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ── Schmale Fenster ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pub-main { padding: 28px 18px 48px; }
  .pub-hero h1, .pub-doc-head h1 { font-size: 27px; }
  .pub-lead { font-size: 16px; }
  .pub-header { padding: 12px 18px; }
  .pub-footer-inner { padding: 16px 18px; }
}

/* Verweis auf die oeffentlichen Seiten unten auf der Anmeldeseite. Steht hier und
   nicht in auth.css, weil es zu diesen Seiten gehoert. */
.auth-legal {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-legal a {
  color: var(--muted);
  text-decoration: none;
}

.auth-legal a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}
