* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-blue: #3498db;
    --brand-blue-dark: #2c3e50;
    --brand-slate: #34495e;
    --brand-gold: #b8966a;
    --brand-red: #e74c3c;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #856404;
    --ink: #333333;
    --muted: #555555;
    --line: #e1e5e9;
    --surface: #ffffff;
    --soft-surface: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-image:
        linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.8)),
        url('https://www.regiomanager.de/wp-content/uploads/1995/08/schumacher-online-opener-2048x1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--ink);
}

body.thanks-page {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-image: url('https://landing.sts-finanzen.de/ressources/bilder-anfrage/bilder/kontakt_hintergrund.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mid-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.mid-nav img {
    height: 58px;
    width: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.low-nav {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.low-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.low-nav a:hover {
    background: var(--brand-slate);
    color: #ffffff;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 100px;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 30px;
    transition: background 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(52, 73, 94, 0.7);
}

.page-shell {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-section {
    width: min(100%, 760px);
    padding: 40px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.request-copy {
    text-align: center;
    margin-bottom: 28px;
}

.eyebrow {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--brand-gold);
    font-weight: 700;
}

.request-copy h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--brand-blue-dark);
    font-weight: 300;
    line-height: 1.12;
}

.request-copy p {
    color: var(--muted);
    font-size: 1.02rem;
}

.event-hint {
    margin-top: 12px;
    color: #1976d2;
    font-weight: 600;
}

.feedback-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.request-feedback {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.request-feedback.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid var(--success);
}

.request-feedback.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.request-form {
    display: grid;
    gap: 18px;
}

.request-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.request-form-group {
    display: grid;
    gap: 8px;
}

.request-form-group label {
    color: #555555;
    font-weight: 600;
    font-size: 0.95rem;
}

.request-form-group input,
.request-form-group select,
.request-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--line);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.request-form-group input:focus,
.request-form-group select:focus,
.request-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.request-form-group input::placeholder,
.request-form-group textarea::placeholder {
    color: #94a3b8;
}

.request-form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.request-form-group select {
    appearance: none;
    color: #555555;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"%3E%3Cpath fill="%233498db" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: #ffffff;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
}

.btn-success:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.28);
}

.btn-secondary {
    background: #ffffff;
    border-color: #d7dde5;
    color: var(--brand-blue-dark);
}

.btn-secondary:hover {
    background: var(--soft-surface);
    border-color: var(--brand-blue-dark);
}

.admin-shell {
    min-height: 100vh;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-shell-wide {
    align-items: flex-start;
}

.admin-card {
    width: min(100%, 1080px);
    padding: 32px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.admin-login-card {
    width: min(100%, 460px);
}

.admin-heading {
    margin-bottom: 24px;
}

.admin-heading h1 {
    margin-bottom: 8px;
    color: var(--brand-blue-dark);
    font-size: 2rem;
    font-weight: 500;
}

.admin-heading p:not(.eyebrow) {
    color: var(--muted);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 10px;
}

.admin-title-group {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.admin-brand,
.thanks-brand {
    display: inline-flex;
    align-items: center;
}

.admin-brand img {
    width: 172px;
    height: auto;
}

.admin-login-card .admin-brand {
    margin-bottom: 26px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 24px;
}

.admin-tabs a {
    padding: 11px 16px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-blue-dark);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.admin-tabs a.active {
    border-color: var(--brand-blue);
    background: #e8f4fd;
    color: var(--brand-blue);
}

.admin-request-list {
    display: grid;
    gap: 16px;
}

.admin-request-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
}

.admin-request-main {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-request-main h2 {
    color: var(--brand-blue-dark);
    font-size: 1.2rem;
}

.admin-request-main a {
    color: var(--brand-blue);
}

.status-pill {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: #fff4d6;
    color: var(--warning);
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.admin-request-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}

.admin-request-details div:last-child {
    grid-column: 1 / -1;
}

.admin-request-details dt {
    margin-bottom: 3px;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-request-details dd {
    color: #1f2937;
    overflow-wrap: anywhere;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.admin-action-btn {
    width: auto;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.admin-empty-state {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.thanks-shell {
    min-height: 100vh;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-page header,
.thanks-page footer {
    flex: 0 0 auto;
}

.thanks-page header {
    position: relative;
}

.thanks-page .mid-nav {
    padding: 12px 20px;
}

.thanks-page .mid-nav img {
    height: 46px;
}

.thanks-page .low-nav {
    padding: 8px 0 10px;
    gap: 22px;
}

.thanks-page .low-nav a {
    padding: 6px 10px;
    font-size: 12px;
}

.thanks-page .thanks-shell {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 20px;
}

.thanks-card {
    width: min(100%, 620px);
    padding: 38px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    text-align: center;
}

.thanks-page .thanks-card {
    padding: 28px 32px;
}

.thanks-brand {
    justify-content: center;
    margin-bottom: 26px;
}

.thanks-brand img {
    width: min(240px, 70vw);
    height: auto;
}

.thanks-card h1 {
    margin-bottom: 12px;
    color: var(--brand-blue-dark);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.thanks-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.03rem;
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.thanks-page .thanks-actions {
    margin-top: 20px;
}

.thanks-footer {
    padding: 12px 20px;
    font-size: 0.9rem;
}

.top-footer {
    width: 100%;
    background: var(--brand-slate);
    color: #ffffff;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.top-footer h3 {
    margin-bottom: 15px;
}

.top-footer p {
    line-height: 1.7;
}

.top-footer a {
    color: var(--brand-blue);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

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

.low-footer {
    background: var(--brand-blue-dark);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.right-footer {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.right-footer a {
    color: var(--brand-blue);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .low-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mid-nav {
        padding: 15px 20px;
    }

    .mid-nav img {
        height: 42px;
    }

    .page-shell {
        padding: 28px 15px;
        align-items: flex-start;
    }

    .request-section {
        padding: 28px 20px;
    }

    .request-form-row {
        grid-template-columns: 1fr;
    }

    .top-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .low-footer {
        flex-direction: column;
        text-align: center;
    }

    .right-footer {
        justify-content: center;
    }

    .admin-card {
        padding: 24px 18px;
    }

    .admin-topbar,
    .admin-title-group,
    .admin-request-main,
    .admin-actions {
        flex-direction: column;
    }

    .admin-brand img {
        width: 150px;
    }

    .admin-request-details {
        grid-template-columns: 1fr;
    }

    .admin-action-btn,
    .thanks-actions .btn {
        width: 100%;
    }

    body.thanks-page {
        overflow: hidden;
    }

    .thanks-page .mid-nav {
        padding: 10px 16px;
    }

    .thanks-page .mid-nav img {
        height: 34px;
    }

    .thanks-page .low-nav {
        display: none;
    }

    .thanks-page .thanks-shell {
        padding: 14px 14px;
    }

    .thanks-page .thanks-card {
        padding: 22px 18px;
    }

    .thanks-page .thanks-card h1 {
        font-size: 1.8rem;
    }

    .thanks-page .thanks-card p:not(.eyebrow) {
        font-size: 0.95rem;
    }

    .thanks-footer {
        padding: 10px 14px;
        gap: 8px;
        font-size: 0.78rem;
    }
}
