/*********************************
 * 1) FONT-FACES
 *********************************/

/* open-sans-regular - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v34-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/open-sans-v34-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/open-sans-v34-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/open-sans-v34-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/open-sans-v34-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-700 - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v34-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/open-sans-v34-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/open-sans-v34-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/open-sans-v34-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/open-sans-v34-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/open-sans-v34-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* open-sans-italic - latin */
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/open-sans-v34-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/open-sans-v34-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/open-sans-v34-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/open-sans-v34-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/open-sans-v34-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/open-sans-v34-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}

/* eb-garamond-regular - latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/eb-garamond-v26-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/eb-garamond-v26-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/eb-garamond-v26-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/eb-garamond-v26-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/eb-garamond-v26-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/eb-garamond-v26-latin-regular.svg#EBGaramond') format('svg'); /* Legacy iOS */
}

/* eb-garamond-700 - latin */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/eb-garamond-v26-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/eb-garamond-v26-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/eb-garamond-v26-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/eb-garamond-v26-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/eb-garamond-v26-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/eb-garamond-v26-latin-700.svg#EBGaramond') format('svg'); /* Legacy iOS */
}


/*********************************
 * 2) RESET / BASE STYLES
 *********************************/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, font, img, ins, kbd, q, s, samp,
small, strike, sub, sup, tt, var, dl, dt, dd,
ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 400;
  font-style: inherit;
  font-size: 100%;
  vertical-align: baseline;
  -ms-hyphens: none;
  -webkit-hyphens: none;
  hyphens: none;
  font-family: 'Open Sans', Arial, sans-serif; /* Standard-Font */
}

:focus {
  outline: 0;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: "";
}

blockquote, q {
  quotes: "" "";
}

.clear {
  clear: both;
}

body {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

/* Link Styles */
a:link, a:visited, a:focus, a:active {
  color: #fff;
  text-decoration: none;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/*********************************
 * 3) LAYOUT / WRAPPER
 *********************************/

#wrapper {
  width: 692px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  box-sizing: border-box;
  overflow: hidden; /* optional, falls was überläuft */
}

/*********************************
 * 4) HEADER / HOTLINE / WEBSITE-BALKEN
 *********************************/
 /* Basis-Styles für den Header */
 #header {
   width: 100%;
 }

 .header-container {
   position: relative;
 }

 .header-container img {
   width: 100%;
   height: auto;
   display: block;
 }

 /* Desktop: Text als Overlay links unten */
 .banner-text {
   position: absolute;
   bottom: 20px;
   left: 20px;
   background: rgba(0, 0, 0, 0.6); /* Halbtransparenter dunkler Hintergrund */
   color: #ffffff;
   padding: 13px 18px;
   border-radius: 5px;
   max-width: 400px;
 }

 .small-text {
   font-size: 1.1em;
   margin: 0;
 }

 .large-text {
   font-size: 1.6em;
   font-weight: bold;
   margin-top: 5px;
   color:white;
 }

 /* Mobile: Text bleibt auf dem Bild, aber kleiner */
 @media (max-width: 767px) {
   .banner-text {
     bottom: 10px;  /* Weniger Abstand vom unteren Rand */
     left: 8px;  /* Weniger Abstand vom linken Rand */
     padding: 10px 15px; /* Weniger Innenabstand */
     max-width: 65%; /* Breiter für bessere Anpassung */
   }

   .small-text {
     font-size: 0.75em; /* Kleinerer Text */
   }

   .large-text {
     font-size: 1em; /* Kleiner, aber noch gut lesbar */

   }
 }

/* Hotline */
#hotline {
  display: flex;
  justify-content: center; /* Zentriert horizontal */
  align-items: center; /* Zentriert vertikal */
  text-align: center;
  width: 100%;
  min-height: 60px; /* Höhe anpassen, falls nötig */
  background: #C5AD82; /* Hintergrundfarbe */
  z-index: 1;
}

