/* ============================================================
   SGH – Hauptstylesheet aufgeräumt
   Stand: 2026-06-09 – Aktuelles / Button-Fix
   Hinweis: Kartenbuttons bereinigt, Overlays entschärft,
            Startseiten- und Listenansicht harmonisiert.
   ============================================================ */

/* ============================================================
   01 – Basis
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #e0e0e0;
    font-family: system-ui, sans-serif;
}

a {
    color: #0b4e97;
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

strong {
    color: #0b4e97;
}

body.nav-open {
    overflow: hidden;
}

.spacer6 {
    width: 100%;
    height: 36px;
    background: #ffffff;
}

.auschluss {
    margin-top: 24px;
    padding-left: 22px;
    font-size: small;
}


/* ============================================================
   02 – Header / Navigation
   ============================================================ */

.site-header {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 20;
    width: 100%;
    max-width: 1400px;
    transform: translateX(-50%);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
}

.logo-wrap img {
    display: block;
    width: auto;
    height: 48px;
}

.main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 4%;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    color: #222222;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.main-nav a:hover {
    color: #1f66b5;
}

.nav-burger {
    position: absolute;
    top: 14px;
    right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    margin-top: -2px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    height: 2px;
    background: #444444;
    border-radius: 1px;
}

.nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 15;
    display: none;
    width: 100%;
    max-height: 70vh;
    margin-top: 8px;
    overflow: auto;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    opacity: 0.92;
}

.nav-panel.is-open {
    display: block;
}

.nav-panel-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 16px 24px 20px;
    font-size: 14px;
}

.nav-panel-section h3 {
    margin: 0 0 8px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
}

.nav-panel-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-panel-section li + li {
    margin-top: 4px;
}

.nav-panel-section a {
    color: #444444;
    text-decoration: none;
}

.nav-panel-section a:hover {
    color: #1f66b5;
}


/* ============================================================
   03 – Hero
   ============================================================ */

.hero-wrap {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 540px;
    max-height: 860px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.10) 40%,
        rgba(0,0,0,0.05) 100%
    );
}

.hero picture,
.hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero img {
    object-fit: cover;
    object-position: 70% 85%;
}

.hero--fade-slider .heroTrack {
    position: relative;
    height: 100%;
}

.hero--fade-slider .heroSlide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero--fade-slider .heroSlide.active {
    z-index: 2;
    opacity: 1;
}

.hero--fade-slider .heroSlide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 85%;
}

.hero-content {
    position: absolute;
    top: 25%;
    left: 88px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #ffffff;
    text-align: left;
}

.hero-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.45),
        0 6px 18px rgba(0,0,0,0.35);
}

.hero-btn,
.sgh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 0;
    border-radius: 999px;
    background: #0055aa;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.hero-btn {
    padding: 8px 22px;
    font-size: 13px;
}

.sgh-btn {
    margin-bottom: 12px;
    padding: 10px 30px;
    font-size: 13px;
}

.hero-btn:hover,
.sgh-btn:hover {
    background: #004388;
}

/* ============================================================
   03.1 – Waves / SVG-Wellen
   Einheitliche Behandlung für Hero, Content & Footer
   ============================================================ */

.hero-wave,
.sgh-contentmod__wave,
.sgh-footer__wave {
    position: absolute;
    left: -2%;
    z-index: 5;
    display: block;
    width: 104%;
    height: auto;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-wave,
.sgh-contentmod__wave {
    bottom: -2px;
}

.sgh-footer__wave {
    top: -2px;
    bottom: auto;
    transform: scaleY(-1) translateZ(0);
    transform-origin: center;
}

.hero-wave svg,
.sgh-contentmod__wave svg,
.sgh-footer__wave svg,
.hero-wave img,
.sgh-contentmod__wave img,
.sgh-footer__wave img {
    display: block;
    width: 100%;
    height: auto;
}


/* ============================================================
   04 – Carousel / Slider
   ============================================================ */

.sgh-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 6px;
}

.sgh-carousel__viewport {
    overflow: hidden;
}

.sgh-carousel__track {
    display: flex;
    gap: 18px;
    padding: 6px 0 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sgh-carousel__track::-webkit-scrollbar {
    display: none;
}

.sgh-carousel__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #2b2b2b;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 120ms ease, transform 120ms ease;
}

