/* responsive.css – Media Queries und mobile Überschreibungen */


/* =========================================================
   Tablet / allgemeine responsive Bereiche
   ========================================================= */

@media (max-width: 1024px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    picture,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    .container,
    .page-container,
    .content-wrapper,
    .section-inner {
        width: min(100% - 32px, 1200px);
        margin-left: auto;
        margin-right: auto;
    }

    .section,
    section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .gallery-grid,
    .news-grid,
    .team-grid,
    .feature-band,
    .highlight-section,
    .mosaic,
    .event-banner {
        grid-template-columns: 1fr;
    }

    .mosaic img:first-child {
        height: 260px;
    }

    .overlap-card {
        margin-top: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-map {
        display: none;
    }
}


/* =========================================================
   Mobile Burger Navigation
   ========================================================= */

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .site-header {
        position: relative;
        z-index: 1000;
        width: calc(100% - 24px);
        margin: 12px auto 0;
        border-radius: 0 0 24px 24px;
    }

    .site-header .container,
    .header-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
    }

    .site-logo img,
    .logo img,
    .header-logo img {
        max-width: 190px;
        height: auto;
        display: block;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 1002;

        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 48px;
        height: 48px;
        border: 0;
        border-radius: 14px;
        background: #7d9134;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 23px;
        height: 3px;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        z-index: 1001;

        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);

        background: #ffffff;
        border-radius: 20px;
        padding: 14px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);

        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav ul,
    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 14px;

        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(125, 145, 52, 0.12);
        color: #7d9134;
    }
}


/* =========================================================
   Smartphone Layout
   ========================================================= */

@media (max-width: 768px) {

    .container,
    .page-container,
    .content-wrapper,
    .section-inner {
        width: min(100% - 24px, 1200px);
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
        line-height: 0.95;
    }

    h2 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        line-height: 1.1;
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.8rem);
        line-height: 1.25;
    }

    p,
    li {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero,
    .hero-section {
        min-height: auto;
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .hero-content,
    .hero-inner {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        align-items: center;
    }

    .hero-title,
    .hero h1 {
        text-align: center;
        word-break: normal;
        overflow-wrap: normal;
    }

    .hero-script,
    .hero-slogan,
    .hero-subtitle {
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .buttons,
    .hero-actions,
    .hero-buttons,
    .cta-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .buttons a,
    .hero-actions a,
    .hero-buttons a,
    .cta-row a,
    .btn,
    .button {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        text-align: center;
    }

    .community-badge {
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        white-space: normal;
        text-align: center;
    }

    .stats,
    .stats-bar,
    .hero-stats {
        width: calc(100% - 24px);
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .stats-grid,
    .hero-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
        text-align: center;
    }

    .stat-number,
    .stats strong,
    .stats-bar strong {
        font-size: 1.7rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .stat-label,
    .stats span,
    .stats-bar span {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .intro-section,
    .cards,
    .community-grid,
    .community-cards,
    .home-news-grid,
    .home-news-list,
    .gallery-grid,
    .news-grid,
    .team-grid,
    .event-grid,
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .community-card {
        padding: 28px 26px;
    }

    .home-news-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
    }

    .home-news-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

    .home-news-content {
        padding: 26px 24px 30px;
    }

    .event-banner {
        grid-template-columns: 1fr;
    }

    .event-image {
        min-height: 260px;
    }

    .countdown {
        left: 20px;
        right: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .quote-box {
        padding: 34px 28px;
    }

    .quote-content {
        font-size: 1.15rem;
    }

    .quote-left,
    .quote-right {
        font-size: 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-col {
        border-left: none;
        padding-left: 0;
    }

    footer,
    .footer {
        text-align: center;
    }
}


/* =========================================================
   Kleine Smartphones
   ========================================================= */

@media (max-width: 480px) {

    .container,
    .page-container,
    .content-wrapper,
    .section-inner {
        width: min(100% - 20px, 1200px);
    }

    h1 {
        font-size: clamp(2.2rem, 13vw, 3.4rem);
    }

    .hero,
    .hero-section {
        padding-top: 3.5rem;
    }

    .card,
    .news-card,
    .team-card,
    .event-card,
    .info-card,
    .community-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
}


/* FINAL – Desktop Layout Gemeinschaft + News
   Stand passt. Nur ändern, wenn dieser Bereich bewusst neu gestaltet wird.
*/

@media (min-width: 1025px) {

    .community .container,
    .home-news .container {
        max-width: 1520px;
        width: calc(100% - 64px);
        margin-left: auto;
        margin-right: auto;
    }

    .community-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        align-items: stretch;
    }

    .community-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 34px 32px;
        min-height: 300px;
    }

    .community-card i {
        font-size: 2.1rem;
        line-height: 1;
        margin-bottom: 18px;
    }

    .community-card h3 {
        font-size: 1.28rem;
        line-height: 1.22;
        margin-bottom: 14px;
        hyphens: none;
        overflow-wrap: normal;
        word-break: normal;
    }

    .community-card p {
        font-size: 1.05rem;
        line-height: 1.58;
        hyphens: none;
        overflow-wrap: normal;
        word-break: normal;
    }

    .home-news-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        align-items: stretch;
    }

    .home-news-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        overflow: hidden;
    }

    .home-news-image {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
    }

    .home-news-content {
        padding: 30px 32px 34px;
    }

    .home-news-content time {
        display: block;
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .home-news-content h3 {
        font-size: 1.35rem;
        line-height: 1.25;
        margin-bottom: 18px;
        hyphens: none;
        overflow-wrap: normal;
        word-break: normal;
    }

    .home-news-content p {
        font-size: 1.03rem;
        line-height: 1.58;
        hyphens: none;
        overflow-wrap: normal;
        word-break: normal;
    }

    .home-news-content a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 18px;
        font-size: 1.02rem;
    }
}

/* =========================================================
   PATCH – Mobile Header sichtbar + Burger erzwingen
   ========================================================= */

@media (max-width: 768px) {

    .site-header,
    header {
        position: relative;
        z-index: 1000;
        width: calc(100% - 24px);
        margin: 12px auto 0;
        border-radius: 0 0 24px 24px;
    }

    .nav,
    .site-header .container,
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;

        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;

        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #7d9134 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 23px !important;
        height: 3px !important;
        border-radius: 999px !important;
        background: #ffffff !important;
    }

    .main-nav {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 1001 !important;

        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-8px) !important;

        background: #ffffff !important;
        border-radius: 20px !important;
        padding: 14px !important;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16) !important;
    }

    .main-nav.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

