html {
    scroll-behavior: smooth;      /* optional: sanftes Scrollen */
    scroll-padding-top: 50px;
}

:root{
    /* Primary brand colors */
    --brand-dark: #00305b;        /* main dark blue used for headers, footer */
    --brand-variant: #04335d;     /* slightly different dark blue */
    --brand-600: #1d395b;         /* mid dark blue (kontakt text) */

    /* Accent colors */
    --accent: #41b7c4;            /* teal/aqua accent */
    --accent-2: #377dbd;          /* button blue */
    --nav-link: #074072;          /* nav link blue */

    /* Background / surfaces */
    --bg-muted: #eaf4f6;          /* pale blue background */
    --bg-pale: #d8eef2;           /* very pale cyan card */
    --bg-lighter: #f0f7f9;        /* subtle lighter background */
    --surface: #ffffff;           /* white */
    --surface-100: #fafafa;       /* very light surface */

    /* Muted / neutral */
    --neutral-900: #000000;       /* black */
    --neutral-800: #333333;       /* dark gray used for bars */
    --neutral-500: #979797;       /* medium gray (rgb(151,151,151)) */
    --neutral-700: #818181;       /* hover gray */

    /* Special */
    --overlay-strong: rgba(0, 16, 51, 0.9); /* overlay with opacity */
    --blue-box-bg: rgba(7, 38, 105, 0.581); /* translucent blue box */
    --download-bg: #b1d4f5;       /* download button bg */
    --kosten-bg: #597894;         /* kosten section background */
    --box-shadow-color: #f0f7f9;  /* box-shadow color */
    --link: #34649e;              /* kontakt link color */
    --on-primary: #ffffff;        /* text on dark backgrounds */
}

body{
    margin: 0;
    font-family: Arial,Helvetica,sans-serif;
}

ul{
    list-style: square;
    color: var(--accent);
}

a, a:visited, a:hover, a:active {
    text-decoration: none !important;
}

svg{
    top: 10px;
    left: 10px;
    position: absolute;
    width: 33px;
    height: 30px;
    fill: var(--on-primary);
}

nav{
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100;
    height: 50px;
    background-color: var(--surface);
    display: flex;
    flex-wrap: wrap;
    border-bottom: var(--neutral-900) 1px solid;
}

nav .logo{
    padding: 2px;
    width: 60px;
    height: auto;
    margin-left: 20px;
}

nav .logo img{
    width: 100%;
    height: auto;
}

/*Elternelement der Hamburgerstreifen*/
/* - sorgt für die Darstellung untereinander*/
#hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer; /*Hinweis, dass klickbar*/
    padding: 10px;
    right: 20px;
    top: 0;
    position: absolute;
}

/*Hamburgerstreifen jeder einzeln als span*/
.bar {
    height: 3px;
    width: 25px;
    background-color: var(--neutral-800);
    margin: 3px 0;
    transition: 0.3s;
}

.overlay {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */   
  height: 100%;
  width: 0;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  right: 0;
  top: 0;
    background-color: var(--overlay-strong); /* overlay */
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 25%; /* 25% from the top */
  width: 100%; /* 100% width */
  text-align: center; /* Centered text/links */
  margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 8px;
  text-decoration: none;
    font-size: 38px;
    color: var(--surface);
  display: block; /* Display block instead of inline */
  transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
    color: var(--neutral-700);
}

/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
    font-size: 62px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

header{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

header .haus_mobile img{
    width: 100%;
    height: auto;
}

.haus_pc img{
    display: none;
}

.blue_box{
    position: absolute;
    top: 20%;
    left: 7%;
    height: 70%;
    background-color: var(--blue-box-bg);
    width: 86%;
}

.blue_box div{
    color: var(--on-primary);
    margin-left: 10px;
    position: absolute;
    font-size: 27px;
}

.blue_box_1{
    top: 10px;
}

.blue_box_2{
    top: 50%;
    transform: translateY(-50%);
}

.blue_box_3{
    bottom: 10px;
}

#start{
    width: 90%;
    background-color: var(--bg-muted);
    margin: 10px auto 0 auto;
}

#start p{
    margin: 10px;
    padding-top: 10px;
    font-size: 27px;
    color: var(--brand-dark);
}