.sgh-carousel__arrow:hover {
    opacity: 1;
    transform: scale(1.05);
}

.sgh-aktuelles__cta,
.sgh-kurse__cta {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}


/* ============================================================
   05 – Aktuelles / News Startseite
   ============================================================ */

.sgh-aktuelles {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 56px 34px;
    background: #ffffff;
}

.sgh-aktuelles__title {
    margin: 0 0 14px;
    color: #0b4e97;
    font-size: 32px;
    font-weight: 800;
}

.sgh-aktuelles-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
}

.sgh-aktuell-side {
    display: grid;
    gap: 1.5rem;
}

.sgh-aktuell-main,
.sgh-aktuell-teaser,
.sgh-newskarte {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ffffff;
    color: inherit;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}


.sgh-aktuell-main:hover,
.sgh-aktuell-teaser:hover,
.sgh-newskarte:hover {
    opacity: .96;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.sgh-aktuell-main__img,
.sgh-aktuell-teaser__img,
.sgh-newskarte__img {
    overflow: hidden;
}

.sgh-aktuell-main__img img,
.sgh-aktuell-teaser__img img,
.sgh-newskarte__img img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.sgh-aktuell-main__img img {
    height: auto;
}

.sgh-aktuell-main__body,
.sgh-aktuell-teaser__body,
.sgh-newskarte__body {
    position: relative;
    z-index: 2;
}

.sgh-aktuell-main__body {
    padding: 1.2rem 1.2rem 1.4rem;
}

.sgh-aktuell-teaser {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: stretch;
    min-height: 140px;
}

.sgh-aktuell-teaser__img {
    min-height: 140px;
    border-radius: 10px;
}

.sgh-aktuell-teaser__img img {
    height: 100%;
    object-position: center;
}

.sgh-aktuell-teaser__body {
    padding: 1rem 1rem 1.1rem;
}

.sgh-aktuell-main__meta,
.sgh-aktuell-teaser__meta,
.sgh-newskarte__meta {
    margin-bottom: 0.45rem;
    color: #4c647d;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sgh-aktuell-main__title {
    margin: 0 0 0.6rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.sgh-aktuell-teaser__title {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
    line-height: 1.25;
}

.sgh-aktuell-main__text,
.sgh-aktuell-teaser__text,
.sgh-newskarte__text {
    margin: 0;
    line-height: 1.5;
}

.sgh-aktuell-main a,
.sgh-aktuell-teaser a,
.sgh-newskarte a {
    text-decoration: none;
}

.sgh-aktuell-main__imglink,
.sgh-aktuell-teaser__imglink,
.sgh-newskarte__imglink,
.sgh-aktuell-main__titlelink,
.sgh-aktuell-teaser__titlelink,
.sgh-newskarte__titlelink {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sgh-aktuell-main__titlelink:hover,
.sgh-aktuell-teaser__titlelink:hover,
.sgh-newskarte__titlelink:hover {
    text-decoration: underline;
}

.sgh-extern-link,
.sgh-aktuelles__cta a {
    position: relative;
    z-index: 30;
}

.sgh-extern-link {
    color: #0055d8;
    font-size: 0.95rem;
    text-decoration: none;
}

.sgh-aktuell-main__extern,
.sgh-aktuell-teaser__extern {
    margin-top: 0.75rem;
}

/* Wartungs-/Adminzeile klickbar halten */
.sgh-aktuell-main__body p[style],
.sgh-aktuell-teaser__body p[style],
.sgh-newskarte__body p[style] {
    position: relative;
    z-index: 30;
}

/* ------------------------------------------------------------
   Kartenaktionen / runde Buttons
   Einsatz: Startseite Aktuelles + Newsliste

   Logik:
   - Pfeilbutton = Detail / PDF / Mehr erfahren
   - Warenkorb   = direkter Buchungslink, falls target1 gesetzt
   - Beide Buttons sind echte Links; dadurch keine Overlay-Konflikte
   ------------------------------------------------------------ */

.sgh-cardbuttons {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.sgh-cardactionlink,
.sgh-bookinglink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.sgh-cardbutton-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.sgh-cardbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    color: #16415a;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.sgh-cardbutton--cart {
    color: #0b4e97;
}

.sgh-cardbutton__svg,
.sgh-newskarte-linkicon__svg {
    display: block;
    width: 18px;
    height: 18px;
}

.sgh-cardactionlink:hover .sgh-cardbutton,
.sgh-bookinglink:hover .sgh-cardbutton {
    transform: translateY(-2px);
    background: #ffffff;
    color: #0055aa;
    box-shadow: 0 9px 22px rgba(0,0,0,0.22);
}

.sgh-bookinglink:hover .sgh-cardbutton--cart {
    color: #0f5f4f;
}

/* Karten-Overlay bleibt für alte/seitliche Kacheln möglich,
   liegt aber unter den echten Aktionsbuttons. */
.sgh-aktuell-cardlink,
.sgh-newskarte-cardlink {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-decoration: none !important;
}

.sgh-aktuell-main__body,
.sgh-aktuell-teaser__body,
.sgh-newskarte__body {
    position: relative;
    z-index: 10;
}

/* ============================================================
   06 – Newsliste / Neues von der SGH
   ============================================================ */

.sgh-newsliste {
    margin: 0;
    padding: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.sgh-newsliste__inner {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.sgh-newsliste__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 0;
    padding-top: 16px;
}

.sgh-newskarte {
    border: 1px solid rgba(0,0,0,0.06);
}

.sgh-newskarte__img img {
    height: auto;
    aspect-ratio: 16 / 9;
}

.sgh-newskarte__body {
    padding: 1rem 1rem 1.15rem;
}

.sgh-newskarte__metawrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.sgh-newskarte__date {
    color: #4c647d;
    font-size: 0.82rem;
    opacity: 0.9;
}

.sgh-newskarte__title {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    line-height: 1.3;
}


/* ============================================================
   07 – Themenfahrten Liste
   ============================================================ */

.sgh-themenliste {
    margin-top: -4.5rem;
    padding-top: 0;
    padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.sgh-themenliste__inner {
    width: min(1400px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem);
    background: #ffffff;
    border-radius: 0 0 16px 16px;
}

.sgh-themenliste__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.sgh-themenkarte {
    display: block;
    padding: 1.1rem 1.1rem 1rem;
    background: #f6f7f8;
    color: inherit;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sgh-themenkarte:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,.08);
}

.sgh-themenkarte__top,
.sgh-themenkarte__bottom,
.sgh-themenkarte__actions {
    display: flex;
    gap: .8rem;
}

.sgh-themenkarte__top,
.sgh-themenkarte__bottom {
    justify-content: space-between;
}

.sgh-themenkarte__top {
    margin-bottom: .9rem;
    font-size: .95rem;
}

.sgh-themenkarte__bottom,
.sgh-themenkarte__actions {
    align-items: center;
}

.sgh-themenkarte__actions {
    gap: .7rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}

.sgh-themenkarte__date {
    color: #0f5f4f;
    font-weight: 700;
}

.sgh-themenkarte__time {
    opacity: .8;
    white-space: nowrap;
}

.sgh-themenkarte__title {
    margin-bottom: .35rem;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
}

.sgh-themenkarte__meta {
    margin-bottom: 1rem;
    font-size: .92rem;
    opacity: .72;
}

.sgh-themenkarte__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: #0f5f4f;
    color: #ffffff;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.sgh-themenkarte__cta.is-disabled {
    background: #9aa3a8;
}

.sgh-themenkarte__link,
.sgh-kurscard__book,
.sgh-kurscard__info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f2f2f2;
    text-decoration: none;
    transition: all .2s ease;
}

.sgh-themenkarte__link {
    color: #0f5f4f;
    font-size: .9rem;
}

.sgh-themenkarte__link:hover,
.sgh-kurscard__info:hover {
    background: #0f5f4f;
    color: #ffffff;
}

.sgh-themenmonat {
    position: relative;
    margin-top: 3rem;
    scroll-margin-top: 80px;
}

.sgh-themenmonat:first-child {
    margin-top: 0;
}

.sgh-themenmonat::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 1.2rem;
    background: #d9d9d9;
}

.sgh-themenmonat__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sgh-themenmonat__title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #1e3a5f;
    border-radius: 50%;
}