/* =========================================================
   PATCH – Mobile Statistikleiste 2x2
   ========================================================= */

@media (max-width: 768px) {

    .stats,
    .stats-bar,
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 12px !important;

        width: calc(100% - 24px) !important;
        max-width: 430px !important;
        margin: 0 auto 32px !important;
        padding: 22px 18px !important;
        border-radius: 24px !important;
        text-align: center !important;
    }

    .stat,
    .stat-item,
    .stats > div,
    .stats-bar > div,
    .hero-stats > div {
        min-width: 0 !important;
        text-align: center !important;
    }

    .stat-number,
    .stats strong,
    .stats-bar strong,
    .hero-stats strong {
        display: block !important;
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .stat-label,
    .stats span,
    .stats-bar span,
    .hero-stats span {
        display: block !important;
        font-size: 0.82rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
}

/* =========================================================
   PATCH – Mobile Countdown sauber 2x2
   ========================================================= */

@media (max-width: 768px) {

    .event-banner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow: hidden !important;
        border-radius: 0 0 28px 28px !important;
    }

    .event-info {
        padding: 48px 32px 44px !important;
    }

    .event-info h2,
    .event-title {
        font-size: clamp(2.4rem, 11vw, 3.4rem) !important;
        line-height: 1.1 !important;
    }

    .event-meta,
    .event-details {
        gap: 20px !important;
    }

    .event-image {
        position: relative !important;
        min-height: 470px !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .event-image img {
        width: 100% !important;
        height: 100% !important;
        min-height: 470px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .countdown {
        position: absolute !important;
        left: 24px !important;
        right: 24px !important;
        bottom: 24px !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;

        transform: none !important;
        justify-content: initial !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    .countdown-item,
    .countdown div {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 118px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 18px 10px !important;
        border-radius: 18px !important;
        text-align: center !important;
    }

    .countdown strong,
    .countdown-number {
        font-size: 2.7rem !important;
        line-height: 1 !important;
    }

    .countdown span,
    .countdown-label {
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
        margin-top: 8px !important;
    }
}