/* ============================================================
   RESET & CSS CUSTOM PROPERTIES
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-dark-1: #2c3e50;
    --color-dark-2: #34495e;
    --color-accent: #3498db;
    --color-accent-dark: #1d5fbf;
    --color-accent-2: #2f80ed;
    --color-danger: #d32f2f;
    --color-success: #28a745;
    --color-brand: #A26F52;
    --color-brand-dark: #1f394d;

    /* Card */
    --card-radius: 14px;
    --card-shadow: 0 8px 26px rgba(0,0,0,.12);
    --card-shadow-hover: 0 14px 32px rgba(0,0,0,.17);

    /* Badge gradients */
    --badge-event: linear-gradient(135deg, #2f80ed, #1d5fbf);
    --badge-action: linear-gradient(135deg, #2ecc71, #239b56);

    /* Fluid spacing scale */
    --space-xs:  clamp(6px,  1vw,  10px);
    --space-sm:  clamp(10px, 2vw,  16px);
    --space-md:  clamp(16px, 3vw,  24px);
    --space-lg:  clamp(24px, 4vw,  40px);
    --space-xl:  clamp(32px, 6vw,  60px);

    /* Fluid type scale */
    --text-xs:   clamp(0.72rem, 1.5vw, 0.82rem);
    --text-sm:   clamp(0.85rem, 2vw,  0.95rem);
    --text-base: clamp(0.95rem, 2.2vw, 1.05rem);
    --text-md:   clamp(1.1rem,  2.5vw, 1.18rem);
    --text-lg:   clamp(1.4rem,  3vw,  1.9rem);
    --text-xl:   clamp(1.8rem,  4vw,  2.4rem);
    --text-2xl:  clamp(2rem,    5vw,  3.2rem);

    /* Layout */
    --max-width: 1200px;
    --header-height: 130px;
}

/* ============================================================
   BASE
   ============================================================ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* prevent iOS auto-zoom */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    min-height: 100vh;
}

body.with-bg {
    background-image:
        linear-gradient(rgba(44,62,80,.8), rgba(52,73,94,.8)),
        url('https://www.regiomanager.de/wp-content/uploads/1995/08/schumacher-online-opener-2048x1280.jpg');
    background-size: cover;
    background-attachment: fixed;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-md);
    padding-block: var(--space-lg);
    flex: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background-image: url('https://landing.sts-finanzen.de/ressources/events-aktionen/bilder/kontakt_hintergrund.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mid-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md) var(--space-md);
    position: relative;
    min-height: 70px;
}

