/*universal selectors*/
* {
  box-sizing: border-box;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

*::selection {
  background-color: var(--ks-red);
  color: var(--ks-white);
}

*:focus-visible,
.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem var(--ks-grey1);
  outline: none;
}

:root {
  --ks-black: black;
  --ks-white: white;
  --ks-red: #ce0000;
  --ks-grey1: #575756;
  --ks-grey2: #acacac;
}

body {
  font-family: "Sparkasse", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  color: var(--ks-black);
}

h1,
h2 {
  color: var(--ks-grey1);
  margin: 0;
  line-height: 1;
}

h3 {
  line-height: 1.5;
  color: var(--ks-grey1);
  margin: 0;
}

p,
h4 {
  margin: 0;
}

a {
  color: var(--ks-black);
  text-decoration: none;
}

h1,
.h2-big {
  font-size: 3.75rem;
}

h2 {
  font-size: 2.5rem;
}

.h2-small {
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 0.2rem;
  color: var(--ks-black);
}

/* Standard: alles sichtbar */
h1,
h2,
.h2-big {
  opacity: 1;
  transform: none;
}

.js h1,
.js h2:not(.h2-small),
.js .h2-big {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#privacypolicy h3 {
  font-size: 1rem;
}

/* Barrierefreiheit: reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .js h1,
  .js h2,
  .js .h2-big {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

ul,
figure {
  list-style: none;
  padding: 0;
  margin: 0;
}

.headline-500 {
  font-weight: 500;
}

.bg-red {
  background-color: var(--ks-red);
}

.bg-white {
  background-color: var(--ks-white);
}

.standard-padding {
  padding: 5rem 10rem 5rem 10rem;
  border-top: 1.5px solid var(--ks-black);
}

.standard-border {
  border: 1.5px solid var(--ks-black);
}

.start-grid {
  width: 50%;
  padding-top: 10rem !important;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.breadcrump-wrapper {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.text-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
}

.headline-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.img-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.grid-3 li {
  padding: 3rem;
  text-align: center;
}

.grid-3 li:nth-child(2) {
  border-left: 1.5px solid var(--ks-black);
  border-right: 1.5px solid var(--ks-black);
}

.h2-center {
  padding: 3rem;
  border-bottom: 1.5px solid var(--ks-black);
  text-align: center;
}

.btn,
.btn:visited {
  text-decoration: none;
  color: var(--ks-black);
  padding: 0.5rem 1rem;
  background-color: var(--ks-grey2);
  border: 1.5px solid var(--ks-black);
  box-shadow: -4px 4px var(--ks-red);
  transition: all ease-in-out;
  font-size: 1rem;
  font-family: inherit;
}

.submit-btn,
.submit-btn:visited {
  text-decoration: none;
  color: var(--ks-black);
  padding: 0.5rem 1rem;
  background-color: var(--ks-white);
  border: 1.5px solid var(--ks-black);
  box-shadow: -4px 4px var(--ks-red);
  transition: all ease-in-out;
  font-size: 1rem;
  font-family: inherit;
}

.btn:hover,
.btn:active {
  transform: translate(-4px, 4px);
  box-shadow: 0 0 var(--ks-red);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
  cursor: pointer;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.list li {
  background: url("./icons/list-arrow.svg") no-repeat left center;
  background-size: 16px 16px;
  padding-left: 24px;
  background-position: 0 0.3em;
}
.contact-badge {
  border-radius: 50%;
  border: 1.5px solid var(--ks-black);
  height: 10rem;
  width: 10rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  transform: rotate(-15deg);
  box-shadow: -4px 4px var(--ks-red);
  position: absolute;
  right: 1.5rem;
  bottom: -3rem;
  background-color: var(--ks-white);
  transition: transform 0.08s ease;
}

.contact-badge:hover {
  /* 
  transform: rotate(15deg);
  transition: transform 0.08s ease;*/
  transform: translate(-4px, 4px) rotate(-15deg);
  box-shadow: 0 0 var(--ks-red);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

