body {
    /* erstellt einen grauen Hintergrundverlauf // rp aktuell */
    background: rgb(255,255,255);
    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(225,225,225,1) 0%, rgba(241,241,241,1) 62%, rgba(246,246,246,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(0%,rgba(225,225,225,1)), color-stop(62%,rgba(241,241,241,1)), color-stop(100%,rgba(246,246,246,1)));
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(225,225,225,1) 0%,rgba(241,241,241,1) 62%,rgba(246,246,246,1) 100%);
    background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(225,225,225,1) 0%,rgba(241,241,241,1) 62%,rgba(246,246,246,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(225,225,225,1) 0%,rgba(241,241,241,1) 62%,rgba(246,246,246,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(225,225,225,1) 0%,rgba(241,241,241,1) 62%,rgba(246,246,246,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 );
}

#body-mitte {
    text-align: left;
}
#body-mitte h1, h2, h3 {
    text-align: center;
}
#body-mitte h4 {
    text-align: left !important;
}

span.spamschutz { /* verhindert, dass eine email von bots richtig gelesen werden kann (zusätzlicher Text mit span=class"spamschutz" eingefügt) // immer // aktuell */
	display: none;
}

 /* schuezt Kontaktformular, ein weiteres unsichtbares Feld*/
  .btfal {
      position: absolute;
      left: -9999px;
      height: 0;
      overflow: hidden;
    }

/* schützt Kontaktformular unsichtbares Feld */
#puppy_name {
  display: none;
  opacity: 0;
  visibility: hidden;
}


/* Allgemeine Formatierungen Kontaktformular */
#form {
    width: 60vw;
    min-width: 300px;
    max-width: 800px;
    font-family: inherit;
    font-size: 16px;
    padding: 30px 30% 5% 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#formular h4 {
    text-align: left;
}

#form input {
  display: inline-block;
  font-size: 16px;
}
#form input[type="text"],
#form input[type="email"],
#form input[type="tel"],
#form textarea {
  padding: 8px;
  width: 400px;
}
#form input[type="file"] {
  padding: 8px 8px 8px 0px;
  width: 400px;
}
#form button[type="submit"] {
  width: 220px;
  margin-top: 10px;
  display: inline-block;
  border: 1px solid #7589C5;
  border-radius: 6px;
  background-color: #7589C5;
  color: #ffffff;
  padding: 8px 16px;
  transition: background-color .5s, color .5s;
}
#form button:hover {
  background-color: #4F65A9 !important;
  color: #fff;
  cursor: pointer;
}

@media (min-width: 1px) and (max-width:600px) {
    
    #body-mitte {
    margin-right: 14%;
}
    #form {
    width: 90vw;
    margin: 0;
    }
    
#form input[type="text"],
#form input[type="email"],
#form input[type="tel"],
#form textarea {
  width: 250px;
}
#form input[type="file"] {
  width: 250px;
}
#Anschrift h3, #formular h4 {
    text-align: left;
} 
}

@media (min-width: 601px) and (max-width:991px) {
    #form {
    width: 70vw;
    margin: 0;
    }
    #Anschrift h3, #formular h4 {
    text-align: left;
} 
}

@media (min-width: 992px) and (max-width:1.080px) {
    #form {
    width: 65vw;
    }
}



/* Allgemeine Formatierungen Button "nach oben" scrollen */
.back-to-top {
  background: #1A3485;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1em;
  z-index: 100;
}
a.back-to-top {
    color: #fff;
}

 /* boxed Layout mit Rand und Schatten // rp aktuell */
#main-container {
    background-color: #fff;
    max-width: 1300px;
    margin-top: 40px;
    margin-right: auto;
    margin-bottom: 25px;
    margin-left: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 1px #4f65a9;
    border-top-width: 1px;
    border-top-style: none;
    border-top-color: rgb(79, 101, 169);
    border-right-width: 1px;
    border-right-style: none;
    border-right-color: rgb(79, 101, 169);
    border-bottom-width: 1px;
    border-bottom-style: none;
    border-bottom-color: rgb(79, 101, 169);
    border-left-width: 1px;
    border-left-style: none;
    border-left-color: rgb(79, 101, 169);
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    -webkit-box-shadow: 0px 4px 10px 4px lightgray;
    -moz-box-shadow: 0px 4px 10px 4px lightgray;
    box-shadow: 0px 4px 10px 4px #d3d3d3;
}

