/* Reset & Basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f7fa;
  color: #333;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Max. Inhaltsbreite */
.inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar {
  background: #fca311;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  padding: 2px 0;
  border-bottom: 2px solid #fff;
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  text-align: left;
}

.topbar-right {
  text-align: right;
  letter-spacing: 1px;
}

/* Header */
header {
  position: relative;
  color: #112037;
  padding: 90px 0 180px;
  overflow: visible;
  background-image: url("img/kas-arbeitssicherheit.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.70);
  z-index: 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

.header-left {
  flex: 1;
  min-width: 320px;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.header-right {
  flex: 0 0 460px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.logo-wrapper {
  margin-bottom: 30px;
}

.logo-wrapper img {
  max-height: 180px;
  width: auto;
  display: block;
}

.headline {
  text-align: left;
}

.headline h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  color: #112037;
  margin-bottom: 16px;
}

.header-subheadline {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: #2072B7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
  margin-bottom: 0;
}

.header-tobias {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  position: relative;
  margin-bottom: -180px;
}

/* ÃƒÅ“berlappung CTA */
.cta-overlap {
  position: relative;
  margin-top: calc(-1 * clamp(120px, 24vw, 120px));
  margin-bottom: 40px;
  padding-bottom: 40px;
  z-index: 3;
}

.cta-card {
  margin: 0 auto;
  max-width: 860px;
  background: #fff;
  color: #112037;
  border-radius: 200px;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.cta-card button {
  background: #ffb703;
  color: #fff;
  border: none;
  padding: 18px 40px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-card button:hover {
  background: #fca311;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.response-time {
  margin-top: 14px;
  font-size: 1rem;
  opacity: 0.95;
}

.phone-contact {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.phone-contact img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.phone-contact a {
  color: #112037;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}

.phone-contact a:hover {
  text-decoration: underline;
}

/* Ghostbutton */
.ghost-button,
.dark-ghost-button,
.ghost-button-light {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border: 2px solid #112037;
  color: #112037;
  background: transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.ghost-button:hover,
.dark-ghost-button:hover {
  background: #112037;
  color: #fff;
}

.ghost-button-wrapper {
  margin-top: 30px;
}

.ghost-button-light {
  border-color: #fff;
  color: #fff;
}

.ghost-button-light:hover {
  background: #fff;
  color: #112037;
}

/* Bereich 1 */
.heading-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.heading-icon img {
  width: 48px;
  height: auto;
  display: block;
  transform: translateY(-10px);
}

.heading-icon h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #112037;
  line-height: 1.2;
  margin: 0;
}

.section-white {
  background-color: #f4f7fa;
  padding-top: 0;
  padding-bottom: 110px;
}

.content-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.text-two-thirds {
  width: 66.6667%;
}

.text-full {
  width: 100%;
}

.text-two-thirds p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #fca311;
}

.text-two-thirds ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0 30px;
}

.text-two-thirds li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  padding-left: 36px;
}

.text-two-thirds li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.8rem;
  color: #fca311;
  font-weight: 700;
  line-height: 1.3;
}

/* Weitere Sektionen */
.full-section {
  width: 100%;
  padding: 120px 0;
}

.section-lightgrey {
  background-color: #fff;
}

/* Parallax-Bereich BehÃƒÂ¶rden */
.section-authority {
  position: relative;
  background-image: url("img/kas-arbeitsschutz.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

.section-authority .section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 32, 55, 0.72);
  z-index: 0;
}

.section-authority .section-content {
  position: relative;
  z-index: 2;
}

.section-authority .heading-icon h2,
.section-authority p,
.section-authority .highlight {
  color: #fff;
}

.section-authority .subheading {
  color: #fca311;
}

.section-darkgrey {
  background-color: #f4f7fa;
}

/* Highlights */
.highlight {
  font-weight: bold;
  color: #fca311;
  font-size: 1.2rem;
  line-height: 1.7;
}

.subheading {
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.7;
}

.section-white h2,
.full-section h2,
.contact-card-embedded h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* Bereich 3 */
.section3-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section3-text {
  width: 100%;
}

.benefit-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0 10px;
}

.benefit-list li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  position: relative;
  padding-left: 36px;
}

.benefit-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  color: #fca311;
  font-weight: 700;
  line-height: 1.3;
}

/* Formular unten */
.cta-bottom {
  position: relative;
  color: white;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.contact-card-embedded {
  background: #fff;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.contact-card-embedded .heading-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-card-embedded .heading-icon h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #112037;
  line-height: 1.2;
  margin: 0;
}

.contact-card-embedded .heading-icon img {
  width: 48px;
  height: auto;
  display: block;
  transform: translateY(0px);
}

.contact-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  color: #112037;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  border: 1px solid #d6dde5;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1rem;
  background: #fff;
  color: #112037;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: #fca311;
  box-shadow: 0 0 0 4px rgba(252, 163, 17, 0.15);
}

.checkbox-group {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.98rem;
  color: #112037;
  line-height: 1.6;
}

.checkbox-group a {
  color: #112037;
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: #fca311;
}

.submit-button {
  margin-top: 28px;
  background: #ffb703;
  color: #fff;
  border: none;
  padding: 18px 34px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}

.submit-button:hover {
  background: #fca311;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.form-message {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.form-success {
  background: #e8f7ec;
  color: #1f6b35;
  border: 1px solid #b7e2c2;
}

