@charset "UTF-8";

/* Hexagon-Muster aus Seiten_Vorschlaege (content2Class) – global in style.css als --hex-pattern */
/* ===== Desktop-Startseite ===== */
#homeDesktop {
    display: none;
}

body.page-home #menuehome {
    display: none !important;
}

@media screen and (min-width: 901px) {

body.page-home #homeDesktop {
    display: block;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 48px;
    position: relative;
    overflow: visible;
    z-index: 1;
}

body.page-home #homeMobileImage,
body.page-home #homeMobileReveal {
    display: none !important;
}

/* Index: kein MenueVertikal – Content direkt unter Header */
body.page-home #content {
    margin-top: 122.5px;
    padding-top: 0;
    padding-bottom: 110px;
    height: calc(100vh - 122.5px - 110px);
}

body.footer-expanded.page-home #content {
    padding-bottom: 250px;
    height: calc(100vh - 122.5px - 250px);
}

body.page-home #homeDesktop {
    padding-top: 8px;
}

.home-desktop-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

.home-desktop-hero__media {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.home-desktop-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-desktop-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    pointer-events: none;
}

.home-desktop-hero__text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    text-align: center;
}

.home-desktop-hero__text h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.home-desktop-hero__text p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.home-desktop-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 4px;
    position: relative;
    z-index: 2;
}

.home-desktop-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px 16px;
    background-color: rgba(255, 255, 255, 0.96);
    background-image: var(--hex-pattern);
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 120, 199, 0.12);
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-desktop-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 120, 199, 0.2);
    border-color: rgba(0, 120, 199, 0.28);
    color: var(--color-primary-dark);
}

.home-desktop-tile img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}

body.page-home #contendpicture2 {
    position: relative;
    overflow: visible;
    z-index: 3;
    width: 100%;
    margin-top: 32px;
    border-radius: 12px;
    background-image: url("../images/Konst.jpg");
    background-size: 120% 840px;
    background-position: 70% -40px;
    background-repeat: no-repeat;
    height: 400px;
    color: #ffffff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

body.page-home #contendpicture2::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: rgba(0, 157, 224, 0.45);
    z-index: 0;
    pointer-events: none;
}

#textinContPic2 {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: "BebasNeuewebfont", var(--font-sans, sans-serif);
    font-size: clamp(1.75rem, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    z-index: 19;
    padding-top: 150px;
    pointer-events: none;
}

#textinContPic2 .textinContPic2-slogan {
    display: block;
    margin-top: 14px;
    font-family: var(--font-sans, "Source Sans 3", sans-serif);
    font-size: clamp(1.275rem, 2.4vw, 1.65rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#contendpicture2 .landschaft1 {
    width: min(1300px, 140%);
    height: auto;
    max-height: 500px;
    position: relative;
    left: 20%;
    top: -150px;
    z-index: 200;
    transform: rotate(7deg);
    animation: loop1 8s infinite reverse linear;
    pointer-events: none;
}

@keyframes loop1 {
    0% {
        transform: rotate(7deg) translateY(0);
    }
    50% {
        transform: rotate(7deg) translateY(-8px);
    }
    100% {
        transform: rotate(7deg) translateY(0);
    }
}

}

@media screen and (min-width: 901px) and (max-width: 1100px) {
    .home-desktop-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Startseite: Mobile-Bild nur auf index.html (Desktop ausgeblendet) */
#homeMobileImage {
    display: none;
}

#homeMobileReveal {
    display: none;
}

/* Index: kein oberes Padding (Unterseiten nutzen MenueVertikal-Abstand) */
body.page-home #content {
    padding-top: 0;
}

