/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100..900&family=Montserrat+Alternates:wght@600;700;800&display=swap');

/* variables */
:root {
    /* colors */
    --hue: 165;
    --first-color: hsl(var(--hue), 60%, 40%);
    --first-color-hover: hsl(var(--hue), 60%, 45%);
    --title-color: hsl(var(--hue), 4%, 12%);
    --text-color: hsl(var(--hue), 4%, 20%);
    --body-color: hsl(var(--hue), 30%, 92%);
    --container-color: hsl(0, 0%, 100%);
    --border-color: hsl(var(--hue), 4%, 16%);
    --white-color: hsl(0, 0%, 100%);
    --shadow-color: hsla(var(--hue), 80%, 10%, 0.2);
    --error-color: hsl(0, 75%, 50%);
    --toggle-inactive-color: hsl(var(--hue), 10%, 70%);

    /* font family */
    --body-font: 'Jost', sans-serif;
    --second-font: 'Monserrat Alternates', sans-serif;

    /* font size */
    --base-font-size: 1rem; /* Standard-Basisschriftgröße, falls keine Klasse gesetzt ist */
    --big-font-size: calc(var(--base-font-size) * 5.5);
    --h1-font-size: calc(var(--base-font-size) * 2.75);
    --h2-font-size: calc(var(--base-font-size) * 1.75);
    --h3-font-size: calc(var(--base-font-size) * 1.375);
    --h4-font-size: calc(var(--base-font-size) * 1.125);
    --large-font-size: calc(var(--base-font-size) * 1.25);
    --normal-font-size: var(--base-font-size); /* Dies ist jetzt direkt die Basis */
    --small-font-size: calc(var(--base-font-size) * 0.813);
    --smaller-font-size: calc(var(--base-font-size) * 0.75);
    /*
    --big-font-size: 5.5rem;
    --h1-font-size: 2.75rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.375rem;
    --h4-font-size: 1.125rem;
    --large-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
    */

    /* Font weight */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --font-black: 800;

    /* Z-index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 100;
}

/* Responsive typography */
@media screen and (max-width: 1024px) {
    :root {
    --big-font-size: calc(var(--base-font-size) * 3);
    --h1-font-size: calc(var(--base-font-size) * 2);
    --h2-font-size: calc(var(--base-font-size) * 1.25);
    --h3-font-size: calc(var(--base-font-size) * 1.125);
    --large-font-size: calc(var(--base-font-size) * 1.125);
    --normal-font-size: var(--base-font-size);
    --small-font-size: calc(var(--base-font-size) * 0.938);
    --smaller-font-size: calc(var(--base-font-size) * 0.812);
    }
}

/* Dark theme */
.dark {
    --title-color: hsl(0, 0%, 100%);
    --text-color: hsl(0, 0%, 92%);
    --body-color: hsl(var(--hue), 10%, 8%);
    --container-color: hsl(var(--hue), 10%, 16%);
    --border-color: hsl(var(--hue), 4%, 65%);
    --shadow-color: hsla(var(--hue), 0%, 100%, 0.2);
}

.dark .shape {
    filter: invert(1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--hue), 20%, 65%) hsl(var(--hue), 20%, 85%);
}

body,
button,
input,
textarea {
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-family: var(--second-font);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    border: none;
    outline: none;
    background-color: transparent;
}

/* reusable css classes */
.social-links {
    display: inline-flex;
    column-gap: 1.25rem;
}

.social-link {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    transition: color 0.7s var(--transition);
}

.social-link:hover {
    color: var(--first-color);
}

.section {
    padding-block: 7rem 3.5rem;
}

.btn,
.home-link {
    display: inline-block;
    color: var(--title-color);
    font-size: var(--small-font-size); 
    font-weight: var(--font-bold);
    position: relative;
} 

.btn {
    border: 2px solid var(--border-color);
    box-shadow: 4px 4px var(--shadow-color);
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    transition: color 0.7s var(--transition);
    z-index: 1;
}

.btn:hover {
    color: var(--white-color);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--first-color);
    border-radius: inherit;
    transform: scale(0.3);
    filter: blur(10px);
    opacity: 0;
    z-index: -10;
    transition: all 0.7s var(--transition);
}

.btn:hover::before {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
}

.section-title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: attr(data-title);
    display: block;
    color: var(--first-color);
    font-family: var(--body-font);
    font-size: var(--large-font-size);
}

