/* Plantafel — Website zur Web-App.
   Farben und Schrift folgen der App selbst (plantafel3/assets/style.css):
   das Blau der Tafel und die IBM Plex Sans Condensed.
   Hell/Dunkel automatisch über prefers-color-scheme. */

/* Dieselben Schriftdateien wie die App, lokal eingebunden – kein CDN. */
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-weight: 400; font-style: normal; font-display: swap;
    src: url('fonts/ibmplexcond-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans Condensed';
    font-weight: 700; font-style: normal; font-display: swap;
    src: url('fonts/ibmplexcond-bold.woff2') format('woff2');
}

:root {
    --blau:       #0b6ea6;   /* Akzent hell – dunkler als das Tafelblau,
                                sonst sind Links auf Weiß zu kontrastarm */
    --blau-tafel: #0079bf;   /* das Blau der Tafel selbst */
    --grund:      #ffffff;
    --flaeche:    #f4f6f8;
    --rand:       #dfe3e8;
    --text:       #172b4d;   /* Textfarbe der App */
    --text-leise: #5e6c84;
}

@media (prefers-color-scheme: dark) {
    :root {
        --blau:       #56b6e8;
        --blau-tafel: #56b6e8;
        --grund:      #171c22;
        --flaeche:    #1f252d;
        --rand:       #2e3742;
        --text:       #e6e9ee;
        --text-leise: #9aa5b1;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 20px 60px;
    background: var(--grund);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Die schmale Schrift der App steht in den Überschriften und im Kopf.
   Der Fließtext bleibt in der Systemschrift – condensed liest sich über
   lange Anleitungen hinweg zu eng. */
h1, h2, h3, .nav, .untertitel, th {
    font-family: 'IBM Plex Sans Condensed', -apple-system, BlinkMacSystemFont,
                 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--blau); }
a:hover { text-decoration: none; }


/* ---------- Kopf ---------- */

.kopf {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 0 28px;
    border-bottom: 1px solid var(--rand);
}

.nav {
    text-align: right;
    font-size: 16px;
}

.nav a {
    color: var(--text-leise);
    text-decoration: none;
    /* Umbrochen wird zwischen den Menüpunkten, nie innerhalb einer
       Beschriftung – sonst reißt es „Impressum und Datenschutz" auf. */
    white-space: nowrap;
}

.nav a:hover { color: var(--text); }

.nav a.aktiv {
    color: var(--blau);
    font-weight: 700;
}

.nav .trenner {
    color: var(--rand);
    margin: 0 8px;
}

.marke {
    text-align: center;
    margin-top: 20px;
}

.marke img {
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 auto 10px;
}

.marke h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.untertitel {
    margin: 4px 0 0;
    color: var(--text-leise);
    font-size: 16px;
}


/* ---------- Inhalt ---------- */

.inhalt {
    max-width: 760px;
    margin: 0 auto;
}

h2 {
    margin: 46px 0 10px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2::before {
    content: "";
    display: block;
    width: 28px;
    border-top: 2px solid var(--blau-tafel);
    margin-bottom: 12px;
}

h3 {
    margin: 28px 0 6px;
    font-size: 19px;
    font-weight: 700;
}

p { margin: 0 0 14px; }

ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 5px; }

.vorspann {
    font-size: 18px;
    color: var(--text-leise);
    margin-top: 30px;
}

/* Beschriftungen aus der App im Fließtext */
b, strong { font-weight: 600; }

/* Die Symbole der Werkzeugleiste (⠿ ⋮ +) im Text */
.zeichen {
    font-size: 15px;
    color: var(--text-leise);
}


/* ---------- Bildschirmfotos ---------- */

figure {
    margin: 22px 0 26px;
}

/* <picture> ist von Haus aus inline — ohne block läuft das
   margin:0 auto des Bildes darin ins Leere. */
figure picture { display: block; }

/* width:auto statt 100% — kleine Bildschirmfotos werden sonst
   auf Spaltenbreite hochskaliert und dadurch unscharf. */
figure img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--rand);
    border-radius: 8px;
}

figcaption {
    margin-top: 8px;
    font-size: 15px;
    color: var(--text-leise);
}


/* ---------- Hinweiskasten ---------- */

.hinweis {
    background: var(--flaeche);
    border-left: 3px solid var(--blau-tafel);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    margin: 18px 0;
    font-size: 16px;
}

.hinweis p:last-child { margin-bottom: 0; }
.hinweis ul:last-child { margin-bottom: 0; }


/* ---------- Tabelle ---------- */

.tabelle-rahmen {
    overflow-x: auto;
    margin: 18px 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 16px;
}

th, td {
    text-align: left;
    padding: 8px 14px 8px 0;
    border-bottom: 1px solid var(--rand);
    vertical-align: top;
}

th {
    font-weight: 700;
    color: var(--text-leise);
    font-size: 15px;
}

td.datei {
    font-weight: 600;
    white-space: nowrap;
}


/* ---------- Befehle und Dateinamen ---------- */

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: var(--flaeche);
    border-radius: 4px;
    padding: 1px 5px;
}

pre {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}


/* ---------- Schritte der Einrichtung ---------- */

ol.schritte {
    margin: 0 0 14px;
    padding-left: 22px;
}

ol.schritte > li {
    margin-bottom: 18px;
}


/* ---------- Impressum ---------- */

address {
    font-style: normal;
    margin-bottom: 20px;
}


/* ---------- Fuß ---------- */

.fuss {
    max-width: 760px;
    margin: 60px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--rand);
    font-size: 15px;
    color: var(--text-leise);
}

.fuss p { margin: 0; }
.fuss a { color: var(--text-leise); }


/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 640px) {
    body { font-size: 16px; padding: 0 16px 44px; }

    .kopf { display: flex; flex-direction: column; }
    .marke { order: 1; margin-top: 6px; }

    /* Vier Menuepunkte passen nicht in eine Zeile. Statt die Striche am
       Zeilenende haengen zu lassen, wird hier mit Abstaenden getrennt. */
    .nav {
        order: 2;
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
    }
    .nav .trenner { display: none; }

    h2 { margin-top: 38px; font-size: 21px; }
}
