html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #444;
}

a {
  color: #444;
  text-decoration: none;
}
a:hover {
  color: #6c757d;
  text-decoration: none;
}

.btn {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #fff;
  background-color: #6c757d;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: #4d5761;
  color: #fff;
}

  .btn-block {
    display:block;
    margin:0.2em auto;
	margin-bottom: 1em;
  }


@media all and (max-width:30em){
  a.btn{
    display:block;
    margin:0.2em auto;
	margin-bottom: 1em;
  }
}

/* Header / Navigation (Checkbox-Menü) */
.header {
  background-color: #fff;
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}
.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
}
.header li a {
  display: block;
  padding: 20px 20px;
  border-left: 1px solid #f4f4f4;
  text-decoration: none;
}
.header li a:hover,
.header .menu-btn:hover {
  background-color: #f4f4f4;
}
.header .logo {
  display: block;
  float: left;
  font-size: 1.65em;
  padding: 0;
  text-decoration: none;
}

.header .logo img {
max-height: 52px;
width: auto;
margin-left: 20px;
margin-top: 4px;
margin-bottom: -4px;
}
 

/* Menü-Zustände */
.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}
.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 20px 20px;
  position: relative;
  user-select: none;
}
.header .menu-icon .navicon {
  background: #333;
  display: block;
  height: 3px;
  position: relative;
  transition: background .2s ease-out;
  width: 26px;
}
.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}
.header .menu-icon .navicon:before { top: 8px; }
.header .menu-icon .navicon:after  { top: -8px; }

/* Checkbox */
.header .menu-btn { display: none; }
.header .menu-btn:checked ~ .menu {
  max-height: 640px;
}
.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}
.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}
.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* Desktop */
@media (min-width: 67em) {
  .header li { float: left; }
  .header li a { padding: 20px 30px; }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon { display: none; }
}


hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	margin-bottom: 20px;
	margin-top: 20px;
}

/* Layout-Container */
.container {
  margin: auto;
  padding: 25px;
  max-width: 1200px;
  margin-top: 40px; /* Platz für fixed Header */
}

/* Alerts (Login-Fehler) */
.alert {
  padding: 12px 20px;
  border-radius: 6px;
  margin-top: 10px;
  font-weight: 500;
}
.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}


label {
  display: block;
  margin-left: 8px;
  padding-left: 2px;
  font-weight: 500;
  margin-top: 5px;
  margin-bottom: 5px;
  color: #646464;
}

/* Login-Formular */
.login-form {
  max-width: 320px;
  margin: 50px auto;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}

    .login-form input[type="text"],
	.login-form input[type="email"],
    .login-form input[type="password"] {
      padding: 0.75rem 1rem;
      width: 100%;
      box-sizing: border-box;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 6px;
      transition: border-color 0.3s, box-shadow 0.3s;
    }

    .login-form input[type="text"]:focus,
	.login-form input[type="email"]:focus,
    .login-form input[type="password"]:focus {
      border-color: #6c757d;
      box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
      outline: none;
    }

    .login-form .btn {
      padding: 0.75rem 1rem;
      font-size: 1rem;
      color: white;
      background-color: #6c757d;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .login-form .btn:hover {
      background-color: #4d5761;
    }
	
	form input[type="text"],
form input[type="email"],
form input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%; /* oder 100% wenn du volle Breite willst */
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding: 8px 40px 8px 10px; /* Platz rechts für das Auge */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100%;
}

.password-wrapper .toggle-password:hover svg {
  color: #000;
}

/* ===== Modal - nur Styling, keine globalen Nebenwirkungen ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;                /* bleibt per JS gesteuert */
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
}

.modal .modal-content {
  width: 100%;
  max-width: 520px;
  background: #f4f4f4;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: 18px;
  animation: modalIn .18s ease-out forwards;
  transform: translateY(6px) scale(.985);
  opacity: 0;
}