#start p+p{
    margin: 10px;
    margin-bottom: 20px;
    font-size: 19px;
}

#start a{
    padding: 8px 15px 8px 15px;
    margin-left: 15px;
    background-color: var(--accent-2);
    color: var(--on-primary);
    font-size: 15px;
    border-radius: 2px;
}

.start_bild{
    margin-top: 30px;
    width: 100%;
}

.start_bild img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#leistungen{
    color: var(--brand-dark);
    margin-top: 30px;
    padding-top: 15px;
    padding-bottom: 20px;
    background-color: var(--surface-100);
    font-size: 18px;
}

#leistungen a{
    color: var(--brand-dark);
}

#leistungen .unterseiten p{
    color: var(--brand-dark);
    margin: 5px;
}

.ehyp{
    background-color: var(--bg-muted);
    width: 90%;
    margin: auto;
    padding-bottom: 10px;
    position: relative;
}

.ehyp h2{
    padding-top: 15px;
    margin-left: 45px;
    font-size: 32px;
}

.unterseiten ul{
    margin-bottom: 0;
    max-width: fit-content;
}

.ehyp p{
    display: block;
    margin-left: 10px;
}

#philosophie{
    background-color: var(--brand-dark);
    color: var(--on-primary);
    padding-bottom: 15px;
}

#philosophie h1{
    margin-left: 10px;
}

.philosophie_text{
    margin: 15px;
}

.philosophie_text h1{
    text-align: center;
    font-weight: 300;
}

.philosophie_text h4{
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 5px;
}

.philosophie_text p{
    font-size: 17px;
    margin-top: 0px;
}

.philosophie_bild{
    overflow: hidden;
}

.philosophie_bild_mobile img{
    height: auto;
    width: 100%;
}


.philosophie_bild_pc, .philosophie_bild_tablet{
    display: none;
}

#referenzen{
    width: 90%;
    margin: auto;
    position: relative;
    color: var(--brand-variant);
}

#referenzen h1{
    margin-left: 55px;
    padding-top: 10px;
    font-size: 32px;
    font-weight: 300;
    color: var(--brand-dark);
}

#referenzen svg{
    position: absolute;
    fill: var(--bg-muted);
    width: 40px;
    height: 40px;
    left: 10px;
    top: 10px;
}

.referenzen_text{
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    font-size: 17px;
    margin-bottom: 50px;
}

.referenzen_text p{
    margin: 0;
}

.referenz_1, .referenz_3{
    margin: auto;
    background-color: var(--bg-pale);
    padding: 15px;
    box-shadow: var(--box-shadow-color) 10px 10px 0px 2px;
    max-width: 300px;
    margin-bottom: 30px;
}

.referenz_2{
    margin: auto;
    background-color: var(--bg-pale);
    padding: 15px;
    box-shadow: var(--box-shadow-color) 10px 10px 0px 2px;
    max-width: 300px;
    margin-bottom: 30px;
}

.referenz_2 .linie{
    margin-top: 15px;
}

#more{
    display: none;
}

#more1{
    display: none;
}

.referenzen_text button{
    background-color: transparent;
    color: var(--neutral-500);
    border: none;
    padding: 0;
    margin-bottom: 10px;
    cursor: pointer;
}

.linie{
    border-bottom: 1px solid var(--neutral-900);
    margin-top: 5px;
    margin-bottom: 10px;
}

/* --- CSS-only infinite horizontal marquee (seamless) --- */
.marquee {
    /* variable Geschwindigkeit: größer = langsamer und flüssiger */
    --marquee-duration: 34s;

    width: 100%;
    overflow: hidden;

    /* Hilft beim Erzwingen von GPU-Rendering */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.marquee .track {
    display: flex;
    align-items: center;

    /* use the CSS variable so du kannst die Dauer einfach anpassen */
    animation: marquee var(--marquee-duration) linear infinite;
    will-change: transform;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
}

/* Pause on hover / focus (accessibility) */
.marquee .track:hover,
.marquee .track:focus-within {
    animation-play-state: paused;
}

/* .inner und cards */
.marquee .inner {
    display: flex;
    min-width: max-content; /* verhindert Zeilenumbruch / Layout-Shift */
}

.marquee .card {
    flex: 0 0 auto;
    height: 150px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.marquee .card img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    image-rendering: auto;
}

/* Keyframes mit translate3d für glatte Hardware-Acceleration */
@keyframes marquee {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(-50%,0,0); } /* track ist doppelt angelegt */
}

