/* Common styles for camping pages */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #fff3c4 5%, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

* {
    box-sizing: inherit;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

.container > * {
    width: 100%;
}

main {
    flex: 1;
}

/* Navigation */
.nav {
    background: white;
    padding: 15px 0;
    margin-bottom: 0; /* Changed from 40px to 0 to remove space before gallery */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the navigation */
    gap: 30px;
}

.nav-logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: #444;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #5d974a;
    background-color: rgba(93, 151, 74, 0.05);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #5d974a, #68aa53);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link.active {
    color: #5d974a;
    background-color: rgba(93, 151, 74, 0.1);
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Page-specific nav colors */
.klettern .nav-link:hover,
.klettern .nav-link.active {
    color: #d98c01;
    background-color: rgba(217, 140, 1, 0.1);
}

.klettern .nav-link::after {
    background: linear-gradient(to right, #d98c01, #ffaa33);
}

.umgebung .nav-link:hover,
.umgebung .nav-link.active {
    color: #5879da;
    background-color: rgba(88, 121, 218, 0.1);
}

.umgebung .nav-link::after {
    background: linear-gradient(to right, #5879da, #7a9bff);
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Button styles */
.back-button {
    display: block;
    width: fit-content;
    margin: 0 auto 30px;
    color: #666;
    font-size: 1em;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #444;
}

.reservation-button, .submit-button, button[type="submit"] {
    display: inline-block;
    color: white;
    padding: 15px 0;
    width: min(400px, 90vw);
    font-size: min(1.5em, 5vw);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom right, #5d974a, #528c41);
    box-shadow: 0 4px 15px rgba(93, 151, 74, 0.3);
    text-align: center;
    text-transform: none !important; /* Force no text transform */
    font-weight: bold;
    letter-spacing: 1px;
}

.reservation-button:hover, .submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(93, 151, 74, 0.4);
    background: linear-gradient(to bottom right, #68aa53, #5d974a);
}

.submit-button {
    margin: 30px auto 0;
}


/* Image gallery */
.image-gallery {
    position: relative;
    margin: 0 auto 40px;
    max-width: 100vw; /* Use viewport width for full browser width */
    width: 100vw; /* Force full viewport width */
    margin-left: calc(-50vw + 50%); /* Center the gallery by offsetting from the container */
    padding: 0; /* Removed padding for full width */
    margin-top: 0; /* Ensure no top margin to place directly under navigation */
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 500px; /* Increased height for more impact */
    border-radius: 0; /* Removed rounded corners */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none; /* Removed border for cleaner look */
}

.gallery-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-slide.active img {
    transform: scale(1.05);
}

.gallery-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.gallery-title {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    backdrop-filter: blur(5px);
    transform: translateY(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.gallery-slide:not(.active) .gallery-title {
    transform: translateY(100%);
}

.gallery-loading, .gallery-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.gallery-error {
    color: #ffcccc;
    background: rgba(200, 0, 0, 0.6);
}

@media (max-width: 600px) {
    .gallery-title {
        bottom: 35px;
        padding: 10px;
        font-size: 1em;
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5d974a;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .gallery-container {
        height: 250px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Steps grid */
.steps-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin: 0 auto;
    max-width: 600px;
    padding: 0 20px;
    text-align: center;
}

@media (max-width: 480px) {
    .reservation-button, .submit-button {
        padding: 12px 0;
    }
    
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Content styles */
.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(93, 151, 74, 0.1);
}

.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(93, 151, 74, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.form-group input,
.form-group select {
    padding: 12px;
    font-size: 1.05em;
}

.checkin-container {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(93, 151, 74, 0.1);
}

.checkin-container .form-group {
    margin-bottom: 25px;
}

.checkin-container .form-group:last-child {
    margin-bottom: 0;
}

.checkin-container label {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.checkin-container input,
.checkin-container select {
    padding: 12px;
    font-size: 1.05em;
}

/* Form styles */
label {
    display: block;
    margin-bottom: 5px;
    color: #444;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.2s ease;
}

input[type="date"] {
    font-family: inherit;
    letter-spacing: 0.5px;
    position: relative;
    cursor: pointer;
    color: #444;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: transparent;
    padding: 8px;
    cursor: pointer;
    position: absolute;
    right: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="date"]::before {
    content: attr(placeholder);
    position: absolute;
    color: #666;
    width: 100%;
    pointer-events: none;
}

input[type="date"]:valid::before {
    display: none;
}

input:hover, select:hover {
    border-color: #5d974a;
}

input:focus, select:focus {
    outline: none;
    border-color: #5d974a;
    box-shadow: 0 0 0 3px rgba(93, 151, 74, 0.1);
}

/* Headings and intro text */
h1 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
}

/* Page-specific colors */
.camping h1,
.camping .campground-plan h2 {
    color: #5d974a;
}

.camping h1::after {
    background: linear-gradient(to right, #5d974a, #68aa53);
}

.klettern h1,
.klettern .campground-plan h2 {
    color: #d98c01;
}

.klettern h1::after {
    background: linear-gradient(to right, #d98c01, #ffaa33);
}

.umgebung h1,
.umgebung .campground-plan h2 {
    color: #5879da;
}

.umgebung h1::after {
    background: linear-gradient(to right, #5879da, #7a9bff);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: #444;
    line-height: 1.8;
    font-size: 1.1em;
}

.intro-text p {
    margin: 0 0 15px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Camping info section */
.camping-info {
    max-width: 800px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(93, 151, 74, 0.1);
}

.camping-info p {
    margin: 0 0 20px;
    line-height: 1.8;
    color: #444;
}

.camping-info p:last-child {
    margin-bottom: 0;
}

/* Campground plan section */
.campground-plan {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
}

.campground-plan h2 {
    color: #5d974a;
    margin-bottom: 30px;
    font-size: 1.5em;
}

.campground-plan img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(93, 151, 74, 0.1);
}

.plan-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Price info */
.price-info {
    margin: 30px 0;
    text-align: left;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.price-info:hover {
    border-color: #5d974a;
    box-shadow: 0 2px 8px rgba(93, 151, 74, 0.1);
}

.price-breakdown {
    margin: 15px 0;
    padding: 15px;
    font-size: 0.9em;
    color: #666;
    background: white;
    border-radius: 6px;
    line-height: 1.8;
    border: 1px solid #e9ecef;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.price-breakdown:not(:empty) {
    opacity: 1;
}

.nights-info {
    color: #5d974a;
    font-weight: 500;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.price {
    font-size: 1.4em;
    color: #5d974a;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Utility classes */
.required {
    color: #e74c3c;
}

.note {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Success message */
.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
}

/* PayPal container */
#paypal-button-container {
    margin-top: 30px;
    min-height: 45px;
    position: relative;
}

#paypal-button-container::before {
    content: "Wird geladen...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.9em;
}

/* Reservation steps */
.steps-container {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
    color: #444;
}

.steps-container > p {
    margin-bottom: 35px;
    font-size: 1.1em;
    color: #666;
}

.step-box {
    flex: 1;
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(93, 151, 74, 0.1);
    border: 1px solid rgba(93, 151, 74, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 220px;
}

.step-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 8px rgba(0, 0, 0, 0.05),
        0 15px 25px rgba(93, 151, 74, 0.15);
}

.step-box strong {
    color: #5d974a;
    font-size: 1.3em;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-box p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

/* Info box */
.info-box {
    background: #f0f7ed;
    border: 1px solid #5d974a;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.info-box h3 {
    color: #2d4b25;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.info-box li::before {
    content: "✓";
    color: #5d974a;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
.footer-divider {
    width: min(400px, 90vw);
    height: 1px;
    background-color: #6B3410;
    border: none;
    margin: 60px auto 0;
    opacity: 0.6;
}

.footer {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: min(400px, 90vw);
    margin: 20px auto;
}

.footer img {
    width: 49px;
    height: auto;
}

.footer-text {
    font-size: 0.8em;
    color: #666;
    text-align: left;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-text {
        text-align: center;
    }
    .footer-divider {
        margin-top: 40px;
    }
}
