/* =========================================================
   VERDEN.ONLINE — TECH CLEAN RESPONSIVE CSS
   ========================================================= */

/* Imports */
@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700|Inter:200,300,400,600");

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   GLOBAL COLORS & TYPO
   ========================================================= */

:root {
    --verden-orange: #f29400;
    --verden-blue: #56a0d3;
    --verden-green: #8bbf45;
    --verden-red: #c76363;

    --text-dark: #1f1f1f;
    --bg-light: #f5f5f5;

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #222;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

a {
    color: var(--verden-orange);
    text-decoration: none;
    transition: color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

a:hover {
    color: var(--verden-orange);
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */

#header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Desktop / Tablet Nav */
#nav {
    width: 100%;
    max-width: 1300px;
    height: 72px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 24px;

    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid var(--verden-orange);
    box-shadow: var(--glass-shadow);
}

#nav .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--verden-orange);
}

#nav .nav-right {
    display: flex;
    align-items: center;
}

#nav a {
    margin-left: 20px;
    padding-bottom: 4px;
    font-weight: 600;
    position: relative;
    font-size: 0.95rem;
}

/* Neon underline */
#nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: var(--verden-orange);
    box-shadow: 0 0 10px var(--verden-orange);
    transition: width 0.25s ease;
}

#nav a:hover::after,
#nav a.active::after {
    width: 100%;
}

/* =========================================================
   MOBILE NAV PANEL
   ========================================================= */

#navPanelToggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;

    background: var(--verden-orange);
    color: #fff;
    padding: 10px 18px;
    font-weight: 700;
    border-radius: 8px;

    z-index: 20000;
    cursor: pointer;
}

#navPanel {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    padding: 50px 32px;

    transition: right 0.45s ease;
    z-index: 20001;
}

body.is-navPanel-visible #navPanel {
    right: 0;
}

#navPanel a {
    display: block;
    margin: 18px 0;
    font-size: 1.2rem;
}

/* Mobile only */
@media (max-width: 768px) {
    #nav {
        display: none;
    }

    #navPanelToggle {
        display: block;
    }
}

/* =========================================================
   INTRO / HERO-BEREICH
   ========================================================= */

#intro {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 140px 20px 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
        url("../images/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--glass-shadow);
}

/* Logo oben rechts im Intro */
#intro .intro-logo {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    max-width: 190px;
    height: auto;
    object-fit: contain;
    z-index: 5;
}

/* Inhalt mittig */
.intro-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    padding: 4rem 1.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Rahmen für Titel */
.intro-title-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.6rem 2.6rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
}

.intro-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
}

.intro-title-box h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.intro-title-box p {
    margin: 0;
    font-size: 1.02rem;
    color: #555;
}

/* Scroll-Indicator, unten mittig */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    animation: arrow-float 1.7s ease-in-out infinite;
    transition:
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

/* Hover-Effekt */
.scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* Idle-Animation */
@keyframes arrow-float {
    0% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
    100% {
        transform: translate(-50%, 0);
    }
}

/* Klick-Animation */
.scroll-indicator.clicked {
    animation: arrow-click 0.45s ease-out forwards;
}

@keyframes arrow-click {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, 4px) scale(0.95);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 14px) scale(0.9);
        opacity: 0;
    }
}

/* Intro mobile Anpassungen */
@media (max-width: 768px) {
    #intro {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    #intro .intro-logo {
        max-width: 150px;
        top: 0.8rem;
        right: 1rem;
    }

    .intro-title-box {
        padding: 1.3rem 1.8rem;
    }

    .intro-title-box p {
        font-size: 0.95rem;
    }
}

/* =========================================================
   COLOR BAR
   ========================================================= */

#colorbar img {
    width: 100%;
    display: block;
    opacity: 1;
}

/* =========================================================
   MAIN CONTENT & GENERIC CARD
   ========================================================= */

#main {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.card,
#main > section,
#main > article {
    background: #ffffffdd;
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 40px;
    margin-bottom: 40px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 6px solid var(--verden-orange);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.card h2 {
    margin-top: 0;
}

/* Small screens: Cards enger machen */
@media (max-width: 768px) {
    #main {
        margin: 30px auto;
        padding: 0 12px;
    }

    .card,
    #main > section,
    #main > article {
        padding: 24px 18px;
        margin-bottom: 24px;
        border-radius: 16px;
        border-left-width: 4px;
    }
}

/* =========================================================
   MAP-LAYOUT (LISTE + KARTE)
   ========================================================= */

/* Layout: Liste links, Karte rechts */
.card-map-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

/* Sidebar links */
.map-sidebar {
    flex: 0 0 280px;
    max-width: 340px;
}

/* Karte rechts */
#mapBox {
    flex: 1 1 320px;
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Leaflet-Container füllt MapBox aus */
#mapBox .leaflet-container {
    width: 100%;
    height: 100%;
}

/* Nearest-Liste */
.nearest-title {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.nearest-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.wifi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wifi-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wifi-list li:last-child {
    border-bottom: none;
}

.wifi-list strong {
    display: block;
    font-size: 0.98rem;
}

.wifi-list span {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Marker-Style */
.wifi-marker {
    position: relative;
}

.wifi-marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #008c95;
    border: 2px solid #ffffff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    animation: wifi-breathe 1.8s ease-in-out infinite;
}

@keyframes wifi-breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 0 4px rgba(0, 140, 149, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 10px rgba(0, 140, 149, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 4px rgba(0, 140, 149, 0.4);
    }
}

/* Map-Layout mobile: untereinander */
@media (max-width: 900px) {
    .card-map-layout {
        flex-direction: column;
    }

    .map-sidebar {
        flex: 1 1 auto;
        max-width: 100%;
    }

    #mapBox {
        flex: 1 1 auto;
        min-height: 380px;
    }
}

@media (max-width: 600px) {
    #mapBox {
        min-height: 320px;
    }
}

/* =========================================================
   POSTS (z. B. Aktuelles / Karten)
   ========================================================= */

#main .posts {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

#main .posts article {
    flex: 1 1 calc(50% - 40px);
    background: #ffffffdd;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

#main .posts img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #main .posts {
        gap: 20px;
    }

    #main .posts article {
        flex: 1 1 100%;
        padding: 22px 18px;
    }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button,
button,
input[type="submit"],
input[type="button"] {
    padding: 12px 30px;
    border-radius: 8px;
    border: 2px solid var(--verden-orange);
    background: transparent;
    color: var(--verden-orange);
    font-weight: 600;
    transition: 0.25s;
    cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--verden-blue);
    border-color: var(--verden-blue);
    color: white;
    box-shadow: 0 0 16px var(--verden-blue);
}

/* =========================================================
   FOOTER & COPYRIGHT
   ========================================================= */

#footer {
    padding: 32px;
    background: #ffffffdd;
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow);

    text-align: center;
    max-width: 1100px;
    margin: 60px auto 0;
}

#footer p {
    opacity: 0.7;
}

#copyright {
    margin: 20px auto 60px;
    font-size: 0.9rem;
    opacity: 0.4;
    text-align: center;
}

/* Footer mobile */
@media (max-width: 768px) {
    #footer {
        margin-top: 40px;
        padding: 24px 16px;
        border-radius: 16px;
    }

    #copyright {
        margin-bottom: 40px;
    }
}

/* =========================================================
   SCROLLBAR (OPTIONAL)
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: var(--verden-orange);
    border-radius: 10px;
}

/* =========================================================
   FADE-IN UTILITY
   ========================================================= */

.fade-in {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}