.form-error {
  background: #fdecec;
  color: #a12626;
  border: 1px solid #f3b8b8;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-scroll-button {
  display: inline-block;
  background: #ffb703;
  color: #fff;
  border: none;
  padding: 18px 40px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-scroll-button:hover {
  background: #fca311;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Footer */
.footer {
  background-color: #112037;
  color: white;
  padding: 60px 0;
}

.footer p,
.footer li,
.footer a,
.footer span {
  font-size: 1rem;
  line-height: 1.6;
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-quarter {
  flex: 0 0 25%;
  padding: 0 10px;
  box-sizing: border-box;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 20px;
}

.footer-socials a {
  margin-right: 10px;
  display: inline-block;
}

.footer-socials img {
  width: 40px;
  height: 40px;
}

.footer-quarter h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: #ffb703;
}

.footer-quarter ul {
  list-style: none;
  padding: 0;
}

.footer-quarter ul li {
  margin-bottom: 10px;
}

.footer-quarter ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-quarter ul li a:hover {
  color: #ffb703;
}

.footer-person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.person-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-contact .icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact img {
  width: 20px;
  height: 20px;
}

.footer-divider {
  height: 1px;
  background-color: #f2f2f233;
}

/* Referenzen Logo-Band */
.references-strip {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  padding: 50px 0 50px;
  z-index: 1;
}

.references-track {
  display: flex;
  width: max-content;
  animation: referencesScroll 38s linear infinite;
}

.references-slide {
  display: flex;
  align-items: center;
  gap: 70px;
  padding-right: 70px;
}

.references-slide img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.references-slide img:hover {
  opacity: 1;
  transform: scale(1.03);
}

@keyframes referencesScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


@media (max-width: 1200px) {
  header {
    padding: 60px 0 120px;
  }

  .logo-wrapper {
    margin-bottom: 18px;
  }

  .logo-wrapper img {
    max-height: 140px;
  }

  .headline h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 10px;
  }

  .header-subheadline {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  }

  /* Tobias etwas anpassen */
  .header-right {
    flex: 0 0 380px;
  }

  .header-tobias {
    max-width: 360px;
    margin-bottom: -140px;
  }

  /* CTA etwas näher ranholen */
  .cta-overlap {
    margin-top: -90px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .heading-icon h2 {
    font-size: 1.75rem;
  }

  .header-right {
    flex: 0 0 360px;
  }

  .header-tobias {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 6px 0;
  }

  .topbar-flex {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .topbar-left {
    display: none;
  }

  .topbar-right {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
  }

  header {
    padding: 20px 0 35px;
    background-attachment: scroll;
    background-position: center center;
  }

  .section-authority {
    background-attachment: scroll;
  }

  .header-flex {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0;
  }

  .header-left {
    flex: unset;
    min-width: auto;
    width: 100%;
    text-align: center;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .headline {
    text-align: center;
    margin-bottom: 0;
  }

  .logo-wrapper {
    margin-bottom: 10px;
  }

  .logo-wrapper img {
    max-height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .headline h1 {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: 4px;
  }

  .headline .header-subheadline {
  font-size: clamp(1.2rem, 3.2vw, 1.5rem);
  line-height: 1.1;
  margin-bottom: 0;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.header-left {
  margin-bottom: -100px;
}

  .header-right {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.header-tobias {
  position: relative;
  width: 260px;         /* <-- HIER steuerst du die GrÃ¶ÃŸe */
  max-width: none;     /* ganz wichtig */
  height: auto;
  display: block;

  transform: translateY(20px); /* etwas nach unten schieben */
  margin-bottom: -80px;        /* stÃ¤rker Ã¼ber CTA ziehen */
}

  .cta-overlap {
    margin-top: -35px;
    margin-bottom: 10px;
    padding-bottom: 15px;
  }

  .cta-card {
    max-width: 94%;
    border-radius: 16px;
    padding: 20px 16px;
  }

  .cta-scroll-button {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    padding: 14px 18px;
  }

  .response-time {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .phone-contact {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

  .phone-contact a {
    font-size: 1rem;
  }

  .phone-contact img {
  width: 20px;
  height: 20px;
}

  .heading-icon {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .heading-icon img {
    width: 34px;
    transform: translateY(0);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .heading-icon h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .section-white {
    padding-bottom: 70px;
  }

  .content-flex {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 25px 20px;
  }

  .text-two-thirds,
  .text-full {
    width: 100%;
    text-align: left;
  }

  .text-two-thirds p,
.section3-text p,
.section-authority p {
  font-size: 1rem;
  line-height: 1.65;
}

.highlight,
.subheading {
  font-size: 1.05rem;
  line-height: 1.65;
}

  .text-two-thirds li,
.benefit-list li {
  font-size: 1rem;
  line-height: 1.65;
  padding-left: 28px;
  margin-bottom: 14px;
}

.text-two-thirds li::before,
.benefit-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1.5rem;
  color: #fca311;
  font-weight: 700;
  line-height: 1.3;
}

  .full-section {
    padding: 80px 0;
  }

  .contact-card-embedded {
    padding: 24px;
    border-radius: 18px;
  }

  .contact-card-embedded .heading-icon h2 {
    font-size: 1.6rem;
  }

  .contact-card-embedded .heading-icon img {
    width: 38px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .form-group-full {
    grid-column: auto;
  }

  .footer-flex {
    flex-direction: column;
    align-items: center;
  }

  .footer-quarter {
    width: 100%;
    text-align: center;
    margin-bottom: 28px;
  }

  .footer-person {
    flex-direction: column;
    gap: 14px;
  }

  .references-strip {
    padding: 30px 0;
  }

  .references-slide {
    gap: 40px;
    padding-right: 40px;
  }

  .references-slide img {
    height: 48px;
  }

  .cta-bottom {
    padding: 80px 0;
  }

  /* Ghost Buttons mittig */
.ghost-button,
.dark-ghost-button,
.ghost-button-light {
  display: block;
  margin: 20px auto 0;
  text-align: center;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact .icon-row {
  justify-content: center;
}
}