/* 1. Variablen & Global */
:root {
    --primary-dark: #444444;
    --logo-green: #28a745;
    --logo-red: #dc3545;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.bg-section {
    background-color: var(--bg-light);
    max-width: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 2. Header & Navigation */
header {
    background-color: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--logo-green);
}

.dropdown {
    position: relative;
}

.dropdown-toggle .arrow {
    font-size: 0.75rem;
    margin-left: 3px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 240px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
}

.dropdown-menu li {
    margin-left: 0 !important;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--logo-green);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.lang-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.lang-link:hover {
    text-decoration: underline;
}

.lang-separator {
    color: #ffffff;
    opacity: 0.7;
}

.lang-link.active-lang {
    font-weight: 700;
    text-decoration: none;
    cursor: default;
    opacity: 0.85;
}

/* 3. Hero & Cards */
.hero {
    background: radial-gradient(circle at center, #1d592b 0%, #182c1f 50%, #223427 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin: 15px auto 0 !important;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Hero – zweispaltiges Layout */
.hero-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-content {
    text-align: justify;
}

.hero-content h1 {
    text-align: center;
}

.hero-cta {
    display: flex;
    justify-content: center;
}

.hero-graphic {
    display: flex;
    justify-content: center;
}

/* Daten-Kachel (angepasst an deine Farben) */
.viz {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255,255,255,0.18); /* oder var(--bg-light) leicht */
    border-radius: 18px;
    overflow: hidden;
	background: transparent;
	min-width: 260px;   /* neu: Mindestbreite */
    min-height: 260px;  /* neu: Mindesthöhe */
}

.viz canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.viz .tag {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}

.viz .tag .s {
    color: var(--logo-green); /* dein Grün */
}

.viz .scale {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viz .scale .bar {
    width: 74px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        rgb(30,70,50),
        rgb(60,140,90),
        rgb(200,140,80),
        rgb(200,80,80)
    );
}

/* responsiv: Hero wieder einspaltig */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-graphic {
        justify-content: flex-start;
		    justify-content: center;

    }
	    .viz {
        min-width: 0;      /* Mindestbreite deaktivieren */
        min-height: 200px; /* etwas kleinere Mindesthöhe für Smartphones */
    }
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--logo-green);
    margin: 10px auto 0;
}

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 5px solid var(--logo-green);
    transition: box-shadow 0.3s, border-top-color 0.3s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    position: relative;
}

.card-main-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-decoration: none !important;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-top-color: var(--logo-red);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-dark);
}

.cta-button {
    display: inline-block;
    background-color: var(--logo-red);
    color: var(--white);
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #c82333;
}

.btn-secondary {
    display: block;
    margin: 20px auto 0;
    width: max-content;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--logo-green);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* 4. Partner-Logos */
.logo-wrapper {
    background-color: var(--white);
    border-radius: 6px;
    padding: 15px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .partner-logo {
    transform: scale(1.05);
}

/* 5. Profilseite */
.profil-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.profil-main-title {
    color: var(--primary-dark);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.profil-sub-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.intro-section.match-height {
    align-items: stretch;
}

.profil-image-container {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #1d592b 0%, #182c1f 50%, #223427 100%);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profil-image-container:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);  /* stärkerer Schatten beim Hover */
}

.profil-image-container img {
    max-width: 100%;
    height: auto;
}

.profil-image-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1940.65 / 1361.75;
    overflow: hidden;
    background: transparent;
    min-height: 260px;
}

#coreStoryCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.profil-image-container {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #1d592b 0%, #182c1f 50%, #223427 100%);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profil-image-caption {
    color: #e5f2e8;
    margin: 0.5rem 0.75rem 0.75rem;
    line-height: 1.4;
}

.profile-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-card-text-wrap p {
    margin-bottom: 25px;
}

.profile-contact-headline {
    color: var(--primary-dark);
    margin-bottom: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.profile-contact-text {
    margin-bottom: 20px;
}

/* 6. News & Archiv */
.news-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-main-title {
    color: var(--primary-dark);
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.news-sub-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--logo-green);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 15px;
}

.archive-section {
    margin-top: 60px;
    border-top: 2px solid var(--bg-light);
    padding-top: 40px;
}

.archive-dropdown {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: default;
    transition: background 0.3s ease;
}

.archive-dropdown[open] {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.archive-summary {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    cursor: pointer;
}

.archive-summary::-webkit-details-marker {
    display: none;
}

.archive-summary::after {
    content: '?';
    font-size: 0.9rem;
    color: var(--logo-green);
    transition: transform 0.3s;
}

.archive-dropdown[open] .archive-summary::after {
    transform: rotate(180deg);
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}

.archive-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-date {
    font-weight: bold;
    color: var(--logo-green);
    min-width: 110px;
    font-size: 0.95rem;
}

.archive-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    cursor: default;
}