.mid-nav img {
    height: clamp(35px, 5vw, 60px);
    width: auto;
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
    gap: 5px;
    touch-action: manipulation; /* improves tap response */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    display: block;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ============================================================
   DESKTOP NAVIGATION
   ============================================================ */
.low-nav {
    padding: var(--space-sm) 0;
    display: flex;
    justify-content: center;
    gap: clamp(8px, 2vw, 30px);
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.low-nav a,
.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-sm);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.low-nav a:hover {
    background: var(--color-dark-1);
}

/* ============================================================
   MOBILE MENU (FULLSCREEN DRAWER)
   ============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    left: -100%;
    width: 100%;
    height: 100dvh; /* dynamic viewport height - better for mobile browsers */
    background: rgba(44,62,80,.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: clamp(80px, 15vh, 120px);
    padding-inline: var(--space-lg);
    overflow-y: auto;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    display: block;
    font-size: clamp(16px, 4vw, 20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(52,73,94,.7);
    padding-left: 10px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    width: 100%;
    min-height: calc(100svh - var(--header-height)); /* svh = small viewport height */
    margin: 0 0 var(--space-lg);
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(120deg, rgba(14,34,56,.9), rgba(28,68,101,.78)),
        url('https://www.regiomanager.de/wp-content/uploads/1995/08/schumacher-online-opener-2048x1280.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 36px rgba(0,0,0,.28);
    overflow: hidden;
}

.hero-inner {
    width: min(var(--max-width), 100%);
    margin-inline: auto;
    padding: clamp(34px, 6vw, 68px) var(--space-md);
}

.willkommen-box {
    max-width: 740px;
    padding-block: var(--space-sm);
}

.willkommen-box h1 {
    color: #fff;
    font-size: var(--text-2xl);
    margin-bottom: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 3px 18px rgba(0,0,0,.35);
}

.willkommen-box h2 {
    color: var(--color-dark-1);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    font-weight: 300;
}

.willkommen-box p {
    color: #f1f7ff;
    max-width: 62ch;
    line-height: 1.65;
    font-size: var(--text-base);
}

/* hero on non-image pages */
.hero-section.plain .willkommen-box p { color: #555; }

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.hero-buttons .submit-btn {
    width: auto;
    min-width: 190px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #2f80ed, #1d5fbf);
}

/* ============================================================
   FORM
   ============================================================ */
.form-container {
    background: white;
    border-radius: 15px;
    padding: clamp(20px, 4vw, 40px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    max-width: 700px;
    width: 100%;
    margin-inline: auto;
    position: relative;
}

.form-container h2 {
    text-align: center;
    color: var(--color-dark-1);
    margin-bottom: var(--space-lg);
    font-size: var(--text-xl);
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 15px;
}

.form-group {
    margin-block: var(--space-md);
    position: relative;
    display: flex;
    flex-direction: row;
    gap: clamp(16px, 3vw, 50px);
    flex-wrap: wrap; /* allow wrapping on small screens */
}

/* labels */
label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: var(--text-sm);
}

/* ---- shared input / select / textarea ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: clamp(10px, 2vw, 15px) clamp(12px, 2.5vw, 20px);
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px; /* 16px prevents iOS zoom */
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(52,152,219,.1);
}

input[type="url"]:valid   { border-color: #4caf50; background: linear-gradient(135deg,#f8fff8,#e8f5e8); }
input[type="url"]:invalid:not(:placeholder-shown) { border-color: var(--color-danger); background: linear-gradient(135deg,#fff8f8,#ffe8e8); }

select {
    max-width: 400px;
    color: #555;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"%3E%3Cpath fill="%233498db" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    padding-right: 36px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---- radio buttons ---- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    padding: clamp(10px, 2vw, 16px) clamp(12px, 2.5vw, 20px);
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
    user-select: none;
    touch-action: manipulation;
}

.radio-option:hover   { border-color: var(--color-accent); background: white; box-shadow: 0 2px 8px rgba(52,152,219,.1); }
.radio-option.selected {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    box-shadow: 0 2px 15px rgba(52,152,219,.2);
}

.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }

.radio-content { display: flex; align-items: flex-start; width: 100%; gap: 15px; }

.radio-checkmark {
    position: relative;
    width: clamp(18px, 3vw, 22px);
    height: clamp(18px, 3vw, 22px);
    border: 2px solid #ccc;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: white;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-checkmark {
    border-color: var(--color-accent);
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52,152,219,.2);
}

.radio-checkmark::after {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: clamp(8px, 1.5vw, 10px);
    height: clamp(8px, 1.5vw, 10px);
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-content .radio-checkmark::after  { transform: translate(-50%, -50%) scale(1); }
.radio-option input[type="radio"]:focus  + .radio-content .radio-checkmark           { box-shadow: 0 0 0 4px rgba(52,152,219,.3); outline: none; }

.radio-text  { flex: 1; }
.radio-label { font-weight: 600; font-size: var(--text-base); color: var(--color-dark-1); line-height: 1.4; margin-bottom: 4px; }
.radio-description { font-size: var(--text-sm); color: #666; line-height: 1.3; }

/* ---- checkbox ---- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-block: var(--space-md);
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-group input[type="checkbox"] { width: auto; margin: 0; flex-shrink: 0; margin-top: 3px; }
.checkbox-group label  { margin: 0; font-size: var(--text-sm); line-height: 1.5; }
.checkbox-group a      { color: var(--color-accent); text-decoration: none; }
.checkbox-group a:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.submit-btn,
.login-btn {
    width: 100%;
    padding: clamp(12px, 2.5vw, 18px);
    background: linear-gradient(135deg, var(--color-accent), var(--color-dark-1));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.submit-btn:hover,
.login-btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(52,152,219,.3); }
.submit-btn:active,
.login-btn:active { transform: translateY(-1px); }

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-dark-1));
    color: white;
    text-decoration: none;
    padding: clamp(10px, 2vw, 12px) clamp(18px, 3vw, 25px);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 15px rgba(52,152,219,.3);
    touch-action: manipulation;
}

.back-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52,152,219,.4); }

.share-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-dark-1));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.share-button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(52,152,219,.3); }

.mehr-anzeigen-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 3vw, 30px);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231,76,60,.3);
    touch-action: manipulation;
}

.mehr-anzeigen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.mehr-anzeigen-container { text-align: center; margin-top: var(--space-md); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-messages { margin-bottom: var(--space-md); }

.flash-success,
.flash-error,
.flash-info {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: var(--text-sm);
}

.flash-success { background: linear-gradient(135deg,#d4edda,#c3e6cb); color:#155724; border-left:4px solid #28a745; box-shadow:0 4px 15px rgba(40,167,69,.1); }
.flash-error   { background: linear-gradient(135deg,#f8d7da,#f5c6cb); color:#721c24; border-left:4px solid #dc3545; box-shadow:0 4px 15px rgba(220,53,69,.1); }
.flash-info    { background: linear-gradient(135deg,#d1ecf1,#bee5eb); color:#0c5460; border-left:4px solid #17a2b8; box-shadow:0 4px 15px rgba(23,162,184,.1); }

.info-text {
    background: #e8f4fd;
    color: #1976d2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    font-size: 14px;
    border-left: 4px solid #1976d2;
}

/* ---- validation ---- */
.error    { background: #ffe6e6; color: var(--color-danger); padding: 12px 16px; border-radius: 8px; margin-bottom: var(--space-md); border-left: 4px solid var(--color-danger); font-size: 14px; }
.required { color: var(--color-danger); }

/* ============================================================
   EVENT GRID & CARDS
   ============================================================ */
.events-surface { background: transparent; border-radius: 0; padding: 0; box-shadow: none; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    background: var(--color-brand-dark);
    border: 1px solid #1f394d;
    border-radius: 14px;
    padding: clamp(14px, 3vw, 20px) clamp(12px, 2.5vw, 18px);
    box-shadow: 0 10px 24px rgba(25,43,59,.28);
}

.section-header h2 { color: var(--color-brand); font-size: var(--text-xl); margin-bottom: 10px; font-weight: 700; letter-spacing: .01em; }
.section-header p  { color: var(--color-brand); font-size: var(--text-base); max-width: 760px; margin-inline: auto; }
.section-header .next-announcement {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-brand);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 700;
    border: 1px solid #d7a486;
    box-shadow: 0 8px 18px rgba(162,111,82,.35);
}

/* fluid grid: 1 col → 2 col → 3 col */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(16px, 3vw, 28px);
    margin-bottom: var(--space-md);
}

.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease;
    border: 1px solid #dbe8f5;
    display: flex;
    flex-direction: column;
}

.event-card:hover { box-shadow: var(--card-shadow-hover); }
.event-card.is-next { border: 2px solid var(--color-accent-2); box-shadow: 0 14px 30px rgba(47,128,237,.2); }

.event-card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: center;
    background: #fff;
    display: block;
    padding: 8px;
}

.event-card-content {
    padding: clamp(10px, 2vw, 16px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.event-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.event-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--color-brand);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: var(--color-brand-dark);
    border: 1px solid var(--color-brand);
}

.badge-event  { background: var(--color-brand-dark); }
.badge-aktion { background: var(--color-brand-dark); }

.event-card-title       { color: #000; font-size: var(--text-md); line-height: 1.3; margin: 0; }
.event-card-description { color: #000; line-height: 1.6; font-size: var(--text-sm); margin: 0; max-width: 48ch; }

.event-meta { color: var(--color-accent-2); font-size: var(--text-xs); display: flex; flex-direction: column; gap: 4px; }
.event-meta-item { margin: 0; }

.event-card-content .submit-btn {
    width: auto;
    min-width: 140px;
    padding: clamp(8px, 1.5vw, 10px) clamp(10px, 2vw, 12px);
    font-size: var(--text-sm);
    text-align: center;
    text-decoration: none;
    margin-top: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-dark));
    color: #fff;
    border: 1px solid var(--color-accent-dark);
    box-shadow: 0 6px 16px rgba(47,128,237,.28);
    font-weight: 700;
}

.event-card-content .submit-btn:hover { background: linear-gradient(135deg, #236fd8, #184f9f); color: #fff; }

.next-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--color-accent-2); color: #fff; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   NEXT HIGHLIGHT CARD
   ============================================================ */
.next-highlight {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    align-items: center;
    gap: clamp(14px, 3vw, 22px);
    background: linear-gradient(120deg, #f4f9ff, #fff);
    border: 2px solid #b9d7f7;
    border-radius: 18px;
    padding: clamp(14px, 3vw, 20px);
    margin-bottom: var(--space-lg);
    box-shadow: 0 12px 28px rgba(47,128,237,.16);
}

.next-highlight-image {
    width: 100%;
    max-height: 340px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbe8f5;
    padding: 8px;
}

.next-highlight-content { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.next-highlight-content h3 { margin: 0; color: #10273b; }
.next-highlight-kicker { color: var(--color-accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: var(--text-xs); }
.next-highlight-description { margin: 0; color: #10273b; max-width: 54ch; }

.next-highlight .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
    margin-top: 6px;
    padding: clamp(8px, 1.5vw, 10px) 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-dark));
    border: 1px solid var(--color-accent-dark);
    box-shadow: 0 8px 18px rgba(47,128,237,.28);
}

.next-highlight .submit-btn:hover { text-decoration: none; background: linear-gradient(135deg, #236fd8, #184f9f); box-shadow: 0 10px 22px rgba(35,111,216,.35); }

/* ============================================================
   PHOTO SLIDER
   ============================================================ */
.foto-slider-container {
    background: white;
    border-radius: 15px;
    padding: clamp(16px, 3vw, 30px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    margin-bottom: var(--space-lg);
    position: relative;
}

.foto-slider { position: relative; max-width: 900px; margin-inline: auto; overflow: hidden; border-radius: 15px; }
.slider-track { display: flex; transition: transform 0.3s ease; will-change: transform; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: clamp(200px, 40vw, 400px); object-fit: cover; border-radius: 10px; transition: opacity 0.3s ease; display: block; }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.6);
    color: white;
    border: none;
    width: clamp(36px, 6vw, 50px);
    height: clamp(36px, 6vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    font-size: clamp(14px, 2.5vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    touch-action: manipulation;
}

.slider-nav:hover { background: rgba(0,0,0,.8); }
.slider-nav.prev { left: clamp(8px, 2vw, 20px); }
.slider-nav.next { right: clamp(8px, 2vw, 20px); }

.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: var(--space-md); flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; cursor: pointer; transition: background 0.3s ease; touch-action: manipulation; }
.dot.active { background: var(--color-accent); }

/* ============================================================
   EVENT IMAGE (Hero detail)
   ============================================================ */
.event-image { text-align: center; position: relative; }

.event-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    display: block;
    margin-inline: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    transition: opacity 0.3s ease, max-width 0.5s ease;
}

.event-image img:hover { opacity: .9; max-width: 410px; cursor: pointer; }

.middle { transition: .5s ease; opacity: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.event-image:hover .middle { opacity: 1; }
.text { background-color: rgba(42,75,99,.5); color: white; font-size: 16px; padding: 10px 20px; border-radius: 5px; }

/* ============================================================
   LAZY LOADING
   ============================================================ */
.lazy { opacity: 0; transition: opacity 0.3s; }
.lazy.loaded { opacity: 1; }

.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 15px;
}

@keyframes loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.top-footer {
    width: 100%;
    background: var(--color-dark-2);
    color: white;
    padding: clamp(24px, 4vw, 40px) var(--space-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(20px, 3vw, 40px);
    margin-top: var(--space-xl);
}

.top-footer h3 { margin-bottom: 15px; font-size: var(--text-base); }
.top-footer p  { line-height: 1.6; font-size: var(--text-sm); }
.top-footer a  { color: var(--color-accent); text-decoration: none; display: block; margin-bottom: 5px; font-size: var(--text-sm); }
.top-footer a:hover { text-decoration: underline; }

.low-footer {
    background: var(--color-dark-1);
    color: white;
    padding: clamp(14px, 2.5vw, 20px) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: var(--text-sm);
}

.right-footer { display: flex; gap: clamp(10px, 2vw, 20px); flex-wrap: wrap; }
.right-footer a { color: var(--color-accent); text-decoration: none; }
.right-footer a:hover { text-decoration: underline; }

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title { font-weight: bold; font-size: var(--text-md); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Tablet landscape & small desktop (≤1200px) ── */
@media (max-width: 1200px) {
    .event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Tablet portrait (≤992px) ── */
@media (max-width: 992px) {
    .next-highlight {
        grid-template-columns: 200px 1fr;
    }
}

/* ── Mobile & Tablet (≤768px) ── */
@media (max-width: 768px) {
    /* show hamburger, hide desktop nav */
    .hamburger  { display: flex; }
    .low-nav    { display: none; }
    .mobile-menu { display: block; }

    /* Hero */
    .hero-section {
        min-height: calc(100svh - 90px);
        background-attachment: scroll; /* fix for iOS parallax bug */
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .submit-btn {
        width: 100%;
    }

    /* Next highlight stacks vertically */
    .next-highlight {
        grid-template-columns: 1fr;
    }

    .next-highlight-image {
        max-width: 220px;
        margin-inline: auto;
    }

    /* Form */
    .form-container {
        margin: 15px;
        border-radius: 10px;
    }

    .share-button {
        position: static;
        margin-bottom: var(--space-md);
        align-self: flex-end;
    }

    /* Event grid → single column */
    .event-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .low-footer {
        flex-direction: column;
        text-align: center;
    }

    .right-footer {
        justify-content: center;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .form-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    select {
        max-width: 100%;
    }

    .event-card-image {
        aspect-ratio: 1 / 1; /* more compact on tiny screens */
    }

    .foto-slider-container {
        border-radius: 10px;
    }

    /* stacked footer columns already handled by auto-fit */
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
    :root {
        --space-md: 12px;
        --space-lg: 20px;
    }

    .form-container {
        margin: 8px;
        padding: 16px;
    }
}

/* ============================================================
   UTILITY – reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}