
html {
    font-size: 101%;
} 

/* roboto-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('/css/fonts/roboto-v51-latin-regular.woff2') format('woff2');
}

/* roboto-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('/css/fonts/roboto-v51-latin-700.woff2') format('woff2');
}

/* roboto-800 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 800;
  src: url('/css/fonts/roboto-v51-latin-800.woff2') format('woff2');

}


* {
    margin: 0;
    padding: 0;
    border : none 0;
    vertical-align: baseline;
    outline: 0;
    box-sizing: border-box;
}

body {
    font: 1em/1.6 'Open Sans', Arial, Helvetica, sans-serif;
    margin: 0px auto;
    color : #010211;
    background-color: #f9f9fb;
    width: 100%;
    max-width: 100%;
    overflow-y:scroll;
cursor: default;
}


body {
  font: 1em/1.4 'Roboto', Arial, sans-serif;
  color: #08335e;

/*Test für bildschirmhöhe mit zu kleinen inhalt mit flex1 in main*/
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;






}



main{
  min-height: 100px;
 
  margin: 2rem auto;
  max-width: 1200px;



  flex: 1;
}

img { max-width:100%; height: auto; }

a { text-decoration: underline; color:inherit;}

a:hover { text-decoration: none;}

a:link { color:inherit; text-decoration: underline;}

a:visited { color:inherit; text-decoration: underline;}

a:hover, a:active, a:focus { color: #00395d; text-decoration: none;}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    line-height: 1.6;
    color: inherit;

}

ul, ol { list-style: none;}
                
hr {
    background: #ccc; 
    border: currentColor; 
    max-width : 100%;
    width: 100%; 
    height: 2px; 
    color: #000000; 
    clear: both; 
    float: none;
    box-shadow: inset 0 4px 4px -4px rgba(0,0,0,0.5);
}
p { margin: 0.5em 0 1em 0;}



                                                        /*  Styles  */

.cl { clear: both;}
.fre { float: right;}
.fli { float: left;}

.ce { text-align:center;}
.li { text-align:left; }
.re { text-align:right;}

.mt1 { margin-top: 1em;}
.mr1 { margin-right: 1em;}
.mb1 { margin-bottom: 1em;}
.ml1 { margin-left: 1em;}

.mt05 { margin-top: 0.5em;}
.mr05 { margin-right: 0.5em;}
.mb05 { margin-bottom: 0.5em;}
.ml05 { margin-left: 0.5em;}

.dn { text-decoration: none;}

.vam, val { vertical-align:middle;}
.vab { vertical-align:bottom;}
.vat { vertical-align: top;}

.lh2 { line-height:2em;}

.dib { display:inline-block;}

.small { font-size: 0.8em; line-height: 1.87em;}
.f80 { font-size: 0.80em;}
.f90 { font-size: 0.90em;}

.ls1 {letter-spacing: 1px;}
.w50 {width:50%;}
.w100 {width:100%;}
.mw100 {max-width:100%;}

.b {font-weight:bold;}
.nb { font-weight: normal;}

.pad1 { padding: 1em;}
.pad05 { padding: 0.5em;}
.padr1 { padding-right: 1em;}
.padr05 { padding-right: 0.5em;}
.padt3 { padding-top: 3em;}

label { cursor: pointer; }
.fwn {font-weight:normal;}

