/* getosone.eu · OSone-Farben und -Schrift (aus packages/ui/src/tokens.css), Schwarz = 98 % */
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Variable.ttf") format("truetype"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Italic-Variable.ttf") format("truetype"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --coral: #cd4f33;
  --coral-deep: #a84832;
  --coral-glow: #e06a4c;
  --studio: #edd7bd;
  --studio-soft: #f6ecdd;
  --paper: #fffdf9;
  --black: #050505;               /* Schwarzwert 98 % */
  --black-line: rgba(5, 5, 5, 0.14);
  --black-pill: rgba(5, 5, 5, 0.34);
  --on-coral: #fffdf9;
  --glass: rgba(255, 253, 249, 0.07);
  --glass-line: rgba(255, 253, 249, 0.22);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Ubuntu Mono", "DejaVu Sans Mono", monospace;
  --pad-x: clamp(1.25rem, 5vw, 12.5rem);
  --pad-y: clamp(2.75rem, 4.5vw, 4.5rem);
}

* { box-sizing: border-box; }
/* Schriftgrößen: nur 10, 12, 14, 16 und 24 px, auf jeder Bildschirmbreite gleich (kein Mitwachsen) */
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--coral); color: var(--on-coral); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; line-height: 1.5; font-size: 0.75rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--studio); }
.ink a:hover { color: var(--coral-deep); }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.ink :focus-visible { outline-color: var(--black); }
.skip { position: absolute; left: -999rem; top: 0; background: var(--paper); color: var(--black); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.wrap { max-width: 90rem; margin: 0 auto; }             /* Inhalt höchstens 1440 px breit */
.stack { display: flex; flex-direction: column; gap: 1.75rem; }
.band { padding: var(--pad-y) var(--pad-x); }
.band--deep { background: var(--coral-deep); }
.band--coral { background: radial-gradient(ellipse 120% 100% at 50% 50%, var(--coral) 45%, var(--coral-deep) 100%); }
.band--studio { background: var(--studio); color: var(--black); }

.mono { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; }
.label { font-size: 0.625rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.chip { align-self: flex-start; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--black-pill); }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 300; font-size: 1.5rem; line-height: 1.04; letter-spacing: 0; }
h2 { font-weight: 300; font-size: 1.5rem; line-height: 1.1; letter-spacing: 0; }
.head { display: flex; flex-direction: column; gap: 0.5rem; }

/* Kopf */
.hero { background: radial-gradient(ellipse 60% 45% at 50% 34%, var(--coral-glow) 0%, rgba(224, 106, 76, 0) 70%), radial-gradient(ellipse 120% 100% at 50% 50%, var(--coral) 45%, var(--coral-deep) 100%); padding: 1.25rem var(--pad-x) 3.5rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-height: 2.75rem; font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.brand svg { width: 2.75rem; height: 1.375rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--black-pill); border: 1px solid rgba(255, 253, 249, 0.14); }
.nav-links a { padding: 0.625rem 1rem; border-radius: 999px; text-decoration: none; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a[aria-current="true"] { background: rgba(255, 253, 249, 0.16); color: var(--on-coral); }
.version { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border-radius: 999px; background: var(--black-pill); }
.version::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--paper); }

.hero-inner { max-width: 50rem; margin: 0 auto; padding-top: clamp(2.5rem, 4.5vw, 4.5rem); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.125rem; }
.ribbon { width: clamp(10rem, 14vw, 18rem); height: auto; animation: osone-float 7s ease-in-out infinite; }
@keyframes osone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.lead { max-width: 36em; font-weight: 400; font-size: 1rem; line-height: 1.45; }
.say { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.625rem; padding-top: 0.25rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; text-decoration: none; font-style: italic; font-weight: 400; font-size: 0.875rem; background: rgba(255, 253, 249, 0.14); border: 1px solid rgba(255, 253, 249, 0.45); }
.pill::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 1.5px solid currentColor; }
.pill--paper { background: var(--paper); color: var(--coral-deep); border-color: var(--paper); }
.pill--paper:hover { color: var(--black); }
.shot { margin: clamp(2.25rem, 4vw, 3.5rem) auto 0; padding: 0; max-width: 64rem; }
.shot img, .pair img { width: 100%; border-radius: 1rem; border: 1px solid rgba(255, 253, 249, 0.3); }
.shot img { box-shadow: 0 24px 64px rgba(56, 20, 10, 0.34); }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.875rem; }
.grid--tabs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0.75rem; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.875rem; }
.glass { padding: 1.125rem 1.25rem; border-radius: 0.875rem; background: var(--glass); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 0.375rem; }
.glass .big { font-weight: 500; font-size: 1rem; line-height: 1.15; }
.glass p { font-size: 0.75rem; }
.card { padding: 1rem 1.125rem; border-radius: 0.875rem; background: var(--paper); box-shadow: 0 2px 6px rgba(56, 20, 10, 0.08); display: flex; flex-direction: column; gap: 0.25rem; }
.card .nr { font-weight: 500; font-size: 1rem; line-height: 1; color: var(--coral); }
.card .name { font-weight: 500; font-size: 0.875rem; }