@media screen and (max-width: 900px) {

/* Footer-Offset: Fallback, wird per JS an echte Geraetemasse angepasst */
body.page-home {
    --home-vh: 100dvh;
    --home-header-offset: 70px;
    --home-footer-offset: 80px;
    --home-hint-gap: 10px;
    --home-reveal-spacer: calc(var(--home-area-h) + 80px);
    --home-area-h: calc(var(--home-vh) - var(--home-header-offset) - var(--home-footer-offset));
}

@supports not (height: 100dvh) {
    body.page-home {
        --home-vh: 100vh;
    }
}

body.page-home #content {
    visibility: visible !important;
    height: var(--home-area-h) !important;
    margin-top: var(--home-header-offset);
    padding: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: none;
    background-color: rgb(0, 157, 224);
}

body.page-home #content::-webkit-scrollbar {
    display: none;
}

body.page-home #homeMobileImage {
    display: block;
    position: fixed;
    top: var(--home-header-offset);
    left: 0;
    width: 100%;
    height: var(--home-area-h);
    z-index: 1;
    pointer-events: none;
}

body.page-home .home-mobile-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

body.page-home .home-mobile-hint {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--home-footer-offset) + var(--home-hint-gap));
    z-index: 11;
    margin: 0;
    padding: 0 12px;
    text-align: center;
    color: #fff;
    font-size: 0.75em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

body.page-home #content.scrolled .home-mobile-hint {
    opacity: 0;
}

body.page-home #homeMobileReveal {
    display: block;
    position: relative;
    z-index: 2;
    background: transparent;
    pointer-events: none;
}

body.page-home .home-reveal-spacer {
    height: var(--home-reveal-spacer);
    pointer-events: none;
}

body.page-home .home-reveal-inner {
    padding: 24px 16px 48px;
    will-change: transform;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.page-home.home-layout-ready .home-reveal-inner {
    opacity: 1;
}

body.page-home .home-reveal-title {
    font-size: 1.55em;
    font-weight: bold;
    margin: 0 0 12px;
    text-align: center;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.35),
        1px -1px 0 rgba(0, 0, 0, 0.35),
        -1px 1px 0 rgba(0, 0, 0, 0.35),
        1px 1px 0 rgba(0, 0, 0, 0.35),
        0 0 4px rgba(0, 0, 0, 0.45);
}

body.page-home .home-reveal-lead {
    font-size: 0.95em;
    line-height: 1.65;
    text-align: center;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.3),
        1px -1px 0 rgba(0, 0, 0, 0.3),
        -1px 1px 0 rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.3),
        0 0 3px rgba(0, 0, 0, 0.4);
}

body.page-home .home-reveal-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-home .home-reveal-cards li {
    background-color: rgba(255, 255, 255, 0.14);
    background-image: var(--hex-pattern);
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-left: 4px solid rgba(172, 208, 220, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body.page-home .home-reveal-cards li i {
    color: #ACD0DC;
    font-size: 1.2em;
    margin-bottom: 6px;
    display: block;
}

body.page-home .home-reveal-cards li:nth-child(1) i,
body.page-home .home-reveal-cards li:nth-child(2) i {
    color: #0078C7;
}

body.page-home .home-reveal-cards h3 {
    margin: 0 0 6px;
    font-size: 1.05em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

body.page-home .home-reveal-cards p {
    margin: 0;
    font-size: 0.88em;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

body.page-home .home-reveal-cta {
    text-align: center;
    margin: 20px 0 0;
}

body.page-home .home-reveal-cta a {
    color: #ACD0DC;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.page-home .home-reveal-cta a:hover {
    color: #fff;
}

body.page-home #menuehome {
    display: none !important;
}

body.page-home #homeMobileImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.page-home #homeMobileImage .home-mobile-base {
    display: block;
}

body.page-home #homeMobileImage .home-mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.45;
    pointer-events: none;
}

/* iPhone / iOS Safari: groessere Sicherheitszone unter dem Bild */
@supports (-webkit-touch-callout: none) {
    body.page-home {
        --home-vh: -webkit-fill-available;
        --home-hint-gap: 12px;
    }

    body.page-home #content {
        min-height: -webkit-fill-available;
    }
}

}
