:root {
    --primary-color: #2c3e50;
    --secondary-color: #27ae60;
    --accent-color: #e67e22;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-color);
    margin: 3px 0;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/team/hero.jpg');
    background-size: cover;
    background-position: center top;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #219150;
}

/* Main Content */
.container {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 20px;
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #666;
}

.list-number {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Profile Page */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-info {
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

footer a:hover {
    border-bottom: 1px solid var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
    }

    .profile-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Schedule Table */
.schedule-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table tr {
    border-bottom: 1px solid #eee;
}

.schedule-table tr:last-child {
    border-bottom: none;
}

.schedule-table td {
    padding: 1rem;
    vertical-align: top;
}

.schedule-date {
    font-weight: bold;
    white-space: nowrap;
}

.schedule-location {
    font-size: 1.05rem;
}

.schedule-time {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .schedule-container {
        padding: 1rem;
    }

    /* Make each row a 2-line card */
    .schedule-table tbody,
    .schedule-table tr,
    .schedule-table td {
        display: block;
        width: 100%;
    }

    .schedule-table tr {
        display: grid;
        grid-template-columns: minmax(120px, auto) 1fr;
        grid-template-areas:
            "date time"
            "location location";
        row-gap: 0.35rem;
        margin-bottom: 1rem;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .schedule-table td {
        padding: 0;
        border: none;
        text-align: left;
    }

    .schedule-date {
        grid-area: date;
        color: var(--secondary-color);
        font-size: 1.05rem;
        margin: 0;
        white-space: nowrap;
    }

    .schedule-location {
        grid-area: location;
        font-size: 1rem;
        line-height: 1.4;
    }
    .schedule-time {
        grid-area: time;
        text-align: right;
        color: #666;
        font-weight: 600;
        margin-top: 0;
        white-space: nowrap; /* keep 18:00 Uhr together */
    }
}

/* Speech section */
.speech {
    margin-top: 2rem;
    padding: 1.75rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.speech-title {
    margin: 0 0 1rem;
    text-align: left;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.speech-content {
    max-width: 72ch;
}

.speech-content p {
    line-height: 1.85;
    margin: 0.85rem 0;
}

.speech-heading {
    margin: 1.4rem 0 0.6rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.speech-keyline {
    font-weight: 600;
    color: #444;
    margin-top: 0.25rem;
}

.speech-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0 1.1rem;
}

.speech-bullets li {
    line-height: 1.7;
    margin: 0.35rem 0;
    padding-left: 1.4rem;
    text-indent: -1.4rem;
}

.speech-strong {
    font-weight: 700;
}

.speech-signoff {
    margin-top: 1.25rem;
    font-weight: 600;
}

@media (max-width: 700px) {
    .speech {
        padding: 1.25rem;
    }

    .speech-title {
        font-size: 1.55rem;
    }
}

