/* =========================================
   Flohmarkt-Manager — Public Stylesheet
   ========================================= */

:root {
    --color-primary: #333333;
    --color-primary-dark: #232323;
    --color-primary-light: #f0f0f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f5f5f5;
    line-height: 1.6;
}

/* ---- Header ---- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 85px;
    position: relative;
}

.burger-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: 0.2s;
}

.nav-menu {
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 200;
}

.nav-menu.open {
    display: block;
}

.nav-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: var(--color-primary-light);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}


/* ---- Main ---- */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Hero (fullscreen) ---- */
.hero {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: #333 center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    padding: 2rem 1.5rem;
}

.hero h2 {
    font-size: 3.4rem;
    color: #fff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.no-event {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 1.2rem 2rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-secondary {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-warning {
    background: #f0ad4e;
    color: #fff;
}

.btn-warning:hover {
    background: #ec971f;
}

/* ---- Section Title ---- */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 1.5rem;
}
.section-subtitle {
    text-align: center;
    color: #666;
    margin: -0.75rem 0 1.5rem;
    font-size: 1.05rem;
}

/* ---- Intro Section ---- */
.intro-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
    text-align: center;
}

.intro-inner {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.intro-inner h2,
.intro-inner h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

/* ---- Features Section (Event Info) ---- */
.features-section {
    padding: 3rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: #fff;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.feature-item {
    padding: 2rem 1rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-icon .material-icons {
    font-size: 40px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.35rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* ---- Highlights Bar ---- */
.highlights-bar {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--color-primary);
    padding: 2.5rem 1.5rem;
}

.highlights-title {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
}

.highlights-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.highlight-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon .material-icons {
    font-size: 65px;
    color: #fff;
}

.highlight-body {
    min-width: 0;
}

.highlight-body strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.3;
}

.highlight-body p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ---- CTA Section ---- */
.cta-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cta-inner h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.cta-inner p {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
    text-align: center;
    padding: 3rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: var(--color-primary);
    color: #fff;
}

.newsletter-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.newsletter-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: center;
    align-items: start;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.newsletter-section h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 1.25rem;
}

.social-links {
    margin-top: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.newsletter-inner:not(.newsletter-split) .newsletter-form {
    max-width: 550px;
}

.newsletter-form .btn {
    white-space: nowrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input[type="email"]:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-section .btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
    white-space: nowrap;
}

.newsletter-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ---- Map Section ---- */
.map-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding-top: 2rem;
}

.map-section .section-title {
    margin-bottom: 1.5rem;
}

.map-wrap {
    width: 100%;
    line-height: 0;
}

.map-wrap iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ---- Contact Section ---- */
.contact-section {
    padding: 3rem 0;
}

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.team-info-center {
    text-align: center;
    margin-bottom: 1.5rem;
}

.team-info-center .team-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    margin: 0 0 0.25rem;
}

.team-info-center a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.team-info-center a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 127, 1, 0.15);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}


/* ---- Gallery ---- */
.gallery {
    padding: 3rem 0 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* ---- Registration Forms ---- */
.register-section {
    max-width: 600px;
    margin: 2.5rem auto 3rem;
}

.register-section .event-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
}

.register-section .event-info strong {
    color: var(--color-primary);
}

.register-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.register-tab {
    flex: 1;
    text-align: center;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    color: #555;
    background: #fff;
    border-bottom: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.register-tab:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.register-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: #fff;
}

.register-intro {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.register-intro ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.register-intro li {
    margin-bottom: 0.35rem;
}

.helper-perks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.helper-perk {
    background: var(--color-primary-light);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.helper-perk-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.helper-perk-note {
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
}

.helper-perk-benefit {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.helper-perk-note-box {
    background: transparent;
    text-align: center;
    color: #555;
    padding: 0.5rem 1rem;
}

.register-intro a {
    color: var(--color-primary);
    text-decoration: none;
}

.register-intro a:hover {
    text-decoration: underline;
}

.rules-notice {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    background: var(--color-primary-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 600;
    color: #333;
}

.btn-rules {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.btn-rules:hover {
    background: var(--color-primary);
    color: #fff;
}

.accept-group {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.accept-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.accept-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.accept-label a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

.register-form .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.register-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.register-form h2 {
    margin: 0 0 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 127, 1, 0.15);
}

.register-form .btn-primary {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.register-form .no-event {
    text-align: center;
    padding: 1rem 0;
}

/* ---- Event card (legacy, kept for registration pages) ---- */
.event-card {
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-top: 4px solid var(--color-primary);
}

.event-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 1.15rem;
    color: #555;
}

/* CTA buttons (legacy) */
.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Alerts ---- */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.alert-success {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid #b8ddb0;
}

.alert-error {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f5c6cb;
}

/* ---- Content Pages (Impressum, Datenschutz, Regeln) ---- */
.page-back {
    margin-bottom: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    transition: opacity 0.2s;
}

.btn-back:hover {
    opacity: 0.7;
}

.page-section {
    padding: 2.5rem 0 3rem;
}

.page-content-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

.page-content-wrap h3 {
    color: var(--color-primary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.page-content-wrap p {
    margin: 0 0 0.75rem;
}

.page-content-wrap ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.page-content-wrap li {
    margin-bottom: 0.35rem;
}

.rules-dates {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.rules-dates td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
}

.rules-dates tr:last-child td {
    border-bottom: none;
}

.rules-dates td:first-child {
    white-space: nowrap;
    color: var(--color-primary-dark);
}

.text-muted {
    color: #999;
    text-align: center;
    font-style: italic;
}

/* ---- Footer ---- */
footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Social links */
.social-heading {
    margin: 1.5rem 0 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-facebook {
    background: #1877f2;
}

.social-whatsapp {
    background: #25d366;
}

.social-telegram {
    background: #0088cc;
}

/* ---- Responsive ---- */
.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .features-grid,
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 85px);
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.5rem 1rem;
    }

    .newsletter-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-wrap: wrap;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid img {
        height: 220px;
    }

    .event-card {
        padding: 1.5rem 2rem;
    }

    .event-date {
        font-size: 1.25rem;
    }

    .register-section {
        margin: 1.5rem auto 2rem;
    }
}