.w { color: #fff;}
.bw { background-color: #fff;}
.red { color: #f82d1d;}
.lblue{color:#6a9bd6;}

.rg { color: #b43820; text-shadow: 0 0 2px #fddb02; letter-spacing: 0.8px;}
.sg { color: #06345d; text-shadow: 0 0 4px #f1de0e; letter-spacing: 0.8px;}

.mt2{margin-top: 2em;}




.f80 {
  font-size: 0.80em;
}
.bild {
  box-shadow: 0px 0px 10px #beb8b8;
  border-radius: 3px;
}



.bor2{
  box-shadow: 0px 0px 5px #beb8b8;
}

h1 {
    color: #e2000f;
    font-size: 1.75em;
    line-height: 1.5em;
    font-weight: bold;
  }



#head {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin: 0px auto;
    margin-bottom: 0px;
    background-color: #01b2fe;
    text-align: left;
    min-height: 55px;
    height: auto;
    margin-bottom: -5px;
  }


  .topnav {
    background: #08335e;
  height: 54px;
  overflow: visible;
  margin-bottom: 1em;
  
  }
  
  .topnav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
  }
  
  .topnav a:hover {
    border-bottom: 3px solid red;
  }
  

  .topnav a.active {
    border-bottom: 3px solid red;
  }
  .subnav {
    position: relative;
    float: left;
    margin-left: 1em;
  }
  
  .subnav-link a {
    display: block;
    padding: 14px 16px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    text-transform: uppercase;
  }
  
  .subnav-content {
    display: none;
    position: absolute;
    top: 100%; /* Direkt unter dem Link */
    left: 0; /* Positionierung am linken Rand des Links */
    background-color: #4a4a4a;
    width: auto; /* Du kannst die Breite anpassen */
    min-width: 172px; /* Eine Mindestbreite fÃ¼r das Pop-up */
    z-index: 9999; /* Hoher z-index, damit es Ã¼ber anderen Elementen liegt */
}

/* Zeige das MenÃ¼ an, wenn es die Klasse 'active' hat */
.subnav.active .subnav-content {
    display: block;
}
  
  .subnav-content a {
    float: left;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    width: 100%;
    font-size: 1em;
  }
  
  .subnav-content a:hover {
    background-color: #eee;
    color: black;
  }
  
 

/*---------------------  Nav Ende  ---------------------*/

kontaktformular {
  display: flex;
  justify-content: center;
  padding: 50px 20px;

}

kontaktformular .kontaktformular-box {
  background: #fbfbfb;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  max-width: 1000px;

  padding: 40px;

  align-items: center;
  display: flex;
  flex-direction: column;
}

kontaktformular h2 {
  text-align: center;
  color: #08335e;
  font-size: 2rem;
  margin-bottom: 10px;
}

kontaktformular p {
  text-align: center;
  color: #555;
  margin-bottom: 5px;
}

kontaktformular strong {
  color: #01b2fe;
}

kontaktformular .kontaktformular-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  
}

kontaktformular .kontaktformular-form label {
  grid-column: span 2;
  font-weight: 600;
  color: #08335e;
  margin-top: 10px;
}
kontaktformular .kontaktformular-form select,
kontaktformular .kontaktformular-form input,
kontaktformular .kontaktformular-form textarea {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
}

kontaktformular .kontaktformular-form input:focus,
kontaktformular .kontaktformular-form textarea:focus {
  border-color: #01b2fe;
  outline: none;
}

kontaktformular .kontaktformular-form textarea {
  grid-column: span 2;
  resize: vertical;
  margin-bottom: 10px;
}

/* Adresse speziell */
kontaktformular .adresse-grid {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

kontaktformular .adresse-grid .zeile {
  display: grid;
  gap: 10px;
}

/* StraÃŸe + Hausnummer */
kontaktformular .adresse-grid .zeile:nth-child(1) {
  grid-template-columns: 2fr 1fr;
}

/* PLZ + Ort */
kontaktformular .adresse-grid .zeile:nth-child(2) {
  grid-template-columns: 1fr 2fr;
}

kontaktformular .adresse-grid input {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

kontaktformular .adresse-grid input:focus {
  border-color: #01b2fe;
  outline: none;
}

kontaktformular .kontaktformular-form button {
  grid-column: span 2;
  padding: 15px;
  background-color: #01b2fe;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

kontaktformular .kontaktformular-form button:hover {
  background-color: #0299da;
}



.disgrid{
  display: grid;
  grid-template-columns: calc(100% - 5px) calc(100% - 5px);
  gap: 10px;
}











/*-----------------------------Footer------------------------------------*/


footer{
  width: 100%;
  height: auto;
  background-color: #08335e;
color: #ccc;
padding: 1em;

}
footer a:hover{
  color: #e3f4fc;
}

/*
.footerbox {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 20px;
  color: #e3f4fc;
  width: 1000px;
  margin: 0 auto;
  line-height: 2em;
  font-size: 18px;
}*/


.copyri{
  line-height: 3em;
}



.footerbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 20px;
  color: #e3f4fc;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  line-height: 2em;
  font-size: 18px;
}


.footer-column {
  flex: 1 1 calc(33.333% - 20px); /* drei nebeneinander */
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: end;
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}






/*  */

.dropdown-toggle {
  display: inline-block; /* oder block/flex, je nach Layout */
  visibility: visible;
  opacity: 1;
  /* Falls es mal durch display:none o.Ã¤. versteckt wird, unbedingt hier Ã¼berschreiben */
}


.menu-items {
  display: flex;
}

a.icon {
  display: none;
}










.aktuelleimmo{
display: grid;
grid-template-columns: auto auto auto;
justify-content: space-between;
gap: 10px;
}

.aktimobild{
height: 150px;
}

.aktimotext{
display: grid;
grid-template-rows: 30px auto 30px;
}

.modern-container2 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  border-radius: 1.2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #111827;
  max-width: 1200px;
  margin: 2rem;
  flex-wrap: nowrap;
  gap: 1rem;
}

.modern-column2{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.45rem;
    
    height: 100%;
    flex: 1 0 40%; 
    height: 100%; 
    padding: 1px;
    overflow: hidden;

}


.modern-container1 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  border-radius: 1.2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #111827;
  max-width: 1200px;
  margin: 2rem 0;
  flex-wrap: nowrap;
  gap: 1rem;
}





.modern-image2 {
  width: 100%; 
  height: 220px; 
  object-fit: cover; 
  border-radius: 1rem;}

.modern-link2{
font-size: 1.1em;
font-weight: 700;
color: #1f2937;
}

.contentbox1{font-size: 1rem; line-height: 1.6; color: #374151;}
.contentbox2{font-size: 0.85rem; color: #6b7280; line-height: 1.6em;}




  .modern-link2:hover {
    color: #2563eb !important;
    text-decoration: underline;
    transition: all 0.3s ease;
  }



.resgrid3{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  justify-content: space-between;
  gap: 1em;

}



  /*DATENSCHUTZ*/

  .datenschutz, .aktuelleimmobilien {
    width: 100%;
    background: #f9f9fb;
    padding: 50px 20px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #222;
  }

  .datenschutz .container, .aktuelleimmobilien .container {
    max-width: 1200px;
    margin: auto;
  }

  .datenschutz h1, .aktuelleimmobilien h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #0f3d6f;
  }

  .datenschutz h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #0f3d6f;
    border-left: 4px solid #0f3d6f;
    padding-left: 10px;
  }

  .datenschutz p, .aktuelleimmobilien p {
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .datenschutz .intro, .aktuelleimmobilien .intro {
    font-weight: bold;
    font-size: 1.1rem;
  }

  .datenschutz ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
  }

  .datenschutz a {
    color: #0f3d6f;
    text-decoration: underline;
  }

  .datenschutz a:hover {
    text-decoration: none;
  }


  .nummeriert {
  counter-reset: section; /* ZÃ¤hler nur in diesem Bereich starten */
}

.nummeriert h2 {
  counter-increment: section; /* ZÃ¤hlt nur hier hoch */
}

.nummeriert h2::before {
  content: counter(section) ". ";
  font-weight: bold;
}


.resgrid{
  display: grid;
  grid-template-columns: 500px 440px;
  
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 360px;
  margin: auto;
    margin-bottom: auto;
  text-align: center;
  margin-bottom: 1em;
  height: auto;
  min-height: 631px;
}
.card img{height: 270px; width: 360px;}

.card .title {
  color: grey;
  font-size: 18px;
}

.card .person{
  height: 200px;
  padding: 0 20px
}
.imo-image{
  border-radius: 0.4rem;
  width: auto;
  height: 100%;
  box-shadow: 0px 0px 5px #beb8b8;
  border: 1px solid #0000004f;
}

.fbg-image {
  border-radius: 0.4rem;
  width: 360px;
  height: 203px;
  box-shadow: 0px 0px 5px #beb8b8;
  border: 1px solid #0000004f;
  object-fit: cover;
}

.modern-container1 {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-radius: 1.2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #111827;
  max-width: 1080px;
  grid-template-columns: auto auto;
}





































  
/* ---------- Responsive Navigation ---------- */


                                                              /*1200px*/

@media screen and (min-width: 1201px) {
  .menu-items a:not(:last-child):hover::after {
    content: "";
    position: absolute;
    height: 3px;
    background: red;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
  }
}






@media screen and (max-width: 1200px) {

  .footer-column {
    flex: 1 1 calc(50% - 20px);
  }


}





                                                              /*1000px*/
  
@media (max-width: 1000px) {
  .resgrid{
    display: block;
  }
  .resgrid3{
    display: block;
  }

.resgrid3{
  grid-template-columns: auto auto;
  justify-content: center;
}
.card{
  width: 100%;
  max-width: 500px;
}
}




@media (max-width: 1000px) {

}






                                                              /*900px*/





  @media (max-width: 900px) {

kontaktformular {
  display: block;
  justify-content: center;
  padding: 0;
  
}

kontaktformular .kontaktformular-box {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  width: 100%;
  padding: 40px;
  max-width: 1000px;
}

    .modern-container2 {
      flex-direction: column !important;
      border-radius: 0;
    }

    .modern-column2 {
      width: 100% !important;
      height: auto !important;
      padding: 0px;
    }

    .modern-image2 {
      height: auto !important;
      border-radius: 0;
      
    }


.imoweb{
  margin: 0 auto;
}

  .datenschutz, .aktuelleimmobilien {
    padding: 0;
  }
  .modern-container2{
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

.modern-column2 .contentbox1, .modern-column2 .contentbox2, .modern-link2{
 margin: 0 2rem;
}

.datenschutz, .aktuelleimmobilien {
    padding: 1rem;
  }

  .datenschutz h1, .aktuelleimmobilien h1, .datenschutz p, .aktuelleimmobilien p {
    padding: 15px 0 5px 0;
  }

 .datenschutz h1, .aktuelleimmobilien h1 {
    font-size: 1.5em;
  }
  
.modern-container1{
  grid-template-columns: 100%;
}

.mbpad0{
  padding: 0;
}

  }





                                                            /*868px*/
















@media (max-width: 868px) {


  .topnav {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    background-color: #08335e;
    min-height: 54px;
  }
  .topnav a{
  text-align: unset;
  text-transform: none;}

  .topnav a.icon {
    display: block;
    float: right;
    padding: 8px 2px;
    color: white;
    font-size: 1.6em;
    position: absolute;
    right: 0.5em;
  }

  .menu-items {
    display: none;
    flex-direction: column;
    width: 100%;
  }

 .menu-items.show {
  display: flex;
  margin-right: 0;
  width: 100%;
}

.subnav-link {
  width: 100%;
  margin-right: 0;
}

.subnav-content a {
  width: 100%;
  margin-left: 1em;
  margin-right: 0;
}
  .subnav {
    width: 100%;
    margin-left: 0em;
  }


  .subnav-content {
    position: static;
    background-color: none;
    display: none;
    width: 100%;
  }

  .subnav.active .subnav-content {
    display: block;
    max-width: 400px;
  }

  

  .subnav-content a:hover {
    
    color: black;
    width: auto;
  }


.subnav-link {
  display: flex;
  align-items: center;

  margin-right: 20px;
 
width: 100%;
  padding: 9px 16px 0;
  color: white;
  background-color: transparent;
  cursor: pointer;
}

.subnav-link a {
  text-decoration: none;
  color: white;
  font-size: 17px;
  text-transform: uppercase;
  text-align: left;
  
}


.dropdown-toggle {
  margin-left: auto;
  font-size: 14px;
  color: white;
  cursor: pointer;
  user-select: none;
}


  .clr{
    clear: both;
  }


}



















/* Responsiv: ab 768px nur noch eine Spalte */
@media (max-width: 768px) {
  .footer-column {
    flex: 1 1 100%;
  }
}



                                                              /*700px*/


  @media (max-width: 700px) {
.resgrid3{
  grid-template-columns: auto;
}

}

                                                              /*600px*/




@media (max-width: 600px) {
  kontaktformular .kontaktformular-form {
    grid-template-columns: 1fr;
  }

  kontaktformular .kontaktformular-form textarea,
  kontaktformular .kontaktformular-form button {
    grid-column: span 0;
  }

  kontaktformular .adresse-grid .zeile {
    grid-template-columns: 1fr;
  }

  .disgrid{
    grid-template-columns: auto;
  }
}