﻿/* /assets/css/basisstyle.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}


/* Standardgröße für größere Displays */
.titel-container h1 {
    font-size: 2rem; /* oder was du aktuell verwendest */
}

/* Halb so groß auf schmalen Displays (Smartphones) */
@media screen and (max-width: 600px) {
    .titel-container h1 {
        font-size: 1rem;
    }
}

/* Standardgröße für größere Displays */
.kopf-mitte h1 {
    font-size: 2rem; /* oder was du aktuell verwendest */
}

/* Halb so groß auf schmalen Displays (Smartphones) */
@media screen and (max-width: 600px) {
    .kopf-mitte h1 {
        font-size: 1rem;
    }
}


.logo-container {
    flex: 0 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
}

.kopfbereich {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0F5132; /* dunkel englischgrün */
    padding: 10px 20px;
    border-bottom: 3px solid #e0e0e0;
    color: white;
    flex-wrap: wrap;
    position: relative;
}

.kopf-links, .kopf-rechts {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 80px; /* Logo größer darstellen */
    max-height: 100%;
}

.kopf-mitte {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn.klein {
    padding: 6px 12px;
    border-radius: 10px;
    background-color: white;
    color: #234f37;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
}
.titel-container {
    flex: 1 1 auto;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.login-container {
    flex: 0 0 auto;
}

.login-button {
    padding: 8px 16px;
    border-radius: 10px;
    background-color: white;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #234f37;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    font-weight: bold;
}
main {
    padding: 20px;
}

/* Buttons */
button, .btn {
    background-color: #ddd;
    border: none;
    padding: 10px 15px;
    border-radius: 10pt;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #ccc;
}

/* Responsive Verhalten */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
    background: #fff;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #1b3a2f;
    color: white;
}

button {
    font-size: 1em;
}

button[style*="font-size:0.8em;"] {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 5pt;
    margin-left: 5px;
}

table input[type=text] {
    padding: 3px;
    font-size: 0.9em;
    border: 1px solid #bbb;
    border-radius: 5px;
    width: auto;
    max-width: 140px;
}

.admin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.kachel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 15px;
}

.kachel {
    position: relative;
    padding: 2.5rem 1rem 1rem 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f7f7f5;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 180px;
}

.kachel h3 {
    margin-top: 70px;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #2c3e50;
}
.kachel-bild {
    width: 60px;
    height: 60px;
    object-fit: contain;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.kachel p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #555;
}

.kachel .btn {
    background-color: #2d5c4d;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.kachel .btn:hover {
    background-color: #23483b;
}

.kachel.status {
    background-color: #eaf4ea;
    border-left: 5px solid #1b3a2f;
}

.kachel.logs ul {
    list-style: none;
    padding-left: 0;
    max-height: 200px;
    overflow-y: auto;
}

.kachel.logs li {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.kachel form {
    margin-top: 10px;
}

.kachel.fullwidth {
    width: 100%;
    overflow-x: auto;
}

.kachel.fullwidth table {
    width: 100%;
    border-collapse: collapse;
}

.kachel.fullwidth th,
.kachel.fullwidth td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}

.kachel.fullwidth th {
    background-color: #1b3a2f;
    color: white;
}

.kachel-zeile.markiert {
    background-color: #e0f5e0;
}

.klein-btn {
    font-size: 0.8em;
    padding: 3px 6px;
    border-radius: 6pt;
    margin-left: 8px;
    background-color: #1b3a2f;
    color: white;
    border: none;
    cursor: pointer;
}

.klein-btn:hover {
    background-color: #285443;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 64, 32, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #f2f1ed;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    text-align: center;
    font-family: sans-serif;
}

.modal-box p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.modal-box button {
    margin: 0.5em;
    padding: 0.5em 1.5em;
    border: none;
    border-radius: 10px;
    background: #1d4633; /* dunkelgrün */
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1em;
}

.modal-box button.abbrechen {
    background: #bdb9ad; /* greige */
    color: #333;
}

/* Eingabefelder, Dropdowns und Textareas */
form input[type=text], form input[type=email], form input[type=password], form select, form textarea {
    width: calc(100% - 30px);       /* linker + rechter Rand = 15px */
    margin: 8px 15px;               /* Abstand oben/unten + rechts/links */
              /* Innenabstand */
    padding: 0.6em 0em 0.6em 1em;  /* oben, rechts, unten, links */

    border: 1px solid #ccc;         /* dezenter Rahmen */
    border-radius: 8px;             /* weiche Rundung */
    font-size: 1em;
    background-color: #f4f1ec;      /* helles Beige / Greige */
    color: #222;                    /* modernes Dunkelgrau für Text */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    appearance: none;
}

/* Fokus-Effekt bei aktiver Eingabe */
form input:focus,
form select:focus,
form textarea:focus {
    border-color: #7d8b75;         /* gedecktes Grün oder Graugrün */
    background-color: #fdfdfb;
    outline: none;
}

/* Beschriftungen */
form label {
    color: #666;
    font-size: 0.9em;
    display: block;
    margin: 12px 15px 4px;
}

/* Buttons */
form button, form input[type=submit], form input[type=reset], form .btn {
    background-color: #2d4632;     /* dunkles englisches Grün */
    color: #fff;
    border: none;
    padding: 0.6em 1.2em;
    margin: 15px 15px 0 15px;
    font-size: 1em;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #3c5a45;
}


.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.index-kachel-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.index-kachel {
    position: relative;
    background: #f9f9f9;
    border: 1px solid #a89f91; /* Dunkelgreige Umrandung */
    border-radius: 10px;
    box-shadow: inset 1px 3px 7px rgba(0,0,0,0.1), inset -1px -1px 2px rgba(255,255,255,0.4); /* leichtes Relief */
    width: calc(33% - 1rem);
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
        height: 220px;
    transition: transform 0.3s;
    cursor: pointer;

}


.index-kachel2 {
    position: relative;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: calc(33.333% - 1rem);
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    height: 220px;
    transition: transform 0.3s;
    cursor: pointer;
}

.index-kachel:hover {
    transform: scale(1.02);
}

.index-kachel-bild {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    object-fit: cover;
    z-index: 0;
}

.index-kachel-text {
    position: relative;
    z-index: 1;
}

.index-kachel-container.kompakt .index-kachel {
    height: 100px;
}

.index-kachel-container.kompakt .index-kachel .index-kachel-text p,
.index-kachel-container.kompakt .index-kachel-text .btn {
    display: none;
}

.index-kachel-container.kompakt .index-kachel-text h3 {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
}


@media (max-width: 768px) {
    .index-kachel {
        width: calc(50% - 1rem);
        height: 160px;
    }

    .index-kachel-container.kompakt .index-kachel {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .index-kachel {
        width: 100%;
        height: 140px;
    }

    .index-kachel-container.kompakt .index-kachel {
        height: 60px;
    }
}

