:root {
    --hintergrund: #eef3f6;
    --flaeche: #ffffff;
    --flaeche-zart: #f6f9fb;
    --text: #17232d;
    --text-zart: #637481;
    --linie: #d6e0e6;
    --primaer: #0b4f83;
    --primaer-dunkel: #073b63;
    --primaer-hell: #e8f2f8;
    --akzent: #2d9b45;
    --warnung: #d98213;
    --gefahr: #bd342f;
    --schatten: 0 14px 34px rgba(18, 45, 64, .09);
    --radius: 14px;
    --radius-klein: 9px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--hintergrund); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--primaer); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }

.app-kopf {
    position: sticky; top: 0; z-index: 50; min-height: 74px; padding: 8px clamp(18px, 3vw, 42px);
    display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 24px;
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linie); backdrop-filter: blur(14px);
}
.marke { display: inline-flex; align-items: center; }
.marke img { width: 154px; height: 58px; object-fit: contain; object-position: left center; }
.hauptnavigation { display: flex; align-items: center; justify-content: center; gap: 4px; }
.hauptnavigation a { padding: 10px 13px; border-radius: 8px; color: #40525f; font-weight: 650; }
.hauptnavigation a:hover, .hauptnavigation a.aktiv { color: var(--primaer); background: var(--primaer-hell); }
.benutzerbereich { display: flex; align-items: center; gap: 12px; color: var(--text-zart); font-size: 14px; white-space: nowrap; }
.benutzerbereich form { margin: 0; }
.konto-link { display: grid; gap: 0; color: var(--text); line-height: 1.2; text-align: right; }
.konto-link strong { font-size: 13px; }
.konto-link small { color: var(--text-zart); font-size: 11px; }
.konto-link:hover strong, .konto-link.aktiv strong { color: var(--primaer); }
.text-schalter { border: 0; background: transparent; color: var(--primaer); padding: 4px; }
.menue-schalter { display: none; }

.seiteninhalt { width: min(1480px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 54px; }
.app-fuss { width: min(1480px, calc(100% - 36px)); margin: 0 auto; padding: 22px 0 34px; border-top: 1px solid var(--linie); display: flex; justify-content: space-between; color: var(--text-zart); font-size: 13px; }

.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.seitenkopf.kompakt { margin-bottom: 18px; }
.seitenkopf h1 { margin: 2px 0 4px; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
.seitenkopf p { margin: 0; color: var(--text-zart); }
.kopf-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ueberzeile { margin: 0; color: var(--primaer); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.kartenraster { display: grid; gap: 20px; }
.kartenraster.zweispaltig { grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); align-items: start; }
.kartenstapel { display: grid; gap: 20px; }
.kartenkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 24px 16px; }
.kartenkopf h2 { margin: 0; font-size: 19px; }
.kartenkopf p { margin: 3px 0 0; color: var(--text-zart); font-size: 14px; }

.schaltflaeche { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; line-height: 1.2; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.schaltflaeche:hover { transform: translateY(-1px); }
.schaltflaeche-primaer { background: var(--primaer); color: white; border-color: var(--primaer); }
.schaltflaeche-primaer:hover { background: var(--primaer-dunkel); }
.schaltflaeche-sekundaer { background: var(--akzent); color: white; border-color: var(--akzent); }
.schaltflaeche-hell { background: white; color: var(--primaer); border-color: var(--linie); }
.schaltflaeche-gross { min-height: 52px; padding-inline: 26px; font-size: 16px; }
.schaltflaeche.klein { min-height: 34px; padding: 7px 11px; font-size: 13px; }

.formular { padding: 4px 24px 24px; }
.formular-einspaltig { display: grid; gap: 14px; }
.formularraster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.formularraster.dreispaltig { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
label { color: #3d4d58; font-size: 13px; font-weight: 720; }
label > input, label > select, label > textarea, .formular select, .formular textarea {
    width: 100%; margin-top: 6px; border: 1px solid #c8d4dc; border-radius: 8px; background: #fff; color: var(--text); padding: 10px 11px; min-height: 42px; outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primaer); box-shadow: 0 0 0 3px rgba(11,79,131,.12); }
input[readonly] { background: #f0f4f6; color: #5f6e77; }
.feldhinweis { margin: 7px 0 0; color: var(--text-zart); font-size: 13px; }

.kontrollfeld { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.kontrollfeld input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--primaer); }
.kontrollfeld span { display: grid; gap: 2px; }
.kontrollfeld small { color: var(--text-zart); font-weight: 500; }

.meldung { position: fixed; top: 88px; left: 50%; z-index: 100; transform: translateX(-50%); width: min(660px, calc(100% - 32px)); padding: 13px 16px; border-radius: 10px; box-shadow: 0 18px 40px rgba(20,40,55,.18); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: white; }
.meldung-erfolg { background: #247a39; }
.meldung-fehler { background: #a72e2a; }
.meldung button { border: 0; background: transparent; color: white; font-size: 24px; }

.tabellenrahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-top: 1px solid var(--linie); text-align: left; vertical-align: middle; }
th { background: var(--flaeche-zart); color: #60717d; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td { font-size: 14px; }
.tabellenlink { font-weight: 800; }
.status, .typ, .verfuegbarkeit { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border-radius: 999px; font-weight: 750; font-size: 12px; }
.status-neu { color: #0b4f83; background: #e5f0f7; }
.status-pruefung { color: #86530d; background: #fff1d7; }
.status-bearbeitung { color: #6946a1; background: #f0e9fb; }
.status-abholbereit { color: #1d7134; background: #e2f4e7; }
.status-abgeschlossen { color: #4c5a63; background: #e8edf0; }
.status-storniert { color: #9b2e2a; background: #f9e4e3; }
.typ-annahme { color: #0b4f83; background: #e5f0f7; }
.typ-ausgabe { color: #1d7134; background: #e2f4e7; }
.typ-rueckgabe { color: #8a5610; background: #fff0d3; }

.leerzustand { padding: 44px 24px; text-align: center; color: var(--text-zart); }
.leerzustand strong { display: block; color: var(--text); font-size: 17px; }
.leerzustand p { margin: 5px 0 0; }
.leerzustand.klein { padding: 24px 16px; }
.hinweis { margin: 16px 0; padding: 13px 15px; border-left: 4px solid var(--primaer); background: var(--primaer-hell); border-radius: 5px 9px 9px 5px; }
.hinweis p { margin: 3px 0 0; color: var(--text-zart); }
.hinweis-erfolg { border-left-color: var(--akzent); background: #eaf6ed; }

.info-karte { padding: 22px 24px; }
.info-karte h2 { margin: 0 0 15px; font-size: 18px; }
.info-karte dl { margin: 0; }
.info-karte dl div, .datenliste div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--linie); }
.info-karte dt, .datenliste dt { color: var(--text-zart); }
.info-karte dd, .datenliste dd { margin: 0; text-align: right; font-weight: 700; }

@media (max-width: 980px) {
    .app-kopf { grid-template-columns: 150px auto auto; gap: 10px; }
    .marke img { width: 125px; }
    .menue-schalter { display: inline-flex; justify-self: end; border: 1px solid var(--linie); border-radius: 8px; background: white; padding: 8px 11px; }
    .hauptnavigation { display: none; position: absolute; top: 73px; left: 16px; right: 16px; padding: 10px; background: white; border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); flex-direction: column; align-items: stretch; }
    .hauptnavigation.offen { display: flex; }
    .konto-link { display: none; }
    .kartenraster.zweispaltig { grid-template-columns: 1fr; }
    .formularraster.dreispaltig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-3 { grid-column: span 2; }
}

@media (max-width: 680px) {
    body { font-size: 14px; }
    .seiteninhalt { width: min(100% - 20px, 1480px); padding-top: 20px; }
    .app-kopf { min-height: 64px; grid-template-columns: 128px 1fr auto; padding: 4px 10px; }
    .marke img { height: 52px; width: 116px; }
    .hauptnavigation { top: 63px; left: 10px; right: 10px; }
    .benutzerbereich { font-size: 12px; }
    .seitenkopf { align-items: stretch; flex-direction: column; gap: 14px; }
    .seitenkopf .schaltflaeche, .kopf-aktionen .schaltflaeche { width: 100%; }
    .kartenkopf { padding: 18px 16px 13px; }
    .formular { padding: 3px 16px 18px; }
    .formularraster, .formularraster.dreispaltig { grid-template-columns: 1fr; gap: 13px; }
    .span-2, .span-3 { grid-column: span 1; }
    .app-fuss { width: calc(100% - 20px); flex-direction: column; gap: 4px; }
    th, td { padding: 11px 12px; }
}
/*
<!-- 
    ***********************************************
    *  Layout and development by ceis-it.de  *
    ***********************************************
-->
*/
