/* ===========================
   MyFotobox – by David Richter
=========================== */

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Poppins', sans-serif;
    background: #05070d;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #05070d; }
::-webkit-scrollbar-thumb { background: #1488ff; border-radius: 30px; }

/* ===========================
   NAVIGATION – MOBILE FIRST
=========================== */

header {
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    z-index: 999;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10,15,30,.92);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    max-width: 1400px;
    margin: auto;
    position: relative;
}

.logo h2  { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.1; }
.logo span { color: #59b7ff; font-size: 12px; display: block; }

/* Hamburger – NUR MOBIL sichtbar */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav – MOBIL: standardmäßig versteckt */
.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6,10,24,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 0 20px;
}

.main-nav.open { display: block; }

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-nav ul li { width: 100%; text-align: center; }

.main-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 13px 20px;
    transition: color .2s, background .2s;
}

.main-nav a:hover { color: #5cbcff; background: rgba(255,255,255,.05); }

/* "Jetzt anfragen" – MOBIL versteckt */
.contactButton { display: none; }

/* ===========================
   DESKTOP NAV (≥ 900px)
=========================== */

@media (min-width: 900px) {

    .navbar { padding: 20px 40px; }
    .logo h2 { font-size: 26px; }
    .logo span { font-size: 13px; }

    .hamburger { display: none; }

    .main-nav {
        display: flex !important;
        position: static;
        width: auto;
        background: none;
        border: none;
        padding: 0;
        backdrop-filter: none;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 28px;
        align-items: center;
    }

    .main-nav ul li { width: auto; }

    .main-nav a {
        padding: 0;
        font-size: 15px;
    }

    .main-nav a:hover { background: none; }

    .contactButton {
        display: inline-block;
        text-decoration: none;
        padding: 12px 24px;
        border-radius: 50px;
        background: linear-gradient(135deg, #0b83ff, #28b4ff);
        color: white;
        font-weight: 600;
        font-size: 15px;
        box-shadow: 0 0 25px rgba(35,150,255,.35);
        transition: .3s;
        flex-shrink: 0;
    }

    .contactButton:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 40px rgba(35,150,255,.55);
    }
}

@media (min-width: 1200px) {
    .navbar { padding: 22px 60px; }
    .main-nav ul { gap: 38px; }
}

/* ===========================
   HERO
=========================== */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: url("assets/images/hero.jpg") center center / cover no-repeat;
    padding-top: 72px;
}

.overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(3,8,20,.8), rgba(3,8,20,.92));
}

.heroContent {
    position: relative; z-index: 2;
    max-width: 900px;
    padding: 30px 20px;
}

.subtitle {
    color: #63c2ff;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 18px;
}

