/* ═══════════════════════════════════════════════════════
   Straßen-Flohmarkt Götting – Custom Styles
   Design: warm community market, inspired by newstyle.jpeg
   ═══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --cream:   #FDF6EE;
    --sand:    #F5E6D3;
    --mustard: #E8B84B;
    --teal:    #1A3A4A;
    --coral:   #E8725A;
    --white:   #FFFFFF;
    --text:    #2C3E50;
    --text-muted: #6c757d;

    --font-script:  'Dancing Script', 'Pacifico', cursive;
    --font-display: 'Bebas Neue', 'Arial Black', 'Impact', sans-serif;
    --font-body:    'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius:  1rem;
    --shadow:  0 4px 24px rgba(26, 58, 74, 0.1);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Navbar ──────────────────────────────────────────────── */
#mainNav {
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
    padding: .75rem 0;
}

#mainNav.scrolled {
    background: var(--teal);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

#mainNav .navbar-brand {
    font-size: 1.1rem;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
    transition: color .3s;
}

#mainNav.scrolled .navbar-brand { color: var(--white); }

.brand-script  { font-family: var(--font-script); font-weight: 700; color: var(--coral); }
.brand-display { font-family: var(--font-display); letter-spacing: 1px; }

#mainNav .nav-link {
    color: var(--teal);
    font-weight: 600;
    font-size: .9rem;
    padding: .4rem .8rem;
    transition: color .2s;
}

#mainNav.scrolled .nav-link { color: rgba(255,255,255,.85); }
#mainNav .nav-link:hover,
#mainNav.scrolled .nav-link:hover { color: var(--mustard); }


#mainNav .navbar-toggler {
    border-color: var(--teal);
}

#mainNav.scrolled .navbar-toggler { border-color: rgba(255,255,255,.5); }

#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A3A4A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    padding: 100px 0 0;
    overflow: hidden;
}

/* Decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    pointer-events: none;
    z-index: 0;
}

.hero-blob--yellow {
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    background: var(--mustard);
    opacity: .25;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    animation: blob-drift 8s ease-in-out infinite alternate;
}

.hero-blob--coral {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    background: var(--coral);
    opacity: .15;
    left: 5%;
    bottom: 15%;
    animation: blob-drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
    from { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    to   { border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%; }
}

/* Flower decorations */
.flower-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.flower-deco--tl {
    width: 80px;
    height: 80px;
    top: 12%;
    left: 6%;
    color: var(--mustard);
    opacity: .6;
}

.flower-deco--br {
    width: 60px;
    height: 60px;
    bottom: 18%;
    right: 8%;
    color: var(--coral);
    opacity: .5;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
}

.hero-script {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--coral);
    margin: 0;
    line-height: 1;
}

.hero-display {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 14vw, 9rem);
    color: var(--teal);
    line-height: .9;
    margin: 0 0 .5rem;
    letter-spacing: 2px;
}

.hero-location {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--mustard);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: .5rem 0;
}

.hero-date {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--teal);
    font-weight: 400;
    margin: .75rem 0 0;
    line-height: 1.6;
}

.btn-hero {
    background: var(--teal);
    color: var(--white);
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, transform .1s;
    border: none;
}

.btn-hero:hover {
    background: var(--coral);
    color: var(--white);
    transform: translateY(-2px);
}

/* Wave divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

/* ── Content Sections ────────────────────────────────────── */
.content-section {
    padding: 5rem 0;
}

.section-cream { background: var(--cream); }
.section-sand  { background: var(--sand); }

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--teal);
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

/* Decorative underline on section headings */
.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--mustard);
    border-radius: 2px;
    margin-top: .5rem;
}

.section-img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

.street-list {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.street-list li {
    padding: .15rem 0;
    font-weight: 600;
}

/* ── Map ─────────────────────────────────────────────────── */
#map {
    height: 520px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 0;
}

@media (max-width: 767px) {
    #map { height: 360px; }
}

.map-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem;
}

