/* =============================================================
   1. BOX DESIGN
   ============================================================= */
.box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.box h2 {
	margin: 10px 0px 10px 0px;
	font-size: 20px;
}

.box h3 {
    margin: 0 0 10px;
    font-size: 26px;
	text-transform: uppercase;
}

.box h4,
.box-label {
    margin: 0 0 10px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.box p {
    margin: 0 0 15px;
    font-size: 16px;
}

.box p.date {
    margin: 0;
    font-size: 0.85em;
    color: #999;
}

.box p:last-of-type {
    margin-bottom: 0;
}

.box img {
    width: 100%;
    height: auto;
    margin: 0px 0 15px;
    border-radius: 6px;
}

.box h5 {
	font-size: 0.85em;
	font-weight: 200;
	margin-bottom:0px;
}

.anchor-point {
    height: 0;
    scroll-margin-top: 100px; /* Abstand nach oben */
}

.last-pic-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

/* =============================================================
   2. DIVIDER / BANNER
   ============================================================= */
.divider {
    width: 100%;
    height: 2px;
    background: #ccc;
    margin-top: var(--divider-space);
    margin-bottom: var(--divider-space);
}

.divider:first-of-type {
    margin-top: var(--first-divider-space);
}

.divider--text {
    height: auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider--text::before,
.divider--text::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #ccc;
}

.divider--text h2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
    margin: 0 25px;
    font-size: 2.2em;
    font-weight: 300;
    line-height: 1.2;
    color: #6b7770;
    text-align: center;
}

.banner {
    width: 100%;
    height: 400px;
    background-image: url('../images/banner/banner_25_resyn.jpg');
    background-size: cover;
    background-position: center;
}

/* =============================================================
   3. BUTTONS
   ============================================================= */
.button-link {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: #aeb4b8;
    color: #fff;
    border-radius: 10px;
    border: none;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button-link:hover {
    background: #9aa1a6;
}

.button-small,
.button-link.small {
    width: auto;
    margin-top: 0;
    padding: 10px 18px;
}

.button-full {
    display: block;
    width: 100%;
}

.button-medium {
    display: block;
    max-width: 300px;
    margin: 20px auto 0;
}

/* =============================================================
   4. FORMS BASIC
   ============================================================= */
.login-form,
.admin-form {
    display: grid;
    gap: 10px;
}

.login-form label,
.admin-form label {
    display: grid;
    gap: 6px;
}

.login-form label span,
.admin-form label span {
    font-size: 0.9em;
    color: #999;
    text-transform: uppercase;
}

.login-form input,
.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #d0d4d2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    color: #6b7770;
    outline: none;
}

.login-form input:focus,
.admin-form input:focus,
.admin-form textarea:focus {
    border-color: #9aa1a6;
}

.input-error {
    border-color: #c0392b !important;
    background: #fff5f5 !important;
}

.form-error,
.form-error-box {
    color: #c0392b;
    font-weight: bold;
}

.form-message {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-message--success {
    background: #e7f6ec;
    border: 1px solid #27ae60;
    color: #27ae60;
}

.form-message--error {
    background: #fdecea;
    border: 1px solid #c0392b;
    color: #c0392b;
}

/* =============================================================
   5. LINKS / LISTS
   ============================================================= */
.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    padding: 6px 0;
}

.text-link {
    color: inherit;
    border-bottom: 1px solid #ccc;
}

.text-link:hover {
    border-bottom-color: #333;
}

/* =============================================================
   6. MODAL
   ============================================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.35);
    padding: 40px 20px;
}

.modal.is-open {
    display: block;
}

.modal-box {
    max-width: 800px;
    max-height: 75vh;
    overflow: auto;
    margin: 0 auto;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    line-height: 1.6;
}

/* =============================================================
   7. TOAST
   ============================================================= */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
	text-align: center;
}

.toast--success { background: #27ae60; }
.toast--error { background: #c0392b; }

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}