:root {
    --color-sky: #E8F4F8;
    --color-cloud: #F8FAFB;
    --color-slate: #1A2332;
    --color-storm: #2D3E50;
    --color-gold: #B8935C;
    --color-text: #1E2A38;
    --color-text-light: #3A4A5C;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-cloud);
    font-size: 18px;
    overflow-x: hidden;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 0.5rem 1rem;
    background: var(--color-slate);
    color: white;
    z-index: 200;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* Header & Navigation */
header {
    background: rgba(26, 35, 50, 0.97);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

nav h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

nav h1 {
    display: flex;
    align-items: center;
    margin: -1rem 0;
}

nav h1 a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav h1 a .logo {
    height: 4rem;
    width: auto;
}

.logo-small {
    height: 3rem;
    width: auto;
    display: block;
    margin: 0 0 1rem 0;
}

.contact-card {
    background: var(--color-sky);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-card p {
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0 0 0 1.5rem;
}

nav li {
    opacity: 0;
    animation: fadeInDown 0.8s ease forwards;
}

nav li:nth-child(1) { animation-delay: 0.1s; }
nav li:nth-child(2) { animation-delay: 0.2s; }
nav li:nth-child(3) { animation-delay: 0.3s; }
nav li:nth-child(4) { animation-delay: 0.4s; }
nav li:nth-child(5) { animation-delay: 0.5s; }

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--color-gold);
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 8rem 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 150px);
}

/* Hero Section */
.hero-section {
    position: relative;
    margin: -4rem -3rem 0.5rem -3rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.4);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 3rem;
    color: white;
}

.hero-content h2 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content h2::after {
    display: none;
}

.hero-content p {
    color: white;
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}


/* Typography */
h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-slate);
    margin-bottom: 2.5rem;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
}

h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-slate);
    margin: 2.5rem 0 1.2rem 0;
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--color-text);
}

ul {
    margin: 2rem 0 2rem 1.5rem;
    max-width: 750px;
}

li {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--color-text);
    padding-left: 0.5rem;
}

li::marker {
    color: var(--color-gold);
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-storm);
}

/* Page Backgrounds */
.page-home {
    background: linear-gradient(135deg, var(--color-sky) 0%, var(--color-cloud) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.page-home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.page-ballonfahrten {
    background: white;
    position: relative;
    overflow: hidden;
}

.page-ballonfahrten::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 244, 248, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-treuhand {
    background: var(--color-sky);
    position: relative;
    overflow: hidden;
}

.page-treuhand::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-kontakt {
    background: white;
}

.page-impressum {
    background: var(--color-sky);
}

.page-datenschutz {
    background: white;
}

.page-impressionen {
    background: var(--color-sky);
    position: relative;
    overflow: hidden;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--color-text);
    background: white;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.visible {
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .lightbox {
        transition: none;
    }
}

/* Balloon images */
.balloon-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.balloon-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.balloon-item p {
    margin-bottom: 0;
    flex: 1;
}

.balloon-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.balloon-image:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .balloon-row {
        flex-direction: column;
    }

    .balloon-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Footer */
footer {
    background: var(--color-slate);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

footer p {
    margin: 0 auto;
    padding: 0 3rem;
    max-width: 1200px;
}

footer a {
    color: var(--color-gold);
}

footer .footer-copyright {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

footer .footer-links {
    font-size: 0.85rem;
}

footer .footer-links a {
    margin-right: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Team section */
.team-section {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
    margin: 1.5rem 0 2rem 0;
}

.team-text-top {
    grid-column: 1;
    grid-row: 1;
}

.team-text-bottom {
    grid-column: 1;
    grid-row: 2;
}

.team-photos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-column: 2;
    grid-row: 1 / 3;
}

.team-photos img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photos img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-gold {
    background: var(--color-gold);
}

.btn-dark {
    background: var(--color-storm);
}

.btn-group {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    header {
        padding: 1rem 0;
    }

    nav {
        padding: 0 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    nav h1 {
        font-size: 1.5rem;
        margin: -0.5rem 0;
    }

    nav h1 a .logo {
        height: 3rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
    }

    nav a {
        font-size: 0.95rem;
    }

    main {
        padding: 11rem 1.5rem 4rem;
        min-height: auto;
    }

    .hero-section {
        margin: -4rem -1.5rem 0.5rem -1.5rem;
        min-height: 220px;
    }

    .hero-content {
        padding: 2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1.05rem;
    }

    footer {
        padding: 2rem 0;
    }

    footer p {
        padding: 0 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .team-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .team-text-top,
    .team-text-bottom,
    .team-photos {
        grid-column: 1;
        grid-row: auto;
    }

    .team-photos {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .team-photos img {
        flex: 0 0 75%;
        height: 180px;
        scroll-snap-align: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    nav {
        padding: 0 1rem;
    }

    nav h1 {
        font-size: 1.3rem;
    }

    nav ul {
        gap: 0.75rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    main {
        padding: 10.5rem 1rem 3rem;
    }

    .hero-section {
        margin: -3rem -1rem 0.5rem -1rem;
        min-height: 180px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p, li {
        font-size: 1rem;
    }

    footer p {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
}

/* Expandable sections */
details {
    margin: 1rem 0;
    border: 1px solid rgba(184, 147, 92, 0.3);
    border-radius: 8px;
    background: var(--color-cloud);
    overflow: hidden;
}

details[open] {
    background: white;
}

details summary {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-slate);
    font-size: 1.15rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
}

details summary:hover {
    background: rgba(184, 147, 92, 0.1);
}

details > p {
    padding: 0 1.5rem;
    margin: 0;
    padding-bottom: 1rem;
}

details > p:first-of-type {
    padding-top: 0.5rem;
}

details > p:last-of-type {
    padding-bottom: 1.5rem;
}

@media (max-width: 768px) {
    details summary {
        font-size: 1.1rem;
        padding: 0.9rem 1.2rem;
    }

    details > p {
        padding: 0 1.2rem;
    }

    details > p:last-of-type {
        padding-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    details summary {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    details > p {
        padding: 0 1rem;
    }

    details > p:last-of-type {
        padding-bottom: 1rem;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

nav a:focus-visible {
    outline-color: white;
}

details summary:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: -2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
