/* ═══════════════════════════════════════════════════════════════
   KLIMASCHUTZ EINFACH MACHEN
   Fixed background image, transparent + frosted glass sections
   Fonts: Quicksand (variable, lokal)
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/quicksand-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/quicksand-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Quicksand';
    font-style: oblique 0deg 12deg;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/quicksand-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Quicksand';
    font-style: oblique 0deg 12deg;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/quicksand-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ─── Custom Properties ─── */

:root {
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-dim: rgba(255, 255, 255, 0.45);
    --color-text-dark: #1a1a18;
    --color-accent: #f0a040;
    --color-accent-hover: #e89020;

    --frost-bg: rgba(255, 255, 255, 0.1);
    --frost-bg-strong: rgba(255, 255, 255, 0.15);
    --frost-border: rgba(255, 255, 255, 0.18);
    --frost-blur: 20px;

    --bg-image: url('/images/background.webp');
    --color-banner: #f7941d;
    --color-banner-frost: rgba(247, 148, 29, 0.2);
    --color-teal: #0a7e6a;
    --color-exkursion: #5b8dd9;

    --font-display: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 7rem;
    --space-2xl: 10rem;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-drag: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--ease-out-quart);
    --transition-base: 0.35s var(--ease-out-quart);
}


/* ─── Reset ─── */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-image: var(--bg-image);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-color: #1a7a4a;
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
}


/* ─── Typography ─── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.9;
    letter-spacing: -0.01em;
}

table {
    border-spacing: 5px 0;
}


/* ─── Layout ─── */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}


/* ─── Frosted Glass ─── */

.frosted {
    background: var(--frost-bg);
    backdrop-filter: blur(var(--frost-blur));
    -webkit-backdrop-filter: blur(var(--frost-blur));
    border: 1px solid var(--frost-border);
    border-radius: 20px;
}


/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240, 160, 64, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}


/* ═══════════════════════════════════════
   HEADER — dragged by content
   ═══════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: var(--color-banner);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-drag);
    will-change: transform;
}

.header--hidden {
    transform: translateY(-100%);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-text);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-teal);
    transition: width var(--transition-base);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    transition: all var(--transition-base);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-text);
}


/* ─── Mobile Menu Toggle ─── */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all var(--transition-base);
    transform-origin: center;
}