#hotline h1 {
  display: flex;
  align-items: center; /* Inhalte in einer Zeile vertikal zentrieren */
  font-size: 24px;
  color: white;
  gap: 10px; /* Abstand zwischen den Elementen */
  margin: 0;
  white-space: nowrap; /* Verhindert Umbruch auf kleine Bildschirme */
  padding: 0px 5px;
}

#hotline img {
  width: 40px; /* Größe des Icons */
  height: auto;
}

#telefontracking {
  font-weight: bold;
  font-size: 20px;
  color: white;
}


/* Website-Balken */
#website {
  width: 100%;
  min-height: 60px;
  line-height: 60px;
  background: #C5AD82;
  text-align: center;
}
#website h3 {
  color: #fff;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1.3px;
  margin: 0;
  padding: 10px 0;
}
#website img {
  vertical-align: middle;
  margin-right: 15px;
  padding-bottom: 5px;
  width: 40px;
}
#website a {
  font-weight: 400;
  color: #fff;
}

/*********************************
 * 5) CONTENT-BEREICH
 *********************************/

#content {
  margin: 0 auto;
  padding: 25px 0 0;
  padding-top: 15px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

#contentleft {
  float: left;
  width: 340px;
  margin-right: 25px;
}
#contentright {
  float: left;
  width: 310px;
}

/*********************************
 * 6) TEXT-STILE
 *********************************/

.text a:link, .text a:visited, .text a:focus, .text a:active {
  color: #585858;
  text-decoration: none;
}
.text a:hover {
  color: #C5AD82;
  text-decoration: underline;
}

p {
  margin-bottom: 1em;
  line-height: 1.6;
}

h2 {
  color: #333;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 23px;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

ul.liste {
  margin: 10px 0 10px 15px;
  list-style-position: outside;
  list-style-type: disc;
}
ul.liste > li {
  margin-bottom: 12px;
}

/* Bilder im Fließtext */
.bild {
  float: left;
  max-width: 90px;
  margin-right: 15px;
}
.bildtext {
  float: right;
  width: calc(100% - 110px);
  box-sizing: border-box;
}

/*********************************
 * 7) BOXEN, KARTEN, ETC.
 *********************************/

/* Grund-Box-Stil */
.box {
  width: 100%;
  margin-bottom: 25px;
  background-color: #efefef;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: auto;
  padding: 15px;
  box-sizing: border-box;
}
.box.white-bg {
  background-color: #fff;
}

/* Spezielle Bereiche */
#contentleft .text {
  border-bottom: 1px solid #bbb;
  margin: 0 15px 15px;
  padding-bottom: 20px;
  padding-top: 15 px;
  display: inline-block;
}
#betreuung {
  border-bottom: 0;
  margin-bottom: 0;
}
#abwicklung img {
  margin-right: 10px;
  margin-bottom: 5px;
}

#karte_rechts, #karte_unten {
  background: #fff;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin: 25px 0;
  overflow: hidden;
}

/* Vorteile-Box */
#vorteile ul {
  padding: 0 15px 10px 20px;
}
#vorteile ul li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 8px;
}
#vorteile ul li::before {
  content: "";
  background: url('../images/arrow.png') no-repeat center center;
  background-size: 18px 18px; /* Skaliert das Bild */
  width: 18px;
  height: 18px;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 5px;
}
#vorteile a {
  color: #777;
  font-weight: 700;
}
#vorteile a:hover {
  text-decoration: underline;
}

/*********************************
 * 8) BEKANNT AUS / LOGOS
 *********************************/

.bekannt-aus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 10px 0;
  padding: 0;
}

.bekannt-aus img {
  max-width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}
.bekannt-aus img:hover {
  transform: scale(1.05);
}

/*********************************
 * 9) BEWERTUNGEN / SPLIDE-SLIDER
 *********************************/

#mandanten-bewertung {
  color: #333;
  background-color: #f9f9f9;
  padding: 10px 18px;
  margin: -15px -15px 15px;
  border-radius: 5px 5px 0 0;
}

