/* ========================= */
/* RESET */
/* ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #566369;
  background: #fdf6e3;

  /* ========================= */
  /* LOGO */
  /* ========================= */

  /* ========================= */
  /* HEADLINES */
  /* ========================= */

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  /* ========================= */
  /* CONTAINER */
  /* ========================= */

  .page {
    max-width: 1100px;
    margin: 10px auto;


  }

  .frame {
    /*border: 1px solid #798992;*/
    background: #fdf6e3;
    border: 0px solid #fff;

    /*  box-shadow:
    0 2px 0 rgba(255,255,255,0.4) inset,
    0 10px 25px rgba(0,0,0,0.1),
    0 50px 90px rgba(0,0,0,0.25);
*/
  }

  /* ========================= */
  /* GRID */
  /* ========================= */

  .grid {
    display: grid;
    grid-template-columns: 180px 1fr 1fr 180px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "logo header header right"
      "nav nav nav right"
      "sidebar content content right";
  }

  /* ========================= */
  /* LOGO */
  /* ========================= */

  .logo {
    grid-area: logo;
    padding: 10px;
    background: #fdf6e3;
  }

  .logo img {
    max-width: 140px;
  }

  /* ========================= */
  /* HEADER */
  /* ========================= */

  .header-text {
    grid-area: header;
    background: #fdf6e3;
    text-align: center;
    padding: 20px 10px;
  }

  .header-text h1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 0px;
    color: #000;
  }

  @media (max-width: 900px) {
    .header-text h1 {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 20px;
      font-weight: 600;
      margin: 0 0 0px;
      color: #000;
    }
  }

  .header-text hr {
    width: 60%;
    margin: 10px auto;
    border: none;
    border-bottom: 1px solid #798992;
  }

  .header-text p {
    margin: 0;
    font-size: 16px;
    color: #000;
  }

  /* ========================= */
  /* TOP NAV */
  /* ========================= */

  .topnav {
    grid-area: nav;
    background: linear-gradient(#a0aeb7, #4e5b62) !important;
  }

  .topnav::after {
    content: "";
    display: block;
    height: 3px;
    background: #fdf6e3;
  }

  .topnav ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .topnav li {
    flex: 1;
  }

  .topnav a {
    display: block;
    text-align: center;
    height: 41px;
    line-height: 41px;
    color: #FCF1D1;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(#a0aeb7, #4e5b62);
    position: relative;
  }

  /* GLOSSY */
  /*
.topnav a::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,0.15) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  opacity: 0;
  transition: 0.6s;
}

.topnav a:hover::before {
  left: 120%;
  opacity: 1;
}
*/

  .topnav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: transparent;
  }

  .topnav a:hover,
  .topnav a.active {
    background: linear-gradient(#a0aeb7, #4e5b62);
    color: #FCF1D1;
  }

  .topnav a:hover::after,
  .topnav a.active::after {
    background: #DD0000;
  }

  /* ========================= */
  /* SIDEBAR */
  /* ========================= */

  .sidebar {
    grid-area: sidebar;
    background: #f6ebcc;
  }

  .sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sidebar ul li a {
    display: block;
    padding: 8px;
    font-size: 12px;
    line-height: 20px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #fdf6e3;
    background: #f6ebcc;
    position: relative;
    overflow: hidden;
  }

  /* GLOSSY */
  .sidebar ul li a::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%);
    transform: rotate(25deg);
    opacity: 0;
    transition: 0.6s;
  }

  .sidebar ul li::before {
    content: none !important;
    left: 120%;
    opacity: 1;
  }

  .sidebar ul li a:hover,
  .sidebar ul li a.active {
    background: #f6ebcc;
    color: #000;
    border-bottom: 2px solid #DD0000;
  }

  /* ========================= */
  /* CTA */
  /* ========================= */

  .sidebar .cta a {
    all: unset;
    display: block;
    cursor: pointer;
  }

  .cta {
    margin: 20px 10px;
    padding: 15px 10px;
    text-align: center;
    background: rgba(246, 235, 204, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #000;
  }

  .cta::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%);
    transform: rotate(25deg);
    opacity: 0;
    transition: 0.6s;
  }

  .cta:hover::before {
    left: 120%;
    opacity: 1;
    z-index: 1;
  }

  .cta:hover {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 8px 18px rgba(0, 0, 0, 0.3);
  }

  .cta a {
    color: #000;
    text-decoration: none;
    text-decoration: underline;
  }

  .cta:hover a {
    color: #000;
    text-decoration: underline;
  }

  .cta-title {
    display: block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .cta-action {
    display: block;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0.3px;
  }

  /* ========================= */
  /* CONTENT */
  /* ========================= */

  .content {
    grid-area: content;
    padding: 25px;
    background: #fdf6e3;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
  }

  .content p {
    margin-bottom: 15px;
  }

  .content img {
    width: 90%
  }

  .content ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style-type: "– ";
    list-style-position: outside;
  }

  .content li {
    margin-bottom: 6px;
  }

  .content a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
  }

  .content a:hover {
    text-decoration: none;
    color: #DD0000;
  }

  .cta-sachverstaendiger {
    max-width: 500px;
    margin: 30px auto;
    padding: 18px 20px;
    text-align: center;

    background: linear-gradient(to bottom,
        rgba(246, 235, 204, 0.95),
        rgba(240, 225, 180, 0.95));

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 6px 16px rgba(0, 0, 0, 0.12);

    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

@media (max-width: 768px) {

    .cta-sachverstaendiger-mobile-dis-none {
   display:none;
  }
}

  .cta-sachverstaendiger::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -120%;
    width: 200%;
    height: 200%;

    background: linear-gradient(120deg,
        transparent 40%,
        rgba(255, 255, 255, 0.25),
        transparent 60%);

    transform: rotate(25deg);
    opacity: 0;

    transition: left 0.7s ease, opacity 0.3s ease;
  }

  .cta-sachverstaendiger:hover::before {
    left: 120%;
    opacity: 1;
  }

  .cta-sachverstaendiger:hover {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 12px 28px rgba(0, 0, 0, 0.2);
  }

  .cta-sachverstaendiger a {
    display: block;
    text-decoration: none;
    color: #2f2a1d;
    position: relative;
    z-index: 2;
  }

  .cta-headline {
    display: block;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .cta-text {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
    color: #000;
  }

  /* ========================= */
  /* BUTTON */
  /* ========================= */

  .cta-btn {
    display: inline-block !important;
    padding: 8px 22px;

    background: #e9e9ed !important;
    color: #000 !important;

    font-size: 13px;
    font-weight: 400 !important;
    text-transform: uppercase;

    border-radius: 8px;

    border: 1px solid #cccccc;

    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);

    transition: all 0.2s ease;

    appearance: none;
    -webkit-appearance: none;

    font-family: inherit;
  }

  .cta-sachverstaendiger:hover .cta-btn {
    background: #fff;
    color: #000 !important;
    text-decoration: none;
    transform: translateY(-3px);

    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  }

  /* ========================= */
  /* RIGHT */
  /* ========================= */

  .right {
    grid-area: right;
    background: #f6ebcc;
  }

  .right img {
    width: 100%;
  }

  /* ========================= */
  /* FOOTER */
  /* ========================= */

  .footer {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1.2fr;
    background: #f6ebcc;
    padding: 15px;
    gap: 20px;
    color: #000;
    font-size: 15px;
    line-height: 1.4;
  }

  .footer a {
    color: #000;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
  }

  .footer-left,
  .footer-small,
  .footer-right {
    font-size: 11px;
  }

  .footer-middle {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .footer-middle a:hover {
    color: #dd0000;
  }

  .footer-right {
    text-align: left;
    padding-left: 155px;
  }

  .footer-right a {
    display: block;
    color: #000;
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 17px;
  }

  .footer-right a:hover {
    color: #DD0000 !important;
  }

  /* ========================= */
  /* SEO */
  /* ========================= */

  .seo {
    text-align: center;
    font-size: 11px;
    color: #dfd5b9;
    padding: 20px;
    margin-top: 10px;
  }

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

  /* ========================= */
  /* FORM */
  /* ========================= */

  table h2 {
    font-size: 16px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
  }

  table {
    padding: 5px;
  }

  table a:hover {
    color: #DD0000 !important;
  }

  .Stil6 {
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-right: 0;
  }

  .Stil8 {
    font-size: 12px;
    color: #BB0000;
  }

  table td {
    padding: 10px 10px !important;
    vertical-align: middle;
  }

  table tr {
    border-bottom: 8px solid transparent;
    /* Abstand zwischen Zeilen */
  }

  /* Inputs fixen */
  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #e9e9ed;
    font-size: 13px;

  }

  /* Mobile */
  @media (max-width: 768px) {

    .Stil6 {
      font-size: 12px;
      word-break: break-word;
      overflow-wrap: break-word;
      margin-right: 0;
      margin-top: -10px;
      line-height: 20px !important;
      display: block;
    }

    .Stil8 {
      margin-top: 10px;
    }

    table,
    tbody,
    tr,
    td {
      display: block;
      width: 100% !important;
    }

    table td {
      padding: 4px 10px !important;
    }

  table h2 {
    font-size: 18px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
  }

 .content table {
    font-size: 15px;
  }

  }

  /* ========================= */
  /* MOBILE */
  /* ========================= */

  @media (min-width: 768px) {

    .img-mobile {
      display: none;
    }

  }

  .mobile-bar {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.open {
    display: block;
  }

  /* ========================= */
  /* MOBILE MENU */
  /* ========================= */

  .mobile-menu {
    background: #f6ebcc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu>ul>li,
  .mobile-menu>ul>li .menu-item-wrapper>a {
    padding: 10px 7px;
    color: #000 !important;
    text-align: left;
    font-size: 16px;
    text-decoration: none;

    width: auto;
    height: auto;
    white-space: nowrap;
    text-decoration: none;
    text-align: left
  }

  .mobile-menu>ul>li {
    border-bottom: 1px solid #b8a97a;
  }

  .mobile-menu>ul>li .menu-item-wrapper>a {
    border-bottom: none;
  }

  .mobile-menu.open {
    max-height: 2000px;
  }

  /* ========================= */
  /* MOBILE MENU ACCORDION */
  /* ========================= */

  .menu-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: inline-block;
    padding: 0 15px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    user-select: none;
    line-height: 40px;
  }

  .submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.03);
  }

  .submenu.open {
    display: block;
  }

  .submenu li {
    border-bottom: none !important;
  }

  .submenu li a {
    padding: 12px 10px 12px 35px !important;
    font-size: 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(184, 169, 122, 0.2) !important;
    display: block;
    background: #faf3df;
    /* Etwas heller als das Hauptmenü für den "Einrückungs-Effekt" */
  }

  .submenu li a:hover {
    background: #fdfaf2;
    color: #dd0000 !important;
  }

  .submenu li:last-child a {
    border-bottom: none !important;
  }

  .required-mark {
    text-align: center;
  }

  @media (max-width: 980px) {

    .content {
      grid-area: content;
      padding: 25px;
      background: #fdf6e3;
      font-size: 16px;
      line-height: 1.5;
      color: #000;
    }
  }


  @media (max-width: 768px) {

    .required-mark {
      text-align: left;
    }

    .frame {
      border: none;
    }

    .page {
      max-width: 95%;
      margin: 0 auto;
    }

    /* GRID RESET */
    .sidebar,
    .right,
    .topnav {
      display: none;
    }

    .grid {
      display: block;
      grid-template-columns: 1fr;
      grid-template-areas:
        "logo"
        "header"
        "content";
    }

    /* ========================= */
    /* MOBILE HEADER */
    /* ========================= */

    .phone-link {
      color: #000 !important;
      text-decoration: none !important;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
      font-size: 18px;
    }

    .phone-link:visited,
    .phone-link:active,
    .phone-link:hover {
      color: #000;
      text-decoration: none;
    }

    .mobile-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 12px;
      background: #f6ebcc;
      border-bottom: 1px solid #d5c08a;
    }

    .mobile-title {
      font-size: 14px;
      font-weight: bold;
      letter-spacing: 1px;
      color: #000;
    }

    .burger {
      font-size: 26px;
      color: #000;
      cursor: pointer;
    }

    /* ========================= */
    /* LOGO */
    /* ========================= */

    .logo {
      text-align: center;
      padding: 15px 10px 5px;
    }

    .logo img {
      width: 120px;
      height: auto;
      image-rendering: -webkit-optimize-contrast;
    }

    /* ========================= */
    /* HEADER TEXT */
    /* ========================= */

    .header-text {
      padding: 15px 10px;
      text-align: center;
    }

    .header-text h1 {
      font-size: 20px;
      line-height: 1.3;
    }

    .header-text p {
      font-size: 14px;
    }

    /* ========================= */
    /* CONTENT */
    /* ========================= */

    .content {
      padding: 0px 12px;
      font-size: 17px;
      line-height: 1.5;
    }

    .content img {
      width: 100%;
      height: auto;
      margin: 12px 0;
    }

    .content li {
      margin-bottom: 6px;
      padding-left: 10px;
    }

    /* ========================= */
    /* FOOTER */
    /* ========================= */

    .footer {
      grid-template-columns: 1fr;
      text-align: left;
      gap: 10px;
      padding: 18px 12px;
      font-size: 15px;
      line-height: 1.6;
      word-break: normal;
      overflow-wrap: normal;
    }

    .footer a {
      font-size: 15px;
    }

    .footer-left {
      margin-bottom: 4px;
    }

    .footer-middle .address {
      line-height: 1.5;
      margin-bottom: 10px;
    }

    .footer-middle .address br {
      display: inline;
    }

    .footer-middle {
      display: grid;
      grid-template-columns: max-content 1fr;
      column-gap: 10px;
      gap: 3px 8px;
      margin-top: 8px;
    }

    .footer-middle .contact div {
      white-space: normal;
    }

    .footer-middle .contact {
      grid-column: 1;
    }

    .footer-middle .contact-values {
      grid-column: 2;
    }

    .footer-middle .contact div,
    .footer-middle .contact-values div {
      margin-bottom: -4px;
    }

    .footer-middle .contact-values div {
      white-space: nowrap;
      margin-left: -140px;
    }


    .footer-right {
      text-align: left;
      margin-top: 8px;
      padding-left: 0px;
    }


    .footer-right a {
      display: block;
      margin-bottom: 4px;
    }

    input,
    textarea,
    select {
      width: 94%;

    }

    table {
      padding: 0px;
    }

    table,
    tbody,
    tr,
    td {
      display: block;
      width: 100% !important;
    }

    table td {
      padding: 4px 10px 4px 10px;

    }

  }

  #content #innen ul {
    list-style-type: none;
    list-style-image: url(/assets/img/li1.png);
  }
}

/* Cookie Consent Custom Styles */
.cc-window.cc-banner {
  border-top: 1px solid #798992;
  border-left: 1px solid #798992;
  border-right: 1px solid #798992;
}

@media (min-width: 980px) {

  .cc-window.cc-banner,
  .cc-window.cc-floating {
    max-width: 980px;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.content-block {
  margin-bottom: 40px;
}

.image-wrapper {
  max-width: 850px;
  margin: 25px auto;
  overflow: hidden;
}

.image-row {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-end;
}

.image-row .img-container {
  flex: 1;
  min-width: 0;
}

.image-row img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.image-full img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
}

.image-wrap-right {
  overflow: hidden;
  margin: 20px 0;
}

.image-wrap-right .image {
  float: right;
  width: 50%;
  margin-left: 25px;
  margin-bottom: 10px;
  padding-top: 5px;
}

.image-wrap-right img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .image-wrap-right .image {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 20px;
  }

  .image-row {
    flex-direction: column;
  }

  .image-row .img-container {
    width: 100%;
  }

  .content .image-wrapper img {
    width: 92%;
  }
}