/* ==========================================================
   Hibbeln Fahrtenbuch
   Hauptstylesheet
   ========================================================== */

:root {

    /* Farben */
    --primary: #2C3E50;

    --background-sidebar: #1A3A4A;
    --background-seite: #E1EBEA;
    --background-tabelle-kopf1: #E1EBEA;
    --background-navcard: transparent;

    /* Tabellenfarben */
    --background-tabelle: #F7FBFB;
    --background-tabelle-kopf: #B3DADA;
    --background-aktiv: #6FA3A3;
    --background-hover: #3E6970;
    --background-tabelle-alternativ: #EEF4F3;
    --background-tabelle-kopf2: #A6C0C0;

    --shadow: 0 4px 12px rgba(0,0,0,.12);

    /* Größen */
    --header-height: 70px;
    --radius: 10px;
    --border: #C8DAD8;

    /* Schriften */
    --font-tabelle: 'Inter', sans-serif;
    --font-logout: 'Inter', sans-serif;

    /* Texte */
    --text-logout: #ffffff;
    --text-navcard: #FFFFFF;
    --text-willkommen: #D3D3D3;
    --text-placeholder: #A6A4A4;

    /* Buttons */
    --button-logout: #0B525B;
    --button-toolbar: #F7FBFB;
    --button-toolbar-hover: #0B7777;
    --button-active: #0B7777;
    --button-active-hover: #095F63;
    --button-toolbar-aktiv: #769595
}