.menu-toggle--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle--active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ─── Mobile Menu Overlay ─── */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-banner);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu--open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu--open .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu--open .mobile-menu__link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu--open .mobile-menu__link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu--open .mobile-menu__link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu__link:hover {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════
   HERO — orange banner + transparent below
   ═══════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero__banner {
    width: 100%;
    background-color: var(--color-banner);
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    text-align: center;
}

.hero__content {
    text-align: center;
    padding: var(--space-lg) var(--space-md) 0;
}

.hero__title {
    margin-bottom: var(--space-md);
}

.hero__title-line {
    display: block;
}

.hero__title-line--1 {
    font-size: clamp(2.8rem, 7.5vw, 7.5rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    opacity: 0;
    animation: hero-reveal 1.1s var(--ease-out-expo) forwards;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero__title-line--2 {
    font-size: clamp(4rem, 11vw, 11rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 0.95;
    opacity: 0;
    animation: hero-reveal 1.1s var(--ease-out-expo) 0.15s forwards;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.hero__title-line--3 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 400;
    font-style: oblique 12deg;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.1em;
    opacity: 0;
    animation: hero-reveal 1.1s var(--ease-out-expo) 0.3s forwards;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: hero-reveal 1s var(--ease-out-expo) 0.5s forwards;
}

.hero__cta {
    opacity: 0;
    animation: hero-reveal 1s var(--ease-out-expo) 0.65s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-dim);
    opacity: 0;
    animation: hero-reveal 1s var(--ease-out-expo) 1.2s forwards;
}

.hero__scroll svg {
    animation: scroll-bounce 2.5s ease-in-out infinite 2s;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}


/* ═══════════════════════════════════════
   BESCHREIBUNG — transparent
   ═══════════════════════════════════════ */

.beschreibung {
    padding: var(--space-2xl) 0;
}

.beschreibung__content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.beschreibung__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.beschreibung__text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}


/* ═══════════════════════════════════════
   VERANSTALTUNGEN
   ═══════════════════════════════════════ */

.veranstaltungen {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.veranstaltungen__title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}


/* ─── <next-event> Custom Element ─── */

.next-event {
    max-width: 650px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* ─── Event List Custom Element ─── */

event-list {
    display: block;
}

.event-list__past-link {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.event-list__past-link:hover {
    transform: translateY(2px);
}

.event-list__empty {
    text-align: center;
    color: var(--color-text-dim);
    font-style: oblique 12deg;
    padding: var(--space-lg);
}

#past-events-link {
    text-align: center;
    margin-bottom: 2rem;
}

#past-events-section {
    margin-top: 3rem;
}

.event-list__section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.listing__item {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.listing__item-content {
    padding: var(--space-md);
}

.listing__item-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.listing__item-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing__item-title a:hover {
    color: var(--color-accent);
}

.listing__item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.listing__item-meta p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing__item-summary {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.listing__item-link {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.listing__item-link:hover {
    transform: translateX(5px);
}

.next-event__badge,
.event-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 100px;
    padding: 0.25rem 0.85rem;
    margin-bottom: var(--space-sm);
}

.event-unplanned-hint {
    font-style: italic;
    color: var(--color-text-muted, #666);
    cursor: help;
}

.next-event__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-sm);
}

.next-event__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.next-event__date,
.next-event__location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.next-event__date svg,
.next-event__location svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.next-event__body {
    margin-top: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.next-event__body p {
    margin-bottom: 0.5rem;
}

.next-event--empty {
    text-align: center;
    padding: var(--space-lg);
}

.next-event--empty p {
    color: var(--color-text-dim);
    font-style: oblique 12deg;
}


/* ═══════════════════════════════════════
   FOOTER — smooth drag in/out
   ═══════════════════════════════════════ */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: var(--space-md) 0;
    transform: translateY(100%);
    transition: transform var(--transition-drag);
    will-change: transform;
}

.footer--visible {
    transform: translateY(0);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.footer__logo span {
    color: var(--color-accent);
}

.footer__title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    color: var(--color-text-muted);
}

.footer__text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer__text a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.footer__text a:hover {
    color: var(--color-accent);
}

.footer__legal {
    display: flex;
    gap: 1.25rem;
}

.footer__link {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════
   CONTENT PAGES (single/list)
   ═══════════════════════════════════════ */

.article {
    padding-top: calc(var(--space-xl) + 80px);
}

.article__content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.article__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
}

.article__desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.article__body {
    font-size: 1.05rem;
}

.prose h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.prose h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(240, 160, 64, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.prose a:hover {
    text-decoration-color: var(--color-accent);
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: oblique 12deg;
    color: var(--color-text-muted);
}

/* ─── Event Single Page ─── */

.article--stammtisch .article__content {
    border-top: 3px solid var(--color-teal);
    background: rgba(10, 126, 106, 0.18);
}

.article--vortrag .article__content {
    border-top: 3px solid var(--color-accent);
    background: rgba(240, 160, 64, 0.15);
}

.article--exkursion .article__content {
    border-top: 3px solid var(--color-exkursion);
    background: rgba(91, 141, 217, 0.15);
}

.article__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: var(--space-sm) 0 var(--space-md);
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.article__meta p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article__past-notice {
    display: none;
}

.article__past-notice--visible {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(240, 160, 64, 0.15);
    border: 1px solid rgba(240, 160, 64, 0.4);
    border-radius: 10px;
    padding: 0.75rem var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    color: var(--color-accent);
}

.article__footer {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--frost-border);
}

.article__back {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article__back:hover {
    color: var(--color-text);
}

.listing {
    padding-top: calc(var(--space-xl) + 80px);
}

.listing__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    text-align: center;
}

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


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

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

    .menu-toggle {
        display: block;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .beschreibung {
        padding: var(--space-xl) 0;
    }

    .veranstaltungen {
        padding: var(--space-lg) 0 var(--space-xl);
    }

    .next-event {
        padding: var(--space-md);
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .footer__legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1.25rem;
    }

    .hero__title-line--2 {
        line-height: 1;
    }

    .next-event__meta {
        gap: 0.75rem;
    }
}