.sgh-themenmonat-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.sgh-themenmonat-nav a {
    white-space: nowrap;
    color: #1e3a5f;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.sgh-themenmonat-nav a:hover {
    border-bottom-color: #1e3a5f;
}


/* ============================================================
   08 – Kursfahrten / Themenfahrten Cards
   ============================================================ */

.sgh-kurse {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
}

.sgh-kurse__banner {
    height: 350px;
    overflow: hidden;
}

.sgh-kurse__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.sgh-kurse__inner {
    padding: 40px 56px 30px;
}

.sgh-kurse__title {
    margin: 0 0 14px;
    color: #0b4e97;
    font-size: 32px;
    font-weight: 800;
}

.sgh-kurscard {
    flex: 0 0 calc((100% - (18px * 3)) / 4);
    display: block;
    padding: 12px 12px 10px;
    overflow: hidden;
    background: #ffffff;
    color: #222222;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    scroll-snap-align: start;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.sgh-kurscard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.14);
}

.sgh-kurscard__top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
    color: #1f2a35;
    font-weight: 700;
}

.sgh-kurscard__date {
    font-size: 14px;
}

.sgh-kurscard__time {
    font-size: 13px;
    opacity: 0.85;
}

.sgh-kurscard__name {
    margin: 2px 0;
    font-size: 14px;
    font-weight: 800;
}

