/*
 Theme Name: Computerclub Theme
 Author: Daniel
 Description: Theme for Computerclub für Senioren Leipzig
 Version: 1.0
*/


@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700&display=swap');

@font-face {
    font-family: 'Luciole';
    src: url('https://cdn.jsdelivr.net/gh/googlefonts/luciole@main/fonts/ttf/Luciole-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Luciole';
    src: url('https://cdn.jsdelivr.net/gh/googlefonts/luciole@main/fonts/ttf/Luciole-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


@property --bg-blue {
    syntax: '<color>';
    initial-value: #89CDE9;
    inherits: true;
}

@property --accent-yellow {
    syntax: '<color>';
    initial-value: #FFD766;
    inherits: true;
}

@property --text-black {
    syntax: '<color>';
    initial-value: #000000;
    inherits: true;
}

@property --card-radius {
    syntax: '<length>';
    initial-value: 20px;
    inherits: true;
}

@property --hard-shadow {
    syntax: '<shadow>';
    initial-value: 8px 8px 0px #000000;
    inherits: true;
}

@property --soft-shadow {
    syntax: '<shadow>';
    initial-value: 0 4px 12px rgba(0, 0, 0, 0.1);
    inherits: true;
}

@property --border {
    syntax: '<border>';
    initial-value: 3px solid #000000;
    inherits: true;
}

@property --nav-top-height {
    syntax: '<length>';
    initial-value: 90px;
    inherits: true;
}

@property --nav-left-width {
    syntax: '<length>';
    initial-value: 90px;
    inherits: true;
}


:root {
    --bg-blue: #89CDE9;
    --accent-yellow: #FFD766;
    --text-black: #000000;
    --card-radius: 20px;
    --hard-shadow: 8px 8px 0px #000000;
    --soft-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border: 3px solid #000000;
    --nav-top-height: 90px;
    --nav-left-width: 90px;
    --link-hover-color: #005fcc;
    color-scheme: light dark;
    --bg-blue: light-dark(#89CDE9, color-mix(in srgb, #89CDE9, black 40%));
    --accent-yellow: light-dark(#FFD766, color-mix(in srgb, #FFD766, black 30%));
    --text-black: light-dark(#000000, #FFFFFF);
    --link-hover-color: light-dark(#005fcc, #4dabf7);
    accent-color: var(--accent-yellow);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-blue);
    color: var(--text-black);
    font-size: clamp(18px, 4.2vw, 22px);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

:focus {
    outline: 3px solid #005fcc !important;
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-weight: bold;
    color: var(--text-black);
}

h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-block: 2.5rem 1.5rem;
}

h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.4rem;
    max-width: 70ch;
}

strong {
    font-weight: bold;
}

a {
    color: inherit;
    transition: all 0.2s ease;
}

a:focus-visible {
    outline: 4px solid var(--accent-yellow);
    outline-offset: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--card-radius);
    border: var(--border);
    box-shadow: var(--hard-shadow);
    aspect-ratio: auto;
    background-color: #f0f0f0;
}

.post-gallery img {
    box-shadow: var(--soft-shadow);
    border: 2px solid #000000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-yellow);
}

.post-header-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--card-radius);
    border: var(--border);
    box-shadow: var(--hard-shadow);
    margin-bottom: 2rem;
}

.highlight-yellow {
    background-color: var(--accent-yellow);
    padding: 2px 12px;
    border: 2px solid black;
    border-radius: 8px;
    box-shadow: 4px 4px 0px black;
    display: inline-block;
}

.blog-filter, .vortrag-filter {
    align-items: last-baseline !important
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-image {
    animation: float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .floating-image {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--accent-yellow);
    color: var(--text-black);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border: var(--border);
    border-radius: 8px;
    z-index: 10000;
    box-shadow: var(--hard-shadow);
}

.skip-link:focus {
    top: 10px;
}


.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-top-height);
    background-color: var(--bg-blue);
    border-bottom: var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(10px, 3vw, 20px);
    gap: 10px;
    flex-wrap: wrap;
}

.logo-text {
    font-weight: bold;
    font-size: clamp(0.875rem, 3.5vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    line-height: 1.2;
    max-width: 100%;
    padding: 0.5em 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-black);
}

.logo-text img,
.logo-text i.fa-computer {
    height: 4rem;
    box-shadow: none;
    border: 2px solid black;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.logo-text:hover img,
.logo-text:hover i.fa-computer {
    background: var(--accent-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #000;
}

@media (max-width: 350px) {
    .logo-text i.fa-computer {
        display: none;
    }

    .logo-text::after {
        content: "CC Leipzig";
        font-weight: bold;
    }

    .logo-text span:not(.fa-computer) {
        display: none;
    }
}

.nav-links {
    display: none;
    gap: 15px;
}

.nav-pill {
    text-decoration: none;
    color: var(--text-black);
    border: 2px solid black;
    padding: 0.75em clamp(0.75em, 2vw, 1.75em);
    border-radius: 50px;
    font-weight: bold;
    font-size: clamp(0.875rem, 1vw, 1.1875rem);
    background: rgba(255, 255, 255, 0.3);
    transition: 0.2s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--accent-yellow);
    box-shadow: 4px 4px 0px #000;
    transform: translate(-2px, -2px);
}

.nav-pill:focus-visible {
    outline: 4px solid var(--accent-yellow);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .nav-pill {
        white-space: normal;
        line-height: 1.3;
        padding: 0.6em 1em;
        text-align: center;
        hyphens: auto;
    }
}

.desktop-menu-ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.mobile-menu-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.mobile-menu-ul li {
    width: 100%;
}

.mobile-menu-ul a {
    display: flex;
    width: 100%;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    font-size: clamp(24px, 2vw, 32px);
    cursor: pointer;
    color: var(--text-black);
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}


.left-sidebar {
    display: none;
    position: fixed;
    top: var(--nav-top-height);
    left: 0;
    width: var(--nav-left-width);
    height: calc(100vh - var(--nav-top-height));
    background-color: var(--bg-blue);
    border-right: var(--border);
    z-index: 900;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

.left-sidebar.active {
    display: flex;
    width: 280px;
    top: 0;
    height: 100vh;
    z-index: 1001;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .left-sidebar {
        display: flex;
        width: var(--nav-left-width);
    }

    .left-sidebar.active {
        width: var(--nav-left-width);
    }
}

.mobile-nav-items {
    display: none;
}

@media (max-width: 1023px) {
    .left-sidebar.active .mobile-nav-items {
        display: flex;
    }
}

.accessibility-settings {
    width: 100%;
    padding: 0 10px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.accessibility-settings h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
    text-align: center;
}


.acc-btn,
.scroll-down-btn,
.submit-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.acc-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border: 3px solid black;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-black);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.acc-btn.active {
    background: #f0c040;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.3), inset -4px -4px 8px rgba(255, 255, 255, 0.4);
    transform: translateY(3px);
    border-color: #333;
}

.acc-btn:hover:not(.active) {
    background: var(--accent-yellow);
    box-shadow: 6px 6px 0px #000;
    transform: translate(-2px, -2px);
}

.acc-btn:focus-visible {
    outline: 5px solid var(--accent-yellow);
    outline-offset: 4px;
}

.acc-btn .tooltip {
    visibility: hidden;
    width: 290px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: left;
    border-radius: 14px;
    border: 3px solid #000;
    padding: 18px 20px;
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: calc(100% + 16px);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1.25rem;
    line-height: 1.6;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    font-weight: normal;
    letter-spacing: 0.01em;
}

.acc-btn .tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-width: 8px 10px 8px 0;
    border-style: solid;
    border-color: transparent #000 transparent transparent;
}

.acc-btn:hover .tooltip,
.acc-btn:focus .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(6px);
}