/* reduced motion beachten */
@media (prefers-reduced-motion: reduce) {
    .marquee .track { animation: none; }
}

/* Mobile: langsamer, damit es ruhiger wirkt */
@media (max-width: 699px) {
    .marquee { --marquee-duration: 30s; }
}

#kosten{
    width: 90%;
    background-color: var(--kosten-bg);
    margin: auto;
    color: var(--on-primary);
    position: relative;
}

#kosten h1{
    margin-left: 45px;
    padding-top: 10px;
    font-size: 30px;
    font-weight: 300;
}

#kosten p{
    margin: 15px;
    padding-bottom: 15px;
    font-size: 18px;
}


#qualifikationen{
    width: 90%;
    margin: auto;
    position: relative;
}

#qualifikationen h1{
    margin-left: 45px;
    padding-top: 10px;
    font-size: 30px;
    font-weight: 300;
}

#qualifikationen svg{
    fill: var(--bg-muted);
}

#qualifikationen p{
    position: relative;
    margin-left: 30px;
    color: var(--brand-variant);
    font-size: 18px;
}

#qualifikationen p svg{
    position: absolute;
    fill: var(--accent);
    width: 10px;
    height: auto;
    left: -20px;
    top: 5px;
}

#qualifikationen .einrücken p{
    margin-top: -13px;
}

#kontakt{
    background-color: var(--surface-100);
    padding: 15px;
    position: relative;
    text-align: center;
    color: var(--brand-600);
    font-size: 18px;
}

#kontakt a{
    color: var(--link);
    text-decoration: underline;
}

.download{
    display: inline-block;
    padding: 5px 10px 5px 8px;
    border-radius: 2px;
    background-color: var(--download-bg);
    font-size: 15px;
}

footer{
    position: relative;
    background-color: var(--brand-dark);
    color: var(--on-primary);
    padding: 10px 10px 10px 10px;
}

footer h2{
    margin: 0;
    font-size: 22px;
    text-align: center;
}

footer a{
    color: var(--on-primary);
    font-weight: 600;
}

footer p{
    margin: 5px;
    font-size: 15px;
}

footer h3{
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 500;
    font-size: 18px;
}

#impressum_logo img{
    width: 100%;
    height: 100%;
    box-shadow: var(--neutral-900) 5px 5px 5px 0px;
}

#impressum_logo{
    max-width: 150px;
    margin-top: 10px;
    position: absolute;
    top: 50px;
    right: 10%;
}

@media screen and (min-width: 500px) {

    .blue_box div{
        font-size: 32px;
    }

    .blue_box_1{
        top:20px;
    }
    
    .blue_box_3{
        bottom: 20px;
    }

    #leistungen{
        font-size: 22px;
    }

    #leistungen ul, .ehyp p{
        margin-left: 20px;
    }

    #leistungen ul li{
        margin-bottom: 10px;
    }

    .ehyp h2{
        margin-left: 60px;
    }

    .ehyp svg{
        width: 50px;
        height: 50px;
    }

    .unterseiten ul{
        position: relative;
        left: 50px;
    }

    #qualifikationen p{
        font-size: 20px;
    }

    #qualifikationen svg{
        width: 40px;
        height: 40px;
    }
}

@media screen and (min-width: 700px) {
nav span{
    display: none;
}

#myNav{
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    background-color: transparent;
    overflow: visible;
    transition: none;
}

nav .overlay-content{
    width: 100%;
    top: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    margin: 0;
}

nav .overlay a{
    font-size: 18px;
    padding: 0 15px 0 5px;
        color: var(--nav-link);
    display: inline;
}

nav .overlay-content a:hover{
    color: var(--accent);
}

nav #myNav .closebtn{
    display: none;
}

.haus_mobile img{
    display: none;
}

.haus_pc img{
    display: block;
    width: 100%;
    height: auto;
}

.blue_box{
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
}

.blue_box div{
    margin-right: 50px;
}

.blue_box_1{
    top:40px;
    right: 20px;
}

.blue_box_2{
    right: 20px;
}