.skip-link {
  position: absolute;
  top: -55px;
  left: 0;
  background: var(--ks-red);
  color: var(--ks-white);
  border: 1.5px solid var(--ks-black);
  padding: 0.5rem 1rem;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/*Header*/

.logo {
  height: 2.5rem;
}

header {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: var(--ks-white);
  border-bottom: 1.5px solid var(--ks-black);
}
header nav {
  display: flex;
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  position: relative;
}

.nav-wrapper a {
  padding: 0.3rem;
  border: 1.5px solid var(--ks-white);
  transition: transform 0.3s ease;
}

.nav-wrapper a:hover,
.nav-wrapper a.active {
  border: 1.5px solid var(--ks-black);
  transition: transform 0.3s ease;
}

.current {
  border: 1.5px solid var(--ks-black) !important;
  background-color: var(--ks-grey2);
}
.dropdown-wrapper {
  display: flex;
  gap: 10px;
}

.dropdown-wrapper svg {
  height: 20px;
}

.dropdown {
  position: absolute;
  top: 2.5rem;
  overflow: hidden;
  background-color: var(--ks-white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 5;
  width: 17rem;
  border: 1.5px solid var(--ks-black);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menue-btn {
  appearance: none;
  border: none;
  background-color: var(--ks-white);
}

.burger-closed,
.burger-open {
  height: 50px;
}

.burger-closed {
  margin-top: 3px;
}

/*Responsive Menue*/
.responsive-menue {
  position: absolute;
  right: 0;
  top: 75px;
  background-color: var(--ks-grey2);
  padding: 3rem;
  font-size: 2rem;
  left: 0;
  height: 100vh;
  border-top: 1.5px solid var(--ks-black);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.responsive-menue.active {
  transform: translateX(0);
}

.burger-open {
  display: none;
}

.burger-open.active {
  display: block;
}

.burger-closed.active {
  display: none;
}

.responsive-menue .list li {
  background-size: 25px 25px;
  padding-left: 30px;
  background-position: 0em;
  border-bottom: 0px solid var(--ks-black);
}

.responsive-menue li {
  border-bottom: 1.5px solid var(--ks-black);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.burger-menue-text {
  display: none;
}

/*Video*/

.start-video {
  width: 100%;
  height: 600px;
  object-fit: cover;
  position: relative;
}

video {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.controls {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 2rem;
  position: relative;
}

.btn-video {
  position: absolute;
  bottom: -6px;
  left: 37px;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

#text-play,
#text-pause {
  background-color: var(--ks-white);
  padding: 0.2rem 0.3rem;
  font-size: 0.8rem;
  border: 1.5px solid var(--ks-black);
  font-family: inherit;
  display: none;
}

.video-descr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*img*/

figure {
  width: fit-content;
  height: 40rem;
  margin: 0;
  width: 100%;
}

.img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border: 1.5px solid var(--ks-black);
}

.badge-wrapper {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  align-items: center;
}

.badge {
  width: 10rem;
  height: 100%;
}

/*FAQ*/
.faq-wrapper {
  width: 100%;
}

#nachfolge .faq-content:nth-child(3),
#start-up .faq-content:nth-child(3),
#business .faq-content:nth-child(3) {
  border-top: 1.5px solid var(--ks-black);
  border-bottom: 1.5px solid var(--ks-black);
}

#faq .faq-wrapper .faq-content:not(:last-child) {
  border-bottom: 1.5px solid var(--ks-black);
}

.faq-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question:hover {
  cursor: pointer;
}

.faq-answer {
  display: none;
  width: 90%;
}

.faq-content.active .faq-answer {
  display: flex;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-content.active .faq-icon {
  transform: rotate(180deg);
}

.faq-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.faq-toggle-text {
  display: none;
}

/*Footer*/
footer {
  border-top: 1.5px solid var(--ks-black);
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 3rem;
}

.footer-article-1 {
  padding-top: 5rem;
  padding-left: 10rem;
  border-right: 1.5px solid var(--ks-black);
  padding-right: 3rem;
  padding-bottom: 5rem;
}

.footer-article-2 {
  border-right: 1.5px solid var(--ks-black);
  padding-right: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.footer-article-3 {
  padding-right: 10rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.footer-nav {
  background-color: var(--ks-grey2);
  border-top: 1.5px solid var(--ks-black);
  padding: 1rem;
}

.footer-nav a {
  text-decoration: underline;
}

.footer-nav-wraper {
  display: flex;
  gap: 3rem;
}

/*owlcarousel*/

.owl-theme .owl-dots .owl-dot.active span {
  background: var(--ks-red) !important;
  border: 1.5px solid var(--ks-black);
}

.owl-theme .owl-dots .owl-dot span {
  background: var(--ks-white) !important;
  border: 1.5px solid var(--ks-black);
}

.owl-theme .owl-nav [class*="owl-"]:hover {
  background: var(--ks-grey2) !important;
}

.owl-theme .owl-nav [class*="owl-"] {
  border: 1.5px solid var(--ks-black) !important;
  border-radius: 0px !important;
}

.owl-carousel .owl-nav button.owl-next svg,
.owl-carousel .owl-nav button.owl-prev svg,
.owl-carousel .owl-nav button.owl-next span,
.owl-carousel .owl-nav button.owl-prev span {
  margin: 7px 7px 0 7px !important;
}

.owl-theme .owl-nav {
  margin-top: 1rem !important;
}

.gallery-text {
  margin-top: 10rem;
}

/*Sitemap*/
#sitemap a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

#sitemap ul li ul {
  padding-left: 2rem;
}

.list .maintopic {
  display: block;
  padding-left: 1.5rem;
}

/*Formular*/

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  grid-template-areas:
    "checkbox       checkbox      "
    "contact contact"
    "firstname      lastname      "
    "mail           phone         "
    "msg            msg           "
    "captcha        captcha       "
    "dsgvo dsgvo"
    "reset          submit        ";
  padding: 3rem;

  border: 1.5px solid var(--ks-black);
}

.checkbox-area {
  grid-area: checkbox;
}

.contact-data {
  grid-area: contact;
}

.input-firstname {
  grid-area: firstname;
}

.input-lastname {
  grid-area: lastname;
}

.input-mail {
  grid-area: mail;
}

.input-phone {
  grid-area: phone;
}

.input-message {
  grid-area: msg;
}

.captcha-wrapper {
  grid-area: captcha;
}

.dsgvo-wrapper {
  grid-area: dsgvo;
}

.reset-btn {
  grid-area: reset;
}

.submit-btn {
  grid-area: submit;
}

.form-fld {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
  padding: 0;
}

.input-fld {
  border: 1.5px solid var(--ks-black);
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  height: 2.5rem;
  padding-left: 0.5rem;
  outline: none;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.checkbox-wrapper div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="checkbox"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 70%;
  height: 70%;
  background-color: var(--ks-red);
  opacity: 0.5;
  scale: 0;

  transition:
    scale 100ms ease-out,
    opacity 100ms ease-out;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: inherit;
  font-size: inherit;
  color: var(--font-color);
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ks-black);
  cursor: pointer;
  position: relative;
  border-radius: 0px !important;
}

input[type="checkbox"]:checked::before {
  opacity: 1;
  scale: 1;
}

#message {
  height: 12rem;
}

.captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
}

#captcha-refresh-btn {
  cursor: pointer;
  color: var(--ks-red);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#captcha-img {
  width: 250px;
  border: 1.5px solid var(--ks-black);
  padding: 0.5rem;
}