:root {
    color-scheme: light;
    --text: #263b3a;
    --text-primary: #2C3E50;
    --text-muted: #53676b;
    --text-subtle: #66777a;
    --text-light: #ffffff;
    --surface: #ffffff;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --primary: #15272d;
    --background-sidebar: #111d21;
    --background-seite: #101716;
    --background-tabelle-kopf1: #182422;
    --background-tabelle: #192321;
    --background-tabelle-kopf: #29413f;
    --background-aktiv: #34584f;
    --background-hover: #315b5a;
    --background-tabelle-alternativ: #202d2a;
    --background-tabelle-kopf2: #2b403d;
    --border: #374743;
    --text: #e5eeeb;
    --text-primary: #e5eeeb;
    --text-muted: #afbfbb;
    --text-subtle: #9eafaa;
    --text-light: #f4f7f6;
    --text-navcard: #e8f0ee;
    --text-willkommen: #c2cfcb;
    --text-placeholder: #9aa8a4;
    --button-toolbar: #1b2825;
    --button-toolbar-hover: #0b7777;
    --button-toolbar-aktiv: #426a63;
    --surface: #192321;
    --shadow: 0 4px 14px rgba(0,0,0,.35);
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .seite,
:root[data-theme="dark"] .content,
:root[data-theme="dark"] .daten-bereich,
:root[data-theme="dark"] .content-login {
    color: var(--text);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    color-scheme: dark;
    background-color: #17211f;
    color: var(--text);
    border-color: var(--border);
}

:root[data-theme="dark"] .verwaltung-details,
:root[data-theme="dark"] .fahrer-detail-inhalt,
:root[data-theme="dark"] .rechnung-filter,
:root[data-theme="dark"] .rechnung-vorschau-summe {
    background: var(--background-seite);
}

:root[data-theme="dark"] .rechnung-tabelle th {
    background: var(--background-tabelle-kopf);
}

:root[data-theme="dark"] .container-tabelle tbody tr:hover {
    background: var(--background-tabelle-alternativ);
}

:root[data-theme="dark"] .info-ecke,
:root[data-theme="dark"] .ipad-hochformat-hinweis > div,
:root[data-theme="dark"] .sidebar-hamburger {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

/* ==========================================================
   Grundeinstellungen
   ========================================================== */
   
body {
    
    margin: 0;
    height: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    color: var(--text);
}

.seite {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--background-seite);
}

.arbeitsbereich {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

/* ==========================================================
   Header                                                       *
   ========================================================== */

.header{

    height:var(--header-height);
    background:var(--primary);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0 30px;
    box-shadow:var(--shadow);

}

.logo {
    font-family: 'Montserrat' sans-serif;;
    font-size: 26px ;
    font-weight:normal;
    font-style: normal;
    color: #E9C46A;
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================================
   Login
   ========================================================== */

.container {

    display: flex;
    min-height: 100vh;
    }

.container-login {
    display: flex;
    min-height: 100vh;
    }

.content {
    flex: 1;
    }
    
.content-login {
    flex: 1;
    background: var(--background-seite);
    }
    
.company-logo img {
    margin-left: 100px;
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    }

.company-logo1 img {
    margin-left: 400px;
    width: 100px;
    height: auto;
    margin-bottom: 200px;
    }

.company-logo-login img {
    margin-left: 200px;
    width: 80px;
    height: auto;
    margin-bottom: 300px;
    }

.company-logo1-login img {
    margin-left: 300px;
    width: 600px;
    height: auto;
    margin-bottom: 200px;
    }

.page {
    display: flex;
    min-height: 100vh;
    }

.daten-bereich {
    flex: 1;
    min-height: 100vh;
    background:var(--background-seite);
    }

.text-login {
    font-size: 26px ;
    font-weight:100;
    color: #E9C46A;
    text-align: center;
    margin-bottom: 200px;
    transform: translateY(100px);
    }

.begrussung {
    margin: 30px 40px 0 40px;
    color: var(--text-willkommen);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    text-align: center;
    }
    
/* ====================================================
 * Fragments html
 * ==================================================== */

.container-kopf {
    display: flex;
    justify-content: space-between;

    height: auto;
    min-height: 0;

    border: 1px solid #C9C9C9;
    background: var(--button-toolbar);
    border-radius: var(--radius);

    padding: 10px 20px;
    box-sizing: border-box;
}

.kopf-links {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.kopf-links h2 {
    margin: 0;
}

.kopf-rechts {
    flex: 1;
}

.container-kopf h2 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    margin: 0;
}

.aktuelles-datum {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: normal;
    margin-top: auto;
    font-size: 20px;
}    

.tabelle-button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 150px;
    height: 30px;

    margin-right: 10px;

    border: 1px solid #C9C9C9;
    border-radius: var(--radius);

    background: var(--button-toolbar);

    color: var(--text-primary);
    font-size: 16px;
    text-decoration: none;
    box-sizing: border-box;
}

.tabelle-button:hover {
    background: var(--button-toolbar-hover);
    color: white;
}

.tabelle-button.deaktiviert {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.tabelle-button.aktiv {
    background-color: var(--button-toolbar-aktiv);
    color: white;
}

/* ==========================================================
 *  Arbeitsbereiche incl. Tabelle
 *  ========================================================== */

.arbeitsbereich {
    flex:1;
    background: var(--background-seite);
    overflow:auto;
    padding: 20px 20px 20px 20px;
}

.container-tabelle {
    width: 100%;
    background: var(--background-tabelle);
    border: 1px solid #C9C9C9;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.container-tabelle table {
    width: 100%;
    border-collapse: collapse;
}

.container-tabelle th {
    background: var(--background-tabelle-kopf);
    color: var(--text-light);
    padding: 15px;
    text-align: left;
    font-size: 15px;
}

.container-tabelle td {
    padding: 14px 15px;
    border-bottom: 1px solid #E0E0E0;
    color: var(--text);
    font-size: 15px;
}

.container-tabelle tr:last-child td {
    border-bottom: none;
}

.container-tabelle tbody tr:hover {
    background: #F5F7F8;
}

.container-tabelle-auftrag {
    display: flex;
    gap: 25px;
    width: 100%;
}

.tabelle-kopf {
    background: var(--background-tabelle);
    border: 1px solid #C9C9C9;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

/* ==========================================================
 *  Formulare
 *  ========================================================== */

.tabelle-kopf {
    background: var(--background-tabelle-kopf);
    width: 100%;
    height: 30px;
    border: 1px solid #C9C9C9;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 20px;
    vertical-align: center;
    padding: 15px 25px;
}

.tabelle-rahmen {
    border: 1px solid #C9C9C9;
    border-radius: var(--radius);
    background: var(--background-tabelle);
    overflow: hidden;
    margin-top: 15px;
}

.container-form-inhalt{
    padding: 25px;
}

textarea {
    border: 1px solid #C9C9C9;
    border-radius: 10px;
    outline: none;
}

.form-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background: var(--background-seite);
    border: 1px solid #C9C9C9;
    border-radius: 10px;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
 *  Formularfelder
 *  ---------------------------------------------------------- */

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 7px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 40px;
    padding: 8px 10px;
    box-sizing: border-box;

    border: 1px solid #C9C9C9;
    border-radius: 6px;

    background: #FFFFFF;
    color: var(--text);

    font-size: 15px;
}

.form-group select {
    width: 50%;
}

.form-group input:focus {
    outline: none;
    border-color: var(--button-active);
}

.checkbox-group {
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* ----------------------------------------------------------
 *  Formular Buttons
 *  ---------------------------------------------------------- */

.form-actions,
.form-gruppe-button {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 25px;
}

.form-actions .button,
.form-actions .button-secondary,
.form-gruppe-button .button,
.form-gruppe-button .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 130px;
    height: 38px;

    padding: 0 18px;

    border-radius: var(--radius);
    border: 1px solid #C9C9C9;

    font-size: 15px;
    text-decoration: none;

    box-sizing: border-box;
    cursor: pointer;
}


.form-actions .button,
.form-gruppe-button .button {
    background: var(--button-active);
    color: var(--text-light);
}

.form-actions .button-secondary,
.form-gruppe-button .button-secondary {
    background: var(--button-toolbar);
    color: var(--text);
}

/* ----------------------------------------------------------
 *  Status
 *  ---------------------------------------------------------- */

.status-active {
    color: #2E8B57;
    font-weight: 600;
}

.status-inactive {
    color: #C0392B;
    font-weight: 600;
}

/* ==================================================
 *  Popup
 *  ================================================== */

.fahrt-popup {
    display: none;

    position: auto;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 800px;
    max-width: 90vw;
    max-height: 90vh;

    background: var(--surface);

    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    z-index: 1000;

    overflow-y: auto;
}


/* Popup sichtbar */

.fahrt-popup.anzeigen {
    display: block;
}


/* ==================================================
 *  Popup-Kopf
 *  ================================================== */

.popup-kopf {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 15px 20px;

    background: var(--primary);
    color: var(--text-light);
}


/* Überschrift */
/* ----------------------------------------------------------
 *  Button Bearbeiten
 *  ---------------------------------------------------------- */


.tabelle-button,
.toolbar-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 30px;
    margin: 0 0 10px 10px;
    border: 1px solid #C9C9C9;
    border-radius: var(--radius);
    background: var(--button-toolbar);
    color: var(--text-primary);
    font-size: 16px;
    text-decoration: none;
    box-sizing: border-box;
}

.tabelle-button:hover,
.toolbar-button:hover {
    background: var(--button-toolbar-hover);
    color: white;
}
.popup-kopf h2 {
    margin: 0;
    font-size: 20px;
}


/* Schließen */

.popup-kopf button {
    border: none;

    background: transparent;
    color: var(--text-light);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

/* =================================================
 * Toolbar
 * ================================================= */

.container-toolbar {
    display: flex;
    height: 3%;
    min-height: 3%;
    margin-top: 10px;
}

.tabelle-button,
.toolbar-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 30px;
    margin: 0 0 10px 10px;
    border: 1px solid #C9C9C9;
    border-radius: var(--radius);
    background: var(--button-toolbar);
    color: var(--text-primary);
    font-size: 16px;
    text-decoration: none;
    box-sizing: border-box;
}

.tabelle-button:hover,
.toolbar-button:hover {
    background: var(--button-toolbar-hover);
    color: white;
}

.toolbar-button.aktiv,
.toolbar-button.aktiv:hover {
    border-color: var(--button-active);
    background: var(--button-toolbar-hover);
    color: #fff;
}

.toolbar-button:hover {
    background: var(--button-toolbar-aktiv);
    color: #fff;
}

/* ==================================================
 *  Popup-Inhalt
 *  ================================================== */

.popup-inhalt {
    padding: 25px;
}


/* ==================================================
 *  Hintergrund abdunkeln
 *  ================================================== */

.popup-hintergrund {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.45);

    z-index: 999;
}


.popup-hintergrund.anzeigen {
    display: block;
}

/* Gemeinsame Gestaltung für Aktionsbuttons und Button-Links */
.button,
.button-secondary {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.button {
    border-color: var(--button-active);
    background: var(--button-active);
    color: #fff;
}

.button-secondary {
    background: var(--button-toolbar);
    color: var(--text-primary);
}

.button:hover,
.button-secondary:hover {
    border-color: var(--button-active-hover);
    background: var(--button-active-hover);
    color: #fff;
}

.button:active,
.button-secondary:active {
    transform: translateY(1px);
}

.button:focus-visible,
.button-secondary:focus-visible {
    outline: 3px solid rgba(11, 119, 119, .28);
    outline-offset: 2px;
}

button:not([class]):hover {
    filter: brightness(.88);
    transition: filter .16s ease;
}

button:not([class]):focus-visible {
    outline: 3px solid rgba(11, 119, 119, .35);
    outline-offset: 2px;
}

.popup-kopf button:hover {
    color: #bfe3dd;
}
