* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    line-height: 1.6;
    color: #333;
}

#home {
    background-color: #fefdfb;
    padding-top: clamp(20px, 5vw, 60px);
    padding-bottom: clamp(30px, 6vw, 80px);
}

img,
picture,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* playfair-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/playfair-v10-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* playfair-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/playfair-v10-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* playfair-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/playfair-v10-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-200 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/montserrat-v31-latin-200.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/montserrat-v31-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Cormorant Garamond (400/700) */
@font-face {
    font-display: swap;
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/cormorant-garamond-v21-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
    font-display: swap;
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ================================== Navigation Bar ================================== */

nav {
    padding-bottom: 0;
    background: none;
}

.centered-header {
    background-color: #fefdfb;
    padding-top: 20px;
    padding-left: clamp(8px, 3vw, 40px);
    padding-right: clamp(8px, 3vw, 40px);
    padding-bottom: 10px;
}

body.home-page nav {
    background-color: #fefdfb;
}

body.contact-page nav {
    background-color: white;
}

nav+section {
    padding-top: 0;
    margin-top: 0;
}

nav ul {
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    list-style: none;
}

nav .logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

nav .logo img {
    height: clamp(80px, 10vw, 110px);
    width: auto;
    margin: 0;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.56rem, 0.35rem + 0.6vw, 1.4rem);
    letter-spacing: clamp(0.2px, 0.1px + 0.15vw, 2px);
    line-height: 1.1;
    white-space: nowrap;
    color: black;
}

nav ul li:not(.logo):not(.contact-button) {
    margin: 0 20px;
}

nav ul li:not(.logo):not(.contact-button) a,
nav ul li:not(.logo):not(.contact-button) a:visited {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: black;
}

nav ul li:not(.logo):not(.contact-button) a:hover {
    text-decoration: underline;
}

nav .contact-button {
    margin-left: auto;
}

.cta,
.cta:visited {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: black;
    text-decoration: none;
}

.cta span,
.cta span:visited {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 7px;
    padding-right: 15px;
}

.cta svg {
    transform: translateX(-8px);
    transition: transform 0.3s ease;
}

.cta:hover svg {
    transform: translateX(0);
}

.cta:active svg {
    transform: scale(0.9);
}

/* ================================== Settings ================================== */

#contact {
    background-color: #fefdfb;
    width: 100%;
    color: black;
}

#about,
#services,
#references {
    background: white;
    color: black;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

p {
    font-size: 1rem;
}

/* ================================== Hero / Home ================================== */
#home {
    background-color: #fefdfb;
    padding: 60px 0;
}


.home-container {
    max-width: 1400px;
    background-color: transparent;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;

}

.home-pretitle {
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    font-size: clamp(0.95rem, 0.70rem + 0.80vw, 1.20rem);
    letter-spacing: clamp(0.6px, 0.10vw + 0.4px, 1.8px);
    text-transform: uppercase;
    color: #777;
    margin-bottom: 10px;
}

/* ================================== CSS für den Reveal-Effekt ================================== */
.reveal {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    margin-right: 0.5ch;
}

.reveal .inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal:nth-child(1) .inner {
    transition-delay: 0.2s;
}

.reveal:nth-child(2) .inner {
    transition-delay: 0.4s;
}

.reveal:nth-child(3) .inner {
    transition-delay: 0.6s;
}

.home-title.animate .reveal .inner {
    transform: translateY(0%);
}


.home-title {
    font-family: 'Cormorant Garamond', serif;
    text-align: left;
    font-weight: 700;
    font-size: clamp(2.25rem, 4vw + 1rem, 4.5rem);
    line-height: 1.1;
    white-space: normal;
}

.home-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    color: black;
    text-align: left;
    white-space: nowrap;
    width: min(90%, 460px);
    font-size: 1.5vw;
    line-height: 1.7;
    letter-spacing: 0.25px;
    margin-bottom: clamp(14px, 3vw, 22px);
    hyphens: auto;
}

/*--------------------------- JETZT KONTAKTIEREN------------------------*/
.home-cta,
.home-cta:visited {
    display: inline-flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: black;
    text-decoration: none;
    position: relative;
    padding-left: 35px;
    margin-top: clamp(12px, 3vh, 30px);
}

/* Kreis um "Jetzt kontaktieren" */
.home-cta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(calc(-54%)) scale(1);
    width: 65px;
    height: 65px;
    border: 0.5px solid black;
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    animation: pulseCircle 2.2s infinite ease-in-out;
}

