:root {
  --color-base-50: #f7f5f0;
  --color-base-100: #ede9df;
  --color-base-200: #d8d0c0;
  --color-base-300: #b8ad97;
  --color-base-400: #8f8470;
  --color-base-500: #6b6050;
  --color-base-600: #524a3c;
  --color-base-700: #3d362a;
  --color-base-800: #2a251c;
  --color-base-900: #1a160f;
  --color-accent: #c4692a;
  --color-accent-light: #d97e44;
  --color-accent-dark: #9e5220;
  --color-text: #2a251c;
  --color-text-muted: #6b6050;
  --color-text-light: #ede9df;
  --color-bg: #f7f5f0;
  --color-bg-tinted: #eee9dd;
  --color-bg-dark: #1a160f;
  --color-bg-dark-mid: #2a251c;
  --shadow-sm: 0 1px 3px rgba(42,37,28,0.08), 0 1px 2px rgba(42,37,28,0.04);
  --shadow-md: 0 4px 12px rgba(42,37,28,0.10), 0 2px 6px rgba(42,37,28,0.06);
  --shadow-lg: 0 12px 32px rgba(42,37,28,0.12), 0 4px 12px rgba(42,37,28,0.08);
  --shadow-xl: 0 24px 64px rgba(42,37,28,0.16), 0 8px 24px rgba(42,37,28,0.10);
  --shadow-accent: 0 8px 32px rgba(196,105,42,0.25), 0 2px 8px rgba(196,105,42,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 80px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);

  &:hover {
    color: var(--color-accent-dark);
  }
}

ul {
  list-style: none;
}

address {
  font-style: normal;
  line-height: 1.8;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);

  &.container--narrow {
    max-width: 800px;
  }
}

.page-wrapper {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  & main {
    flex: 1;
  }
}

.page-wrapper.menu-open {
  border-radius: var(--radius-lg);
  overflow: hidden;
}


#cookie-bar {
  width: 100%;
  background: var(--color-base-800);
  color: var(--color-text-light);
  font-size: 13px;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  overflow: hidden;

  & .cookie-bar__inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 10px var(--space-5);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }

  & .cookie-bar__text {
    flex: 1;
    min-width: 200px;

    & a {
      color: var(--color-accent-light);
      text-decoration: underline;
    }
  }

  & .cookie-bar__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
  }

  & .cookie-bar__accept {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);

    &:hover {
      background: var(--color-accent-dark);
    }
  }

  & .cookie-bar__decline {
    background: transparent;
    color: var(--color-base-300);
    border: 1px solid var(--color-base-600);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);

    &:hover {
      color: var(--color-text-light);
      border-color: var(--color-base-400);
    }
  }

  &.hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }
}


.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-base-200);
  transition: padding var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);

  & .nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    transition: padding var(--transition-base);
  }

  & .nav__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  & .nav__logo-img {
    height: 36px;
    width: auto;
    transition: height var(--transition-base);
  }

  & .nav__links {
    display: none;
    gap: var(--space-6);
    margin-left: auto;

    @media (min-width: 768px) {
      display: flex;
    }
  }

  & .nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition-fast);

    &::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--color-accent);
      transition: width var(--transition-base);
    }

    &:hover {
      color: var(--color-text);

      &::after {
        width: 100%;
      }
    }

    &.nav__link--active {
      color: var(--color-text);

      &::after {
        width: 100%;
      }
    }
  }

  & .nav__cta {
    display: none;
    margin-left: var(--space-4);

    @media (min-width: 768px) {
      display: inline-flex;
    }
  }

  & .nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    margin-left: auto;
    cursor: pointer;
    background: none;
    border: none;

    @media (min-width: 768px) {
      display: none;
    }

    & span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--color-text);
      border-radius: var(--radius-full);
      transition: all var(--transition-base);
    }
  }

  &.nav--scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(247, 245, 240, 0.98);

    & .nav__inner {
      padding-top: var(--space-3);
      padding-bottom: var(--space-3);
    }

    & .nav__logo-img {
      height: 28px;
    }
  }
}