/* Repository */
.repo { background: var(--paper); color: var(--black); border-radius: 1rem; box-shadow: 0 16px 40px rgba(56, 20, 10, 0.22), 0 2px 6px rgba(56, 20, 10, 0.08); overflow: hidden; }
.repo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--black-line); }
.repo-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem; font-family: var(--font-mono); font-size: 0.875rem; }
.tag { font-family: var(--font-sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.3125rem 0.625rem; border-radius: 999px; border: 1px solid rgba(5, 5, 5, 0.4); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem 1rem; background: var(--studio-soft); border-bottom: 1px solid var(--black-line); }
.tabs button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; min-height: 2.25rem; padding: 0 0.875rem; border-radius: 999px; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.tabs button:hover { background: rgba(5, 5, 5, 0.08); }
.tabs button[aria-selected="true"] { background: var(--black); color: var(--paper); }
.panel { padding: 1rem 1.25rem 1.5rem; }
.js .panel[hidden] { display: none; }
.panel-title { font-weight: 500; font-size: 1rem; margin-bottom: 1rem; }
.js .panel-title { position: absolute; left: -999rem; }
.split { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.split > * { flex: 1 1 24rem; min-width: 0; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(5, 5, 5, 0.12); font-size: 0.75rem; }
.files .path { flex: 0 0 12.5rem; font-family: var(--font-mono); overflow-wrap: anywhere; }
.files .path::before { content: ""; display: inline-block; width: 0.5625rem; height: 0.5625rem; margin-right: 0.875rem; border: 1.5px solid var(--coral-deep); border-radius: 50%; }
.files .dir::before { border-radius: 2px; background: var(--coral-deep); }
.files .what { flex: 1 1 14rem; min-width: 0; }
.tree { background: var(--studio-soft); border-radius: 0.75rem; padding: 0.875rem 1.125rem; }
.tree details { border-bottom: 1px solid rgba(5, 5, 5, 0.12); }
.tree summary { cursor: pointer; min-height: 2.125rem; display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; }
.tree summary span { margin-left: auto; font-family: var(--font-sans); }
.tree ul { margin: 0 0 1rem; padding-left: 1.25rem; font-family: var(--font-mono); font-size: 0.625rem; line-height: 1.8; overflow-wrap: anywhere; }

/* gesetzter Text aus OSone.md und docs/ubuntu.md */
.prose { max-width: 38rem; font-size: 0.75rem; line-height: 1.6; }
.prose > * + * { margin-top: 1rem; }
.prose h3 { font-weight: 500; font-size: 1rem; line-height: 1.1; }
.prose h4 { font-weight: 500; font-size: 0.875rem; line-height: 1.3; margin-top: 1.75rem; padding-top: 1.125rem; border-top: 1px solid var(--black-line); }
.prose h5 { font-weight: 500; font-size: 0.75rem; margin: 1.5rem 0 0; }
.prose code { font-family: var(--font-mono); font-size: 0.625rem; background: var(--studio-soft); padding: 0.1em 0.35em; border-radius: 0.35em; overflow-wrap: anywhere; }
.prose pre { background: var(--black); color: var(--paper); padding: 0.875rem 1rem; border-radius: 0.625rem; overflow-x: auto; font-size: 0.625rem; line-height: 1.7; }
.prose pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
.prose .table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.75rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.4375rem 0.875rem 0.4375rem 0; border-bottom: 1px solid rgba(5, 5, 5, 0.12); }
.prose th { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.875rem; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.gallery img { width: 100%; border-radius: 0.875rem; border: 1px solid var(--black-line); }
.gallery figcaption { font-size: 0.75rem; }
.note { font-size: 0.75rem; margin-bottom: 1rem; max-width: 38rem; }

/* Versionen */
.versions { list-style: none; margin: 0; padding: 0; }
.versions li { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.875rem 0; border-top: 1px solid rgba(255, 253, 249, 0.3); }
.versions .nr { flex: 0 0 5rem; font-weight: 500; line-height: 1.5; font-size: 1rem; line-height: 1; }
.versions .what { flex: 1 1 26rem; min-width: 0; max-width: 62em; font-size: 0.75rem; line-height: 1.55; }
.plain { font-size: 0.75rem; line-height: 1.55; max-width: 62em; }

/* Fuß: Lizenz und Copyright */
.foot { background: var(--black); padding: 2.5rem var(--pad-x) 1.75rem; }
.foot .stack { gap: 1.25rem; }
.foot .glass p { font-size: 0.625rem; line-height: 1.55; }
.foot .glass .lines { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.7; }
.foot .glass a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--glass-line); }
.foot-row .brand { font-size: 0.625rem; font-weight: 400; }
.foot-row p { max-width: 46em; }
/* Schwarzer Bereich unten (Abschnitt 05 und Fußzeile): alles 8 px; Titel der Karten nur durch die Stärke abgesetzt */
.foot, .foot .mono, .foot .glass .label, .foot .glass .big, .foot .glass .lines, .foot .glass p, .foot .glass a, .foot-row, .foot-row .brand, .foot-row p, .legal-links a { font-size: 0.5rem; }
.foot .glass .big { font-weight: 500; line-height: 1.5; }