.home-cta svg {
    margin-left: 10px;
    transform: translateX(-8px);
    transition: transform 0.3s ease;
}

.home-cta:hover svg {
    transform: translateX(0);
}

.home-cta:hover::before {
    border-color: #000;
}

@keyframes pulseCircle {
    0% {
        transform: translateY(-54%) scale(1);
    }

    50% {
        transform: translateY(-54%) scale(1.15);
    }

    100% {
        transform: translateY(-54%) scale(1);
    }
}

.hover-underline-animation {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
    padding-bottom: clamp(3px, 0.6vw, 6px);
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: clamp(1px, 0.4vw, 2px);
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease-out;
    border-radius: 2px;
}



/*------------------------------------------------*/

.home-desc-wrapper {
    display: block;
}

.home-desc-image {
    display: none;
}

.home-images {
    flex: 0 0 40%;
    position: static;
    margin-left: 0;
}

.home-images .img1 {
    position: relative;
    width: 100%;
    overflow: hidden; 
    margin-top: 40px;

}

.home-images img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ================================== Warum wir? ================================== */
.why-us {
    background: #fff;
    padding: 100px 20px;
}

.why-us__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.why-us__pretitle {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8B8B8B;
    margin-bottom: 1rem;
}

.why-us__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    color: black;
    margin-bottom: 1.5rem;
}

.why-us__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    line-height: 1, 6;
    color: #8B8B8B;
    max-width: 600px;
    margin: 0;
    text-align: left;
}

/* ================================== Services Banner ================================== */
.service-banner {
    overflow: hidden;
    background-color: white;
    padding: 12px 0;

}

.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.marquee span {
    font-family: 'Cormorant Garamond', serif;
    display: inline-block;
    flex-shrink: 0;
    animation: marqueeLoop 40s linear infinite;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-right: 3rem;
    letter-spacing: 0.05em;
    word-spacing: 1.5em;
    color: lightgrey;
}

/* Animation */
@keyframes marqueeLoop {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ========== Services Akkordeon ========== */
.services-hover {
    padding: 100px 20px;
    background: #fff;
}

/* Titel "UNSERE SERVICES" */
.services-hover__title {
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: black;
    line-height: 1.2;
}

/* 2-spaltiges Layout am Desktop:
   links Einleitung/CTA, rechts das Akkordeon */
.services-hover__layout {
    display: grid;
    grid-template-columns: 1fr 600px;   /* linke Spalte flexibel, rechte Spalte max 600px */
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-hover__intro p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
}

.services-hover__intro .home-cta {
    display: inline-block;
    margin-top: 1.5rem;
}

/* Akkordeon rechts */
.services-accordion {
    flex: 1;
    max-width: 600px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-accordion__item + .services-accordion__item {
    margin-top: 20px;
}

.services-accordion__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Icon oben rechts alignen */
    gap: 1rem;

    background: none;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    padding: 15px 0;

    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: black;
    cursor: pointer;
    text-align: left;          /* WICHTIG: Kein Zentrieren mehr */
    line-height: 1.4;
    white-space: normal;       /* darf umbrechen */
    word-break: break-word;    /* lange Wörter umbrechen */
}

.services-accordion__icon {
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s ease;
}

.services-accordion__item.open .services-accordion__icon {
    transform: rotate(180deg);
}

.services-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    border-bottom: 1px solid #E0E0E0;
}

.services-accordion__item.open .services-accordion__panel {
    max-height: 1000px;  /* deutlich höher, damit am Handy nichts abgeschnitten wird */
    padding: 15px 0;
}

.services-accordion__panel p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    word-break: break-word;
}

/* ========================= */
/*      RESPONSIVE PART      */
/* ========================= */

/* Tablet runter */
@media (max-width: 1024px) {

    .services-hover {
        padding: 60px 20px;
    }

    .services-hover__layout {
        grid-template-columns: 1fr;   /* nur 1 Spalte */
        max-width: 700px;             /* enger, besser lesbar */
        gap: 40px;
    }

    /* Reihenfolge: erst Akkordeon, dann Kontakt-CTA */
    .services-accordion {
        order: 1;
        max-width: 100%;
    }

    .services-hover__intro {
        order: 2;
    }
}

/* Handy */
@media (max-width: 600px) {

    .services-hover__title {
        padding: 0 10px;
        margin-bottom: 30px;
        text-align: left;
        font-size: clamp(1.6rem, 2.5vw, 2rem);
        letter-spacing: 1px;
        line-height: 1.3;
    }

    .services-hover__layout {
        padding: 0 10px;
        gap: 30px;
        max-width: 100%;
    }

    .services-accordion__btn {
        font-size: 1rem;
        letter-spacing: 1px;
        line-height: 1.4;
        padding: 12px 0;
    }

    .services-accordion__panel p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}


