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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f7fb;
    color: #1f2933;
    line-height: 1.6;
}

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

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Seite zentrieren */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Header / Navigation */
header {
    background: linear-gradient(135deg, #e0f3ff, #fef6ff);
    border-bottom: 4px solid #00897b;
    margin-bottom: 1.5rem;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem 1.5rem;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.branding {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.branding-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.branding-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #00897b, #00bfa5);
    color: #ffffff;
    border-color: #00897b;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #00a28d, #00c9aa);
    text-decoration: none;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: #004a6e;
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255, 255, 255, 1);
    text-decoration: none;
}

nav {
    margin-top: 0.75rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
}

nav a {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

nav a:hover,
nav a:focus {
    background: #ffffff;
}

/* Hero-Bereich mit Titelbild-Platz */
.hero {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr);
    gap: 1rem;
}

.hero-image-wrapper {
    border-radius: 0.9rem;
    overflow: hidden;
    background: radial-gradient(circle at top, #e3f2fd, #bbdefb);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.hero-image-inner {
    /* Platz für Titelbild – aktuell altes Bild eingebunden */
    max-height: 274px; /* Höhe des bisherigen Titelbildes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    padding: 0.5rem 0 0.25rem;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #006064;
    margin-bottom: 0.25rem;
}

.hero-lead {
    font-size: 0.98rem;
    color: #374151;
}

/* Kartenlayout für Inhalte */
main {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.card {
    background: #ffffff;
    border-radius: 0.8rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    border-top: 4px solid #00897b;
}

.card--blue {
    border-top-color: #1976d2;
}

.card--orange {
    border-top-color: #f57c00;
}

.card--purple {
    border-top-color: #8e24aa;
}

.card--teal {
    border-top-color: #009688;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.card-title span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.card li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.card li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #00897b;
    font-weight: 700;
}

.card-cta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight {
    font-weight: 600;
    color: #005b96;
}

/* Kontakt-/Info-Bereich */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.contact-main {
    font-size: 0.95rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.4rem;
}

/* Footer */
footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-nav a {
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    background: #e5f2ff;
}

.footer-nav a:hover,
.footer-nav a:focus {
    background: #d0e5ff;
}

.footer-copy {
    font-size: 0.8rem;
}

/* Responsive-Anpassungen */
@media (min-width: 700px) {
    .hero {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: center;
    }

    main {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