#captcha-input {
  width: 250px;
}
.hidden {
  display: none;
}

.error-txt {
  color: var(--ks-red);
  display: none;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.input-error {
  box-shadow: 0 0 0 0.2rem var(--ks-red);
}

/*Cookie-Banner*/
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  background: var(--ks-white);
  color: var(--ks-black);
  padding: 20px;
  border: 1.5px solid var(--ks-black);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;

  animation: fadeIn 0.3s ease;
}

.cookie-banner .btn {
  font-size: 0.8rem;
}

.cookie-banner h3 {
  font-size: 1rem;
}

.cookie-banner p {
  font-size: 0.8rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

/*media queries*/

@media screen and (min-width: 2200px) {
  .standard-padding {
    padding-left: 25rem;
    padding-right: 25rem;
  }
  .footer-article-1 {
    padding-left: 25rem;
  }

  .footer-article-3 {
    padding-right: 25rem;
  }

  .start-grid {
    width: 50%;
  }
}

@media screen and (min-width: 2000px) {
  .standard-padding {
    padding-left: 20rem;
    padding-right: 20rem;
  }

  .start-grid {
    width: 70%;
  }

  .footer-article-1 {
    padding-left: 20rem;
  }

  .footer-article-3 {
    padding-right: 20rem;
  }

  header nav,
  .footer-nav {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .img-text-grid,
  .headline-text-grid {
    gap: 7rem;
  }

  .footer-wrapper {
    grid-template-columns: 2fr 1fr 1fr;
  }

  figure {
    height: 50rem;
  }

  .grid-3 li,
  .h2-center,
  .faq-content {
    padding: 4rem;
  }

  .start-video,
  video {
    height: 750px;
  }
}

@media screen and (max-width: 1500px) {
  html {
    font-size: 18px;
  }

  .standard-padding {
    padding: 5rem;
  }

  .footer-article-1 {
    padding-left: 5rem;
  }

  .footer-article-3 {
    padding-right: 5rem;
  }
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 16px;
  }

  .link {
    text-decoration-thickness: 1px;
  }

  video,
  .start-video {
    height: 500px;
  }

  .standard-padding {
    padding: 5rem 3rem 5rem 3rem;
  }

  .footer-article-1 {
    padding-left: 3rem;
  }

  .footer-article-3 {
    padding-right: 3rem;
  }

  .footer-wrapper {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .start-grid {
    width: 60%;
  }
}

@media screen and (max-width: 1050px) {
  h1,
  .h2-big {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }
}

@media screen and (min-width: 800px) {
  .responsive-nav {
    display: none;
  }
}

@media screen and (max-width: 800px) {
  .h2-big,
  h1 {
    font-size: 2.5rem;
    width: 75%;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1rem;
  }

  p,
  h3 {
    hyphens: auto;
  }
  .img-text-grid,
  .headline-text-grid,
  .footer-wrapper {
    grid-template-columns: 1fr;
  }

  .gallery-text {
    margin: 0rem 1rem 1rem 1rem;
  }

  .start-grid {
    width: 75%;
  }

  .fullwidth-nav {
    display: none;
  }

  .responsive-nav {
    display: flex;
    justify-content: space-between;
    height: 75px;
  }

  video,
  .start-video {
    height: 400px;
  }

  .contact-badge {
    height: 8rem;
    width: 8rem;
    font-size: 1rem;
  }

  .footer-wrapper {
    gap: 0;
  }

  .footer-article-2,
  .footer-article-1 {
    border-right: none;
    border-bottom: 1.5px solid var(--ks-black);
    padding-left: 3rem;
  }

  .footer-article-3 {
    padding-left: 3rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-3 li:nth-child(2) {
    border-bottom: 1.5px solid var(--ks-black);
    border-top: 1.5px solid var(--ks-black);
    border-left: 0px solid var(--ks-black);
    border-right: 0px solid var(--ks-black);
  }
}

@media screen and (max-width: 800px) {
  html {
    font-size: 14px;
  }

  figure {
    height: 30rem;
  }
  .badge {
    height: auto;
    width: 50%;
  }
}

@media screen and (max-width: 720px) {
  .contact-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "checkbox      "
      "contact"
      "firstname     "
      "lastname      "
      "mail          "
      "phone         "
      "msg           "
      "msg           "
      "captcha       "
      "dsgvo"
      "submit        "
      "reset         ";
  }

  #captcha-img,
  #captcha-input {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .footer-nav-wraper {
    gap: 1rem;
  }

  .h2-center,
  .faq-content,
  .grid-3 li,
  .contact-form {
    padding: 2rem;
  }

  .h2-big,
  h1,
  .start-grid {
    width: 100%;
  }

  figure {
    height: 18rem;
  }
}

@media screen and (max-width: 450px) {
  .contact-badge {
    height: 7rem;
    width: 7rem;
    line-height: 1.1;
  }
  .standard-padding {
    padding: 3rem 1rem 3rem 1rem;
  }

  .footer-article-1,
  .footer-article-2,
  .footer-article-3 {
    padding: 3rem 1rem 3rem 1rem;
  }

  .footer-nav-wraper {
    flex-direction: column;
  }

  .badge-wrapper {
    flex-direction: column;
  }
}

@media screen and (max-width: 400px) {
  .responsive-menue {
    font-size: 1.5rem;
  }
  .responsive-menue .list li {
    background-size: 20px 20px;
  }
}

@media screen and (max-width: 400px) {
  .contact-badge {
    display: none;
  }
}
