/* =========================================================
   Freiwillige Feuerwehr Ahornberg – Stylesheet
   ========================================================= */

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

:root {
    --red: #e63946;
    --red-dark: #c1121f;
    --orange: #f77f00;
    --ink: #1d2a3a;
    --ink-soft: #4a5b6e;
    --bg-soft: #f5f7fa;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-sm: 0 4px 14px rgba(29, 42, 58, 0.08);
    --shadow-md: 0 12px 32px rgba(29, 42, 58, 0.12);
    --shadow-lg: 0 24px 60px rgba(29, 42, 58, 0.16);
    --grad: linear-gradient(135deg, var(--red), var(--orange));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg-soft);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(29, 42, 58, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    border-bottom: 1px solid rgba(29, 42, 58, 0.08);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.92);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red);
    flex-shrink: 0;
}

.logo img {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    border-radius: 8px;
}

.logo::before {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-grow: 1;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.25s ease;
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--grad);
    transition: width 0.3s ease;
    border-radius: 999px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    outline: none;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--red);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    position: relative;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--red);
    background: rgba(230, 57, 70, 0.08);
}

.hero {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(0, 0, 0, 0.25), transparent 60%),
        linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% -10%;
    height: 55%;
    background: radial-gradient(60% 100% at 50% 100%, rgba(255, 255, 255, 0.14), transparent 70%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
    width: 100%;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.92;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--red-dark);
    padding: 15px 36px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    box-shadow: var(--shadow-md);
    position: relative;
}