.blue_box_3{
    bottom: 40px;
    right: 20px;
}

#start{
    display: grid;
    grid-template-columns: auto 250px;
}

#start .start_bild{
    margin: 0;
}

#start p{
    font-size: 30px;
}

#start p+p{
    font-size: 18px;
}

.start_text{
    padding-bottom: 13px;
}

#leistungen .ehyp{
    display: flex;
    flex-wrap: wrap;
}

.ehyp h2{
    margin-top: 15px;
    padding-top: 0;
    width: 100%;
}

.ehyp_links_1{
    width: 50%;
}

.ehyp_links_2{
    width: 50%;
}

.philosophie_bild_tablet{
    display: block;
    width: 100%;
    height: auto;
}

.philosophie_bild_tablet img{
    width: 100%;
    height: auto;
}

.philosophie_bild_mobile{
    display: none;
}

#philosophie h1{
    font-size: 30px;
}

#philosophie p{
    font-size: 18px;
}

#philosophie h4{
    font-size: 25px;
}

#kosten h1{
    padding-top: 15px;
    font-size: 30px;
    margin-left: 60px;
}

#kosten p{
    font-size: 18px;
}

#kosten svg{
    color: var(--on-primary);
    width: 43px;
    height: 40px;
}

#qualifikationen h1{
    padding-top: 15px;
    margin-left: 60px;
    font-size: 30px;
}

#qualifikationen p{
    font-size: 20px;
}

#qualifikationen svg{
    width: 43px;
    height: 40px;
}

#kontakt h2{
    font-size: 30px;
}

#kontakt{
    font-size: 18px;
}

#impressum_logo{
    max-width: 200px;
    top: 50px;
}

}

@media screen and (min-width: 1200px) {

nav{
    height: 80px;
}

nav .logo{
    width: 90px;
    height: auto;
    margin-left: 30px;
}

nav .overlay-content{
    height: 80px;
}

nav .overlay-content a{
    font-size: 25px;
}

.blue_box div{
    font-size: 35px;
    margin-right: 80px;
}

.blue_box_1{
    top: 3em;
}

.blue_box_3{
    bottom: 3em;
}

#start{
    width: 1000px;
}

#leistungen{
    padding: 0;
    font-size: 18px;
    display: flex;
    flex-wrap: wrap;
}

#leistungen .ehyp svg{
    left: 20%;
}

#leistungen .ehyp{
    margin: 0;
    padding-left: 10%;
    width: 50%;
}

#leistungen .unterseiten{
    width: 40%;
    padding-top: 60px;
    padding-bottom: 50px;
}

#leistungen ul li{
    padding-top: 9px;
}

.unterseiten ul{
    left: 0;
}

#philosophie {
    display: grid;
    grid-template-areas:
        "header header"
        "text bild";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 40px;
    position: relative;
    padding: 50px;
}

.philosophie_bild_pc {
    grid-area: bild;
    display: block;
    width: 500px;
    position: static;
    margin-left: 0;
}

.philosophie_bild_pc img{
    width: 100%;
    height: auto;
}

.philosophie_bild_tablet{
    display: none;
}

.philosophie_text {
    grid-area: text;
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
}

.philosophie h1 {
    grid-area: header;
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

#kosten{
    height: 300px;
    width: 40%;
    margin-left: 0;
    margin-bottom: -20px;
}

#kosten h1, #qualifikationen h1{
    width: fit-content;
    position: absolute;
    right: 20px;
    top: 10px;
    margin: 0;
}

#kosten p{
    position: relative;
    left: 110%;
    top: 30px;
    color: var(--brand-600);
}

 #kosten svg{
    right: 110px;
    top: 10px;
    left: unset;
}

#qualifikationen{
    background-color: var(--bg-muted);
    height: fit-content;
    width: 40%;
    padding-bottom: 30px;
    margin-left: 0;
}

#qualifikationen h1{
    color: var(--brand-variant);
}

#qualifikationen p{
    color: var(--brand-variant);
    left: 110%;
    top: 30px;
}

#qualifikationen svg{
    fill: var(--on-primary);
    right: 180px;
    top: 10px;
    left: unset;
}

#impressum_logo{
    max-width:none;
    width: auto;
    height: 60%;
    top: 50px;
    right: 10%;
}

}