/* mosa Website · Rechtliche Seiten (Impressum, Datenschutz, Lizenzen)
   Baut auf css/style.css auf (Farben, Schriften, .logo, .dots, .lang). */

.lg { background: var(--bg); }

/* ---------- Entwurfs-Hinweis ---------- */
.lg-draft {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px var(--pad); font-size: 13px; font-weight: 500; letter-spacing: .01em;
  background: #FFF4EA; color: #8A4A12; border-bottom: 1px solid #F7DEC6; text-align: center;
}
.lg-draft::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); flex: none;
}

/* ---------- Kopfzeile ---------- */
.lg-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--pad);
  background: rgba(250, 248, 245, .82);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}
.lg-nav__links { display: flex; gap: clamp(14px, 2vw, 30px); font-size: 15px; font-weight: 500; }
.lg-nav__links a { text-decoration: none; opacity: .7; position: relative; transition: opacity .2s; }
.lg-nav__links a:hover, .lg-nav__links a[aria-current="page"] { opacity: 1; }
.lg-nav__links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: currentColor;
}
.lg-nav__right { display: flex; align-items: center; gap: 12px; }
.lg-back {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; transition: box-shadow .25s, transform .3s var(--ease);
}
.lg-back:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.lg-back span { transition: transform .3s var(--ease); }
.lg-back:hover span { transform: translateX(-3px); }

/* ---------- Kopf der Seite ---------- */
.lg-head {
  padding: clamp(48px, 8vw, 120px) var(--pad) clamp(36px, 5vw, 70px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end;
  border-bottom: 1px solid var(--line);
}
.lg-head .eyebrow { margin-bottom: 18px; }
.lg-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .95;
  font-size: clamp(52px, 9vw, 150px);
}
.lg-title em { font-style: italic; }
.lg-head__side { display: flex; flex-direction: column; gap: 14px; padding-bottom: .6em; }
.lg-head__side .lead { font-size: clamp(17px, 1.3vw, 20px); }
.lg-meta { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.lg-meta b { color: var(--ink); font-weight: 700; }

/* ---------- Auf einen Blick ---------- */
.lg-glance { padding: 26px var(--pad) 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Inhalt mit Inhaltsverzeichnis ---------- */
.lg-body {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px);
  padding: clamp(40px, 6vw, 90px) var(--pad) clamp(80px, 10vw, 150px);
}
.lg-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow-y: auto; }
.lg-toc p { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lg-toc ol { counter-reset: toc; border-left: 1px solid var(--line); }
.lg-toc li { counter-increment: toc; }
.lg-toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; text-decoration: none; color: var(--muted);
  border-left: 2px solid transparent; transition: color .2s, border-color .2s;
}
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.is-on { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
.lg-toc .lg-toc__part { padding-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); pointer-events: none; padding-left: 16px; }

.lg-content { max-width: 46em; min-width: 0; }

/* Teil-Überschriften (Datenschutz) */
.lg-part {
  display: flex; align-items: center; gap: 16px; margin: clamp(56px, 7vw, 96px) 0 8px;
  padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
}
.lg-part:first-child { margin-top: 0; }
.lg-part__num {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 26px; color: var(--ink); background: var(--c, var(--rosa));
}
.lg-part h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.01em; }
.lg-part p { font-size: 15px; color: var(--muted); margin-top: 4px; }

.lg-sec { padding-top: clamp(36px, 4vw, 52px); scroll-margin-top: 90px; }
.lg-sec h2 {
  font-size: clamp(22px, 2vw, 27px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px;
}
.lg-sec h3 { font-size: 17px; font-weight: 600; margin: 22px 0 6px; }
.lg-sec p, .lg-sec li { color: #3D3A37; line-height: 1.65; }
.lg-sec p + p { margin-top: 12px; }
.lg-sec ul { margin: 12px 0; display: grid; gap: 6px; }
.lg-sec ul li { position: relative; padding-left: 22px; }
.lg-sec ul li::before {
  content: ''; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--rosa));
}
.lg-sec a { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(29, 29, 31, .35); transition: text-decoration-color .2s; }
.lg-sec a:hover { text-decoration-color: var(--ink); }
.lg-sec strong { color: var(--ink); font-weight: 600; }

/* Adress-Karte */
.lg-card {
  margin-top: 16px; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px;
}
.lg-card dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lg-card dd { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.lg-card dd a { text-decoration: none; border-bottom: 1px solid rgba(29, 29, 31, .25); }
.lg-card dd a:hover { border-bottom-color: var(--ink); }

/* Platzhalter: gut sichtbar, bis alles ergänzt ist */
.lg-todo {
  background: #FFE7CF; color: #8A3E00; border-radius: 6px; padding: 1px 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  font-size: .9em; font-weight: 600; line-height: 1.7;
}

/* Hinweis-Box */
.lg-note {
  margin-top: 18px; padding: 16px 18px; border-radius: 16px; font-size: 15px;
  background: var(--bg-2); color: #4A4744;
}

/* Tabellen (Lizenzen) */
.lg-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.lg-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.lg-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.lg-table td:first-child { font-size: 22px; line-height: 1.1; white-space: nowrap; }
.lg-table small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lg-table td:nth-child(3) { white-space: nowrap; font-size: 14px; color: var(--muted); }
.lg-table .lg-copy { color: #4A4744; font-size: 14px; overflow-wrap: anywhere; }

details.lg-details { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
details.lg-details summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.lg-details summary::-webkit-details-marker { display: none; }
details.lg-details summary::after { content: '+'; font-weight: 400; font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
details.lg-details[open] summary::after { transform: rotate(45deg); }
details.lg-details pre { margin: 0; padding: 0 18px 18px; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.55; color: #4A4744; }

/* ---------- Fusszeile ---------- */
.lg-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 34px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lg-foot a { text-decoration: none; }
.lg-foot a:hover { color: var(--ink); }
.lg-foot .logo { font-size: 20px; color: var(--ink); }

/* ---------- Erscheinen ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lg-head > *, .lg-glance { animation: lg-in .8s var(--ease) both; }
  .lg-head > *:nth-child(2) { animation-delay: .08s; }
  .lg-glance { animation-delay: .16s; }
  @keyframes lg-in { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- Tablet und Handy ---------- */
@media (max-width: 960px) {
  .lg-head { grid-template-columns: 1fr; gap: 20px; }
  .lg-body { grid-template-columns: 1fr; }
  .lg-toc { position: static; max-height: none; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
  .lg-toc ol { columns: 2; column-gap: 20px; border-left: 0; }
  .lg-toc a { padding: 5px 0; border-left: 0; break-inside: avoid; }
  .lg-toc a.is-on { border: 0; }
  .lg-toc .lg-toc__part { padding-left: 0; break-after: avoid; }
}
@media (max-width: 720px) {
  .lg-nav__links { display: none; }
  .lg-back b { display: none; }
  .lg-toc ol { columns: 1; }
  .lg-part { padding: 18px; gap: 14px; }
  .lg-table td:first-child { font-size: 19px; white-space: normal; }
  .lg-table th:nth-child(3), .lg-table td:nth-child(3) { display: none; }
  .lg-foot { flex-direction: column; align-items: flex-start; }
}