.cta-button::before {
    display: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

main {
    background: var(--bg-soft);
    position: relative;
    z-index: 1;
}

.section {
    padding: 5.5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 3.5rem;
    color: var(--ink);
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--grad);
    border-radius: 999px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.card {
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(29, 42, 58, 0.06);
}

.card::before,
.card::after {
    display: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
    color: var(--ink);
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.icon {
    font-size: 2.6rem;
    margin-bottom: 1.1rem;
    display: block;
}

.emergency-section {
    background:
        radial-gradient(600px 260px at 20% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.emergency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.emergency-content {
    position: relative;
    z-index: 2;
}

.emergency-number {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    margin: 2rem 0;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, var(--white), #f4f6f8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: emergencyPulse 3s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.emergency-description {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 300;
    opacity: 0.95;
    padding: 0 1rem;
}

.gallery-section {
    background: var(--white);
    color: var(--ink);
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

a.gallery-item-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.gallery-item img {
    cursor: zoom-in;
}

a.gallery-item-link img {
    cursor: pointer;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.contact-info {
    display: none;
}

.datenschutz-box {
    background: var(--bg-soft);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(29, 42, 58, 0.06);
    color: var(--ink);
}

.datenschutz-box h3 {
    color: var(--ink);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.datenschutz-box h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--grad);
    border-radius: 999px;
}

.datenschutz-box p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.datenschutz-box p strong {
    color: var(--red);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.8rem;
}

.inner-info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(29, 42, 58, 0.06);
    margin-bottom: 2rem;
}

.inner-info-box h4 {
    color: var(--ink);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.inner-info-box .contact-item {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-soft);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.inner-info-box .contact-item span {
    font-size: 1.8rem;
}

footer {
    background: linear-gradient(135deg, var(--ink) 0%, #101c28 100%);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--orange);
}

.social-media {
    margin: 3rem auto;
    text-align: center;
    padding: 3.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(29, 42, 58, 0.06);
    color: var(--ink);
}

.social-media h3 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    margin-bottom: 2rem;
    color: var(--ink);
    font-weight: 700;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.6rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.4rem;
    color: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.social-link.facebook {
    background: #1877f2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
    filter: brightness(1.05);
}

.social-link:active {
    transform: scale(0.96);
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(15px) rotate(-1deg); }
}

.weather-widget {
    background: linear-gradient(135deg, #3d6fb4 0%, #2a4f8f 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.weather-content {
    position: relative;
    z-index: 2;
}

.weather-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.weather-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.weather-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.weather-temp {
    font-size: 3rem;
    font-weight: 900;
    margin: 0.5rem 0;
}

.weather-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: capitalize;
}

.weather-loading {
    font-size: 1.2rem;
    opacity: 0.8;
}

.deployment-list {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(230, 57, 70, 0.12);
}

.deployment-note {
    text-align: center;
    color: var(--ink);
    opacity: 0.75;
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.deployment-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.stat-item strong {
    color: var(--red);
}

.deployment-list li {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid rgba(29, 42, 58, 0.08);
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.deployment-list li:last-child {
    border-bottom: none;
}

.deployment-list li:hover {
    background-color: rgba(230, 57, 70, 0.04);
    padding-left: 1.75rem;
}

.deployment-list li strong {
    color: var(--red);
    margin-right: 0.5rem;
}

.deployment-list .placeholder-item {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    text-align: center;
    justify-content: center;
    background: var(--bg-soft);
    border-bottom: 2px dashed rgba(29, 42, 58, 0.2);
}

.service-plan {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(29, 42, 58, 0.06);
    color: var(--ink);
    overflow-x: auto;
}

.service-plan h3 {
    color: var(--ink);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.service-plan h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--grad);
    border-radius: 999px;
}

.service-plan table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    min-width: 400px;
}

.service-plan th, .service-plan td {
    border: 1px solid rgba(29, 42, 58, 0.08);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 1rem;
}

.service-plan th {
    background: var(--ink);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-plan tr:nth-child(even) {
    background-color: var(--bg-soft);
}

.service-plan tr:hover {
    background-color: rgba(230, 57, 70, 0.05);
}

.crossed-out {
    text-decoration: line-through;
    opacity: 0.6;
    background-color: #e0e0e0 !important;
}

.table-scroll-hint {
    display: none;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation-name: animatetop;
    animation-duration: 0.4s;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 10001;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-gallery-grid img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    cursor: zoom-in;
}

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

.youth-schedule {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(29, 42, 58, 0.06);
    color: var(--ink);
    overflow-x: auto;
}

.youth-schedule h3 {
    color: var(--red);
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    position: relative;
}

.youth-schedule h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--grad);
    border-radius: 999px;
}

.youth-schedule table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    min-width: 380px;
}

.youth-schedule th, .youth-schedule td {
    border: 1px solid rgba(29, 42, 58, 0.08);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 1rem;
}

.youth-schedule th {
    background: var(--ink);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.youth-schedule tr:nth-child(even) {
    background-color: var(--bg-soft);
}

.youth-schedule tr:hover {
    background-color: rgba(247, 127, 0, 0.08);
}

.youth-schedule .highlight-row {
    background-color: rgba(247, 127, 0, 0.12);
    font-weight: bold;
}

.youth-schedule .highlight-row:hover {
    background-color: #ffe69c;
}

/* ============================
RESPONSIVE / MOBILE STYLES
============================ */

@media (max-width: 1100px) {
    .nav-links {
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        width: 38px;
        height: 38px;
        margin-right: 10px;
    }

    .hero {
        background-attachment: scroll;
    }

    main {
        border-radius: 25px 25px 0 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .section {
        padding: 3.5rem 0;
    }

    .service-plan,
    .datenschutz-box,
    .youth-schedule {
        padding: 1.8rem;
    }

    .table-scroll-hint {
        display: block;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    nav {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.05rem;
    }

    .logo img {
        width: 34px;
        height: 34px;
        margin-right: 8px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 9vw, 3rem);
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: clamp(0.95rem, 4vw, 1.3rem);
        letter-spacing: 0.5px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        margin-bottom: 3rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 1rem;
    }

    .icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

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

    .gallery-item:hover .gallery-overlay {
        transform: translateY(0);
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.75));
    }

    .deployment-list li {
        font-size: 0.92rem;
        padding: 0.9rem 1rem;
    }

    .service-plan,
    .datenschutz-box,
    .youth-schedule {
        padding: 1.4rem 1rem;
        border-radius: 18px;
    }

    .service-plan h3,
    .youth-schedule h3,
    .datenschutz-box h3 {
        font-size: 1.4rem;
    }

    .service-plan table th,
    .service-plan table td,
    .youth-schedule table th,
    .youth-schedule table td {
        padding: 0.7rem 0.7rem;
        font-size: 0.88rem;
    }

    .weather-temp {
        font-size: 2.5rem;
    }

    .weather-data {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    footer {
        padding: 2.5rem 0;
    }

    .float-animation {
        animation: none;
    }

    .inner-info-box {
        padding: 1.2rem;
    }

    .social-media {
        padding: 2.5rem 1rem;
        border-radius: 20px;
        margin: 2rem 0;
    }

    .modal-content {
        padding: 15px;
        border-radius: 8px;
    }

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

    .modal-gallery-grid img {
        height: 120px;
    }
}

@media (max-width: 380px) {
    .logo span.logo-text {
        display: none;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .weather-data {
        grid-template-columns: 1fr;
    }

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

/* =========================================================
   Eigene Ergänzungen / Feinschliff
   ========================================================= */

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    color: #fff;
    font-size: 0.95rem;
    margin-top: 14px;
    text-align: center;
    max-width: 80vw;
    opacity: 0.85;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 28px;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    z-index: 20001;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.lightbox-close:hover {
    transform: scale(1.15);
    opacity: 1;
}

@media (max-width: 600px) {
    .lightbox-image {
        max-width: 96vw;
        max-height: 80vh;
    }
}

/* Sektionen nicht vom fixierten Header verdeckt beim Ankern */
:target,
[id] {
    scroll-margin-top: 70px;
}

@media (max-width: 600px) {
    :target,
    [id] {
        scroll-margin-top: 60px;
    }
}

/* Scroll-Reveal (wird von main.js gesteuert) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Notruf-Blinken (bei Klick auf die 112) */
@keyframes emergencyBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.emergency-number {
    cursor: pointer;
    user-select: none;
}

/* Wetter-Widget */
.weather-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.weather-timestamp {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.weather-error {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Gallerie-Hover etwas dezenter, damit Overlay bei Touch nicht stört */
@media (hover: none) {
    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.75));
    }
}

/* =========================================================
   Scroll-to-top
   ========================================================= */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    z-index: 900;
    line-height: 1;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--orange);
}

/* =========================================================
   Datenschutz-Hinweis (leichtgewichtig)
   ========================================================= */
.privacy-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(230, 57, 70, 0.18);
    padding: 1.25rem 1.5rem;
    z-index: 1100;
    display: none;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink);
}

.privacy-banner.show {
    display: block;
}

.privacy-banner p {
    margin: 0 0 1rem;
}

.privacy-banner a {
    color: var(--red);
}

.privacy-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.privacy-buttons button {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.privacy-buttons .privacy-accept {
    background: var(--red);
    color: #fff;
}

.privacy-buttons .privacy-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.privacy-buttons .privacy-info {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(29, 42, 58, 0.25);
}

@media (max-width: 768px) {



    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .privacy-banner {
        bottom: 0.75rem;
        padding: 1rem;
    }
}