/* Headline & Abstände */
.modal .modal-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.modal .modal-content input[type="text"],
.modal .modal-content input[type="number"],
.modal .modal-content input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  margin: 8px 0 10px 0;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  color: #444;
}
.modal .modal-content input:focus {
  outline: none;
  border-color: #6c757d;
  box-shadow: 0 0 0 3px rgba(108,117,125,.15);
}

/* Button-Paar im Footer (rechtsbündig, Abstand) */
.modal .btn { 
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.modal .btn + .btn { margin-left: 0px; }

.modal .btn-primary {
  background-color: #6c757d;
  color: #fff;
}
.modal .btn-primary:hover { background-color: #4d5761; color: #fff; }

.modal .btn-secondary {
  background-color: #e9ecef;
  color: #2b2f36;
  border-color: #e5e7eb;
}
.modal .btn-secondary:hover {
  background-color: #dde2e6;
}

/* kleine Hilfezeile */
.modal .help-text {
  margin-top: 6px;
  font-size: .85rem;
  color: #6b7280;
}

/* Ein-/Ausblend-Animation */
@keyframes modalIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Mobile Feinschliff */
@media (max-width: 600px) {
  .modal .modal-content {
    padding: 16px;
    border-radius: 10px;
  }
}


/* Form Layout */
.form-field { margin-bottom: 0.1rem; }
.form-field label {
  display:block;
  font-weight:600;
  font-size:0.95rem;
  margin-bottom:0.1rem;
  color:#333;
}

/* Einheitliche Inputs (inkl. Datei und Date-Picker) */
.input {
  width:100%;
  padding:0.65rem 0.8rem;
  border:1px solid #d7d7d7;
  border-radius:8px;
  background:#fff;
  font-size:16px;
  line-height:1.3;
  box-sizing:border-box;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color:#8aa7ff;
  box-shadow:0 0 0 3px rgba(138,167,255,.2);
}

/* Datei-Input minimal angleichen */
input[type="file"].input {
  padding:0.5rem;
}


/* --- Einheitliche Höhe für Datepicker --- */
.input-date {
  height: 44px;                  /* gleiche Höhe wie Textfelder */
  line-height: 1.3;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* optional: Icon beibehalten */
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' stroke='%23999' stroke-width='1.5'/%3E%3Cpath d='M8 2v4M16 2v4' stroke='%23999' stroke-width='1.5'/%3E%3Cpath d='M3 9h18' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 18px 18px;
  padding-right: 2.2rem;
}

.input-date:focus {
  border-color: #8aa7ff;
  box-shadow: 0 0 0 3px rgba(138,167,255,.2);
}

/* Verhindert, dass Browser-Höhe überschreiben */
.input-date::-webkit-datetime-edit,
.input-date::-webkit-inner-spin-button,
.input-date::-webkit-clear-button {
  height: auto;
  line-height: 1.3;
}

.input-date::-webkit-calendar-picker-indicator {
  opacity: 0; /* wir nutzen unser Icon */
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

/* Button-Reihe schön nebeneinander */
.btn-row {
  display:flex;
  gap:.5rem;
  margin-top:.6rem;
}
@media (max-width: 520px) {
  .btn-row { flex-direction:column; }
}

/* Grid im Modal beibehalten, etwas Luft */
.grid-2 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.75rem;
}
@media (max-width: 520px){
  .grid-2 { grid-template-columns:1fr; }
}

/* Modal-Card etwas luftiger */
.modal-content {
  padding: 1.25rem 1.25rem 1rem;
}



/* Grundlayout */
.row {
  color: #999;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .5rem 0 1rem;
  flex-wrap: nowrap;             /* erlaubt Umbruch statt Schrumpfen */
}

.switch {
  position:relative;
  width:56px; height:30px;
  border-radius:999px;
  background:#d1d5db;
  display:inline-block;
  vertical-align:middle;
  transition:background .2s;
  flex: 0 0 56px;                   /* fix, nicht schrumpfen */
  box-sizing: content-box;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}

input[type="checkbox"].sr-check {
  position:absolute; opacity:0; width:1px; height:1px; overflow:hidden; pointer-events:none;
}

/* Aktivzustand */
input[type="checkbox"].sr-check:checked + .switch { background:#22c55e; }
input[type="checkbox"].sr-check:checked + .switch::after { transform: translateX(26px); }

/* Ja/Nein neben dem Switch: nicht schrumpfen */
.row > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Label bleibt in der Zeile, kürzt mit … statt umzubrechen */
.label {
  color:#374151;
  font:14px/1.2 system-ui, sans-serif;
  flex: 1 1 auto;                  /* darf Restbreite nutzen */
  min-width: 0;                    /* wichtig für ellipsis in Flex */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 360px) {
  .row { flex-wrap: wrap;     border-bottom: 1px solid #ddd;   /* Linie unter jeder Zeile */
    padding-bottom: 0.5rem;          /* etwas Abstand zur Linie */
    margin-bottom: 0.75rem;}
  .label { white-space: normal; overflow: visible; text-overflow: clip; }
}


        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }
        th, td {
            border: 1px solid #ccc;
            padding: 0.75rem;
            font-size: 1rem;
            vertical-align: top;
        }
        th { background: #eee; }

        .nowrap { white-space: nowrap; }

        @media (max-width: 900px) {
            .hide-md { display:none; }
        }

        @media (max-width: 600px) {
            table, thead, tbody, th, td, tr { display: block; }
            thead { display: none; }
            tr {
                margin-bottom: 1rem;
                border: 1px solid #ccc;
                padding: 0.5rem;
                border-radius: 5px;
                background: #fff;
            }
            td { padding: 0.3rem 0; }
            td::before {
                content: attr(data-label);
                font-weight: bold;
                display: block;
            }
        }
		
		
		
		.catalog-toolbar{display:flex;gap:.75rem;align-items:center;margin:1rem 0;flex-wrap:wrap}
        .catalog-search{flex:1;min-width:260px;max-width:640px;padding:.6rem .8rem;border:1px solid #ddd;border-radius:.6rem}
        .catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}
        .card{background:#fff;border:1px solid #eee;border-radius:1rem;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04)}
        .card-img{width:100%;height:auto;object-fit:contain;background:#f6f6f6}
        .card-body{padding:.9rem}
        .badge{display:inline-block;background:#eef4ff;color:#234;padding:.2rem .5rem;border-radius:.5rem;font-size:.8rem;border:1px solid #dfe8ff;margin-right:.25rem;margin-bottom:.25rem}
        .badge.warn{background:#fff3f3;border-color:#ffd6d6;color:#7a1f1f}
        .muted{color:#667085;font-size:.9rem}
        .card-title{font-weight:600;margin:.2rem 0 .4rem}
        .empty{padding:1rem;border:1px dashed #ddd;border-radius:.8rem;background:#fafafa}
        .meta{margin-top:.4rem;display:flex;flex-wrap:wrap;gap:.25rem}
		
		.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
		.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; align-items: end; }
		@media(max-width:640px){ .grid-2{grid-template-columns:1fr;} }
		.form-field{margin-bottom:.75rem;}
		form-field label{display:block;font-weight:600;margin-bottom:.25rem;}
  .input{width:100%;padding:.65rem .6rem;border:1px solid #ccc;border-radius:8px;font-size:16px;}
  .btn{padding:.7rem 1rem;border:none;border-radius:10px;cursor:pointer;}
  .btn-primary{background:#0d6efd;color:#fff;}
  .btn-secondary{background:#e9ecef;}
  .actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.75rem;}
  .thumb img{max-height:120px;border-radius:6px;border:1px solid #eee;}
  .error{background:#ffe8e8;border:1px solid #ffb3b3;color:#900;padding:.75rem;border-radius:8px;margin:.75rem;}


input, select, textarea {
  font-size: 16px; 
}

/* Optional: Suchfeld etwas „fingerfreundlicher“ machen */
.catalog-search {
  font-size: 16px;
  line-height: 1.3;
  padding: 12px 14px;
  min-height: 44px; 
  box-sizing: border-box;
}