.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--color-bg-dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  &.is-open {
    transform: translateX(0);
  }

  & .mobile-menu__close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    color: var(--color-base-300);
    font-size: 20px;
    padding: var(--space-2);
    transition: color var(--transition-fast);

    &:hover {
      color: var(--color-text-light);
    }
  }

  & .mobile-menu__links {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);

    & li a {
      display: block;
      color: var(--color-base-200);
      font-size: 18px;
      font-weight: 500;
      padding: var(--space-3) 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      transition: color var(--transition-fast), padding-left var(--transition-fast);

      &:hover {
        color: var(--color-accent-light);
        padding-left: var(--space-3);
      }
    }
  }

  & .mobile-menu__cta {
    margin-top: var(--space-7);
    text-align: center;
  }
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 44px;

  &.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent);

    &:hover {
      background: var(--color-accent-dark);
      border-color: var(--color-accent-dark);
      color: #fff;
      box-shadow: 0 12px 40px rgba(196,105,42,0.35), 0 4px 12px rgba(196,105,42,0.20);
      transform: translateY(-1px);
    }

    &:active {
      transform: translateY(0);
    }
  }

  &.btn--outline {
    background: transparent;
    color: var(--color-text-light);
    border-color: rgba(255,255,255,0.4);

    &:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.7);
      color: #fff;
    }
  }

  &.btn--large {
    padding: 16px 36px;
    font-size: 16px;
  }

  &.btn--full {
    width: 100%;
  }
}

.btn--text-link {
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  display: inline;

  &:hover {
    color: var(--color-accent-dark);
  }
}


.section {
  padding: var(--space-9) 0;

  &.section--wide {
    padding: var(--space-10) 0;
  }

  &.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
  }

  &.section--tinted {
    background: var(--color-bg-tinted);
  }
}

.section__header {
  margin-bottom: var(--space-8);
  text-align: center;

  &.section__header--light {
    & .section__label {
      color: var(--color-base-400);
    }

    & .section__heading {
      color: var(--color-text-light);
    }
  }
}

.section__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}


.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  & .hero__bg {
    position: absolute;
    inset: 0;

    & .hero__bg-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    & .hero__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        105deg,
        rgba(26, 22, 15, 0.88) 0%,
        rgba(42, 37, 28, 0.75) 50%,
        rgba(26, 22, 15, 0.55) 100%
      );
    }
  }

  & .hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-5) var(--space-8);
    width: 100%;
  }

  & .hero__tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    border: 1px solid rgba(196,105,42,0.4);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
    animation: fadeInDown 0.7s ease 0.1s both;
  }

  & .hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    max-width: 720px;
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.7s ease 0.25s both;

    & em {
      font-style: normal;
      color: var(--color-accent-light);
    }
  }

  & .hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(237, 233, 223, 0.85);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: var(--space-7);
    animation: fadeInDown 0.7s ease 0.4s both;
  }

  & .hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInDown 0.7s ease 0.55s both;
  }

  & .hero__scroll {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(237, 233, 223, 0.5);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
  }
}

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

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}


.intro {
  & .intro__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    text-align: center;
  }

  & .intro__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
  }

  & .intro__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-5);
  }

  & .intro__text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.75;
  }
}


.leistungen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);

  @media (min-width: 640px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--color-base-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-base-300);
  }

  & .card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-base-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    transition: all var(--transition-base);

    & i {
      color: var(--color-accent);
      font-size: 18px;
    }
  }

  &:hover .card__icon {
    background: var(--color-accent);

    & i {
      color: #fff;
    }
  }

  & .card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
  }

  & .card__text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
  }

  &.card--featured {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent);
  }
}


.comparison {
  & .comparison__wrapper {
    max-width: 900px;
    margin: 0 auto var(--space-4);
  }

  & .comparison__slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-xl);
    user-select: none;
  }

  & .comparison__before,
  & .comparison__after {
    position: absolute;
    inset: 0;
  }

  & .comparison__after {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0s;
  }

  & .comparison__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  & .comparison__label {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    background: rgba(26,22,15,0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-full);

    &.comparison__label--after {
      left: auto;
      right: var(--space-4);
    }
  }

  & .comparison__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    -webkit-appearance: none;
  }

  & .comparison__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);

    &::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      background: #fff;
      border-radius: var(--radius-full);
      box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    }

    &::after {
      content: '\2194';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 16px;
      color: var(--color-text);
      z-index: 1;
    }
  }

  & .comparison__caption {
    text-align: center;
    font-size: 13px;
    color: var(--color-base-400);
  }
}


.vorteile__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 800px;
  margin: 0 auto;
}