.sgh-kurscard__hint {
    margin-bottom: 10px;
    color: #444444;
    font-size: 12px;
}

.sgh-kurscard__hint--thema {
    color: #1e3a5f;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.sgh-kurscard__hint--kurs {
    color: #4c647d;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.sgh-kurscard__hint--thema::before {
    content: "● ";
    font-size: 0.8em;
}

.sgh-kurscard__hint--kurs::before {
    content: "– ";
    font-size: 0.9em;
}

.sgh-kurscard__bottom,
.sgh-kurscard__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sgh-kurscard__bottom {
    justify-content: space-between;
}

.sgh-kurscard__actions {
    gap: 8px;
}

.sgh-kurscard__mainlink {
    color: inherit;
    text-decoration: none;
}

.sgh-kurscard__mainlink:hover {
    text-decoration: underline;
}

.sgh-kurscard__book {
    color: #0b4e97;
}

.sgh-kurscard__book:hover {
    background: #0b4e97;
    color: #ffffff;
}

.sgh-kurscard__book.is-disabled {
    background: #e5e5e5;
    color: #999999;
    pointer-events: none;
}

.sgh-kurscard__info {
    color: #0f5f4f;
}


/* ============================================================
   09 – Status
   ============================================================ */

.sgh-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333333;
    font-size: 12px;
}

.sgh-status span {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
}

.sgh-status--frei span {
    background: #dff3ea;
    color: #0b6b3a;
}

.sgh-status--wenig span {
    background: #fff1d6;
    color: #8a5a00;
}

.sgh-status--aus span {
    background: #f2d7d7;
    color: #8a1f1f;
}

.sgh-status--abg span {
    background: #e7e7e7;
    color: #444444;
}


/* ============================================================
   10 – Contentmodul / Bild / Video
   ============================================================ */

.sgh-contentmod {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
}

.sgh-contentmod__image {
    position: relative;
    height: 540px;
    overflow: hidden;
}

.sgh-contentmod__image--video {
    height: auto;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.sgh-contentmod__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.sgh-contentmod__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.sgh-contentmod__image--video .sgh-contentmod__photo {
    height: auto;
}

.sgh-contentmod__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.sgh-contentmod__inner {
    padding: 36px 56px 44px;
}

.sgh-contentmod__title {
    margin: 0 0 14px;
    color: #0b4e97;
    font-size: 32px;
    font-weight: 800;
}

.sgh-contentmod__text {
    max-width: 980px;
    margin: 0 0 18px;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1.6;
}

.sgh-contentmod__cta {
    margin-top: 36px;
}


/* ============================================================
   11 – Galerie
   ============================================================ */

.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 26px;
    justify-content: start;
    align-items: stretch;
    margin: 32px 0 10px;
}

.ig-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #e7f0f9;
    border: 1px solid #e3e8eb;
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ig-card:hover {
    transform: translateY(-2px);
    border-color: #d6dde2;
    box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}

.ig-card__media {
    overflow: hidden;
    background: #f4f7f8;
}

.ig-card__media a,
.ig-card__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

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

.ig-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 18px 16px;
}

.ig-card__title {
    margin: 0 0 10px;
    color: #1f2f39;
    font-size: 1.08rem;
    line-height: 1.25;
}

