/* Lesbarkeits-Fix fuer den statischen Confluence-Export.
   Wird als <link rel="stylesheet" href="..."> in jede Seite eingefuegt.
   Reihenfolge: NACH site.css, damit die Regeln hier gewinnen (gleiche oder
   hoehere Spezifitaet, spaeter im Dokument). */

/* ---- 1. Grundtypografie und Lesebreite ---------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #172b4d;
    background: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Kein seitliches Ueberlaufen durch Bilder, Tabellen oder Codebloecke. */
img, table, pre, iframe, video, object, embed {
    max-width: 100% !important;
}

img {
    height: auto !important;
}

body, div, p, td, th, li, dd, dt {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ---- 2. Ueberschriften -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin: 1.4em 0 0.5em;
    font-weight: 600;
    color: #172b4d;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em; }
h5, h6 { font-size: 1em; }

h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}

/* ---- 3. Layout-Makros, die im Export ohne CSS dastehen ------------------ */
/* .contentLayout2/.columnLayout/.cell/.innerCell tragen das Macro-Layout.
   Ohne Definition stapeln sich die Zellen, was gewollt ist: Spalten bleiben
   untereinander lesbar, statt auf 23 % Breite gequetscht zu werden. */

.contentLayout2,
.columnLayout,
.cell,
.innerCell {
    width: auto;
    max-width: 100%;
}

/* ---- 4. Seitenkopf und Metadaten --------------------------------------- */
#breadcrumb-section,
.page-metadata {
    font-size: 13px;
    line-height: 1.5;
    color: #6b778c;
    margin-bottom: 0.75em;
}

#title-heading {
    font-size: 1.8em;
    margin: 0.2em 0 0.6em;
}

/* ---- 5. Tabellen ------------------------------------------------------- */
table {
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    border: 1px solid #dfe1e6;
    padding: 6px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f4f5f7;
    font-weight: 600;
}

/* ---- 6. Code und Monospace -------------------------------------------- */
pre, code, tt, kbd, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
                 "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    background: #f4f5f7;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    padding: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* ---- 7. Farbvariablen der Aura-Titel-Makros --------------------------- */
/* Seiten setzen inline color: var(--aura-title-color) !important, definieren
   die Variable aber nur fuer html[data-color-mode=...]. Im Export fehlt das
   Attribut. Ohne Fallback waere die Deklaration ungueltig. */
:root {
    --aura-title-color: inherit;
}

html[data-color-mode="dark"] {
    background: #1d2125;
}

html[data-color-mode="dark"] body {
    color: #b6c2cf;
    background: #1d2125;
}

html[data-color-mode="dark"] th {
    background: #22272b;
}

html[data-color-mode="dark"] th,
html[data-color-mode="dark"] td {
    border-color: #3d454d;
}

html[data-color-mode="dark"] pre {
    background: #22272b;
    border-color: #3d454d;
}

html[data-color-mode="dark"] a {
    color: #579dff;
}

/* ---- 8. Links --------------------------------------------------------- */
a {
    color: #0052cc;
}

a:visited {
    color: #5e4db2;
}

/* ---- 9. Panels und Hinweisboxen --------------------------------------- */
.panel {
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    padding: 12px 16px;
    margin: 1em 0;
}

.panel .panelHeader,
.panel h2, .panel h3 {
    margin-top: 0;
}

/* ---- 10. Bilder in Makro-Wrappern ------------------------------------- */
.confluence-embedded-file-wrapper,
.confluence-embedded-image {
    max-width: 100%;
    height: auto;
}

/* ---- 11. Nachtrag aus der Messung (2026-10-21) ------------------------- */
/* Zwei Restursachen, die die Regeln oben nicht abdecken. Beide additiv,
   keine bestehende Regel wird geaendert. */

/* a) Sehr lange Token in <pre> (z. B. eine JVM-Option mit 117 Zeichen)
   sprengen die Tabellenzelle: pre-wrap bricht nur an Leerzeichen. Gemessen
   an html/EN/DOC/Linchpin-User-Profiles---Known-issues_39748013.html:
   1188 px breite Tabelle in einem 1068-px-Container, 47 Elemente im
   Überlauf. Mit anywhere: 0. Text bleibt vollständig (6593 Zeichen). */
pre {
    overflow-wrap: anywhere;
}

/* b) Das Aura-Karten-Makro setzt inline
   grid-template-columns: repeat(auto-fit, minmax(calc(1200px), 1fr)).
   Die Spalte ist damit immer 1200 px breit, egal wie breit der Container
   ist. Gemessen an html/DE/AURA/Erstelle-attraktive-Confluence-Seiten-in-
   3-Schritten_96305228.html: Karte 1180 px in 988-px-Grid, 7 Elemente im
   Überlauf. Mit min(1200px, 100%): 0. Text bleibt vollständig. */
[class*="aura-cards-wrapper"] {
    grid-template-columns: repeat(auto-fit, minmax(min(1200px, 100%), 1fr)) !important;
}