.mandanten-bewertung .rating-head {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
}
.mandanten-bewertung .author {
  width: 75%;
  display: block;
  float: left;
  padding-top: 2px;
}
.mandanten-bewertung .avatar {
  display: block;
  float: left;
  margin-right: 10px;
}
.mandanten-bewertung .avatar img {
  max-height: 67px;
}
.mandanten-bewertung .name {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 2px;
  filter: blur(3px);
}
.mandanten-bewertung .meta {
  font-size: 13px;
  color: #888;
}
.mandanten-bewertung .rating img {
  vertical-align: middle;
}
.mandanten-bewertung .logo {
  display: table;
  width: 60px;
  height: 60px;
  float: left;
  border: 1px solid #e1e1e1;
  border-radius: 7px;
  box-sizing: border-box;
  margin-right: 1px;
}
.mandanten-bewertung .logo .content {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}
.mandanten-bewertung .text {
  font-weight: 400;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* Einzelne Bewertungskarten */
.bewertung_inhalt {
  border-radius: 3px;
  background: #fff;
  border: 1px solid #eee;
  padding: 0.5em;
  min-height: 230px;
  margin-bottom: 20px;
}

/*********************************
 * 10) FORMULAR / KONTAKT
 *********************************/

#formular {
  background: #efefef;
  border: 1px solid #ddd;
  margin-bottom: 0;
  padding: 15px;
  border-radius: 5px;
  overflow-x: hidden;
}
#formular h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Inputs & Labels */
fieldset {
  padding: 5px 0 0 20px;
  display: block;
  color: #333;
  clear: both;
  margin: 0;
}
label {
  display: block;
  width: 79px;
  float: left;
  clear: both;
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}
input, textarea {
  margin-top: 3px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  padding: 6px;
  width: 179px;
  font-size: 14px;
  border-radius: 3px;
  box-sizing: border-box;
}

/* Ausgeblendete Felder */
#form_alter, #form_anrede,
.label_alter, .label_anrede {
  display: none;
}

/* Button */
.btnSubmit {
  width: 264px;
  height: 44px;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 0;
  background-color: #C5AD82;
  color: #fff;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btnSubmit:hover {
  background-color: #333;
}

/* Fehler-Markierung */
input.error, textarea.error {
  border: red solid 1px;
  background-color: #fdd;
}

/* SSL-Hinweis */
.ssl {
  color: #888;
  font-size: 11px;
  margin-left: 22px;
  background: url('../images/schloss.gif') no-repeat 0 3px;
  padding-left: 19px;
  height: 20px;
  line-height: 24px;
  width: 250px;
  margin-top: -14px;
  margin-bottom: 10px;
  font-style: italic;
}

/*********************************
 * 11) FOOTER / META
 *********************************/
 /* Basis-Footer-Styling */
 #footer {
     background: #222; /* Dunkler Hintergrund */
     color: #fff; /* Weiße Schrift */
     padding: 20px;
     font-size: 0.9em;
 }

 .footer-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: space-between;
     max-width: 1200px;
     margin: auto;
 }

 /* Linke Seite: Kontaktinformationen */
 .footer-contact {
     text-align: left;
     width: 100%;
 }

 .footer-contact a {
     color: #fff;
     text-decoration: none;
     font-weight: bold;
 }

 .footer-contact a:hover {
     text-decoration: underline;
 }

 /* Rechte Seite: Impressum & Datenschutz */
 .footer-links {
     text-align: right;
     width: 100%;
 }

 .footer-links ul {
     list-style: none;
     padding: 0;
     margin: 0;
     display: flex;
     justify-content: flex-end;
     gap: 15px;
 }

 .footer-links ul li {
     display: inline;
 }

 .footer-links ul li a {
     color: #bbb; /* Heller Grau-Ton für dezente Darstellung */
     text-decoration: none;
 }

 .footer-links ul li a:hover {
     color: #fff;
     text-decoration: underline;
 }

 /* Responsive Anpassung für Mobilgeräte */
 @media (min-width: 768px) {
     .footer-container {
         flex-direction: row; /* Desktop: Elemente nebeneinander */
     }

     .footer-contact {
         width: auto;
     }

     .footer-links {
         width: auto;
     }
 }

 /* Mobile: Adresse & Links untereinander */
 @media (max-width: 767px) {
     .footer-container {
         flex-direction: column;
         text-align: center;
     }

     .footer-links ul {
         justify-content: center;
     }

     .footer-contact, .footer-links {
         width: 100%;
         text-align: center;
         margin-bottom: 10px;
     }
 }


