* { box-sizing: border-box; }
body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
    background: #f4f5f7;
    color: #000000;
    margin: 0px;
    padding: 0px;
}
a {
    color: #5c3a52;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}



/* --- Login --- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.login-box {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 320px;
}
.login-box h1 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
}
.login-box label {
    display: block;
    margin-bottom: 15px;
}
.login-box input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-box button {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    width: 100%;
    padding: 10px;
    background: #5c3a52;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.fehler {
    font-weight: 700;
    color: #fff;
    display: block;
    background: #c0392b;
    padding: 15px;
    border: 1px solid #c0392b;
    border-radius: 5px;
}
.erfolg {
    font-weight: 700;
    color: #fff;
    display: block;
    background: #1e8449;
    padding: 15px;
    border: 1px solid #1e8449;
    border-radius: 5px;
}



/* --- Layout --- */
.topbar {
    background: #1f2937;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a {
    color: #fff;
    margin-left: 15px;
}
.containermrgn {
    margin-bottom: 80px !important;
}
.container {
    margin: 15px auto;
    padding: 0 15px;
}
.container input[type=text], .container input[type=password], .container input[type=email], .container input[type=date], .container input[type=number] {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}



/* --- Tabelle --- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
th {
    background: #f0f1f3;
}
/* Unsere 5 Status-Werte (entwurf, pending, online, offline, abgelehnt) */
.status-online {
    color: #1e8449;
    font-weight: bold;
}
.status-offline {
    color: #c0392b;
    font-weight: bold;
}
.status-pending {
    color: #2980b9;
    font-weight: bold;
}
.status-entwurf {
    color: #6b7280;
    font-weight: bold;
}
.status-abgelehnt {
    color: #7b0000;
    font-weight: bold;
}
.btn {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    background: #5c3a52;
    color: #fff;
    margin-right: 5px;
    text-decoration: none;
}
.btn-danger {
    background: #c0392b;
}
.btn-whatsapp {
    background: #25d366;
}



/* --- Icon-Buttons (Artikelübersicht) --- */
.aktionen-zelle {
    white-space: nowrap;
}
.aktionen-zelle a {
    text-decoration: none;
    margin-right: 8px;
}
.btn-secondary {
    background: #6b7280;
}



/* --- Status-Tabs --- */
.fcg-status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}
.fcg-status-tab {
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
}
.fcg-status-tab:hover {
    background: #ddd;
    text-decoration: none;
}
.fcg-status-tab.aktiv {
    color: #ffffff;
    background: #5c3a52;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
}



/* --- Formular --- */
form { margin-bottom: 80px; }

.form-section {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.form-grid label {
    display: block;
}


.form-grid input[type=text], .form-grid input[type=password], .form-grid input[type=email], .form-grid input[type=date], .form-grid select, .form-grid textarea {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bild-preview {
    max-width: 100%;
    max-height: 160px;
    display: block;
    margin: 10px 0;
    border-radius: 10px;
}



/* --- Bilder-Bereich --- */
.bild-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}
.bild-karte {
    background: #f7f8fa;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    padding: 15px;
}
.bild-karte-titel {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}
.bild-loeschen-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 10px;
    cursor: pointer;
}
.bild-loeschen-label input {
    width: auto;
    margin: 0;
}
.bild-grid input[type=file] {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button[type=submit] {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    padding: 10px 25px;
    background: #5c3a52;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left:10px;
}

.fcg_cms-aktionsleiste {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    z-index: 500;
}


/* --- "Zurueck nach oben"-Button --- */
.fcg_nach-oben-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #5c3a52;
    color: #fff;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
 
.fcg_nach-oben-btn.fcg_sichtbar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
 
.fcg_nach-oben-btn:hover {
    background: #555;
}
 


@media
    only screen and (orientation: portrait) and (max-width: 599px),
    only screen and (orientation: landscape) and (max-width: 959px) {
        .form-grid { grid-template-columns: repeat(1, 1fr); }
        .checkbox-grid { grid-template-columns: repeat(1, 1fr); }
        .bild-grid { grid-template-columns: repeat(1, 1fr); }
    }
