/* assets/css/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: #f5f6f8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    line-height: 1.5;
}

:root {
    --albin-blue: #005c9f;
    --albin-blue-dark: #00487a;
    --albin-orange: #f59e0b;

    --bg-light: #f5f6f8;
    --card-bg: #ffffff;
    --border-muted: #d1d5db;
    --text-muted: #6b7280;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo-Bereich */

.site-header__logo {
    position: relative;
    flex-shrink: 0;
}

.site-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo-Grössen */

.logo {
    display: block;
    width: auto;
    height: 80px;          /* GRÖSSERES LOGO DESKTOP */
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        height 0.2s ease;
}

/* Kompaktes Logo (Scroll) */
.logo--scrolled {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Scroll-Effekt: grosses Logo -> klein, kompaktes Logo einblenden */
.site-header--scrolled .logo--default {
    opacity: 0;
    transform: translateY(-4px);
    height: 60px;
}

.site-header--scrolled .logo--scrolled {
    opacity: 1;
    transform: translateY(0);
    height: 60px;
}

/* Info-Block rechts */

.site-header__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.site-header__topline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-header__claim {
    text-align: right;
}

.site-header__notdienst {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    margin-top: 2px;
}

.badge-24h {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--albin-blue);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 8px 18px rgba(0, 92, 159, 0.45);
}

.site-header__phone {
    font-weight: 700;
    color: var(--albin-blue-dark);
    font-size: 1rem;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    background: linear-gradient(120deg, var(--albin-blue), var(--albin-blue-dark));
    color: #ffffff;
    padding: 28px 0;
    margin-bottom: 24px;
}

.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero__title {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.hero__title mark {
    background: var(--albin-orange);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
}

.hero__text {
    margin: 0;
    max-width: 640px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* =========================================
   MAIN
   ========================================= */

.page-main {
    padding: 24px 0 40px 0;
}

.page-main__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   CARD
   ========================================= */

.card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    padding: 24px 24px 26px 24px;
    max-width: 640px;
}

.card--wide {
    max-width: 100%;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    position: relative;
}

.card h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--albin-orange);
    margin-top: 6px;
    border-radius: 10px;
}

.card p {
    font-size: 0.95rem;
}

/* =========================================
   FORMULARE
   ========================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
}

input[type="file"],
input[type="number"],
input[type="password"],
input[type="text"],
select {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid var(--border-muted);
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--albin-blue);
    box-shadow: 0 0 0 1px rgba(0, 92, 159, 0.35);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(130deg, var(--albin-orange), #d97706);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-danger {
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
}

/* =========================================
   ALERTS
   ========================================= */

.alert {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid #b91c1c;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    border-left: 4px solid #15803d;
    color: #14532d;
}

/* Download-Input */

.download-link-input {
    width: 100%;
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid var(--border-muted);
    font-size: 0.9rem;
    background-color: #f9fafb;
}

/* =========================================
   ADMIN-TABELLE
   ========================================= */

.table-wrapper {
    margin-top: 18px;
    overflow-x: auto;
}

.table-transfers {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table-transfers thead {
    background: #e5e7eb;
}

.table-transfers th,
.table-transfers td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.table-transfers th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #374151;
}

.table-transfers tbody tr:nth-child(even) {
    background: #f9fafb;
}

.file-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.file-mime {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.table-link {
    font-size: 0.8rem;
    color: var(--albin-blue);
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge--active {
    background: #dcfce7;
    color: #166534;
}

.status-badge--expired {
    background: #fee2e2;
    color: #b91c1c;
}

.status-badge--limit {
    background: #fef3c7;
    color: #92400e;
}
/* Cookie-Banner */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.92); /* sehr dunkles Blau/Schwarz */
    color: #f9fafb;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cookie-banner__text {
    flex: 1;
    line-height: 1.4;
}

.cookie-banner__text a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 10px;
}

/* Buttons im Cookie-Banner */
.btn-cookie-accept,
.btn-cookie-decline {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--albin-blue);
    color: #ffffff;
}

.btn-cookie-accept:hover {
    background: var(--albin-blue-dark);
}

.btn-cookie-decline {
    background: transparent;
    color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.btn-cookie-decline:hover {
    background: rgba(249, 250, 251, 0.08);
}

/* Ein-/Ausblendeffekt */
.cookie-banner {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner--hide {
    transform: translateY(100%);
    opacity: 0;
}

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

    .cookie-banner__buttons {
        width: 100%;
        justify-content: flex-end;
    }
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: #0b1120;
    color: #e5e7eb;
    padding: 24px 0;
    margin-top: 24px;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.85rem;
}

.site-footer__small {
    font-size: 0.8rem;
    color: #9ca3af;
}

.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-header__info {
        align-items: flex-start;
    }

    .site-header__claim {
        text-align: left;
    }

    .logo {
        height: 60px;        /* kleiner auf Mobile */
    }

    .site-header--scrolled .logo--default {
        height: 52px;
    }

    .site-header--scrolled .logo--scrolled {
        height: 52px;
    }

    .hero {
        padding: 20px 0;
    }

    .hero__title {
        font-size: 1.4rem;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .table-transfers th,
    .table-transfers td {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}