.link {
    display: inline-flex;
    align-items: center;
    column-gap: 1.25rem;
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.link-icon {
    color: var(--first-color);
    font-size: 1.25rem;
    transition: transform 0.3s var(--transition);
}

.link:hover .link-icon {
    transform: translateX(-0.5rem);
}

.section-deco {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    z-index: 1;
}

.deco-left {
    left: -72px;
}

.deco-right {
    right: -72px;
}

.section-deco::before,
.section-deco::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--container-color);
    border: 2px solid var(--border-color);
    box-shadow: 4px 4px var(--shadow-color);
}

.section-deco::before {
    top: 0;
    transform: translate(-50%, -100%);
}

.section-deco::after {
    bottom: 0;
    transform: translate(-50%, 100%);
}

.section-deco .shape {
    max-width: 226px;
    height: 226px;
    bottom: -206px;
}

.deco-left .shape {
    left: -166px;
}

.deco-right .shape {
    right: -166px;
}

/* layout */
.container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
}

.container:not(.nav, .home-container) {
    padding-block: 3.75rem;
} 

.grid {
    display: grid;
}

/* Header & Nav*/
.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    max-width: 1540px;
}

.nav-logo,
.nav-link {
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.nav-logo {
    font-family: var(--second-font);
    font-size: var(--h3-font-size);
}

.nav-buttons {
    display: flex;
    align-items: center;
    column-gap: 1.75rem;
}

.nav-settings,
.nav-toggle {
    cursor: pointer;
}

.nav-settings {
    font-size: 1.5rem;
}

.nav-toggle {
    width: 28px;
    height: 28px;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--title-color);
    position: absolute;
    left: 0;
    transition: all 0.7s var(--transition);
}

.nav-toggle::before {
    top: 7px;
}

.nav-toggle::after {
    bottom: 7px;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--container-color);
    width: 512px;
    height: 100%;
    padding: 9rem 0 0 9.5rem;
    transition: right 1s var(--transition);
    overflow: hidden;
}

.nav-list {
    margin-bottom: 2.5rem;
}

.nav-item {
    margin-bottom: 1.25rem;
}

.nav-link {
    font-size: var(--larger-font-size);
    transition: color 0.3s var(--transition);
}

.nav-link:hover {
    color: var(--first-color);
}

.shape {
    position: absolute;
    z-index: -10;
}

.header-deco {
    height: 70%;
    top: 128px;
    left: 75px;
}

.header-deco .shape {
    top: -210px;
    left: -168px;
}

.show-menu {
    right: 0;
}

.animate-toggle::before {
    transform: rotate(45deg);
    top: 14px;
}

.animate-toggle::after {
    transform: rotate(-45deg);
    top: 12px;
}

/* active link*/
.active-link {
    color: var(--first-color);
}

/* change background header */
.bg-header {
    background-color: var(--container-color);
}

/* main */
.main {
    padding-top: 65px;
    overflow: hidden;
}

/* ============ footer styles ============ */
.footer {
    border-top: 1px solid var(--shadow-color);
    background-color: var(--container-color);
    padding-block: 2rem;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: var(--small-font-size);
    font-weight: var(--font-bold);
}

.footer-copyright span {
    color: var(--first-color);
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--small-font-size);
}

.footer .footer-socials a {
    font-size: var(--h2-font-size);
}

.footer a:hover {
    cursor: pointer;
    color: var(--first-color);
    transition: color 0.3s var(--transition);
}

.footer .active-color {
    color: var(--first-color);
}

.footer-copyright ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

/* style switcher */
.style-switcher {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100%;
    background-color: var(--container-color);
    padding: 5rem 0 0 3.5rem;
    z-index: 1000;
    transition: right 1s var(--transition);
}

.style-switcher-title {
    font-size: var(--h3-font-size);
    padding-bottom: 1.25rem;
}

.style-switcher-title,
.style-switcher-item {
    border-bottom: 1px solid var(--shadow-color);
}

.style-switcher-item {
    padding-block: 1rem;
}

.style-switcher-subtitle {
    font-size: var(--large-font-size);
    margin-bottom: 1rem;
}

.style-switcher-colors {
    display: flex;
    column-gap: 0.5rem;
}

.style-switcher-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: hsl(var(--hue), 60%, 40%);
    position: relative;
}

.style-switcher-color i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white-color);
    font-size: 1.25rem;
    display: none;
}

.active-color i {
    display: block;
}

.style-switcher-themes,
.style-switcher-theme {
    display: flex;
}

.style-switcher-themes {
    column-gap: 1.25rem;
}

.style-switcher-theme {
    column-gap: 0.5rem;
}

.style-switcher-input {
    accent-color: var(--first-color);
}

.style-switcher-label {
    color: var(--title-color);
}

.style-switcher-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.show-switcher {
    right: 0;
}