/* Unterseiten: Impressum, Datenschutz, Lizenzen */
.hero--sub { padding-bottom: clamp(3rem, 5vw, 7rem); }
.sub-title { padding-top: clamp(3rem, 5vw, 7rem); }
.sub-title h1 { font-size: 1.5rem; }
h1, h2, .prose { overflow-wrap: break-word; }
.legal { padding: clamp(1.5rem, 3.5vw, 4rem); }
.legal .prose { max-width: 50rem; }
.prose h2 { font-weight: 500; font-size: 0.875rem; line-height: 1.2; letter-spacing: 0; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--black-line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose a { overflow-wrap: anywhere; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.875rem; border-radius: 999px; border: 1px solid var(--glass-line); text-decoration: none; font-size: 0.5rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.legal-links a:hover { background: var(--glass); }

/* Rechtsseiten (Impressum, Datenschutz, Lizenzen): nur die Stufen 10, 12, 14, 16 px */
.legal-page .sub-title h1 { font-size: 1.5rem; }                                   /* 16: Seitentitel, Name */
.legal-page .sub-title h1 { font-weight: 300; line-height: 1.3; }
.legal-page .prose h2 { font-size: 0.875rem; font-weight: 500; margin-top: 1.75rem; padding-top: 1.25rem; }  /* 14: Zwischenüberschriften */
.legal-page .prose h2:first-child { margin-top: 0; padding-top: 0; }
.legal-page .prose { font-size: 0.75rem; line-height: 1.65; max-width: 38rem; }                      /* 12: Text */
.legal-page .nav-links a, .legal-page .version, .legal-page .prose pre, .legal-page .prose code { font-size: 0.625rem; }  /* 10: Leiste, Lizenztext */
.legal-page .hero--sub { padding-bottom: 1.75rem; }
.legal-page .sub-title { padding-top: 1.75rem; }
.legal-page main.band { padding-top: 2.5rem; padding-bottom: 3rem; }
.legal-page .legal { padding: clamp(1.25rem, 2.5vw, 2.5rem); }
.legal-page .foot { padding-top: 2.5rem; }

@media (max-width: 40rem) {
  h1, h2, .prose { hyphens: auto; }
  .files .path { flex-basis: 100%; }
  .pill { min-height: 2.75rem; padding: 0 1rem; }
  .versions .nr { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ribbon { animation: none; } html { scroll-behavior: auto; } }
@media print { .nav-links, .tabs { display: none; } .panel[hidden] { display: block !important; } }
