@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* =========================================================
   GRUNDLAGEN
========================================================= */

:root {
    --dark: #1d2823;
    --green: #526b5c;
    --green-light: #718b7a;
    --cream: #f5f1e8;
    --cream-dark: #eae4d8;
    --white: #ffffff;
    --text: #303733;
    --text-light: #68716b;
    --border: rgba(29, 40, 35, 0.12);
    --shadow: 0 20px 60px rgba(29, 40, 35, 0.10);
    --transition: 0.35s ease;
    --max-width: 1250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

h1 {
    font-size: clamp(4rem, 8vw, 7.5rem);
    color: var(--white);
    letter-spacing: -3px;
}

h1 span {
    font-style: italic;
    color: #d8dfd8;
}

h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -2px;
    color: var(--dark);
}

h2 em {
    font-style: italic;
    color: var(--green);
}

p {
    color: var(--text-light);
}

.section {
    padding: 120px 6vw;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 25px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar {
    max-width: var(--max-width);
    margin: auto;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo span {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    gap: 35px;
    color: var(--white);
    font-size: 0.9rem;
}

.nav-links a {
    position: relative;
    opacity: 0.9;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: white;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-button {
    padding: 13px 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-button:hover {
    background: white;
    color: var(--dark);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 8vw 100px;
    background-image: url("Bilder/Home_Bild.JPG.jpg");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(20, 29, 25, 0.82),
            rgba(20, 29, 25, 0.35),
            rgba(20, 29, 25, 0.15)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-small {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    font-size: 1.1rem;
    margin: 30px 0 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    padding: 16px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.button-primary {
    background: white;
    color: var(--dark);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
}

.button-outline:hover {
    background: white;
    color: var(--dark);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: 7vw;
    z-index: 2;
    color: white;
    font-size: 0.7rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    writing-mode: vertical-rl;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   WOHNUNGEN
========================================================= */

.apartments {
    background: white;
}

.section-heading {
    max-width: var(--max-width);
    margin: 0 auto 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 400px;
    margin-bottom: 10px;
}

.apartment-grid {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.apartment-card {
    background: var(--cream);
    transition: var(--transition);
    overflow: hidden;
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.apartment-image {
    position: relative;
    overflow: hidden;
}

.apartment-image img {
    height: 330px;
    transition: transform 0.7s ease;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.06);
}

.apartment-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 7px 12px;
    background: white;
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.apartment-tag.new {
    background: var(--green);
    color: white;
}

.apartment-content {
    padding: 30px;
}

.apartment-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.apartment-number {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 7px;
}

.apartment-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--dark);
}

.price {
    text-align: right;
    white-space: nowrap;
}

.price strong {
    display: block;
    color: var(--dark);
    font-size: 0.95rem;
}

.price span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.apartment-content > p {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.features span {
    font-size: 0.7rem;
    color: var(--text-light);
}

.card-button {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
}

.card-button:hover {
    color: var(--green);
    transform: translateX(5px);
}


/* =========================================================
   AUSSTATTUNG
========================================================= */

.amenities {
    background: var(--cream-dark);
}

.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 650px;
}

.section-heading.centered > p {
    margin: 25px auto 0;
    max-width: 500px;
}

.amenities-grid {
    max-width: var(--max-width);
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.4);
}

.amenity {
    padding: 50px 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.amenity:hover {
    background: white;
}

.amenity-icon {
    font-size: 2rem;
    margin-bottom: 25px;
}

.amenity h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.amenity p {
    font-size: 0.85rem;
}


/* =========================================================
   KONTAKT
========================================================= */

.contact {
    background: var(--cream);
    padding-top: 140px;
    padding-bottom: 140px;
}

.contact-wrapper {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.contact-info > p {
    max-width: 450px;
}

.contact-details {
    margin-top: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item > span {
    font-size: 1.3rem;
    width: 30px;
}

.contact-item small {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--green);
}


/* =========================================================
   KONTAKTFORMULAR
========================================================= */

.contact-form {
    background: white;
    padding: 50px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--cream);
    padding: 15px;
    font-size: 0.85rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.privacy-check input {
    margin-top: 5px;
    accent-color: var(--green);
}

.submit-button {
    width: 100%;
    border: none;
    background: var(--dark);
    color: white;
    padding: 17px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--green);
    padding-left: 30px;
    padding-right: 30px;
}

.submit-button span {
    font-size: 1.2rem;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: var(--dark);
    color: white;
    padding: 80px 6vw 25px;
}

.footer-main {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 70px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h4 {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-column a,
.footer-column span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}


/* =========================================================
   RESPONSIVE DESIGN – TABLET
========================================================= */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }

    .section {
        padding: 90px 5vw;
    }

    .apartment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apartment-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 15px);
        margin: auto;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE DESIGN – HANDY
========================================================= */

@media (max-width: 650px) {

    .navbar {
        padding: 22px 20px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        min-height: 850px;
        padding: 130px 25px 80px;
    }

    h1 {
        font-size: 3.7rem;
        letter-spacing: -2px;
    }

    h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-scroll {
        display: none;
    }

    .section {
        padding: 75px 25px;
    }

    .section-heading {
        display: block;
        margin-bottom: 45px;
    }

    .section-heading > p {
        margin-top: 25px;
    }

    .apartment-grid {
        grid-template-columns: 1fr;
    }

    .apartment-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .apartment-image img {
        height: 280px;
    }

    .apartment-top {
        flex-direction: column;
    }

    .price {
        text-align: left;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .amenity {
        padding: 35px 25px;
    }

    .contact {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer {
        padding: 60px 25px 25px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   KLEINE HANDYS
========================================================= */

@media (max-width: 400px) {

    h1 {
        font-size: 3.1rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        justify-content: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}
/* =========================================================
   GALERIE-SEITE
========================================================= */

.gallery-page {

    max-width: var(--max-width);

    margin: auto;

    padding: 170px 6vw 120px;

}


/* =========================
   GALERIE ÜBERSCHRIFT
========================= */

.gallery-heading {

    max-width: 750px;

    margin-bottom: 70px;

}


.gallery-heading h1 {

    color: var(--dark);

    font-size: clamp(3.5rem, 7vw, 6rem);

    margin-bottom: 30px;

}


.gallery-heading h1 span {

    color: var(--green);

    font-style: italic;

}


.gallery-heading p {

    max-width: 550px;

    font-size: 1rem;

}


/* =========================
   BILDER-GALERIE
========================= */

.gallery {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

}


/* Einzelnes Bild */

.gallery-item {

    position: relative;

    overflow: hidden;

    background: var(--cream-dark);

}


.gallery-item img {

    width: 100%;

    height: 380px;

    object-fit: cover;

    transition: transform 0.6s ease;

}


/* Große Bilder */

.gallery-item.large {

    grid-column: span 2;

}


.gallery-item.large img {

    height: 550px;

}


/* Hover-Effekt */

.gallery-item:hover img {

    transform: scale(1.04);

}


/* =========================
   ZURÜCK BUTTON
========================= */

.gallery-back {
    position: fixed;

    right: 30px;
    bottom: 30px;

    z-index: 1000;

    margin: 0;
}

.gallery-back .button {
    background: var(--dark);
    color: white;

    padding: 15px 22px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    transition: var(--transition);
}

.gallery-back .button:hover {
    background: var(--green);

    transform: translateY(-3px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}


/* =========================
   GALERIE RESPONSIVE
========================= */

@media (max-width: 700px) {

    .gallery-page {

        padding: 130px 25px 80px;

    }


    .gallery-heading {

        margin-bottom: 45px;

    }


    .gallery-heading h1 {

        font-size: 3.5rem;

    }


    .gallery {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .gallery-item.large {

        grid-column: span 1;

    }


    .gallery-item img,
    .gallery-item.large img {

        height: 300px;

    }

}
.pdf-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #889b7e;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.pdf-button:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}