.ig-card__text {
    flex-grow: 1;
    margin: 0;
    color: #42525c;
    line-height: 1.6;
}

.ig-card__text p {
    margin: 0 0 0.8em;
}

.ig-card__text p:last-child {
    margin-bottom: 0;
}

.ig-card__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1f3;
}

.ig-card__links a {
    color: #24475a;
    font-size: 0.8em;
    line-height: 1.4;
    text-decoration: none;
}

.ig-card__links a:hover,
.ig-card__textlink:hover {
    color: #173444;
}

.ig-card__textlink {
    position: relative;
    display: block;
    padding-right: 26px;
    color: #24475a;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ig-card__textlink--okgo .ig-link-okgo__icon {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 32px;
    height: 32px;
    opacity: 1;
    filter: contrast(1.1);
}

.ig-card__cornerlink {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.ig-card__cornericon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #24475a;
    border: 1px solid #dfe6ea;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ig-card__cornericon:hover {
    transform: translateY(-1px);
    background: #f4f7f8;
    border-color: #cfd8dd;
}


/* ============================================================
   12 – Inserate / FAQ / Gut zu wissen
   ============================================================ */

.sgh-knowfaq {
    display: grid;
    gap: 1.75rem;
    margin-top: 36px;
}

.sgh-knowfaq__item {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    padding: 1.4rem;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
}

.sgh-knowfaq__item--info {
    grid-template-columns: 160px 1fr;
}

.sgh-knowfaq__item--faq {
    grid-template-columns: 1fr;
    padding: 1rem 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.10);
    border-radius: 0;
}

.sgh-knowfaq__media,
.sgh-knowfaq__content {
    min-width: 0;
}

.sgh-knowfaq__picture {
    display: block;
    line-height: 0;
}

.sgh-knowfaq__thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.sgh-knowfaq__title {
    margin: 0 0 0.45rem;
    color: #0b4e97;
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 600;
}

.sgh-knowfaq__title--faq {
    font-size: 1.18rem;
}

.sgh-knowfaq__text {
    margin: 0;
    line-height: 1.55;
}

.sgh-knowfaq__text p {
    margin: 0 0 0.8rem;
}

.sgh-knowfaq__text p:last-child {
    margin-bottom: 0;
}

.sgh-knowfaq__linkwrap {
    margin: 1rem 0 0;
}

.sgh-knowfaq__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.05rem;
    color: #0b4e97;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.sgh-knowfaq__link:hover,
.sgh-knowfaq__link:focus {
    opacity: 0.8;
}


/* ============================================================
   13 – Wetter / Webcam
   ============================================================ */

.sgh-weatherweb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 56px 34px;
    background: #ffffff;
}

.sgh-weatherweb__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 22px;
    align-items: start;
    padding-left: 0;
    padding-right: 0;
}

.sgh-weatherweb__left {
    padding: 8px 6px 0;
}

.sgh-weatherweb__top {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 6px 0 12px;
}

.sgh-weatherweb__temp {
    color: #111111;
    font-size: 68px;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1;
}

.sgh-weatherweb__temp .deg {
    margin-left: 2px;
    font-size: 34px;
    vertical-align: super;
}

.sgh-weatherweb__summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 130px;
}

.sgh-weatherweb__icon {
    font-size: 44px;
    line-height: 1;
}

.sgh-weatherweb__desc,
.sgh-weatherweb__daytitle,
.sgh-weatherweb__row .day,
.sgh-weatherweb__row .max {
    color: #111111;
    font-weight: 800;
}

.sgh-weatherweb__desc {
    font-size: 14px;
}

.sgh-weatherweb__cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin-top: 6px;
}

.sgh-weatherweb__daytitle {
    margin: 8px 0 6px;
}

.sgh-weatherweb__kv {
    display: grid;
    gap: 8px;
    color: #111111;
    font-size: 14px;
}

.sgh-weatherweb__kv span,
.sgh-weatherweb__row .min {
    color: #111111;
    opacity: .9;
}

.sgh-weatherweb__kv b {
    font-weight: 800;
}

.sgh-weatherweb__kv--temps {
    margin-top: 10px;
}

.sgh-weatherweb__list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.sgh-weatherweb__row {
    display: grid;
    grid-template-columns: 110px 28px 1fr 1fr;
    gap: 10px;
    align-items: center;
    font-size: 14px;
}

