@font-face {
  font-family: 'fa-solid';
  src: url('/assets/fonts/font-awesome/fa-solid-900.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('/assets/fonts/Quicksand.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}



:root {
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.15);
  /* Springy */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  /* Apple-like */
}

html {
  background-color: var(--clr-surface-a0);
  scroll-behavior: smooth;
}

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

* {
  margin: 0;
}

h5 {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
}

.fonty {
  font-family: "fa-solid";
  color: var(--clr-primary-a30);
}

.full-size {
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button {
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
  border: 1px solid currentColor;
  background-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  color-scheme: light dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: light-dark(#111827, #dce2ef);
  --nav-height: 80px;
  --cta: light-dark(rgba(224, 224, 224, 0.65), rgba(30, 30, 30, 0.65));

  /** Theme primary colors */
  --clr-primary-a0: #086121;
  --clr-primary-a10: #06531b;
  --clr-primary-a20: #044616;
  --clr-primary-a30: #033910;
  --clr-primary-a40: #022d0b;
  --clr-primary-a50: #012106;

  /** Theme surface colors */
  --clr-surface-a0: #fff;
  --clr-surface-a10: #f2f2f2;
  --clr-surface-a20: #e4e4e4;
  --clr-surface-a30: #d7d7d7;
  --clr-surface-a40: #cacaca;
  --clr-surface-a50: #bdbdbd;

  /** Theme tonal surface colors */
  --clr-surface-tonal-a0: #e7efe7;
  --clr-surface-tonal-a10: #dce3dc;
  --clr-surface-tonal-a20: #d2d8d2;
  --clr-surface-tonal-a30: #c7ccc7;
  --clr-surface-tonal-a40: #bcc1bc;
  --clr-surface-tonal-a50: #b2b6b2;

  /** Success colors */
  --clr-success-a0: #22946e;
  --clr-success-a10: #4fa482;
  --clr-success-a20: #71b497;

  /** Warning colors */
  --clr-warning-a0: #a87a2a;
  --clr-warning-a10: #b58e4f;
  --clr-warning-a20: #c2a16f;

  /** Danger colors */
  --clr-danger-a0: #9c2121;
  --clr-danger-a10: #ae4842;
  --clr-danger-a20: #c06961;

  /** Info colors */
  --clr-info-a0: #21498a;
  --clr-info-a10: #40639c;
  --clr-info-a20: #607eae;

  --overlay: radial-gradient(circle, rgba(223, 242, 228, 0.56) 0%, rgba(184, 184, 184, 0.97) 100%);

  @media (prefers-color-scheme: dark) {
    /* Dark */
    /** Theme primary colors */
    --clr-primary-a0: #086121;
    --clr-primary-a10: #2c7037;
    --clr-primary-a20: #457f4c;
    --clr-primary-a30: #5d8f61;
    --clr-primary-a40: #739e77;
    --clr-primary-a50: #8aae8d;

    /** Theme surface colors */
    --clr-surface-a0: #1c1b22;
    --clr-surface-a10: #2f2e35;
    --clr-surface-a20: #434248;
    --clr-surface-a30: #57575d;
    --clr-surface-a40: #6d6d72;
    --clr-surface-a50: #848388;

    /** Theme tonal surface colors */
    --clr-surface-tonal-a0: #1d2223;
    --clr-surface-tonal-a10: #303435;
    --clr-surface-tonal-a20: #444849;
    --clr-surface-tonal-a30: #585c5d;
    --clr-surface-tonal-a40: #6e7272;
    --clr-surface-tonal-a50: #858888;

    /** Success colors */
    --clr-success-a0: #22946e;
    --clr-success-a10: #5ba989;
    --clr-success-a20: #86bfa6;

    /** Warning colors */
    --clr-warning-a0: #a87a2a;
    --clr-warning-a10: #ba945a;
    --clr-warning-a20: #cbae84;

    /** Danger colors */
    --clr-danger-a0: #9c2121;
    --clr-danger-a10: #b4544c;
    --clr-danger-a20: #ca7f77;

    /** Info colors */
    --clr-info-a0: #21498a;
    --clr-info-a10: #4b6ca2;
    --clr-info-a20: #7590ba;

    /* --overlay: radial-gradient(circle, rgba(44, 51, 46, 0.8) 0%, rgb(54, 63, 57) 100%); */
    --overlay: radial-gradient(circle, #001a3333 10%, rgba(0, 170, 255, 100) 100%);

    
  }
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Quicksand', sans-serif;
  background: var(--clr-surface-a0);
  color: var(--primary-color);
  line-height: 1.6;
}

/* 
section{
  background: var(--clr-surface-a0);
}

section.secondary{
  background: var(--clr-surface-tonal-a0);
} */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-hidden {
  transform: translateX(-100px);
}

.nav-hidden {
  transform: translateY(-100px);
}

/* .nav-container {
  width: 90%;
  margin: 10px auto 0;
  padding: 0 clamp(16px, 4vw, 32px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-surface-a10);
  border-radius: 10px;
} */

.nav-container {
  padding: 0 clamp(16px, 4vw, 32px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-surface-a10);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.logo-text {
  letter-spacing: -0.5px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary-a30);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-primary-a30);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-btn.secondary {
  color: var(--primary-color);
  background: transparent;
  border: 1px solid var(--clr-primary-a30);
}

.nav-btn.secondary:hover {
  color: #fff;
  background: var(--clr-primary-a30);
}

.nav-btn.primary {
  color: #ffffff;
  background: var(--clr-primary-a30);
  border: 1px solid var(--clr-primary-a30);
}

.nav-btn.primary:hover {
  background: var(--clr-primary-a20);
  border-color: var(--clr-primary-a20);
}

footer {
  margin: 15px;
}

footer section {
  width: 47%;
  margin: 0 6% 0 0;
}

#socket {
  text-align: center;
  display: block;
}

header {
  display: flex;
  height: 100vh;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  justify-content: center;
  margin: auto;
  z-index: 1;
  /* background-image: url(https://innenausbau57.de/wp-content/uploads/2024/11/Startseite.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed; */
}

.bg{
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-gradient {
  to {
    --angle: 360deg;
  }
}

.overlay {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  background: conic-gradient(from var(--angle), rgba(255, 69, 69, 0.5), rgba(0, 255, 153, 0.5), rgba(0, 106, 255, 0.5), rgba(255, 69, 69, 0.5));
  animation: rotate-gradient 3s linear infinite;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

header .left p:nth-child(1) {
  border: 1px solid;
  width: fit-content;
  padding: 2px 12px;
  border-radius: 25px;
  font-size: 14px;
}

header .left {
  flex-basis: calc(100% - 50% - 4rem);
  margin: 0 2rem;
  flex-shrink: 0;
  font-size: 16px;
  z-index: 1;
}

header .left h2 {
  font-size: clamp(1.875rem, 1.5144rem + 1.6026vw, 3.4375rem);
  line-height: normal;
}

header .right {
  align-self: flex-end;
  margin: 0 2rem;
  flex-shrink: 0;
  z-index: 1;
}

header .right img {
  height: 80vh;
  object-fit: contain;
}

@media screen and (max-width: 860px) {
  header {
    display: grid;
    padding-top: calc(var(--nav-height) + 3rem);
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  header .right img {
    height: auto;
    width: 70%;
    margin: auto;
    object-fit: contain;
    max-width: 500px;
  }

  header .left {
    margin-bottom: 1.5rem;
  }

  header .right {
    margin-top: 1.5rem;
  }
}

#top {
  /* Nutze dvh für die exakte Höhe des sichtbaren Bereichs */
  height: 100vh;
  /* Fallback für ältere Browser */
  height: 100dvh;
  display: flex;
  align-items: center;

  /* Hintergrund-Einstellungen */
  background-image: url(https://innenausbau57.de/wp-content/uploads/2024/11/Startseite.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

@supports (-webkit-touch-callout: none) {
  #top {
    background-attachment: scroll;
  }
}


.call-action {
  width: fit-content;
  border-radius: 1rem;
  padding: 30px;
  margin: 0 0 0 6dvw;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  background: var(--cta);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  top: 80px;
  position: sticky;
}

.call-action h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  line-height: normal;
  color: var(--text-primary);
}


@media screen and (min-width: 970px) {
  header {
    min-height: 100vh;
    padding-top: 80px;
  }
}

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

  .hamburger {
    display: flex;
  }

  html {
    scroll-padding-top: 80px;
    overflow: auto;
  }

  .nav-container {
    width: 100vw;
    margin: 0;
    border-radius: 0;
    position: fixed;
  }

  .call-action {
    margin: 0 12px;
    width: calc(100% - 24px);
  }

  #_404_ {
    margin-top: 0;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--clr-surface-a10);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 50px 32px 32px;
    gap: 32px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: scroll;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
  }
}

.nav-hidden {
  transform: translateY(-100%);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-list {
    gap: 20px;
  }
}


.leistungen {
  padding: 20px;
}

.leistungen-inner {
  margin: 0;
}

/* Header */
.leistungen-header {
  margin-bottom: 1rem;
}

.leistungen-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.leistungen-titel {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 500;
  color: var(--primary-color);
  line-height: normal;
}

/* Grid: zwei Spalten */
.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 990px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Linke Spalte: schlichte Einträge ── */
.leistungen-col--links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.leistung-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
}

