/* =========================
 *   Grundregeln / Reset
 * ========================= */

:root {
    --color1: #59FFE1; /*Farbverlauf 1*/
    --color2: #F6E25E; /*Farbverlauf 2*/
    --brand-link: #227cdf; /*Linkfarbe*/
    --brand-link-hover: #64a3e9; /*Linkfarbe bei hover -> link in 30% heller*/
    --brand-dark: #547950; /*mischung in 50% dunkler*/
    --brand-light: #97d990; /*mischung in 10% dunkler*/
    --brand-header: #76a970; /*Überschriften Farbe -> mischung in 30% dunkler*/
    --text-dark: #000000; /*schwarz*/
    --text-light: #FFFFFF; /*weiß*/
    --card-border: #0e0110; /*Ränder -> mischung in 90% dunkler*/
    --button: #a8f1a0; /*buttonfarbe -> mischung aus color 1 und 2*/
    --button-hover: #b9f4b3; /*button bei hover -> button in 20% heller*/
    --shadow: 2px 2px 6px 0px rgba(8, 8, 8, 0.784314);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--text-light);
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    font-family: Cambria;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
    font-style: normal;
    font-weight: bold;
    color: var(--brand-header);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-link);
}

a:hover {
    color: var(--brand-link-hover);
}

/* =========================
 *   Hauptseite / semantische Struktur
 * ========================= */

.page-content {
    width: 100%;
}

.section {
    padding: 2rem 1rem;
}

.section > .container {
    margin: 0 auto;
    padding: 0 1rem;
    width: 80%
}

.section > .container > .image-text-right img {
    float:right;
    overflow: auto;
    width: 25%;
    height:25%;
    padding:0 1rem;
}

.image-text-right::after {
  content: "";
  clear: both;
  display: table;
}

.section > .container > .image-text-left img {
    float:left;
    overflow: auto;
    width: 25%;
    height:25%;
    padding:0 1rem;
}

.image-text-left::after {
  content: "";
  clear: both;
  display: table;
}

.section-copy {
    margin: 0 auto 1.5rem;
}

.headsentence {
    font-size:1.5rem;
    text-align: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-header);
    margin-bottom: 1rem;
}

/* Karten / Boxen */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-content: center;
}

.card-grid--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--text-light);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
}

.card h2,
.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    margin: 0.5rem 0 0;
    line-height: 1.5;
    color: var(--text-dark);
}

.button {
    display: inline-block;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: var(--button);
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--button-hover);
    color: var(--text-dark);
}


/* Bildplatzhalter */

.image-placeholder {
    min-height: 180px;
    border: 1px dashed #999;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem;
    color: #666;
    background: #fafafa;
}

/* Listen */

.board-list,
.founders-list,
.conference-list,
.event-list {
    margin: 0;
    padding-left: 1.25rem;
}

.board-list li,
.founders-list li,
.conference-list li,
.event-list li {
    margin-bottom: 0.5rem;
}

/* Karussel */

.carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.carousel-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-card .button {
    margin-top: auto;
    align-self: flex-start;
}

/* =========================
 *   Header / Navigation
 * ========================= */

.site-header {
    background: linear-gradient(to bottom, var(--color2), var(--color1));
    color: var(--text-light);
    padding: 1rem;
}

.site-header-inner {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
}

.site-logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-logo-text {
    color: var(--brand-dark);
}

.site-nav {
    margin-left: auto;
}

.site-nav > .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.site-nav > .nav-list > li {
    position: relative;
}

.site-nav > .nav-list > li > a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--button);
}

.site-nav > .nav-list > li > a:hover,
.site-nav > .nav-list > li > a[aria-current="page"] {
    background: var(--button-hover);
    color: var(--text-dark);
}

/* Dropdown */
.nav-link--button {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text-dark);
    background: var(--button);
}

.nav-item--dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: var(--button);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-link--button:hover,
.nav-link--button:focus {
    background: var(--button-hover);
    color: var(--text-dark);
}

.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown:focus-within .dropdown-menu {
    display: block;
}

.nav-item--dropdown {
    padding-bottom: 0.5rem;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.55rem 0.9rem;
    background: var(--button);
    color: var(--text-dark);
    text-decoration: none;
    background: transparent;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--button-hover);
    color: var(--text-dark);
}


/* =========================
 *   Footer (neue, semantische Version)
 * ========================= */

.site-footer {
    background: linear-gradient(to bottom, var(--color1), var(--color2));
    padding: 2rem 1rem;
}

.footer-grid {
    width: 80%;
    margin: 0 auto;
    background: var(--button-hover);
    border-radius: 15px;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.footer-grid h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.footer-grid ul {
    margin: 0;
    padding-left: 1.25rem;
}

.footer-grid li {
    margin-bottom: 0.4rem;
}

/* =========================
 *   Responsive Verhalten
 * ========================= */

@media only screen and (max-width: 780px) {
    .card-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section .container{
        width: 100%;
    }
}

@media only screen and (max-width: 550px) {
    [class^="menu_"] .mobileEntry {
        display: block;
    }

    [class^="menu_"] .normalEntry {
        display: none;
    }

    [class^="menu_"] [id$="_menualignmentwrapper"] {
        width: 37px;
        left: calc(100% - 37px);
    }

    .section .container{
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        margin-left: 0;
        width: 100%;
    }

    .site-nav > .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .section .container{
        width: 100%;
    }
}