.sgh-weatherweb__row .ico {
    font-size: 18px;
}

.sgh-weatherweb__row .max,
.sgh-weatherweb__row .min {
    text-align: right;
}

.sgh-weatherweb__cam {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #eef0f3;
    color: inherit;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    text-decoration: none;
}

.sgh-weatherweb__cam img,
.sgh-weatherweb__cam iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.sgh-weatherweb__camLabel {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.18);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    border-radius: 999px;
    backdrop-filter: blur(2px);
    transform: translate(-50%,-50%);
}

.sgh-webcam {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.sgh-webcam iframe {
    width: 100%;
    height: 120%;
    margin-top: -20px;
    border: 0;
}
.sgh-weatherweb__row--water {
    margin-top: 14px;
}

.sgh-weatherweb__row--water .day {
    color: #004b9b;
    font-weight: 700;
}

.sgh-weatherweb__row--water .ico {
    font-size: 16px;
}

.sgh-weatherweb__water-source {
    margin-top: 4px;
    font-size: 14px;
}


/* ============================================================
   14 – Footer
   ============================================================ */

.sgh-footer {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    background: #0b4e97;
    color: #ffffff;
}

.sgh-footer__inner {
    position: relative;
    z-index: 2;
    padding: 108px 56px 42px;
}

.sgh-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 0.55fr;
    gap: 42px;
    align-items: start;
}

.sgh-footer h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
}

.sgh-footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.95;
}

.sgh-footer a {
    color: #ffffff;
    text-decoration: none;
}

.sgh-footer a:hover {
    opacity: 0.7;
}

.sgh-footer__lines {
    display: grid;
    gap: 4px;
}

.sgh-footer__lines .spacer {
    height: 8px;
}

.sgh-footer__social {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.sgh-social {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    transition: transform 140ms ease, background 140ms ease;
}

.sgh-social:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
}

.sgh-social svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.sgh-footer__logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 6px;
}

.sgh-footer__logos img {
    display: block;
    width: 92px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
}

.sgh-footer__logos img.is-okgo {
    width: 76px;
}

.sgh-footer__logos img.is-aargau {
    width: 96px;
}


/* ============================================================
   15 – Responsive: grosse Bildschirme bis Tablets
   Jasmin-like gesammelt am Ende
   ============================================================ */


@media (max-width: 900px) {
    .hero-wave,
    .sgh-contentmod__wave,
    .sgh-footer__wave {
        left: -3%;
        width: 106%;
    }
}

@media (max-width: 1108px) {
    .main-nav ul {
        display: none;
    }
}