/* ............. */
/* Beginn Logo */
/* ............. */
#logo {  /* Abstaende Logo // rp aktuell */
    margin-top: 50px;  
    margin-bottom: 45px;
}

#logo.col-sm-6 a img {    /* Abstaende Logo // rp aktuell */
    margin-left: 80px;   
}

@media (min-width: 992px) {
    #logo {
    width: 100%;
    margin-top: 50px 0px 45px 0px;
}
}

@media (max-width: 991px) {
    #logo {
    margin: 50px 0px 45px 0px;
    }
}

@media (max-width: 660px) {
    #logo.col-sm-6 a img {
    margin-left: 30px;
    }
}

@media (max-width: 470px) {
    #logo.col-sm-6 a img {
    margin-left: 30px;
    width: 60%;
    height: 60%;
  }
}

/* .............. */
/* Ende Logo */
/* .............. */


/* ......................... */
/* Beginn Menu oben rechts */
/* ......................... */

#top-2-menu {    /* nach rechts ausrichten */
    float: right;
}

nav#top-2-menu.col-sm-6 {     /* nach rechts ans Ende ausrichten */
    display: flex;
    justify-content: flex-end;
    height: 40px;    /* Ausgangshöhe und Abstaende vom Menue oben rechts */
    font-size: 15px;
    line-height: 40px;    /* Vertikale Zentrierung */
    padding-top: 2px;
    padding-right: 50px;
}

#top-2-menu ul.nav li a {
    display: inline-block;     /* Damit Höhe/Breite wirken */
    background-color: #ffffff;    /* Ausgangshintergrund */
    color: #4F65A9;       /* Menulink Farbe */
    text-decoration: none;
    padding: 0 16px;
}

#top-2-menu ul.nav li a:hover {
    background-color: #4F65A9;
    color: #fff;      /* neue Hintergrundfarbe */

    /* neue Linkfarbe */
}

@media (min-width: 992px) {
    nav#top-2-menu ul.nav li a {
        font-size: 15px;
    }
}

/* ....................... */
/* Ende Menu oben rechts */
/* ....................... */


/* .............................. */
/* Anfang OffCanvas */
/* Hamburger-Button rechts oben */
/* .............................. */

#hamburgerBtn {
    position: fixed;
    top: 97px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 300;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease; /* Neue Transition */
}

#hamburgerBtn span {
    display: block;
    width: 30px;
    height: 4px;
    background: #1a3585e3;       /* Burger-Farbe */
    border-radius: 2px;
    transition: 0.3s;
}

#hamburgerBtn.open span {
    background: #ffffff;      /* X-Farbe */
}

#hamburgerBtn.hidden {
    transform: translateY(-100px); /* Button nach oben verschieben */
    opacity: 0; /* Ausblenden */
    pointer-events: none; /* Interaktion verhindern */
}

/* ........................ */
/* Anfang Off-Canvas-Menü   */
/* ........................ */

#offCanvas {
    position: fixed;
    top: 0;
    right: -290px;         /* Start: außerhalb des Bildschirms */
    width: 280px;
    height: 100vh;
    background: #1a3585db;
    box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    transition: right 0.3s;
    z-index: 200;
    padding-top: 130px;
    display: block;
}

#offCanvas ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#offCanvas li {
    margin: 0;
}

#offCanvas a {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: background 0.2s;
}

#offCanvas a:hover {
    background: #4F65A9;
}

/* Off-Canvas Menü öffnen */

#offCanvas.open {
    right: 0;
}

#hamburgerBtn.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#hamburgerBtn.open span:nth-child(2) {
    opacity: 0;
}

#hamburgerBtn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Verhalten */
@media (max-width: 991px) {
    #top-2-menu {
        display: none !important;
    }

    #hamburgerBtn {
        display: flex;
    }

    #offCanvas {
        display: block;
    }
}

@media (min-width: 992px) {
    #offCanvas {
        display: none;
    }

    #hamburgerBtn {
        display: none;
    }
}

/* .............................. */
/* Ende   OffCanvas               */
/* Hamburger-Button rechts oben   */
/* .............................. */


/* ................... */
/* Anfang Hauptmenu    */
/* ................... */

section#menu {
    border-bottom: 8px solid #7589C5;
}

/* ................ */
/* Ende Hauptmenu */
/* ................ */