/* Sub-Footer */
#sub-footer {
  color: #111;
  font-size: 11px;
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;

  background: #f2f2f2;
}
#sub-footer a {
  color: #414141;
  text-decoration: none;
}
#sub-footer a:hover {
  color: #000;
  text-decoration: underline;
}

/*********************************
 * 12) RESPONSIVE MEDIA QUERIES
 *********************************/

@media (max-width: 767px) {
  #wrapper {
    width: 100%;
    box-shadow: none;
  }

  #hotline h1 {
    font-size: 13px !important;
    line-height: 30px;
  }

  #website h3 {
    font-size: 22px !important;
    line-height: 30px;
    padding: 10px 0 !important;
  }
  #website img,
  #hotline img {
    display: none;
  }

  h2 {
    font-size: 21px;
  }

  #content {
    padding: 10px !important;
    margin: 25px 5%;
    width: 90%;
  }
  #contentleft,
  #contentright {
    width: 100%;
    margin: 0;
    float: none;
  }
  #contentleft .text {
    margin: 0 0 15px;
  }
  .box {
    margin-top: 25px;
    border-radius: 4px;
  }

  #karte_rechts {
    width: 100%;
  }
  #karte_unten {
    display: none !important;
  }

  #footer_desktop {
    display: none !important;
  }
  #footer_mobil {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    float: none;
  }
  #meta {
    position: relative;
    float: none;
    display: block;
    width: 100%;
    margin-left: 25px;
    overflow: auto;
    top: auto;
    right: auto;
  }

  fieldset {
    margin: 0 20px;
    width: calc(100% - 40px);
    padding: 0;
  }
  input, textarea {
    width: 100%;
    margin: 0 0 10px;
  }
  label {
    margin: 5px 0 0;
  }
  .btnSubmit {
    margin-left: calc(50% - 132px);
  }
  .ssl {
    margin-left: calc(50% - 130px);
  }
}

@media (max-width: 767px) {
  #hotline h1 {
    font-size: 20px !important;
  }
  #website h3 {
    font-size: 20px !important;
  }
}

@media (max-width: 767px) {
  #hotline h1 {
    font-size: 19px !important;
  }
  #website h3 {
    font-size: 19px !important;
  }
}

@media (max-width: 767px) {
  #hotline h1 {
    font-size: 18px !important;
  }
  #website h3 {
    font-size: 18px !important;
  }
  h2 {
    font-size: 20px;
  }
}

/* Popup-Overlay */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup-Box */
.popup-content {
    background: #f8f8f8; /* Heller Hintergrund für bessere Lesbarkeit */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    border: 2px solid #c5ad82; /* Dunkelrote Kanzlei-Farbe */
}

/* Schließen-Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Headline */
.limited-spots {
    color: #c5ad82; /* Dunkelrot */
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Infotext */
.info-text {
    font-size: 1em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Call-to-Action Button */
.cta-btn {
    background-color: #c5ad82; /* Dunkelrot - passend zur Kanzlei */
    color: #ffffff; /* Weißer Text für maximalen Kontrast */
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.cta-btn:hover {
    background-color: #a00000; /* Etwas helleres Rot für Hover */
}

/* Alternative Kontaktmöglichkeit */
.info-text a {
    color: #c5ad82;
    font-weight: bold;
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
  #content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Optional: Zentriert den Inhalt */
  }

  #contentleft,
  #contentright {
    width: 100%;
    margin: 0;
    float: none;
  }
}

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#cookie-banner p {
    margin: 0;
    flex: 1;
}

#cookie-banner a {
    color: #C5AD82;
    text-decoration: underline;
}

#cookie-banner a:hover {
    color: #fff;
}

#accept-cookies {
    background: #C5AD82;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

#accept-cookies:hover {
    background: #a89060;
}