@media (max-width: 1105px) {
    .sgh-contentmod__image--video {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 1100px) {
    .sgh-newsliste__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .sgh-card {
        flex-basis: calc((100% - (18px * 2)) / 3);
    }

    .sgh-kurscard {
        flex-basis: calc((100% - (18px * 2)) / 3);
    }

    .sgh-aktuelles__title {
        font-size: 32px;
    }

    .sgh-kurse__banner {
        height: 320px;
    }
}

@media (max-width: 980px) {
    .sgh-aktuelles-grid {
        grid-template-columns: 1fr;
    }

    .sgh-aktuell-teaser {
        grid-template-columns: 130px 1fr;
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: row;
        gap: 10px;
    }

    .nav-panel {
        max-height: calc(100vh - 70px);
        border-radius: 0 0 8px 8px;
    }

    .nav-panel-inner {
        grid-template-columns: 1fr;
        font-size: 16px;
    }

    .hero-content {
        top: 30%;
        left: 88px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .sgh-themenliste__grid {
        grid-template-columns: 1fr;
    }

    .sgh-contentmod__inner {
        padding: 28px 16px 36px;
    }

    .sgh-contentmod__title {
        font-size: 26px;
    }

    .sgh-contentmod__image {
        height: 410px;
    }

    .sgh-contentmod__image--video {
        height: auto;
    }

    .sgh-contentmod__image img.sgh-contentmod__photo {
        object-position: center 35%;
    }

    .sgh-knowfaq__item--info {
        grid-template-columns: 140px 1fr;
    }

    .sgh-weatherweb {
        padding-inline: 16px;
    }

    .sgh-weatherweb__grid {
        grid-template-columns: 1fr;
        margin-top: 14px;
        background: #eef0f3;
        border-radius: 12px;
    }

    .sgh-weatherweb__cols {
        grid-template-columns: 1fr;
    }

    .sgh-weatherweb__temp {
        font-size: 52px;
    }

    .sgh-footer__inner {
        padding: 68px 16px 34px;
    }

    .sgh-footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .sgh-footer__logos {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}


/* ============================================================
   16 – Responsive: Mobile
   ============================================================ */

@media (max-width: 768px) {
    .hero {
        height: 55vh;
        min-height: 360px;
    }

    .sgh-carousel {
        grid-template-columns: 1fr;
    }

    .sgh-carousel__arrow {
        display: none;
    }

    .sgh-card {
        flex-basis: calc((100% - 18px) / 2);
    }

    .sgh-aktuelles {
        padding-inline: 16px;
    }

    .sgh-aktuelles__title {
        margin: 0 0 6px;
        font-size: 24px;
    }

    .sgh-newsliste__inner {
        padding: 0 16px;
    }

    .sgh-newsliste__grid {
        grid-template-columns: 1fr;
    }

    .sgh-kurse__inner {
        padding-inline: 16px;
    }

    .sgh-kurscard {
        flex-basis: calc((100% - 18px) / 2);
    }

    .sgh-kurse__banner {
        height: 280px;
    }

    .sgh-kurse__banner img {
        object-position: center 45%;
    }
}

@media (max-width: 700px) {
    .ig-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ig-card__media img {
        height: 210px;
    }

    .ig-card__body {
        padding: 16px;
    }

    .sgh-knowfaq {
        gap: 1.25rem;
    }

    .sgh-knowfaq__item,
    .sgh-knowfaq__item--info,
    .sgh-knowfaq__item--faq {
        grid-template-columns: 1fr;
    }

    .sgh-knowfaq__media {
        max-width: 220px;
    }

    .sgh-knowfaq__title {
        font-size: 1.22rem;
    }

    .sgh-knowfaq__title--faq {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .sgh-aktuell-teaser {
        grid-template-columns: 1fr;
    }

    .sgh-aktuell-teaser__img {
        min-height: 0;
        border-radius: 0;
    }

    .sgh-aktuell-teaser__img img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .sgh-contentmod__image--video {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 600px) {
    .hero-content {
        top: 30%;
        left: 68px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-btn {
        padding: 7px 18px;
        font-size: 12px;
    }

    .logo-wrap img {
        height: 38px;
    }

    .hero-wave,
    .sgh-contentmod__wave,
    .sgh-footer__wave {
        left: -10px;
        width: calc(100% + 20px);
        min-width: 520px;
    }
}

@media (max-width: 520px) {
    .sgh-weatherweb__row {
        grid-template-columns: 90px 24px 1fr 1fr;
    }

    .sgh-webcam iframe {
        height: 130%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        top: 31%;
        left: 50px;
    }

    .hero-title {
        font-size: 1.3em;
    }

    .hero-btn {
        margin-top: -4px;
        padding: 4px 11px 6px;
        font-size: 0.70em;
        font-weight: 600;
    }

    .logo-wrap img {
        height: 28px;
    }

    .sgh-card,
    .sgh-kurscard {
        flex-basis: 86%;
    }

    .sgh-card__img img {
        height: 150px;
    }

    .sgh-card__body {
        min-height: 110px;
    }

    .sgh-kurse__banner {
        height: 240px;
    }

    .sgh-contentmod__title {
        font-size: 22px;
    }

    .sgh-contentmod__text {
        font-size: 14px;
    }

    .sgh-contentmod__image {
        height: 210px;
    }

    .sgh-contentmod__image--video {
        height: auto;
    }
}

@media (max-width: 411px) {
    .hero-content {
        top: 30%;
        left: 50px;
    }

    .hero-title {
        font-size: 1.2em;
    }

    .hero-btn {
        margin-top: -4px;
        font-size: 0.65em;
    }
}

@media (max-width: 360px) {
    .site-header {
        top: 0;
    }

    .hero-image img {
        padding-top: 50px;
    }
}

@media (max-width: 360px) {
    .hero-wave,
    .sgh-contentmod__wave,
    .sgh-footer__wave {
        min-width: 460px;
    }
}
