/* -------------------------------------------
   Global Dark Layout
------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #0e141b; /* dunkles Sammlo-Blau */
    color: #ffffff;
}

h1, h2, h3, h4 {
    margin: 0 0 20px 0;
}

/* -------------------------------------------
   Container
------------------------------------------- */
.container {
    width: 90%;
    max-width: 1050px;
    margin: 40px auto;
}

/* -------------------------------------------
   Buttons
------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

.btn-primary {
    background: #2b7cff;
}
.btn-primary:hover {
    background: #1a5cd1;
}

.btn-green {
    background: #28a745;
}
.btn-green:hover {
    background: #1f8a39;
}

.btn-red {
    background: #dc3545;
}
.btn-red:hover {
    background: #b52a37;
}

.btn-dark {
    background: #343a40;
}
.btn-dark:hover {
    background: #1d1f22;
}

/* -------------------------------------------
   Cards (Dashboard & Listenansichten)
------------------------------------------- */
.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2b7cff;
    margin-bottom: 20px;
}

.card-small {
    width: 280px;
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    transition: 0.15s;
}
.card-small:hover {
    background: rgba(255,255,255,0.12);
}

/* Dashboard Icon */
.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: 0.85;
}

/* -------------------------------------------
   Forms
------------------------------------------- */
form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    background: #11171f;
    border: 1px solid #202a36;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 16px;
    transition: border 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #28a745; /* grüner Fokus */
}

/* -------------------------------------------
   List Items (Pets, Keys, Contracts…)
------------------------------------------- */
.item-box {
    padding: 20px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #2b7cff;
}

.item-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.item-sub {
    font-size: 14px;
    opacity: 0.75;
}

/* -------------------------------------------
   Key Module
------------------------------------------- */
.key-icon {
    font-size: 28px;
    margin-right: 6px;
}

.key-entry {
    padding: 18px;
    background: rgba(255,255,255,0.07);
    border-left: 4px solid #f5c542;
    border-radius: 10px;
    margin-bottom: 16px;
}
.key-entry:hover {
    background: rgba(255,255,255,0.12);
}

/* -------------------------------------------
   Pets Module
------------------------------------------- */
.pet-entry {
    padding: 20px;
    background: rgba(255,255,255,0.07);
    border-left: 4px solid #3bd186;
    border-radius: 10px;
    margin-bottom: 16px;
}
.pet-entry:hover {
    background: rgba(255,255,255,0.13);
}

/* -------------------------------------------
   Upload Buttons
------------------------------------------- */
.upload-box {
    margin: 10px 0;
    padding: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px dashed #2b7cff;
    text-align: center;
    cursor: pointer;
}

/* -------------------------------------------
   Tables (falls benötigt)
------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 10px;
    border-bottom: 1px solid #333;
}
table th {
    background: #1b2735;
}

/* -------------------------------------------
   Links
------------------------------------------- */
a {
    color: #2b7cff;
}
a:hover {
    color: #5292ff;
}

/* -------------------------------------------
   Footer / small text
------------------------------------------- */
.small {
    opacity: 0.7;
    font-size: 13px;
}

/* -------------------------------------------
   Flex Helpers
------------------------------------------- */
.flex {
    display: flex;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ----- Select Fix: Dark Mode, große Dropdowns ------ */
select {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
    padding: 10px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    width: 100% !important;
}

/* Dropdown-Liste */
select option {
    background-color: #242424 !important;
    color: #ffffff !important;
    padding: 10px !important;
    font-size: 16px !important;
}

/* Hover Option */
select option:hover {
    background-color: #333 !important;
}
button, a, a:visited, a:hover {
    color: inherit !important;
    text-decoration: none !important;
}
.container { max-width:1100px; margin:40px auto; padding:0 20px; color:#fff; font-family:system-ui; }
.btn-primary, .btn-secondary {
  background:#38bdf8; color:#000; padding:8px 16px; border-radius:8px;
  text-decoration:none; font-weight:600; display:inline-block; margin:4px 0;
}
.btn-secondary { background:#1e293b; color:#fff; }
.table-dark { background:#0f172a; border-collapse:collapse; }
.table-dark th, .table-dark td { border:1px solid #1e293b; padding:8px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.card { background:#0f172a; border-radius:12px; padding:15px; }
.card img { width:100%; height:160px; object-fit:cover; border-radius:8px; margin-bottom:10px; }
.blog-content { background:#0f172a; padding:15px; border-radius:10px; margin-top:15px; }
body.light-mode {
  background:#f8fafc;
  color:#000;
}
body.light-mode header {
  background:#e2e8f0;
  color:#000;
}
body.light-mode .module-card {
  background:#f1f5f9;
  border-color:#cbd5e1;
}
body.light-mode a { color:#0ea5e9; }
/* ----- Sammlo: Immer Dark Mode erzwingen ----- */
body,
html,
body.dark-mode,
html.dark-mode {
    background: #0e141b !important; /* dunkles Sammlo-Blau */
    color: #ffffff !important;
}

body.light-mode {
    background: #0e141b !important;
    color: #ffffff !important;
}

.module-card, .card, .container, .blog-content {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
}