.archive-link {
    color: var(--logo-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.archive-link:hover {
    color: var(--logo-red);
    text-decoration: underline;
}

/* 7. Partner & Netzwerk */
.partners-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.partners-main-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    position: relative;
}

.partners-main-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--logo-green);
    margin: 10px auto 0;
}

.partner-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.compact-card {
    background: var(--bg-light);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    background-color: var(--white);
    z-index: 99;
}

.compact-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.compact-logo {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.compact-card::after {
    content: attr(data-title);
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.compact-card:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 8. Publikationen */
.pub-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.pub-main-title {
    color: var(--primary-dark);
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.pub-intro {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.7;
}

.decade-wrapper {
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
}

.decade-input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.decade-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 5px solid var(--logo-green);
    transition: background 0.3s;
    user-select: none;
}

.decade-label:hover {
    background: #ededed;
}

.decade-label::after {
    content: "\276F";
    width: 1em;
    height: 1em;
    text-align: center;
    transition: transform 0.3s;
}

.decade-content {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: default;
}

.decade-input:checked ~ .decade-content {
    max-height: 20000px;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.decade-input:checked ~ .decade-label::after {
    transform: rotate(90deg);
}

.pub-item {
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.pub-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.pub-authors {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.pub-journal {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pub-journal em {
    font-weight: 600;
    color: #444;
}

.pub-doi-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--logo-green);
    text-decoration: none;
    font-weight: bold;
    background: rgba(40, 167, 69, 0.06);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pub-doi-link:hover {
    background: var(--logo-red);
    color: var(--white);
    text-decoration: none;
}

.pub-container-compact {
    max-width: 850px;
    margin: 40px auto;
    padding: 0;
}

.pub-headline {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 5px;
}

.pub-list-compact {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.pub-item-compact {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.pub-item-compact:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pub-item-compact strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.pub-item-compact em {
    font-style: italic;
}

.pub-doi-inline {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--logo-green);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    background: rgba(40, 167, 69, 0.05);
    padding: 1px 6px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.pub-doi-inline:hover {
    background: var(--logo-red);
    color: var(--white);
    text-decoration: none;
}

/* 9. Workshops */
.workshop-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.workshop-main-title {
    color: var(--primary-dark);
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.workshop-intro {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.7;
}

.event-wrapper {
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
}

.event-input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.event-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 5px solid var(--logo-green);
    transition: background 0.3s;
    user-select: none;
}

.event-label:hover {
    background: #ededed;
}

.event-label::after {
    content: "\276F";
    transition: transform 0.3s;
}

.event-content {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
    flex-direction: column;
    gap: 20px;
    display: flex;
    cursor: default;
}

.event-input:checked ~ .event-content {
    max-height: 4000px;
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.event-input:checked ~ .event-label::after {
    transform: rotate(90deg);
}

.event-item {
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.event-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.event-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--logo-green);
    margin-bottom: 4px;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.event-subtitle {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    margin-bottom: 8px;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.event-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.event-link {
    display: inline-flex;
    font-size: 0.85rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.04);
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.event-link:hover {
    background: var(--logo-green);
    color: var(--white);
    border-color: var(--logo-green);
}

.event-link-empty {
    display: inline-flex;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.04);
    color: #777;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: default;
    font-weight: normal;
}

/* 10. Dienstleistungsseite */
.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.service-section {
    scroll-margin-top: 100px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.contrast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.contrast-box {
    background-color: rgba(0, 0, 0, 0.01);
    padding: 30px;
    border-radius: 6px;
    border-top: 4px solid;
}

.contrast-box.challenge {
    border-top-color: var(--logo-red);
    background-color: rgba(220, 53, 69, 0.01);
}

.contrast-box.solution {
    border-top-color: var(--logo-green);
    background-color: rgba(40, 167, 69, 0.01);
}

.contrast-box h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.contrast-box ul {
    list-style: none;
    padding: 0;
}

.contrast-box ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.contrast-box.challenge ul li::before {
    content: "â€¢";
    position: absolute;
    left: 0;
    color: var(--logo-red);
    font-weight: bold;
}

.contrast-box.solution ul li::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    color: var(--logo-green);
    font-weight: bold;
}

.global-cta {
    background: radial-gradient(circle at center, #1d592b 0%, #112416 50%, #0d140f 100%);
    padding: 50px 30px;
    margin: 50px 0;
    text-align: center;
    color: var(--white);
}

.global-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.global-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 11. Anwendungs-Detailseiten */
.app-detail-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    padding-top: 40px;
}

.app-main-text {
    max-width: 850px;
    margin: 0 auto 60px auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.app-main-text p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.app-main-text h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 5px;
}

.app-main-text a {
    color: var(--logo-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.app-main-text a:hover {
    color: var(--logo-red);
    text-decoration: underline;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

table.bcj {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--white);
}

table.bcj th {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--logo-green);
}

table.bcj td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

table.bcj tr:nth-child(even) td {
    background-color: var(--bg-light);
}

table.bcj tr:hover td {
    background-color: rgba(40, 167, 69, 0.04);
}

.bcj-wide {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.table-container table.bcj {
    white-space: nowrap;
}

.table-container table.bcj th,
.table-container table.bcj td {
    white-space: nowrap;
}

.bcj-wide table,
.bcj-wide tr,
.bcj-wide td,
.bcj-wide th {
    white-space: nowrap;
}

.app-main-text figure {
    display: block;
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.app-main-text figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 4px;
}

.app-main-text figcaption {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.table-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* 12. Datenschutz & Impressum */
.datenschutz-container,
.impressum-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.datenschutz-container h1,
.impressum-container h1 {
    color: var(--primary-dark);
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.datenschutz-section,
.impressum-section {
    margin-bottom: 35px;
}

.datenschutz-section h2,
.impressum-section h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--logo-green);
    padding-bottom: 5px;
}

.datenschutz-container p,
.datenschutz-container ul,
.impressum-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.datenschutz-container ul {
    padding-left: 20px;
}

.datenschutz-container ul li {
    margin-bottom: 5px;
}

.datenschutz-container a,
.impressum-container a {
    color: var(--logo-green);
    text-decoration: none;
    font-weight: bold;
}

.datenschutz-container a:hover,
.impressum-container a:hover {
    color: var(--logo-red);
    text-decoration: underline;
}

/* 13. Kontaktformular */
.contact-section {
    background-color: var(--bg-light);
    padding: 80px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.section-title-contact {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    position: relative;
    scroll-margin-top: 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--logo-green);
    outline: none;
}

.privacy-checkbox-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 5px;
}

.privacy-checkbox-container input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    cursor: pointer;
}

.privacy-checkbox-container label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

.privacy-checkbox-container a {
    color: var(--logo-green);
    text-decoration: none;
    font-weight: bold;
}

.submit-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.name-field {
    display: none !important;
    visibility: hidden !important;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 600;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--logo-red);
    border-left: 4px solid var(--logo-red);
}

.alert-error a {
    color: var(--logo-red);
    font-weight: bold;
}

/* 14. Footer */

.footer-content {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--logo-green);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--logo-green);
    text-decoration: underline;
}

.footer-text-block {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    gap: 15px;
}

.footer-legal-links a {
    color: var(--logo-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.footer-legal-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-social-box {
    margin-top: 20px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-box .social-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.social-brand-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.75;
    filter: grayscale(20%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.social-icons-row a:hover {
    transform: translateY(-2px);
}

.social-icons-row a:hover .social-brand-img {
    opacity: 1.0;
    filter: grayscale(0%);
}

/* 15. Dropdown / Hover Desktop */
@media (min-width: 1025px) {
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

/* 16. Media Queries bis 1024px */
@media (max-width: 1024px) {
    .intro-section {
        grid-template-columns: 1fr;
    }

    .profil-main-title {
        font-size: 2rem;
    }

    .partner-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compact-card::after {
        display: none !important;
    }

    .pub-main-title {
        font-size: 2rem;
    }

    .decade-label {
        font-size: 1.15rem;
        padding: 15px;
    }

    .pub-title {
        font-size: 1rem;
    }

    .workshop-main-title {
        font-size: 2rem;
    }

    .event-label {
        font-size: 1.15rem;
        padding: 15px;
    }

    .contrast-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-main-text p {
        text-align: left;
    }

    .social-icons-row {
        justify-content: center;
    }

    .footer-social-box .social-label {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }


    .hero {
        padding: 45px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 38px;
    }

    /* Header / Nav / Dropdown Mobile */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .hamburger-box {
        width: 24px;
        height: 18px;
        position: relative;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--white);
        left: 0;
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
        content: "";
    }

    .hamburger-inner {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-inner::before {
        top: -7px;
    }

    .hamburger-inner::after {
        bottom: -7px;
    }

    .main-nav {
        background-color: var(--primary-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        align-items: stretch;
        list-style: none;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 12px 20px;
        color: var(--white);
        text-decoration: none;
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
        padding: 5px 0;
        min-width: 100%;
    }

    .main-nav.is-open {
        max-height: 460px;
        overflow-y: auto;
    }

    .nav-toggle[aria-expanded="true"] .hamburger-inner {
        transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger-inner::before {
        top: 0;
        transform: rotate(90deg);
    }

    .nav-toggle[aria-expanded="true"] .hamburger-inner::after {
        bottom: 0;
        opacity: 0;
    }

    .dropdown:focus-within .dropdown-menu,
    .dropdown.is-open > .dropdown-menu {
        display: block;
    }

    /* Header Layout (Logo, Burger, Lang, Nav) */
    .nav-container {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto auto;
        align-items: center;
        column-gap: 10px;
    }

    .logo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .nav-toggle {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
    }

    .lang-switch {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        justify-content: flex-end;
        margin-top: 6px;
    }

    .main-nav {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

/* 17. Very Small Screens */
@media (max-width: 480px) {
    section {
        padding: 60px 16px;
    }
    .hero h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

#coreStoryCanvas {
  will-change: contents;
  transform: translateZ(0);
}
