/* =========================================================================
   baik.de – responsives Layout
   Markup (body-Ebene):  #wrap > #header(Bild + Sprachmenü)
                         #navigation (Hauptmenü)
                         #content
                         #footer
   Ersetzt das alte feste 900px-/table-cell-Layout durch eine fluide,
   zentrierte Einspaltigkeit mit horizontaler Navigation.
   ========================================================================= */

:root {
    --maxw: 980px;
    --ink: #242420;
    --muted: #6b6b63;
    --accent: #5a6e52;
    --line: #dcdcd4;
    --bg: #faf9f6;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { color: #455540; }

/* alle Hauptblöcke: fluide, zentriert, gleiche Maximalbreite ----------------- */
#wrap,
#navigation,
#content,
#footer {
    width: auto;
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

/* altes table-cell-Layout abschalten (Inline-CSS wurde entfernt) */
#navigation,
#content { display: block; }

/* ------------------------------------------------------------------ Kopf */
#wrap { margin-top: 28px; }
#wrap #header { text-align: center; }
#wrap #header img {
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* ------------------------------------------------------------ Navigation */
/* Hauptmenü (TMENU rendert <b>Link</b><br>) als horizontale Leiste */
#navigation {
    margin-top: 22px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
#navigation br { display: none; }
#navigation b {
    font-weight: 600;
    display: inline-block;
    margin: 0 1.1rem .25rem 0;
}
#navigation a { text-decoration: none; }
#navigation a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Inhalt */
#content { margin-top: 26px; }
#content .ce-bodytext { max-width: 72ch; }
#content .ce-bodytext table { max-width: 100%; }

/* Sprachmenü (sr_language_menu) – dezent unter dem Bild */
#header ul { list-style: none; padding: 0; margin: .6rem 0 0; }
#header ul li { display: inline-block; margin: 0 .4rem; }

/* ------------------------------------------------------------------ Footer */
#footer {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: .9em;
}
#footer a { color: var(--muted); }

/* ------------------------------------------------------------ Mobile (≤600px) */
@media (max-width: 600px) {
    body { font-size: 16px; }
    #navigation b { display: block; margin-right: 0; }   /* Menü gestapelt */
}