.vorteil {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-base-200);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);

  &:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
  }

  & .vorteil__check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);

    & i {
      color: #fff;
      font-size: 14px;
    }
  }

  & .vorteil__content {
    & h4 {
      font-weight: 700;
      font-size: 1rem;
      color: var(--color-text);
      margin-bottom: var(--space-2);
    }

    & p {
      font-size: 0.9rem;
      color: var(--color-text-muted);
      line-height: 1.65;
    }
  }
}


.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-base-200);

    @media (min-width: 768px) {
      left: 32px;
    }
  }

  &.process__steps--compact::before {
    left: 20px;
  }
}

.process__step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5) 0 var(--space-6) 0;
  position: relative;

  & .process__num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-accent);
    transition: transform var(--transition-base);
  }

  &:hover .process__num {
    transform: scale(1.1);
  }

  & .process__content {
    padding-top: 10px;

    & h3 {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: var(--space-2);
    }

    & p {
      font-size: 0.9rem;
      color: var(--color-text-muted);
      line-height: 1.65;
    }
  }
}

.section--tinted .process__steps::before {
  background: var(--color-base-300);
}


.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-4);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
  }
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);

  &.gallery__item--tall {
    @media (min-width: 768px) {
      grid-row: span 2;
      aspect-ratio: auto;
    }
  }

  &.gallery__item--wide {
    grid-column: span 2;
    aspect-ratio: 16/7;

    @media (min-width: 768px) {
      grid-column: span 1;
      aspect-ratio: 4/3;
    }
  }

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  &:hover img {
    transform: scale(1.04);
  }

  & .gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26,22,15,0.8), transparent);
    color: #fff;
    padding: var(--space-5) var(--space-4) var(--space-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  &:hover .gallery__caption {
    opacity: 1;
  }
}


.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: #fff;
  border: 1px solid var(--color-base-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);

  &:hover {
    box-shadow: var(--shadow-md);
  }

  &.is-open {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(196,105,42,0.1), var(--shadow-sm);
  }

  & .faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    transition: color var(--transition-fast);

    &:hover {
      color: var(--color-accent);
    }
  }

  & .faq__icon {
    flex-shrink: 0;
    color: var(--color-accent);
    font-size: 14px;
    transition: transform var(--transition-base);
  }

  &.is-open .faq__icon {
    transform: rotate(45deg);
  }

  & .faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--space-6);

    & p {
      font-size: 0.95rem;
      color: var(--color-text-muted);
      line-height: 1.7;
      padding-bottom: var(--space-5);
    }
  }

  &.is-open .faq__answer {
    max-height: 400px;
    padding-top: 0;
  }
}


.cta-strip {
  & .cta-strip__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;

    @media (min-width: 768px) {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }

  & .cta-strip__text {
    & h2 {
      font-family: var(--font-heading);
      font-size: clamp(1.5rem, 3vw, 2.25rem);
      font-weight: 700;
      color: var(--color-text-light);
      margin-bottom: var(--space-3);
    }

    & p {
      color: var(--color-base-300);
      font-size: 1rem;
      max-width: 520px;
    }
  }
}


.form {
  &.form--horizontal {
    & .form__row {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-4);

      @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr 2fr;
      }

      &.form__row--bottom {
        display: flex;
        align-items: center;
        gap: var(--space-5);
        flex-wrap: wrap;
        margin-top: var(--space-4);
        grid-template-columns: none;
      }
    }
  }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);

  &.form__field--wide {
    @media (min-width: 768px) {
      grid-column: span 1;
    }
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);

  &.form__group--checkbox {
    margin-bottom: var(--space-6);
  }
}

.form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form__required {
  color: var(--color-accent);
}

.form__input {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-base-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  width: 100%;

  &:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196,105,42,0.12);
  }

  &.form__input--textarea {
    resize: vertical;
    min-height: 80px;
  }

  &.form__input--select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6050' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
  }
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-muted);
  flex: 1;

  & input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
  }

  & a {
    color: var(--color-accent);

    &:hover {
      text-decoration: underline;
    }
  }
}


.page-hero {
  background: var(--color-bg-dark);
  padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-9);

  & .container {
    text-align: left;
  }

  & .section__label {
    color: var(--color-accent-light);
  }

  & .page-hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: var(--space-5);
  }

  & .page-hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-base-300);
    max-width: 600px;
    line-height: 1.7;
  }
}