/* ── Rechte Spalte: Karten ── */
.leistungen-col--rechts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.leistung-karte {
  background: var(--clr-surface-a20);
  border-radius: 12px;
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  transition: box-shadow 0.2s ease;
}

.leistung-karte:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.leistung-karte-icon {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.55;
}

.icon {
  font-family: "fa-solid";
}

.leistung-karte-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* ── Gemeinsame Inhalte ── */
.leistung-content {
  min-width: 0;
}

.leistung-titel {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.leistung-text {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  color: var(--muted);
  line-height: 1.7;
}

.mb-toggel-wraper {
  display: none;
}

@media only screen and (max-width: 760px) {
  .mb-toggel-wraper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .leistungen-grid {
    display: none;
  }

}

/* Inputs verstecken */
.mb-toggel-wraper input[type="radio"] {
  display: none;
}

/* Das Label (die Box) */
.boxes-icon-akkordeon {
  display: flex;
  /* War doppelt, jetzt nur einmal */
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 1.5em 1em;
  border-radius: 1em;
  background: rgba(59, 168, 110, 0.1);
  cursor: pointer;
  transition: background 0.3s ease;
}

.boxes-icon-akkordeon:hover {
  background: rgba(59, 168, 110, 0.2);
}

.boxes-icon-akkordeon .svg {
  align-self: center;
  color: #878787;
  font-family: "fa-solid";
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem) !important;
  transition: color 0.3s ease;
}


.mb-toggel-wraper input:checked+.boxes-icon-akkordeon .svg {
  color: #3ba86e;
}

.boxes-icon-akkordeon p {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
  margin: 0;
}

.boxes-icon-akkordeon p>span {
  overflow: hidden;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem) !important;
  line-height: 1.6em;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.mb-toggel-wraper input:checked+.boxes-icon-akkordeon p {
  grid-template-rows: 1fr;
  padding-top: 10px;
  border-top: solid 1px;
}

.mb-toggel-wraper input:checked+.boxes-icon-akkordeon p>span {
  opacity: 1;
}

.mb-toggel-wraper h4,
.mb-toggel-wraper h5 {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.35em;
}

.mb-toggel-wraper h4:after,
.mb-toggel-wraper h5:after {
  content: "+";
  margin-left: auto;
  transition: transform 0.3s linear;
}

.mb-toggel-wraper input:checked+.boxes-icon-akkordeon h4:after,
.mb-toggel-wraper input:checked+.boxes-icon-akkordeon h5:after {
  content: "–"
}