/* ................... */
/* Anfang Mainbody    */
/* ................... */

@media (min-width: 601px)  and (max-width:992px)  {
     #hero-links img {
        width: 165px !important;
        height: 146px !important;
    }
    #hero-links h1 {
        font-size: 26px !important;
    }
    #hero-mitte img {
        width: 172px !important;
        height: 164px !important;
    }
    #hero-mitte h1 {
    font-size: 26px !important;
    }
    #hero-rechts img {
        width: 150px !important;
        height: 150px !important;
    }
    #hero-rechts h1 {
    font-size: 26px !important;
    }
}

@media (min-width: 661px) {
     #main-body {
        padding: 0 58px 0 80px;
    }
}

@media (min-width: 1px) and (max-width:660px) {
    #main-body {
        padding: 0 20px 0 30px;
    }
}

@media (max-width: 600px) {
  #hero, h1 {
    flex-direction: column; /* Änderung bei kleinen Bildschirmen */
    justify-content: center;
    font-size: 32px;
    text-align: left;
  }
  #hero-links, #hero-mitte, #hero-rechts {
    margin-bottom: 40px;
  }
}

#body-mitte-kontakt {
  display: flex; /* Bei normalen Bildschirmen */
  gap: 23px;
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  #body-mitte-kontakt {
    flex-direction: column; /* Änderung bei kleinen Bildschirmen */
    justify-content: flex-start;
  }
}

#body-mitte .vitrine {
    padding-right: 20%;
    padding-bottom: 30px;
}

#body-mitte .vitrine p {
    font-size: 18px;
    line-height: 30px;
    text-align: left;
}

#body-mitte h2.referenzen {
    font-size: 24px !important;
    font-weight: 600;
}

.grid-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten gleicher Breite */
    grid-template-rows: repeat(10, auto);   /* 10 Reihen, höhenanpassend */
    gap: 30px;                            /* Abstand zwischen Grid-Items */
    padding: 10px;
  }
  .showcase-item {
    border: 1px solid;
    border-color: hsl(225,40%,88%);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease; /* für sanfte Übergänge */
  }
    .showcase-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Schatten bei Hover */
 }  
  .showcase-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 8px;
  }
  .showcase-item a {
    text-decoration: none;
    color: #4F65A9;
    font-weight: 500;
  }




/* ................... */
/* Ende Mainbody    */
/* ................... */


/* ................ */
/* Anfang Sockel */
/* ................ */

#sockel .flex-container {
    display: flex;
    gap: 5px;       /* Abstand zwischen den Boxen */
    background-color: #7589C5;
    min-height: 200px;
}

#sockel .flex-item.Box-1, h4 {
    padding: 5px 20px 0px 0px;
    flex: 1;
    text-align: center;
}

#sockel .flex-item.Box-3, h4 {
    padding: 5px 0px 0px 0px;
    flex: 1;
    text-align: center;
}

#sockel .SubTitel {
    font-size: 1.1em;
    letter-spacing: 1px;
    color: #ffffff;
    padding-left: 10px;
    padding-right: 10px;
}

/* ........................................... */
/* Anfang Maennchen Auge Auf und ZU in Box 2 */

.img-swap {
    width: 260px;
    height: 260px;
    position: relative;
    overflow: hidden;
    margin: 10px auto;
    text-align: center;
}

@media (min-width: 600px) and  (max-width:700px) {
    .img-swap {
        margin-top: 118px;
    }
}

@media (min-width: 1px) and  (max-width:600px) {
    .img-swap {
        display: none;
    }
}

.img-normal,
.img-hover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.img-hover-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s linear;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-swap:hover .img-hover-container {
    opacity: 1;
    pointer-events: auto;
}

/* Ende Maennchen Auge Auf und ZU */
/* ................................ */


#sockel .Box-1 .icon img {
    vertical-align: middle;
    width: 60px;
}

#sockel .Box-1-Text {
    padding: 0px 80px 0px 80px;
    color: #ffffff;
    font-size: 14px;
    line-height: 23px;
    font-style: italic;
}

@media (min-width: 1010px) and  (max-width:1280px) {
    #sockel .Box-1-Text {
        padding: 0px 40px 0px 40px;
    }
}

@media (max-width:1010px) {
    #sockel .Box-1-Text {
        padding: 0px 0px 0px 8px;
    }
}

