@font-face {
  font-family: "PolySans";
  src: url("/fonts/PolySans-Neutral.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* warum: visuelle Stabilität */
}

/* Common Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #ffffff; /* Background color set to white */
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; /* Background color set to white */
    background-size: cover; /* Ensure the background covers the entire area */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background from repeating */
    min-height: 100vh; /* Ensure body takes at least the full height of the viewport */
    transition: background-image 0.8s ease-in-out; /* Smoother and slower transition */
    position: relative; /* Added for positioning child elements */
    box-sizing: border-box; /* Ensure padding doesn't affect height */
    padding-bottom: 20px; /* Adding padding if needed to adjust content */
}

/* Header styling */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: none;
    z-index: 10;
}

header .logo img {
    height: 40px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav .menu-icon {
    display: none;
    width: 25px;
    cursor: pointer;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Yu Gothic', sans-serif;
    color: #000000;
}

header nav ul li a:hover {
    color: #F4B4D2;
}

.menu-icon {
    display: none; /* Initially hidden */
    width: 25px;
    cursor: pointer;
    align-items: flex-end;
}

header nav ul.nav-menu.show {
    display: flex;
}


/* Grid layout for the main content */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 0.75fr 0.75fr 1fr; 
    gap: 20px;
    margin: 20px;
    align-items: center;
    justify-items: center; 
}

.centered-content {
    grid-column: 2 / 3; /* Place centered-content in the middle column */
    grid-row: 2 / 4; /* Span over rows 2 and 3 */
    text-align: center;
}

.interior,
.objekte {
  font-family: "PolySans", 'Helvetica Neue', Arial, system-ui, sans-serif;
  font-weight: 400;           /* wichtig: h1 überschreibt sonst mit 700 */
  font-synthesis: none;       /* warum: verhindere künstliches Bold/Italic */
  -webkit-font-smoothing: antialiased; /* optisches Feintuning auf WebKit */
  -moz-osx-font-smoothing: grayscale;
  color: #F4B4D2;
  cursor: pointer;
}


.interior {
    grid-row: 1 / 2; /* Place in the first row */
    font-size: 80px;
}

.objekte {
    grid-row: 2 / 3; /* Place in the second row */
    font-size: 80px;
}

/* Hover Effects */
.interior:hover, .objekte:hover {
    color: #034A23; /* Change color on hover */
}




/* Responsive Design */
@media screen and (max-width: 900px) {
    body {
        background-size: cover; /* Ensure background fully covers the viewport */
        background-position: center; /* Keep the image centered */
        min-height: 100vh; /* Ensure full height */
    }

    .grid-container {
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .centered-content {
        text-align: center;
    }

    .interior, .objekte {
        font-size: 80px;
    }
}

@media screen and (max-width: 600px) {
    body {
        background-size: cover; /* Keep the image full screen without repeating */
        background-position: center; /* Center the image */
        min-height: 100vh; /* Ensure full height */
    }

    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 20px;
        text-align: right;
        background-color: none;
        padding: 10px;
    }

    header nav ul.show {
        display: flex;
    }

    header nav ul li {
        margin: 0px;
    }

    header nav .menu-icon {
        display: block;
    }

    .menu-icon {
        display: block; /* Show menu icon on small screens */
    }

    .interior, .objekte {
        font-size: 60px;
    }
}

@media screen and (max-width: 500px) {
    body {
        background-size: cover; /* Further ensure full coverage of background */
        background-position: center top; /* Center the image and align to the top */
        min-height: 100vh; /* Ensure full height */
    }

    .grid-container {
        grid-template-rows: repeat(4, 1fr);
    }
}