/* Cookie Banner Styles (Popup-Design) */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dunkle, transparente Überlagerung */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0; /* Startet unsichtbar */
    visibility: hidden; /* Versteckt das Element vollständig */
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.cookie-banner.show {
    opacity: 1; /* Blendet das Popup ein */
    visibility: visible; /* Macht das Element sichtbar */
}

.cookie-banner-content {
    background-color: var(--container-color);
    color: var(--text-color);
    padding: 2.5rem; /* Mehr Polsterung für Popup-Look */
    border-radius: 1.25rem; /* Abgerundete Ecken */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); /* Tieferer Schatten */
    max-width: 500px; /* Maximale Breite des Popups */
    width: 90%; /* Responsive Breite */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Abstand zwischen Elementen im Popup */
    transform: translateY(20px); /* Leichte Startposition für Animation */
    transition: transform 0.5s ease-out;
}

.cookie-banner.show .cookie-banner-content {
    transform: translateY(0); /* Bewegt sich in die Endposition */
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-policy-link {
    color: var(--first-color);
    text-decoration: underline;
    font-weight: var(--font-semi-bold);
}

.cookie-policy-link:hover {
    text-decoration: none;
}

.cookie-banner-title {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: 1rem;
    display: flex; /* Wichtig für die Ausrichtung von Icon und Text */
    align-items: center; /* Zentriert Icon und Text vertikal */
    justify-content: center;
    gap: 0.75rem;
}

.cookie-banner-title .cookie-title-icon {
    font-size: 1.8rem; /* Icon etwas größer machen für bessere Sichtbarkeit */
    font-weight: var(--font-medium);
    color: var(--first-color);
}

/* for large devices */
@media screen and (max-width: 1200px) {
    .section-deco:not(.header-deco) {
        display: none;
    }

    .home-banner {
        position: relative;
        right: initial;
        top: initial;
        transform: translateY(0);
        width: max-content;
    }

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

    .home-banner,
    .home-description,
    .home-socials,
    .home-btns {
        margin-inline: auto;
    }

    .home-banner {
        margin-block: 2.5rem;
    }

    .home-data {
        transform: scale(0.9);
    }

    .home-btns {
        flex-direction: column;
    }

    .home-link::before {
        top: -3rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 40px;
    }

    .services-swiper {
        max-width: 900px;
    }

    .swiper-pagination-bullets::before {
        width: 90px;
    }
}

@media screen and (max-width: 1024px) {
    .nav {
        height: 4rem;
    }

    .section {
        padding-block: 6rem 1rem;
    }

    .home-container {
        padding-block: 2rem;
    }

    .home-title {
        text-shadow: 2px 2px var(--shadow-color);
    }

    .home-data {
        transform: scale(0.8);
    }

    .swiper-pagination-bullets::before {
        top: 11.5px;
    }
}

/* for medium devices*/
@media screen and (max-width: 768px) {
    .nav-menu,
    .style-switcher {
        width: 100%;
    }

    .nav-buttons {
        column-gap: 1.5rem;
    }

    .home-data {
        transform: scale(0.7);
    }

    .services-swiper {
        max-width: 420px;
    }

    .swiper-pagination-bullets::before {
        width: 120px;
    }

    .footer-container {
        flex-direction: column;
        row-gap: 1.25rem;
    }

    .footer-copyright ul {
        text-align: center;
    }

    .imprint {
        padding-left: 5%;
        padding-right: 5%;
    }

    .datenschutz {
        padding-inline: 1.25rem;
    }
    .datenschutz h1 {
        font-size: 2rem;
    }
    .datenschutz h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding-inline: 1.25rem;
    }

    .imprint {
        padding-inline: 1.25rem;
    }

    .nav-buttons {
        column-gap: 1.25rem;
    }

    .nav-menu {
        padding-left: 7rem;
    }

    .header-deco {
        left: 56px;
    }

    .home-data {
        transform: scale(0.6);
    }   

    .cookie-banner-content {
        padding: 1.5rem;
    }
    .cookie-banner-title {
        font-size: var(--h3-font-size);
        gap: 0.5rem;
    }
    .cookie-banner-title .cookie-title-icon {
        font-size: 2.2rem; /* Icongröße auf kleinen Bildschirmen anpassen */
    }
}

/* for small devices */
@media screen and (max-width: 400px) {
    .nav-menu {
        padding-left: 6rem;
    }

    .header-deco {
        left: 40px;
    }

    .home-banner,
    .home-img-wrapper {
        width: 100%;
    }

    .home-data {
        transform: scale(0.5);
    }

    .card {
        padding-inline: 2rem;
    }
}