#sockel .Box-3 .icon img {
    vertical-align: middle;
    width: 60px;
}

#sockel .Box-3-Text {
    padding: 0px 80px 0px 80px;
    color: #ffffff;
    font-size: 14px;
    line-height: 23px;
    font-style: italic;
}

@media (min-width: 1010px) and  (max-width:1280px) {
    #sockel .Box-3-Text {
        padding: 0px 40px 0px 40px;
    }
}

@media (max-width:1010px) {
    #sockel .Box-3-Text {
        padding: 0px 8px 0px 0px;
    }
}

/* ................ */
/* Ende Sockel */
/* ................ */


/* ................ */
/* Anfang Footer */
/* ................ */
#footer div {
    background-color: #4F65A9;       /* Hintergrundfarbe Menue unten */
    height: 50px;
}

#footer p {
    line-height: 50px;     /* Vertikale Zentrierung */
    font-size: 15px;
    color: #fff;
    padding-left: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
}

@media (min-width: 1011px) {
    #footer p {
        font-size: 15px;
    }
}

@media (min-width: 830px) and (max-width: 1010px){
    #footer p {
        padding-left: 10px;
    }
}

nav#menu-unten {
    height: 50px;
}

nav#menu-unten {
    display: flex;
    justify-content: flex-end;       /* nach rechts ans Ende ausrichten */
    height: 50px;      /* Ausgangshöhe und Abstaende vom Menue unten */
    font-size: 15px;
    line-height: 50px;       /* Vertikale Zentrierung */
    padding-right: 15px;
}

nav#menu-unten ul.nav li a {
    display: inline-block;        /* Damit Höhe/Breite wirken */
    color: #ffffff;       /* Menulink Farbe */
    text-decoration: none;
    padding: 0px 16px 0px 16px;
}

nav#menu-unten ul.nav li a:hover {
    background-color: #ffffff;        /* neue Hintergrundfarbe */
    color: #4F65A9;       /* neue Linkfarbe */
}

@media (min-width: 1011px) {
    nav#menu-unten ul.nav li a {
        font-size: 15px;
    }
}

@media (min-width: 830px) and (max-width: 1010px){
    nav#menu-unten.spalte.rechts {
        padding-right: 20px;
    }
}

@media (min-width: 830px) and (max-width: 1010px) {
    nav#menu-unten ul.nav li a {
        font-size: 12px;
    }
}

/* ....................................................... */
/* ANFANG umwandeln col-4 zu col-8 damit mehr Breite kommt */

div.spalten-container {
    display: flex;
    gap: 5px;      /* optionaler Abstand zwischen den Spalten */
}

.spalte.links {
    flex: 0 0 33.33%;      /* entspricht etwa col-4 */
}

.spalte.rechts {
    flex: 0 0 66.66%;    /* entspricht etwa col-8 */
}

/* Linke Spalte ab einer bestimmten Froesse verbreitern */

@media (max-width: 1010px) {
    .spalte.rechts {
        flex: auto;
    }

    .spalte.links {
        flex: 1 1 50%;
    }
}

/* Rechte Spalte ab einer bestimmten Breite ausblenden */

@media (max-width: 869px) {
    .spalte.rechts {
        display: none;
    }

    .spalte.links {
        display: flex;
        flex: auto;
        justify-content: center;
    }
}

@media (min-width: 1px) and (max-width: 330px) {
    #footer .spalte.links p {
        line-height: 22px;
        padding: 2px 5px 2px 5px;
        text-align: center;
    }
}

/* ENDE umwandeln col-4 zu col-8 damit mehr Breite kommt */
/* ....................................................... */

/* ................ */
/* Ende Footer */
/* ................ */


/* ...................... */
/* Anfang Agentur Info */
/* ...................... */

#agenturinfo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;      /* Container-Höhe erforderlich */
    background-color: #1A3485;      /* Hintergrundfarbe Menue unten */
}

@media (min-width: 1px) and (max-width: 991px) {
    #agenturinfo {
        height: auto;
        padding: 10px 20px 10px 20px;
        text-align: center;
    }
}

#agenturinfo p {
    font-size: 13px;
    color: #fff;
}

@media (min-width: 1px) and (max-width: 991px) {
    #agenturinfo p {
        font-size: 12px;
        line-height: 1.8em;
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

/* ...................... */
/* Ende Agentur Info */
/* ...................... */