/* ========== Über mich ========== */
.about-me {
    padding: 100px 20px;
    background: #fff;
}

.about-me__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ● Bild */
.about-me__image {
    flex: 0 0 40%;
}

.about-me__image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ● Text */
.about-me__content {
    flex: 1;
    position: relative;
}

.about-me__pretitle {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #777;
    margin-bottom: 0.5rem;
}

.about-me__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    /* feines, gleich großes Schriftbild */
    font-size: clamp(1.5rem, 5vw, 3rem);
    letter-spacing: 1px;
    /* etwas enger als vorher */
    text-transform: none;
    margin-bottom: 20px;
    line-height: 1.1;
    white-space: normal;
}

.about-me__content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

/* ● Button */
.about-me__button {
    display: inline-flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    text-decoration: none;
    border: 1px solid #111;
    padding: 0.75rem 1.5rem;
    transition: background 0.3s, color 0.3s;
    margin-top: 1rem;
}

.about-me__button:hover {
    background: #111;
    color: #fff;
}

.about-me__button:hover::after {
    transform: translateX(4px);
}

/* ========== Footer ========== */

.footer {
    margin: clamp(30px, 5vw, 80px) 0 0 clamp(10px, 2vw, 30px);
    padding: clamp(20px, 4vw, 60px) clamp(15px, 3vw, 20px);
    background-color: #e8f1fb;
    border-radius: clamp(20px, 4vw, 40px) 0 0 0;
}

.footer__container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(20px, 5vw, 60px) clamp(15px, 3vw, 30px);
}

.footer__logo img {
    height: 60px;
    width: auto;
}

.footer__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #14284B;
    text-decoration: none;
    padding: 0;
}

.footer__cta-text {
    margin-right: 20px;
}

.footer__social {
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer__impressum_datenschutz {
    margin-top: 20px;
    text-decoration: none !important;
}

.footer__impressum_datenschutz,
.footer__impressum_datenschutz:focus {
    color: #14284B;
    text-decoration: none;
}

.footer__cta-circle {
    position: absolute;
    left: -40px;
    width: 50px;
    height: 50px;
    border: 1px solid #14284B;
    border-radius: 50%;
    box-sizing: border-box;
}

.footer__cta-arrow {
    margin-left: 10px;
    transform: translateX(-8px);
    transition: transform 0.3s ease;
}

.footer__cta:hover .footer__cta-arrow {
    transform: translateX(0);
}

.footer__social svg {
    width: 24px;
    height: 24px;
    stroke: #14284B;
    transition: stroke 0.3s ease;
}

.footer__social a:hover svg {
    stroke: #000;
}

.footer__bottom {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__copy {
    margin: 0;
}

.footer__nav {
    display: flex;
    gap: 20px;
    text-align: center;
}

.footer__nav a {
    color: #14284B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__nav a:hover {
    color: #000;
}

@media (max-width: 600px) {
    .footer__cta-circle {
        display: none;
    }

    .footer__cta-text {
        margin-left: 20px;
    }
}


/* ================================== Kontakt Seite ================================== */
#contact {
    background-color: white;
}

#contact .contact-container {
    max-width: 600px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px 20px;
}

#contact .contact-pretitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 10px;
}

#contact .contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    white-space: nowrap;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: black;
    text-decoration: none;
}

#contact .contact-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

#contact .contact-buttons {
    margin-top: 10px;
}

#contact .contact-card {
    margin-top: 20px;
}

.btn-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background-color: #003366;/ color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-transform: none;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-email svg {
    flex-shrink: 0;
}

.btn-email:hover {
    background-color: #002244;
}

body.contact-page .centered-header {
    background-color: white;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    margin-bottom: 200px;
    max-width: 800px;
    padding: 0 1rem;
}


.contact-card {
    text-decoration: none;
    color: inherit;
}

.contact-card--dark a {
    text-decoration: none;
    border-bottom: none;
}

.contact-card--dark a:hover {
    text-decoration: none;
}

.contact-card--dark {
    flex: 0 1 320px;
    max-width: 320px;
    background-color: rgba(20, 40, 75, 0.05);
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.contact-card__link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: #14284B;
}

.contact-card__label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #14284B;
    margin-bottom: 0.25rem;
}


.contact-card__value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #14284B;
    word-break: break-all;
}

/* ================================== Impressum ================================== */

