@media (max-width: 1024px) {
    /* Eingabefelder und Dropdowns größer machen */
    #feldreihen .form-control, 
    #feldreihen .custom-select {
        height: 50px !important;
        font-size: 16px !important; /* Verhindert Auto-Zoom bei iOS */
        padding: 10px 15px;
    }

    /* Buttons (Speichern, +, X, Bemerkung) vergrößern */
    #feldreihen .btn {
        min-height: 50px;
        font-size: 16px;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Das große RFID/Kontrollblatt-Feld extrem hervorheben */
    #tag {
        height: 70px !important;
        font-size: 24px !important;
        text-align: center;
        background-color: #f8f9fa;
        border: 2px solid #007bff;
    }

    /* Toggles (ZüF / FFV) vergrößern */
    .custom-switch .custom-control-label::before {
        height: 1.5rem;
        width: 2.75rem;
        border-radius: 1rem;
    }
    .custom-switch .custom-control-label::after {
        width: calc(1.5rem - 4px);
        height: calc(1.5rem - 4px);
        border-radius: 50%;
    }
    .custom-control-label {
        padding-left: 1.5rem;
        padding-top: 0.2rem;
        font-size: 16px;
    }
}


@media screen {
  #printSection {
      display: none;
  }
}

@media print {
  body * {
    visibility:hidden;
  }
  #printSection, #printSection * {
    visibility:visible;
  }
  #printSection {
    position:absolute;
    left:0;
    top:0;
  }
}

:root {
    --brand-green: #89a868;
    --brand-green-hover: #718f52;
    --brand-text: #6c6a66;
    --login-bg: #f4f6f9;
    --input-bg: #f8f9fa;
    --input-border: #e2e5e8;
}

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #bebebe;
}

/* =========================================
   NEUES LOGIN STYLING
   ========================================= */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--login-bg);
    padding: 20px;
}

.login-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo { 
    max-width: 220px; 
    margin-bottom: 2rem; 
}

.login-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: var(--brand-text); 
    margin-bottom: 1.5rem; 
}

/* Container für Icon + Feld */
.input-group-modern {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    background-color: var(--input-bg) !important;
    border: 2px solid var(--input-border) !important;
    border-radius: 10px !important;
    margin-bottom: 1.2rem !important;
    padding: 0.6rem 1rem !important;
    width: 100% !important;
    box-shadow: none !important;
}

/* Rahmenfarbe beim Reinklicken */
.input-group-modern:focus-within { 
    border-color: var(--brand-green) !important; 
    background-color: #ffffff !important; 
    box-shadow: 0 0 0 3px rgba(137, 168, 104, 0.15) !important;
}

/* Das Icon */
.input-group-modern i { 
    display: block !important;
    color: #adb5bd !important; 
    margin: 0 12px 0 0 !important; 
    padding: 0 !important;
    font-size: 18px !important; 
    width: auto !important;
    line-height: 1 !important;
}

.input-group-modern:focus-within i {
    color: var(--brand-green) !important;
}

/* Das Eingabefeld (E-Mail / Passwort) */
.input-group-modern input {
    display: block !important;
    flex: 1 1 auto !important; /* Zwingt das Feld, den restlichen Platz neben dem Icon zu nutzen */
    border: none !important;
    background: transparent !important;
    width: 100% !important;
    min-width: 0 !important; /* Verhindert das Ausbrechen aus dem Container */
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    font-size: 16px !important;
    color: #495057 !important;
    box-shadow: none !important; /* Überschreibt Bootstrap-Schatten */
    line-height: 1.5 !important;
    height: auto !important;
}
.login-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--brand-text);
}

.login-options label {
    display: flex;
    align-items: center;
    margin: 0; 
    font-weight: normal; 
    cursor: pointer;
    user-select: none;
    width: auto;
    height: auto;
    background: transparent;
    color: inherit;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    
    /* Absolute Brechstange gegen CSS-Frameworks */
    min-width: 22px !important;
    max-width: 22px !important;
    width: 22px !important; 
    min-height: 22px !important;
    max-height: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important; 
    
    border: 2px solid var(--input-border) !important;
    border-radius: 6px !important;
    margin: 0 12px 0 0 !important; 
    padding: 0 !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--input-bg);
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
}

.custom-checkbox:checked::after {
    content: '✔';
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: block; 
}

.btn-login {
    background-color: var(--brand-green);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-login:hover { 
    background-color: var(--brand-green-hover); 
}

.btn-login:active {
    transform: scale(0.98);
}

.alert-modern {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffeeba;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   RESTLICHE STYLES (Unverändert)
   ========================================= */
.container {
   padding-left: 0;
   padding-right: 0;
}

.navbar {
  margin-bottom: 0px;
}

.navbar-inverse .navbar-brand {
  font-size: 2em;
  color: #fff;
}

.navbar-inverse .navbar-brand:hover {
  color: #ccc;
}

.navbar-brand .logo {
  color: #5cb85c;
}

.main-container {
  margin-top: 20px;
}

.registration-form {
  max-width: 450px;
  margin: 0 auto;
}

.small-container-500 {
  max-width: 500px;
    margin: 0 auto;
}

.small-container-400 {
  max-width: 400px;
}

.small-container-330 {
  max-width: 330px;
  margin: 0 auto;
}

.small-container .small-container-heading,
.small-container .checkbox {
  margin-bottom: 10px;
}

.small-container .checkbox {
  font-weight: normal;
}

.small-container .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}

.small-container .form-control:focus {
  z-index: 2;
}

footer {
    position:absolute;
    bottom: 0;
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

.txtedit{
 display: none;
 width: 99%;
 height: 30px;
}

.txtedits{
 display: none;
 width: 99%;
 height: 30px;
}

div.ui-dialog.DTE {
  z-index: 110 !important;
}
  
div.ui-widget-overlay {
  z-index: 109 !important;
}