/* /Auftrag2/head.css – Stil der Auftragsseiten (alle Seiten mit head.php)
   Silber-Stil der neuen Website: Source Sans 3, Grautöne, Links blau.
   Ersetzt in head.php die sechs wp-content-Stylesheets. */

@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }

:root {
    --grund: #fcfcfc;
    --flaeche: #f1f2f3;
    --rand: #e2e3e5;
    --rand-feld: #c9ccd0;
    --text: #4d5155;
    --text-leise: #65696e;
    --titel: #4f5358;
    --knopf: linear-gradient(#6a6e72, #55595d);
    --knopf-hover: linear-gradient(#5a5e62, #45484c);
    --link: #1d64a8;
    --link-hover: #0f3d6b;
    --link-flaeche: rgba(29, 100, 168, 0.1);
}

/* ---------- Grundlage ---------- */
html { background: var(--grund); }

body {
    max-width: 960px;
    margin: 0 auto !important; /* head.php setzt margin:8px inline */
    padding: 16px 16px 48px;
    background: var(--grund);
    color: var(--text);
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

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

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

.clear { clear: both; }

hr {
    border: 0;
    border-top: 1px solid var(--rand);
    margin: 16px 0;
}

/* ---------- Titel: normal statt fett ---------- */
h1, h2, h3, h4, h5 {
    color: var(--titel);
    font-weight: 400;
    line-height: 1.25;
    margin: 24px 0 12px;
}
h2 { font-size: 26px; }
h3 { font-size: 21px; }
h4 { font-size: 19px; }

b, strong { font-weight: 600; }

/* ---------- Links ---------- */
a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    color: var(--link-hover);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    background-color: var(--link-flaeche);
    border-radius: 2px;
}
a:has(img):hover { background-color: transparent; }

/* ---------- Kopf (head.php) ---------- */
body > div:first-of-type img { max-height: 70px; width: auto; } /* Logo */

/* ---------- Schritte Start › Adresse › Kontrolle › Lieferschein ---------- */
#LOG1 { margin: 8px 0 24px; }
#LOG1 br, #LOG1 hr { display: none; }

#breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#breadcrumbs li {
    border: 1px solid var(--rand) !important; /* überschreibt border-left inline */
    border-radius: 999px;
    background: #fff;
    color: var(--text-leise);
    font-size: 15px;
    padding: 4px 14px;
}
#breadcrumbs li p { margin: 0; }
#breadcrumbs li:has(> strong) {
    background: var(--flaeche);
    border-color: var(--rand-feld) !important;
    color: var(--titel);
}
#breadcrumbs strong { font-weight: 600; }

/* ---------- Boxen ---------- */
#Login1,
.MBOXm {
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: 20px 24px;
    margin: 20px 0;
}
.MBOXm:has(> h2:only-child) { background: transparent; border: 0; padding: 0; } /* Titel «Sie sind bereits Kunde» */
.MBOXm h2 { margin: 0; }
.MBOXm hr { display: none; }

.MB-ii {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    margin: 0 32px 16px 0;
}

#Login1 h4 { margin-top: 0; }

/* Spam-Falle: Felder müssen unsichtbar bleiben */
.FORM23 {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Tabellen ---------- */
table {
    border-collapse: collapse;
    width: auto !important;
    max-width: 100%;
}
td {
    padding: 6px 12px 6px 0;
    vertical-align: middle;
}
td[bgcolor] {
    background: var(--flaeche) !important;
    padding: 10px 14px;
}

/* Formularauswahl (Auftrag6_.php): PDF- und HTML-Links */
td a img { vertical-align: middle; margin-right: 6px; }

pre {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    background: var(--flaeche);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 8px 0;
    white-space: pre-wrap;
}

/* ---------- Felder ---------- */
input[type="text"],
input:not([type]),
select,
textarea {
    font: inherit;
    font-size: 16px;
    color: var(--text);
    background-color: #fff;
    border: 1px solid var(--rand-feld);
    border-radius: 4px;
    padding: 6px 10px;
    max-width: 100%;
}
input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--link);
    outline-offset: 1px;
    border-color: var(--link);
}
textarea { width: 400px; max-width: 100% !important; }
::placeholder { color: #9a9ea3; }

/* ---------- Knöpfe ---------- */
input[type="submit"] {
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--knopf);
    border: 0;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
}
input[type="submit"]:hover { background: var(--knopf-hover); }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
    body { padding: 12px 16px 32px; font-size: 16px; }
    body > div[style*="float:right"] { display: none; } /* SSL-Bild */
    body > div[style*="margin-top:57px"] { margin: 20px 0 0 16px !important; }
    #Login1, .MBOXm { padding: 16px; }
    td { display: block; padding: 4px 0; }
    td[nowrap] { white-space: normal; }
    input[type="submit"][style] { margin-left: 0 !important; }
}