.map-controls__btns {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.btn-map-ctrl {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--white);
    border: 1.5px solid var(--teal);
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s;
    font-family: var(--font-body);
}

.btn-map-ctrl:hover {
    background: var(--teal);
    color: var(--white);
}

.map-credit {
    font-size: .78rem;
    color: var(--text-muted);
}

.map-credit a { color: var(--text-muted); }


/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: .75rem;
    box-shadow: var(--shadow);
    font-family: var(--font-body);
}

.popup-address {
    font-weight: 700;
    color: var(--teal);
    margin-bottom: .25rem;
}

.popup-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--teal);
    margin-top: .5rem;
    margin-bottom: .1rem;
}

.popup-cats-list {
    font-size: .85rem;
    color: var(--text-muted);
    margin: .15rem 0 .25rem 1rem;
    padding: 0;
}

.popup-weather {
    font-size: .8rem;
    font-style: italic;
    color: var(--text-muted);
}

.popup-desc {
    font-size: .85rem;
    margin-top: .3rem;
    color: var(--text);
    border-top: 1px solid #eee;
    padding-top: .3rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: .65rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, transform .1s;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: #d4604a;
    color: var(--white);
    transform: translateY(-1px);
}

/* ── Seller button group ─────────────────────────────────── */
.btn-group-seller {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.btn-outline-seller {
    display: inline-block;
    padding: .65rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--coral);
    background: transparent;
    border: 2px solid var(--coral);
    border-radius: 50px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-outline-seller:hover {
    background: var(--coral);
    color: var(--white);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--teal);
    color: rgba(255,255,255,.7);
    padding: 2.5rem 0;
    text-align: center;
    font-size: .9rem;
}

.footer-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .2s;
}

.footer-link:hover { color: var(--mustard); }

.footer-legal { font-size: .8rem; }

/* ── Registration Form Page ──────────────────────────────── */
.page-anmeldung {
    background: var(--sand);
}

.anmeldung-main {
    padding: 120px 0 4rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-card__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--teal);
    letter-spacing: 1px;
    margin-bottom: .25rem;
}

.form-card__subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.form-intro {
    background: var(--sand);
    border-left: 4px solid var(--mustard);
    padding: 1rem 1.25rem;
    border-radius: 0 .5rem .5rem 0;
    font-size: .9rem;
    margin-bottom: 1.75rem;
    color: var(--text);
}

.form-label {
    font-weight: 600;
    color: var(--teal);
    margin-bottom: .35rem;
}

.form-control {
    border-color: #ddd;
    border-radius: .5rem;
    padding: .55rem .85rem;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,58,74,.12);
}

.form-check-input:checked {
    background-color: var(--teal);
    border-color: var(--teal);
}

.kategorien-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .3rem .5rem;
}

/* Captcha */
.captcha-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.captcha-img {
    border-radius: .5rem;
    border: 1px solid #ddd;
    height: 52px;
}

/* Disclaimer */
.disclaimer-label {
    font-size: .875rem;
    color: var(--text);
    line-height: 1.55;
}

/* ── Impressum ───────────────────────────────────────────── */
.impressum-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal);
    margin: 1.5rem 0 .35rem;
    padding-bottom: .25rem;
    border-bottom: 2px solid var(--mustard);
    display: inline-block;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 991px) {
    .content-section { padding: 3.5rem 0; }

    #mainNav .navbar-collapse {
        background: var(--white);
        border-radius: .75rem;
        padding: .75rem 1rem;
        margin-top: .5rem;
        box-shadow: var(--shadow);
    }

    #mainNav.scrolled .navbar-collapse {
        background: var(--teal);
    }

    #mainNav.scrolled .nav-link { color: rgba(255,255,255,.9); }

    #mainNav .nav-cta { margin-left: 0; margin-top: .5rem; }
}

@media (max-width: 575px) {
    .form-card { padding: 1.5rem; }
    .hero-display { line-height: 1; }
    .kategorien-grid { grid-template-columns: 1fr; }
}

.leaflet-control-locate { display: flex !important; align-items: center; justify-content: center; }