@media (max-width: 1023px) {
    .acc-btn .tooltip {
        left: auto;
        right: calc(100% + 16px);
        margin-right: 0;
        margin-left: 0;
        transform: translateY(-50%);
    }

    .acc-btn .tooltip::before {
        left: auto;
        right: -10px;
        border-width: 8px 0 8px 10px;
        border-color: transparent transparent transparent #000;
    }

    .acc-btn:hover .tooltip,
    .acc-btn:focus .tooltip {
        transform: translateY(-50%) translateX(-6px);
    }
}

@media (max-width: 768px) {

    .nav-pill,
    .btn-action,
    .acc-btn {
        min-height: 56px !important;
        min-width: 56px !important;
    }

    body {
        font-size: max(16px, 4vw) !important;
    }
}


body.high-contrast {
    font-family: 'Luciole', sans-serif !important;
    --bg-blue: #FFFFFF !important;
    --accent-yellow: #000000 !important;
    --text-black: #000000 !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.high-contrast *,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast p,
body.high-contrast a,
body.high-contrast button,
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast label {
    font-family: 'Luciole', sans-serif !important;
}


body.high-contrast i[class*="fa-"],
body.high-contrast span[class*="fa-"],
body.high-contrast .fa,
body.high-contrast .fas,
body.high-contrast .far,
body.high-contrast .fab,
body.high-contrast .fal,
body.high-contrast .fat,
body.high-contrast .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

body.high-contrast .top-navbar,
body.high-contrast .left-sidebar {
    background-color: #FFFFFF !important;
    border-color: #000000 !important;
}

body.high-contrast .card {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 8px 8px 0px #000000 !important;
}

body.high-contrast .card.yellow {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.high-contrast .nav-pill {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

body.high-contrast .nav-pill:hover,
body.high-contrast .nav-pill.active {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    outline: 3px solid #000000 !important;
    outline-offset: 2px !important;
}

body.high-contrast .submit-btn {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 3px solid #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .acc-btn {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

body.high-contrast .acc-btn.active {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
    box-shadow: none !important;
    outline: 3px solid #000000 !important;
    outline-offset: 2px !important;
}

body.high-contrast .acc-btn:hover:not(.active) {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

body.high-contrast .highlight-yellow {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

body.high-contrast .badge {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.35) !important;
}

body.high-contrast .scroll-down-btn,
body.high-contrast .scroll-down-btn:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

body.high-contrast input,
body.high-contrast textarea {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

body.high-contrast input:focus,
body.high-contrast textarea:focus {
    outline: 4px solid #000000 !important;
    border-color: #000000 !important;
}

body.high-contrast .section-divider,
body.high-contrast footer::before {
    background-color: #000000 !important;
}

body.high-contrast .group-meta {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

body.high-contrast a:focus-visible,
body.high-contrast .nav-pill:focus-visible,
body.high-contrast .acc-btn:focus-visible,
body.high-contrast .submit-btn:focus-visible,
body.high-contrast .scroll-down-btn:focus-visible {
    outline: 4px solid #000000 !important;
    outline-offset: 2px;
}

body.high-contrast .acc-btn .tooltip {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
}

body.high-contrast footer {
    border-top-color: #000000 !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.high-contrast footer a {
    color: #000000 !important;
}

body.high-contrast .date-item {
    border-bottom-color: #000000 !important;
}

body.high-contrast hr {
    border-top-color: #000000 !important;
}

body.high-contrast article.blog-post {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

body.high-contrast .sidebar-card {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}


body.high-contrast .back-nav a {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

body.high-contrast .back-nav a:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}


body.high-contrast .btn-action {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

body.high-contrast .btn-action:hover {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}


body.high-contrast i[class*="fa-"] {
    color: inherit !important;
}


body.high-contrast .post-meta-box {
    background: #FFFFFF !important;
    border-color: #000000 !important;
    color: #000000 !important;
}

body.high-contrast .post-meta-box div {
    color: #000000 !important;
}


body.high-contrast .sidebar-post {
    border-bottom-color: #000000 !important;
}

body.high-contrast .sidebar-card h3 {
    border-bottom-color: #000000 !important;
    color: #000000 !important;
}


body.high-contrast .post-footer-inner {
    border-top-color: #000000 !important;
}


.main-content {
    margin-top: var(--nav-top-height);
    margin-left: 0;
    padding: 40px 20px;
    max-width: 1600px;
    margin-inline: auto;
    position: relative;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: var(--nav-left-width);
        padding: 60px 80px;
    }
}

.main-content>section {
    position: relative;
    margin: 160px 0;
    padding-top: 160px;
}

.main-content>section:first-child {
    margin-top: 0;
    padding-top: 0;
}


.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--text-black);
    z-index: 1;
}

@media (min-width: 1024px) {
    .section-divider {
        left: calc(-1 * var(--nav-left-width));
        width: 100vw;
    }
}

@media (max-width: 1023px) {
    .section-divider {
        left: -20px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .section-divider {
        left: -15px;
        right: -15px;
    }
}


.card {
    background: white;
    border: var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--hard-shadow);
    padding: 28px;
    margin-bottom: 30px;
    overflow: visible;
    word-wrap: break-word;
    hyphens: auto;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card.yellow {
    background-color: var(--accent-yellow);
}


.hero,
.meeting-grid,
.news-grid,
.contact-details,
.groups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.hero {
    border: var(--border);
    border-radius: var(--card-radius);
    padding: clamp(20px, 4vw, 40px) !important;
    align-items: center;
}


.badge {
    background: white;
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid black;
    border-radius: 50px;
    font-size: clamp(16px, 1.2vw, 19px);
    margin-bottom: 25px;
    font-weight: bold;
    box-shadow: 4px 4px 0px black;
}


.scroll-down-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: var(--accent-yellow);
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #000;
    box-shadow: 6px 6px 0px #000;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.scroll-down-btn:hover {
    transform: translateY(5px);
    box-shadow: 2px 2px 0px #000;
}

.scroll-down-btn:focus-visible {
    outline: 4px solid var(--accent-yellow);
    outline-offset: 4px;
}


.intro-box {
    background: transparent;
    margin-bottom: 0;
    max-width: 900px;
}


.date-item {
    border-bottom: 2px dashed black;
    padding-bottom: 15px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.date-item:last-child {
    border-bottom: none;
}


.group-card,
.news-grid article {
    background: white;
    border: var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--hard-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 0.3s;
    min-height: 0;
}

.group-card:hover {
    transform: translateY(-5px);
}

.group-card:focus-within {
    outline: 4px solid var(--accent-yellow);
    outline-offset: 4px;
}

.group-card img,
.news-grid article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    border-bottom: var(--border);
    border-radius: 0;
    box-shadow: none;
}

.group-content,
.news-grid article>div {
    padding: 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}

.group-footer {
    padding: 20px 24px;
    background: #fdfdfd;
    border-top: var(--border);
    flex-shrink: 0;
}

.group-meta {
    font-size: 1rem;
    background: #eee;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid black;
}


.map-wrapper {
    border: var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--hard-shadow);
    overflow: hidden;
    height: 350px;
    margin-bottom: 40px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}


label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

input,
textarea,
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 14px;
    border: 2px solid black;
    border-radius: 10px;
    background: white;
    font-family: inherit;
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    min-width: 0;
    max-width: 100%;
}

input:focus,
textarea:focus,
.wpcf7-form-control:focus {
    outline: 4px solid var(--accent-yellow);
    outline-offset: 2px;
    border-color: var(--text-black);
}

.submit-btn,
.wpcf7-submit {
    width: 100%;
    padding: 16px;
    background: var(--text-black);
    color: white;
    font-weight: bold;
    font-size: clamp(17px, 4.2vw, 21px);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    min-height: 56px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.submit-btn:focus-visible {
    outline: 4px solid var(--accent-yellow);
    outline-offset: 4px;
}


footer {
    border-top: 4px solid var(--text-black);
    padding: 35px 0;
    text-align: center;
    font-size: clamp(0.8rem, 1vw, 1rem);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    margin-bottom: 15px;
    max-width: 800px;
    text-align: center;
}

.funding-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.city-logo {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
}

.funding-text {
    font-size: 0.9em;
    margin-bottom: 0 !important;
}

footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--text-black);
    z-index: 1;
}

@media (min-width: 1024px) {
    footer::before {
        left: calc(-1 * var(--nav-left-width));
        width: 100vw;
    }
}

@media (max-width: 1023px) {
    footer::before {
        left: -20px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    footer::before {
        left: -15px;
        right: -15px;
    }
}

footer a {
    color: black;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

footer a:hover {
    color: #333;
}


.back-nav {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--accent-yellow);
    border: 2px solid black;
    box-shadow: 4px 4px 0px black;
    transition: transform 0.2s;
}

.back-nav a:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px black;
}

article.blog-post {
    background: white;
    border: var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--hard-shadow);
    padding: 40px;
    overflow: visible;
    animation: fadeIn 0.5s ease-out;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 2px dashed #000;
    padding-bottom: 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 600;
}

.post-meta i {
    margin-right: 8px;
    color: var(--text-black);
}


.post-meta-box {
    background: #fff8e1;
    border: 2px solid #FFD766;
    border-radius: 12px;
    padding: 20px;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.post-meta-box-row {
    font-size: 1.2rem;
    color: #000;
}

.post-title {
    margin-bottom: 10px;
    color: var(--text-black);
}

.post-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    background: #eee;
    border: 2px solid black;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.btn-action:hover {
    background: #ddd;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}


.sidebar-card {
    background: white;
    border: var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--hard-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-black);
}


.groups-grid,
.meeting-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 480px) {
    :root {
        --nav-top-height: 70px;
    }

    .top-navbar {
        padding: 0 15px;
    }

    .main-content {
        padding: 25px 15px;
        margin-top: 70px;
    }

    .card {
        padding: 22px;
    }

    .hero {
        gap: 30px;
        margin-bottom: 0;
    }

    .map-wrapper {
        height: auto;
    }

    .scroll-down-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .badge,
    .nav-pill {
        font-size: clamp(14px, 3.5vw, 18px);
        padding: 8px 16px;
    }

    .main-content>section {
        margin: 80px 0;
        padding-top: 80px;
    }

    .main-content>section:first-child {
        margin-top: 0;
        padding-top: 0;
    }

    footer {
        margin-top: 80px;
        padding: 25px 15px;
    }

    h1 {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        letter-spacing: -0.5px;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
        margin-block: 2rem 1.2rem;
    }

    .highlight-yellow {
        padding: 2px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 360px) {
    :root {
        --nav-top-height: 80px;
        --nav-left-width: 70px;
    }

    body {
        font-size: 16px;
    }

    .logo-text {
        font-size: 0.875rem;
    }

    .card {
        padding: 1rem;
        border-width: 2px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .main-content {
        padding: 35px 25px;
    }
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }

    .meeting-grid,
    .news-grid,
    .contact-details {
        grid-template-columns: 1fr 1fr;
    }

    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .nav-pill {
        font-size: 0.9375rem;
        padding: 0.6em 1.2em;
    }

    .main-content {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    .top-navbar {
        padding: 0 40px;
    }

    .nav-links {
        display: flex;
    }

    .main-content {
        padding: 60px 80px;
    }
}

@media (min-width: 1600px) {
    .main-content {
        padding: 4rem 6rem;
    }

    .groups-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (prefers-contrast: high) {
    :root {
        --bg-blue: #FFFFFF;
        --accent-yellow: #000000;
        --text-black: #000000;
    }

    .card,
    .nav-pill,
    input,
    textarea {
        border-width: 3px;
    }
}

@media (hover: none) and (pointer: coarse) {

    .nav-pill,
    .acc-btn,
    .scroll-down-btn,
    .submit-btn {
        min-height: 48px;
        min-width: 48px;
    }

    input,
    textarea {
        font-size: 16px;
    }
}

@media print {

    .top-navbar,
    .left-sidebar,
    .scroll-down-btn,
    .skip-link {
        display: none;
    }

    body {
        font-size: 12pt;
        background: white;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .card {
        border: 2px solid black;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .section-divider,
    footer::before {
        display: none;
    }

    .main-content>section {
        margin: 40px 0 !important;
        padding-top: 0 !important;
    }

    footer {
        margin-top: 40px !important;
        border-top: 2px solid black;
    }
}

section {
    content-visibility: auto;
    contain-intrinsic-size: 800px 600px;
}

@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .main-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

@supports (padding: max(0px)) {
    .top-navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .main-content {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
}


@media (min-width: 1024px) {
    .main-content.post-layout {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 60px;
        align-items: start;
    }
}


.meldungen-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 10px;
}

.meldung-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 16px;
    border: var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--hard-shadow);
    padding: 20px 24px;
    position: relative;
    animation: meldung-slide-in 0.4s ease both;
}

@keyframes meldung-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}


.meldung-info    { background: #dbeafe; border-left: 6px solid #1d4ed8; }
.meldung-warnung { background: var(--accent-yellow); border-left: 6px solid #92400e; }
.meldung-alarm   { background: #fee2e2; border-left: 6px solid #dc2626; }


@media (prefers-color-scheme: dark) {
    .meldung-info    { background: color-mix(in srgb, #1d4ed8, black 60%); }
    .meldung-warnung { background: color-mix(in srgb, var(--accent-yellow), black 50%); border-left-color: #d97706; }
    .meldung-alarm   { background: color-mix(in srgb, #dc2626, black 60%); }
}

.meldung-icon {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.meldung-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.meldung-titel {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: bold;
    display: block;
    line-height: 1.3;
}

.meldung-text {
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    max-width: 100%;
    opacity: 0.9;
}

.meldung-datum {
    font-size: 0.85em;
    font-weight: bold;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meldung-badge {
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border: 2px solid currentColor;
    border-radius: 50px;
    opacity: 0.7;
    white-space: nowrap;
    align-self: flex-start;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .meldung-banner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .meldung-badge {
        grid-column: 2;
        justify-self: start;
    }
}


.city-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.city-logo-high-contrast {
    display: none;
}

@media (forced-colors: active) {
    .city-logo-normal {
        display: none;
    }
    .city-logo-high-contrast {
        display: block;
    }
}

.high-contrast .city-logo-normal {
    display: none;
}

.high-contrast .city-logo-high-contrast {
    display: block;
}