/* assets/style.css */

/* Basis‑Reset */
body {
    
	margin: 0;
    padding: 0;
    font-family: Arial, sans‑serif;
    background‑color: #fff; /* weißer Hintergrund */
    color: #333;
}


a {
    text-decoration: none;
    color: inherit; /* Optional, wenn Linkfarbe wie Textfarbe aussehen soll */
}

header {
     background: #f8f9fa;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px; /* Gleiche Breite wie .container */
    margin: 0 auto; /* Zentriert den Header */
}





header {
	
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}


header .logo {
    height: 80px;
    margin-right: 10px;
}

header .appname {
    
	font-size: 2.5em;
    color: #007bff;
    margin-left: 10px;
}

header .left-group {
    display: flex;
    align-items: center;
}
.container {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
	
}

.container_login {
    max-width: 400px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
	
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #b3d4fc;
    border-radius: 6px;
    box-sizing: border-box;
}
button {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
button:hover {
    background: #0056b3;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
}
table th {
    background: #f0f0f0;
    text-align: left;
}
form .item-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
form .item-group input {
    flex: 1;
}


/* === Modal Container === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* === Scrollbarer Inhalt === */
.modal-content {
  background: #fff;
  border-radius: 8px;
  width: 600px;
  max-height: 90vh;       /* wichtig: begrenzt die Höhe auf 90% des Viewports */
  overflow-y: auto;       /* aktiviert vertikales Scrollen */
  overflow-x: hidden;     /* verhindert horizontales Scrollen */
  padding: 20px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  position: relative;
}

/* === Close-Button oben rechts === */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-close:hover {
  background: #0056b3;
}

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

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;            /* ✅ kleiner Abstand zwischen Box und Text */
  font-size: 14px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;           /* entfernt Browser-Standardabstand */
  width: 16px;
  height: 16px;
}

/* Aktionen-Spalte: Icons größer & klickfreundlich */
td.actions { white-space: nowrap; }

td.actions .icon-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;          /* Button-Größe */
  height: 36px;
  font-size: 22px;      /* Icon/Emoji-Größe */
  line-height: 1;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  text-decoration: none;
  margin-right: 6px;
  transition: background .15s, border-color .15s, transform .05s;
}

td.actions .icon-btn:hover{
  background: #f0f4ff;
  border-color: #a9c3ff;
}

td.actions .icon-btn.danger:hover{
  background: #ffecec;
  border-color: #ffb1b1;
}

td.actions .icon-btn:active{ transform: scale(0.98); }


