/* ==========================================================================
   DESIGN SYSTEM - PICKUP CAMPER TREFFEN
   Premium Outdoor & Adventure Theme
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #0a2f1d;          /* Deep Forest Green */
    --primary-light: #144d32;    /* Medium Forest Green */
    --primary-hover: #051a10;
    --accent: #e07a16;           /* Warm Clay Orange / Amber */
    --accent-hover: #c45d05;
    --accent-light: #fef3c7;
    --bg-light: #faf8f5;         /* Natural Cream White */
    --bg-card: rgba(255, 255, 255, 0.94);
    --text: #1c2721;             /* Charcoal Green */
    --text-light: #526359;
    --border-color: rgba(10, 47, 29, 0.1);
    --border-hover: rgba(10, 47, 29, 0.2);

    /* UI Badges */
    --color-success: #1b7340;
    --color-success-bg: #e6f6ec;
    --color-warning: #c45d05;
    --color-warning-bg: #fff3e6;
    --color-danger: #b91c1c;
    --color-danger-bg: #fee2e2;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(10, 47, 29, 0.04);
    --shadow-md: 0 8px 24px rgba(10, 47, 29, 0.06);
    --shadow-lg: 0 16px 40px rgba(10, 47, 29, 0.12);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);

    /* Border Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES & TYPOGRAPHY
   ========================================================================== */

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: #05140d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Fixed Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(rgba(5, 20, 13, 0.45), rgba(5, 20, 13, 0.65)), url("pickup_wallpaper.jpg") no-repeat center center;
    background-size: cover;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background: rgba(10, 47, 29, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: var(--transition);
}

header a.header-logo-link:hover {
    transform: scale(1.02);
}

header img {
    height: 44px;
    width: auto;
}

.header-site-title {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* Nav Menu Desktop */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-bottom: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: auto;
    box-shadow: none;
}

.mobile-nav-toggle:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ffffff;
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Open State */
.mobile-nav-toggle.open .hamburger {
    background: transparent;
}
.mobile-nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

main {
    flex-grow: 1;
    max-width: 800px;
    width: 90%;
    margin: 2.5rem auto;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Page titles */
h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 0.85rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(20, 77, 50, 0.4);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Info Cards */
.info-card {
    background: rgba(10, 47, 29, 0.03);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.info-card p {
    margin-bottom: 0;
    color: var(--primary);
    font-weight: 500;
}

/* Buttons */
button, .btn-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1.75rem;
    background: var(--accent);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(224, 122, 22, 0.35);
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    border-bottom: none;
}

button:hover, .btn-action:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 93, 5, 0.45);
    color: #ffffff;
}

button:active, .btn-action:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(10, 47, 29, 0.06);
    color: var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(10, 47, 29, 0.12);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cta-container {
    margin: 2.5rem 0;
    text-align: center;
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.cta-container h3 {
    margin-top: 0;
}

.cta-container .btn-action {
    max-width: 320px;
    width: 100%;
}

/* Event List Card */
.event-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.status-badge.frei {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.status-badge.warteliste {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.status-badge.ausgebucht {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* Itinerary / Ablauf */
.itinerary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.itinerary-day {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.itinerary-day:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.itinerary-day h3 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.itinerary-day h3 span {
    font-size: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.itinerary-day ul {
    padding-left: 1.25rem;
}

.itinerary-day li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.itinerary-day li:last-child {
    margin-bottom: 0;
}

/* Partner section */
.partner-section {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    gap: 1.5rem;
    align-items: center;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.partner-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfaf4;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    height: 100%;
}

.partner-logo-container img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Image Galleries */
.content-image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

.content-image-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.content-image-gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    background: rgba(10, 47, 29, 0.015);
    box-shadow: var(--shadow-inset);
}

legend {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary-light);
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #ffffff;
    transition: var(--transition);
    box-shadow: var(--shadow-inset);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(20, 77, 50, 0.15);
    background: #ffffff;
}

input[type="number"] {
    max-width: 100px;
}

/* Row arrangements for checkboxes */
fieldset label.row-label {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    margin: 0;
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    transform: scale(0);
    transition: var(--transition-fast) transform;
    box-shadow: inset 1em 1em var(--primary-light);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"]:checked {
    background-color: rgba(20, 77, 50, 0.05);
    border-color: var(--primary-light);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(20, 77, 50, 0.2);
}

/* Date Selection Box */
.date-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Gimmicks inside Checkbox Rows */
.gastronomie-detail-span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background: rgba(10, 47, 29, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.gastronomie-detail-span input[type="number"] {
    padding: 0.25rem 0.5rem;
    max-width: 60px;
    font-size: 0.85rem;
}

/* Sum calculations box */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 1px solid rgba(10, 47, 29, 0.05);
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    padding: 1.25rem 0;
    margin-top: 1rem;
    border-top: 2px solid var(--border-color);
    border-bottom: 4px double var(--primary);
}

.anmelde-hinweis {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.honeypot {
    display: none;
}

.hinweis {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.hinweis.red {
    color: var(--color-danger);
}

.hinweis.green {
    color: var(--color-success);
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

/* Admin Data Table Container */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(10, 47, 29, 0.04);
    font-weight: 700;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.admin-table tr:hover {
    background: rgba(10, 47, 29, 0.015);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

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

footer {
    background: rgba(10, 47, 29, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    max-width: 320px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.footer-section a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.footer-section.contact p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Navigation */
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 68px; /* height of header */
        left: 0;
        width: 100%;
        height: calc(100vh - 68px);
        background: rgba(10, 47, 29, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-menu a {
        font-size: 1.3rem;
        font-weight: 600;
    }

    main {
        padding: 1.75rem;
        margin: 1.5rem auto;
        width: 92%;
    }

    h1 {
        font-size: 1.75rem;
    }

    .partner-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partner-logo-container {
        padding: 0.75rem;
    }

    .content-image-gallery {
        grid-template-columns: 1fr;
    }

    .date-selection {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1.25rem;
        margin: 1rem auto;
    }
}