.team__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.team__member {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }

  &.team__member--reverse {
    @media (min-width: 768px) {
      direction: rtl;

      & > * {
        direction: ltr;
      }
    }
  }

  & .team__photo-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-xl);
  }

  & .team__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;

    &:hover {
      transform: scale(1.03);
    }
  }

  & .team__info {
    & .team__name {
      font-family: var(--font-heading);
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 800;
      color: var(--color-text);
      margin-bottom: var(--space-2);
    }

    & .team__role {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--color-accent);
      margin-bottom: var(--space-5);
    }

    & p {
      font-size: 1rem;
      color: var(--color-text-muted);
      line-height: 1.75;
      margin-bottom: var(--space-5);
    }

    & .team__skills {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2);

      & li {
        background: var(--color-base-100);
        color: var(--color-text-muted);
        font-size: 12px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: var(--radius-full);
        letter-spacing: 0.04em;
      }
    }
  }
}


.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);

  @media (min-width: 640px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  background: #fff;
  border: 1px solid var(--color-base-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);

  &:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }

  & .value-card__icon {
    font-size: 24px;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
  }

  & h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
  }

  & p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.65;
  }
}


.standort__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.standort-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-base-200);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }

  & .standort-card__img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;

    & .standort-card__img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }
  }

  &:hover .standort-card__img {
    transform: scale(1.04);
  }

  & .standort-card__content {
    padding: var(--space-5) var(--space-6);

    & h3 {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: var(--space-3);
    }

    & p {
      font-size: 0.9rem;
      color: var(--color-text-muted);
      line-height: 1.7;
    }
  }
}


.standort-prozess__intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-7);
  line-height: 1.7;
}


.signup__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1.2fr;
  }
}

.signup__info {
  & h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-6);
  }
}

.signup__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.signup__step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;

  & .signup__step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    margin-top: 2px;
  }

  & strong {
    display: block;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-1);
  }

  & p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
  }
}

.signup__note {
  display: flex;
  gap: var(--space-3);
  background: var(--color-bg-tinted);
  border: 1px solid var(--color-base-200);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  align-items: flex-start;

  & i {
    color: var(--color-accent);
    margin-top: 3px;
    flex-shrink: 0;
  }

  & p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
  }
}

.signup__form-wrap {
  background: var(--color-bg-tinted);
  border: 1px solid var(--color-base-200);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
}


.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact__info {
  & h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-6);
  }
}

.contact__detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);

  &:hover {
    background: var(--color-bg-tinted);
  }

  & i {
    color: var(--color-accent);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
  }

  & strong {
    display: block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 4px;
  }

  & a, & p, & address {
    font-size: 0.95rem;
    color: var(--color-text-muted);
  }

  & a:hover {
    color: var(--color-accent);
  }
}

.contact__form-wrap {
  background: var(--color-bg-tinted);
  border: 1px solid var(--color-base-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}


.timeline {
  position: relative;
  padding-left: 48px;

  &::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--color-base-200);
  }
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-7);

  &:last-child {
    padding-bottom: 0;
  }

  & .timeline__dot {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    border: 3px solid var(--color-bg-tinted);
    box-shadow: var(--shadow-accent);
    transition: transform var(--transition-base);
  }

  &:hover .timeline__dot {
    transform: scale(1.3);
  }

  & .timeline__content {
    & .timeline__time {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-accent);
      margin-bottom: var(--space-2);
    }

    & h3 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: var(--space-2);
    }

    & p {
      font-size: 0.9rem;
      color: var(--color-text-muted);
      line-height: 1.65;
    }
  }
}


.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-base-200);
}


.thanks-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) 0;

  & .thanks__inner {
    text-align: center;

    & .thanks__accent {
      font-size: 56px;
      color: var(--color-accent);
      margin-bottom: var(--space-6);
    }

    & .thanks__heading {
      font-family: var(--font-heading);
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 800;
      color: var(--color-text);
      margin-bottom: var(--space-5);
    }

    & .thanks__sub {
      font-size: 1.1rem;
      color: var(--color-text-muted);
      margin-bottom: var(--space-8);
    }
  }
}


.legal-page {
  & .legal-page__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--space-3);
    margin-top: var(--space-8);
  }

  & .legal-page__date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
  }
}

.legal-content {
  & h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: var(--space-7);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-base-200);
  }

  & h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: var(--space-5);
    margin-bottom: var(--space-2);
  }

  & p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-4);
  }

  & ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);

    & li {
      font-size: 0.95rem;
      color: var(--color-text-muted);
      line-height: 1.75;
      margin-bottom: var(--space-2);
    }
  }

  & a {
    color: var(--color-accent);
    text-decoration: underline;

    &:hover {
      color: var(--color-accent-dark);
    }
  }

  &.legal-content--terms {
    & .legal-intro {
      font-size: 1rem;
      color: var(--color-text-muted);
      line-height: 1.75;
      padding: var(--space-5);
      background: var(--color-bg-tinted);
      border-radius: var(--radius-md);
      border-left: 3px solid var(--color-accent);
      margin-bottom: var(--space-6);
    }
  }
}