/* ==================================
   Impressum / Rechtliches
================================== */

body.legal-page nav {
    background-color: white;
}

.legal-page {
    background: #fff;
    color: black;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}

/* ==================
   Headlines
================== */

.legal-page h1,
.legal-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    color: black;
    text-align: left;
    font-weight: 700;
    font-size: clamp(2rem, 1.2vw + 1.5rem, 3rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.legal-page h2 {
    font-family: 'Cormorant Garamond', serif;
    color: black;
    text-align: left;
    font-weight: 700;
    font-size: clamp(1.3rem, 0.6vw + 1rem, 2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.legal-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #444;
    opacity: .8;
    margin-bottom: 2rem;
}

/* ==================
   Wrapper / Layout
================== */

.impressum {
    max-width: 900px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    /* bewusst leicht links positioniert */
    margin-left: 3rem;
    margin-right: auto;
    padding-left: 0;
    padding-right: 2rem;
}

.legal-section {
    margin: 2.5rem 0;
}

/* ==================
   Definition Lists
================== */

.legal-dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 1.25rem;
    row-gap: .5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.legal-dl > div {
    display: contents;
}

.legal-dl dt {
    font-weight: 600;
    color: black;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.legal-dl dd {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #222;
    word-break: break-word;
}

/* ==================
   Standardtext
================== */

.legal-section p,
.legal-section li {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
    max-width: 70ch;
}

.legal-section a {
    color: black;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.legal-meta {
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #555;
}

/* ==================
   Responsive
================== */

@media (max-width: 1024px) {
    .impressum {
        margin-left: 2rem;
        margin-right: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 720px) {
    .impressum {
        margin-left: 1rem;
        margin-right: 1rem;
        padding-right: 0.5rem;
    }

    .legal-dl {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }

    .legal-dl dt {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .legal-dl dd {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .legal-section {
        margin: 2rem 0;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .legal-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .impressum {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .legal-page h1,
    .legal-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2rem);
    }

    .legal-page h2 {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }
}



/* ================================== Datenschutz  ================================== */

    .legal-page { background: #fff; color: #0b1220; }
    .datenschutz { max-width: 1000px; margin: 4rem auto; padding: 0 1.25rem; }
    .legal-hero h1 { font-size: clamp(2rem, 2.8vw, 3rem); margin-bottom: .25rem; }
    .legal-section { margin: 2.5rem 0; }
    .legal-list { list-style: disc; padding-left: 1.25rem; }
    @media (max-width: 720px) { .datenschutz { padding: 0 1rem; } }



/* ===== Tablet (bis 1024px) ===== */
@media (max-width: 1024px) {

    nav ul {
        justify-content: flex-start;
    }

    /* Navigation umbruch */

    nav .logo img {
        height: 120px;
    }

    nav ul li:not(.logo):not(.contact-button) {
        margin: 8px 12px;
    }

    /* Hero: Container spaltenweise */
    .home-container {
        flex-direction: column;
        /* Bild unter Text */
        align-items: flex-start;
        /* Text bleibt links */
        padding: 0 20px;
        /* Links/Rechts Abstände einfügen */
        gap: 30px;
    }

    .home-text {
        width: 100%;
        /* Textblock über volle Breite */
        max-width: 100%;
        /* keine abgeschnittenen Wörter */
        z-index: 2;
    }

    .home-pretitle {
        font-size: 0.85rem;
    }



    .home-images {
         flex: 0 0 40%;
    position: relative;
    margin-left: 0;
    z-index: 1;
    max-width: 480px;         /* harte Obergrenze damit es nicht zu fett wird */
    pointer-events: none; 
    }

    /* Why Us & Services Akkordeon */
    .why-us__title,
    .services-hover__title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .services-hover__layout {
        grid-template-columns: 1fr;
    }

    /* About Me */
    .about-me__inner {
        flex-direction: column;
        padding: 40px 20px;
    }

    .about-me__image {
        width: 60%;
        margin-bottom: 20px;
    }

    .about-me__content {
        width: 90%;
    }
}

/* ===== Smartphone (bis 768px) ===== */
@media (max-width: 767px) {

    nav .logo img {
        height: clamp(80px, 8vw, 90px);
        /* deutlich kleiner */
    }

    .centered-header {
        background-color: #fefdfb;
        padding-top: 20px;
        padding-left: clamp(8px, 3vw, 40px);
        padding-right: clamp(8px, 3vw, 40px);
    }


    nav {
        padding-top: 5px;
    }

    nav ul {
        flex-wrap: wrap;
    }

    /* Nav-Button */
    .contact-button {
        display: none !important;
    }

    /* Container nebeneinander für Text + kleines Bild */
    .home-container {
        flex-direction: row;
        /* Text links, Bild rechts */
        align-items: flex-start;
        /* oben bündig */
        justify-content: space-between;
        gap: 20px;
    }

    .home-title {
        white-space: nowrap;
        /* kein Zeilenumbruch */

        text-overflow: ellipsis;
        /* optional: … am Ende */
        width: auto;
        /* Breite nicht begrenzen */
        max-width: none;
        /* Begrenzung komplett ausschalten */
    }

    .home-text {
        flex: 1;
    }

    .home-desc-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 25px;

    }

    .home-desc-image {
        display: block;
        flex: 0 0 150px;
        margin-top: 25px;
    }

    .home-desc-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .home-desc {
        flex: 1;
        margin: 0;
        font-size: clamp(1rem, 4vw, 1.25rem);
        line-height: 1.6;
    }

    .home-images {
        display: none;
        /* großes Bild ausblenden */
    }

    .contact-grid {
        flex-direction: column;
        /* statt nebeneinander */
        align-items: stretch;
        /* volle Breite nutzen */
        gap: 1rem;
        /* Abstand zwischen den Cards */
    }

    .contact-card--dark {
        flex: 1 1 100%;
        /* darf wachsen und volle Breite nehmen */
        max-width: 100%;
        /* Begrenzung aufheben */
        width: 100%;
        /* volle Breite erzwingen */
    }

    .services-hover__layout {
        display: flex;
        flex-direction: column;
    }

    .services-hover__intro {
        order: 2;
        /* Intro inkl. Button nach unten */
    }

    .services-accordion {
        order: 1;
        /* Accordion nach oben */
    }

    .marquee span {
        font-size: clamp(0.3rem, 6vw, 0.5rem);
        /* kleiner als Desktop */
    }

    .about-me__inner {
        padding: 0;
        margin: 0 auto;
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        /* Inhalte untereinander */
        align-items: center;
        /* alles mittig */
        text-align: center;
        /* Text zentrieren */
        gap: 0;
    }

    .about-me__pretitle {
        order: 1;
    }

    .about-me__title {
        order: 2;
    }

    /* Bild direkt nach dem Titel */
    .about-me__image {
        order: 3;
        width: 100%;
        max-width: 350px;
        margin: 0 0 20px 0;
        align-self: center;
        /* mittig */
    }

    /* Text + Button nach dem Bild */
    .about-me__content {
        display: contents;
        /* Kinder direkt als Flex-Items */
        text-align: center;
        /* zentrierter Text */
    }

    .about-me__content p,
    .about-me__button {
        order: 4;
    }
}


@media (min-width: 769px) {
    .home-desc br {
        display: none;
    }
}

/* ===== iPad & Tablets: wie Laptop behalten ===== */
@media (min-width: 767px) and (max-width: 1024px) {
    .home-container {
        flex-direction: row !important;
        /* Text links, Bild rechts */
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        margin-top: -50px;
        /* rutscht den ganzen Block nach oben */
        position: relative;
        z-index: 2;
        /* bleibt über dem Hintergrund */
        /* wie Desktop */
    }

    nav .logo img {
        height: clamp(100px, 12vw, 110px) !important;
        /* größeres Logo */
        width: auto;
    }

    .home-text {
        flex: 1 1 auto;
        /* darf wachsen UND schrumpfen */
        min-width: 0 !important;
        /* wichtig für Flexbox, verhindert Zwangsumbruch */
        max-width: 60% !important;
        /* etwas Spielraum geben */
    }

    .home-title {
        white-space: nowrap !important;
        /* kein Zeilenumbruch */
        text-overflow: ellipsis;
        /* optional: … am Ende */
        width: auto;
        /* Breite nicht begrenzen */
        max-width: none;
        /* Begrenzung komplett ausschalten */
    }

    .home-desc {
        width: 100%;
        /* volle Breite nutzen */
        max-width: none;
        /* keine künstliche Begrenzung */
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    .home-images {
        flex: 0 0 35%;
        /* Bild auf ~1/3 reduzieren */
        max-width: 400px;
    }


}


@media (min-width: 1025px) {
    nav .logo img {
        height: clamp(100px, 12vw, 130px) !important;
        /* größeres Logo */
        width: auto;
    }

    .home-container {
        margin-top: -120px;
        /* rutscht den ganzen Block nach oben */
        position: relative;
        z-index: 2;
        /* bleibt über dem Hintergrund */
    }
}