.hero h1 { font-size: clamp(40px, 11vw, 85px); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.hero h3 { font-size: clamp(18px, 5vw, 32px); color: #67c6ff; font-weight: 300; margin-bottom: 22px; }
.hero p  { font-size: clamp(14px, 3.5vw, 20px); color: #d6d6d6; line-height: 1.8; margin-bottom: 34px; }

.buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===========================
   BUTTONS
=========================== */

.primary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    background: linear-gradient(135deg, #007BFF, #3bb6ff);
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: .3s;
    box-shadow: 0 0 28px rgba(0,130,255,.35);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.primary:hover, .primary:active { transform: translateY(-3px); box-shadow: 0 0 45px rgba(0,130,255,.6); }

.secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    color: white;
    border: 2px solid rgba(255,255,255,.25);
    font-size: 15px;
    font-weight: 500;
    transition: .3s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.secondary:hover, .secondary:active { background: rgba(255,255,255,.08); transform: translateY(-3px); }

/* ===========================
   ALLGEMEIN
=========================== */

section { padding: 80px 18px; position: relative; }

.container { max-width: 1300px; margin: auto; }

section h2 {
    font-size: clamp(26px, 7vw, 46px);
    text-align: center;
    margin-bottom: 44px;
    font-weight: 700;
}

.sectionSubtitle {
    text-align: center;
    color: #b7c4d6;
    font-size: 15px;
    margin-top: -30px;
    margin-bottom: 36px;
    line-height: 1.6;
}

@media (min-width: 900px) {
    section { padding: 110px 40px; }
}

/* ===========================
   KARTEN
=========================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 32px 22px;
    text-align: center;
    transition: .4s;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    width: 200px; height: 200px;
    background: #0f7dff;
    filter: blur(100px);
    opacity: .12;
    top: -100px; left: -100px;
    pointer-events: none;
}

.card:hover { transform: translateY(-10px); border-color: #2ca8ff; box-shadow: 0 15px 50px rgba(0,120,255,.2); }
.card h3 { font-size: 46px; margin-bottom: 14px; }
.card h4 { font-size: 19px; margin-bottom: 10px; }
.card p  { color: #c8d3e0; line-height: 1.7; font-size: 14px; }

/* ===========================
   PREISBOX
=========================== */

.priceBox {
    max-width: 560px;
    margin: auto;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 70px rgba(0,110,255,.18);
}

.priceBox h3 { font-size: clamp(56px, 15vw, 90px); color: #53b7ff; margin-bottom: 28px; line-height: 1; }
.priceBox ul { list-style: none; }
.priceBox li { font-size: clamp(15px, 4vw, 20px); padding: 12px; color: #d8e2ef; }

/* ===========================
   FAHRTKOSTEN
=========================== */

#fahrtkosten { text-align: center; }
#fahrtkosten > .container > p { color: #b7c4d6; font-size: 15px; }

.routeBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 24px auto 0;
    max-width: 560px;
}

@media (min-width: 600px) {
    .routeBox { flex-direction: row; }
}

#adresse {
    width: 100%;
    padding: 14px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.12);
    outline: none;
    font-size: 15px;
    background: #111826;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: border-color .3s;
    -webkit-appearance: none;
}

#adresse:focus { border-color: #29b5ff; }

#berechnen {
    flex-shrink: 0;
    width: 100%;
    max-width: 180px;
    background: linear-gradient(135deg, #007BFF, #29b5ff);
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: .3s;
    -webkit-tap-highlight-color: transparent;
}

#berechnen:hover  { transform: translateY(-2px); }
#berechnen:active { transform: scale(.97); }

/* Ergebnis-Box: kompakt auf Mobile */
.resultBox {
    max-width: 560px;
    margin: 20px auto 0;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
}

.resultItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 11px 16px;
}

.resultItem:last-child { border: none; }

.resultItem span {
    color: #a0b0c8;
    font-size: 13px;
    flex-shrink: 0;
}

.resultItem strong {
    font-size: 14px;
    color: #fff;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.preis { background: rgba(0,120,255,.08); }
.preis span   { color: #b7c4d6; font-size: 13px; }
.preis strong { color: #42b6ff; font-size: 20px; font-weight: 700; }

.maps-row { justify-content: center; border: none !important; padding: 12px 16px !important; }

.mapsBtn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, #007BFF, #29b5ff);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
    -webkit-tap-highlight-color: transparent;
}

.mapsBtn:hover { transform: translateY(-2px); }

@media (min-width: 600px) {
    .resultItem span   { font-size: 14px; }
    .resultItem strong { font-size: 16px; }
    .preis strong      { font-size: 24px; }
}

/* ===========================
   GALERIE
=========================== */

/* ===========================
   GALERIE
=========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.galleryItem {
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: #0d1525;
    transition: transform .3s, box-shadow .3s;
}

.galleryItem:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0,120,255,.2);
}

.galleryItem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.galleryItem:hover img {
    transform: scale(1.05);
}

/* ===========================
   PDF BOX
=========================== */

.pdfBox {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,110,255,.12);
    transition: .4s;
}

@media (min-width: 640px) {
    .pdfBox { flex-direction: row; text-align: left; padding: 32px 36px; }
    .pdfInfo { flex: 1; }
    .pdfDownloadBtn { flex-shrink: 0; width: auto; }
}

.pdfBox:hover { border-color: #2ca8ff; }
.pdfIcon { font-size: 46px; }
.pdfInfo h4 { font-size: 18px; margin-bottom: 6px; }
.pdfInfo p  { color: #b7c4d6; font-size: 14px; line-height: 1.6; }
.pdfDownloadBtn { width: 100%; max-width: 240px; padding: 13px 24px; font-size: 14px; }

/* ===========================
   KONTAKT
=========================== */

.contactBox {
    max-width: 560px;
    margin: auto;
    padding: 36px 22px;
    border-radius: 22px;
    text-align: center;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,.08);
}

.contactBox h3 { font-size: clamp(22px, 6vw, 34px); margin-bottom: 22px; }
.contactBox p  { margin: 10px 0; color: #d5dbe7; font-size: 16px; }
.contactBox .primary { display: inline-block; margin-top: 13px; min-width: 200px; }

@media (min-width: 900px) {
    .contactBox { padding: 50px 48px; }
    .contactBox p { font-size: 18px; }
}

/* ===========================
   FOOTER
=========================== */

footer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 28px 20px;
    text-align: center;
    color: #9ea8b6;
    font-size: 13px;
}

/* ===========================
   FADE-IN
=========================== */

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .8s ease, transform .8s ease;
}

.show { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .hidden { transition: none; }
}

/* ===========================
   KONTAKT – E-Mail Button
=========================== */

.contactBox a {
    color: #7dc8ff;
    text-decoration: none;
}
.contactBox a:hover { color: #fff; }

.contactButtons {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 28px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.contactButtons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   HAFTUNG
=========================== */

.haftungBox {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .haftungBox { grid-template-columns: 1fr 1fr; }
}

.haftungItem {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 26px 22px;
}

.haftungItem h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}

.haftungItem p {
    font-size: 14px;
    color: #b7c4d6;
    line-height: 1.75;
}

/* ===========================
   IMPRESSUM
=========================== */

.impressumBox {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .impressumBox { grid-template-columns: 1fr 1fr; }
}

.impressumBlock {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 24px 20px;
}

.impressumBlock h4 {
    font-size: 15px;
    font-weight: 600;
    color: #7dc8ff;
    margin-bottom: 10px;
}

.impressumBlock p {
    font-size: 14px;
    color: #b7c4d6;
    line-height: 1.75;
}

.impressumBlock a {
    color: #7dc8ff;
    text-decoration: none;
}
.impressumBlock a:hover { color: #fff; }

/* Footer Link */
footer a { color: #7dc8ff; text-decoration: none; }
footer a:hover { color: #fff; }

/* ===========================
   MOBILE DESIGN FIX
   Sicherstellen dass Galerie
   auf kleinen Screens 1-spaltig
=========================== */

@media (max-width: 500px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .haftungBox {
        grid-template-columns: 1fr;
    }
    .impressumBox {
        grid-template-columns: 1fr;
    }
}