.terms-list {
  list-style: none;
  padding: 0;
  counter-reset: none;

  & > li {
    margin-bottom: var(--space-6);
    padding: var(--space-5) var(--space-6);
    background: var(--color-bg-tinted);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-base-200);

    & h3 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: var(--space-4);
      margin-top: 0;
    }

    & p {
      margin-bottom: var(--space-3);
    }
  }
}

.impressum-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
  font-size: 0.9rem;

  & tr {
    border-bottom: 1px solid var(--color-base-200);
  }

  & td {
    padding: var(--space-3) var(--space-4);
    line-height: 1.5;

    &:first-child {
      font-weight: 600;
      color: var(--color-text);
      width: 40%;
      background: var(--color-bg-tinted);
    }

    &:last-child {
      color: var(--color-text-muted);
    }
  }

  & a {
    color: var(--color-accent);
  }
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 0.85rem;

  & th {
    background: var(--color-base-800);
    color: var(--color-text-light);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  & td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-base-200);
    color: var(--color-text-muted);
    line-height: 1.5;
    vertical-align: top;

    & code {
      background: var(--color-base-100);
      padding: 2px 6px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-family: monospace;
    }
  }

  & tr:nth-child(even) td {
    background: var(--color-bg-tinted);
  }
}


.footer {
  & .footer__quote {
    background: var(--color-bg-dark-mid);
    padding: var(--space-10) 0;
    text-align: center;

    & .footer__testimonial {
      font-family: var(--font-heading);
      font-size: clamp(1.25rem, 2.5vw, 2rem);
      font-weight: 700;
      color: var(--color-text-light);
      line-height: 1.4;
      max-width: 700px;
      margin: 0 auto var(--space-4);
      font-style: normal;

      &::before {
        content: '\201C';
        color: var(--color-accent);
        font-size: 1.5em;
        line-height: 0;
        vertical-align: -0.4em;
        margin-right: 4px;
      }

      &::after {
        content: '\201D';
        color: var(--color-accent);
        font-size: 1.5em;
        line-height: 0;
        vertical-align: -0.4em;
        margin-left: 4px;
      }
    }

    & .footer__cite {
      font-size: 13px;
      color: var(--color-base-400);
      font-style: normal;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
  }

  & .footer__main {
    background: var(--color-bg-dark);
    padding: var(--space-9) 0 0;
  }

  & .footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.06);

    @media (min-width: 640px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1024px) {
      grid-template-columns: 2fr 1fr 1fr 1fr;
    }
  }

  & .footer__col {
    & .footer__logo {
      height: 32px;
      margin-bottom: var(--space-4);
      filter: brightness(0) invert(1) opacity(0.8);
    }

    & p {
      font-size: 0.875rem;
      color: var(--color-base-400);
      line-height: 1.7;
      margin-bottom: var(--space-4);
    }

    & address {
      font-size: 0.875rem;
      color: var(--color-base-400);
      line-height: 1.8;

      & a {
        color: var(--color-base-400);
        transition: color var(--transition-fast);

        &:hover {
          color: var(--color-accent-light);
        }
      }
    }

    & h4 {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-base-200);
      margin-bottom: var(--space-4);
    }

    & ul {
      display: flex;
      flex-direction: column;
      gap: var(--space-2);

      & li a {
        font-size: 0.875rem;
        color: var(--color-base-400);
        transition: color var(--transition-fast), padding-left var(--transition-fast);
        display: block;

        &:hover {
          color: var(--color-accent-light);
          padding-left: 4px;
        }
      }
    }
  }

  & .footer__bottom {
    padding: var(--space-5) 0;
    text-align: center;

    & p {
      font-size: 13px;
      color: var(--color-base-500);
    }
  }
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;

  &.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}


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

@media (max-width: 767px) {
  .section {
    padding: var(--space-8) 0;
  }

  .section--wide {
    padding: var(--space-9) 0;
  }

  .hero__heading {
    font-size: 2.5rem;
  }

  .contact__form-wrap {
    padding: var(--space-5);
  }

  .signup__form-wrap {
    padding: var(--space-5);
  }
}