/* Navigation */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-nav__inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-nav__logo { height: 44px; width: auto; }

.site-nav__tagline {
    margin-left: 0.85rem;
    padding-left: 0.85rem;
    border-left: 1px solid var(--color-border);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .site-nav__tagline { display: none; }
}

.site-nav__menu {
    position: absolute;
    top: calc(var(--header-height) + 0.5rem);
    right: 1.5rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.site-nav__menu.is-open { max-height: 320px; opacity: 1; pointer-events: auto; }

.site-nav__menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

.site-nav__menu a:first-child { border-top: none; }

.site-nav__menu a:hover { color: var(--color-primary); }

.site-nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.site-nav__toggle span {
    width: 24px; height: 2px; background: var(--color-primary); display: block;
}

/* Hero */
.hero {
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
    text-align: center;
}

.hero__inner { max-width: 760px; margin: 0 auto; }

.hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.2; margin-bottom: 0; }

.hero__brand { color: #8fc1ff; }

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    margin: 0.3rem 0 2rem;
}

.hero__highlight {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 1.25rem;
}

.hero__text { opacity: 0.95; margin-bottom: 1.75rem; }

.hero .btn--primary { background: #fff; color: var(--color-primary); }
.hero .btn--primary:hover { background: var(--color-bg-alt); }

/* Grids */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.news-card { flex: 1 1 240px; max-width: 300px; }

.news-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
}

.news-card__media {
    margin: 1.25rem 1.25rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 500 / 320;
}

.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card__body { padding: 1rem 1.25rem 1.5rem; }

.news-card__teaser { color: var(--color-text-muted); margin: 0 0 0.75rem; }

.news-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.news-card__toggle:hover { color: var(--color-primary-dark); text-decoration: underline; }

.news-card__content :first-child { margin-top: 0; }

/* Article modal: opened via the "Weiterlesen" button instead of growing the
   card in place, so the card grid never reflows when an article is read. */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.news-modal.is-open { opacity: 1; pointer-events: auto; }

.news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.6);
}

.news-modal__panel {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
}

.news-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow);
}

.news-modal__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.news-modal__body { padding: 1.5rem 1.75rem 2rem; }
.news-modal:not(:has(.news-modal__media)) .news-modal__body { padding-top: 2.5rem; padding-right: 2.75rem; }

.news-modal__meta { color: var(--color-text-muted); font-size: 0.9rem; margin: -0.5rem 0 1rem; }

.news-modal--centered .news-modal__body { text-align: center; }
.news-modal--centered .news-modal__content img { margin: 0 auto; }
.news-modal--centered .news-card__plans { justify-content: center; }

.news-card__plans {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.news-card__plan {
    flex: 1 1 140px;
    max-width: 200px;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
}

.news-card__plan img { width: 100%; height: auto; display: block; }

.news-card__downloads { list-style: none; padding: 0; margin: 1rem 0 0; }
.news-card__downloads li + li { margin-top: 0.4rem; }
.news-card__downloads a { font-weight: 600; }

.partner-carousel-wrap { position: relative; }

.partner-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
    margin: 0 -0.25rem;
    scrollbar-width: none;
}

.partner-carousel::-webkit-scrollbar { display: none; }

.partner-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.partner-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 5;
}

.partner-carousel__btn:hover { background: var(--color-primary-dark); }
.partner-carousel__btn--prev { left: -0.5rem; }
.partner-carousel__btn--next { right: -0.5rem; }

@media (max-width: 600px) {
    .partner-carousel__btn { display: none; }
}

.partner-item img { max-height: 70px; width: auto; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(13, 71, 161, 0.18)); }

.partner-item__name { font-weight: 700; font-size: 0.9rem; }
.partner-item__desc { font-size: 0.8rem; color: var(--color-text-muted); }

/* Kontakt section */
.kontakt__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.kontakt__info p { margin: 0 0 0.75rem; }
.kontakt__info .btn { margin-top: 0.5rem; }

.kontakt__map { margin-top: 1rem; border-radius: var(--radius); overflow: hidden; }
.kontakt__map iframe { width: 100%; height: 260px; border: 0; }

.kontakt__form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt__form label { font-weight: 600; display: block; margin-bottom: 0.3rem; }

.kontakt__form input,
.kontakt__form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.kontakt__form textarea { min-height: 120px; resize: vertical; }

.kontakt__form-feedback {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.kontakt__form-feedback.is-success { background: #e6f4ea; color: #1e7e34; }
.kontakt__form-feedback.is-error { background: #fdecea; color: #b3261e; }

.site-footer__legal { margin-top: 0.5rem; font-size: 0.85rem; }
.site-footer__legal a { color: var(--color-text-muted); text-decoration: underline; margin: 0 0.5rem; }
.site-footer__legal a:hover { color: var(--color-primary); }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.cookie-banner__inner p { margin: 0; flex: 1 1 320px; font-size: 0.92rem; color: var(--color-text-muted); }
.cookie-banner__inner a { color: var(--color-primary); font-weight: 600; }

.cookie-banner__buttons { display: flex; gap: 0.75rem; flex: 0 0 auto; }

.kontakt__form .form-field:has(.kontakt__honeypot) {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
