/* Poppins – lokal gehostet (DSGVO-konform) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../webfonts/poppins-300-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../webfonts/poppins-300-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/poppins-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../webfonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../webfonts/poppins-600-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../webfonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../webfonts/poppins-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../webfonts/poppins-800-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../webfonts/poppins-800-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ==============================================
   VARIABLEN & BASIS
   ============================================== */
:root {
  --ink: #0d1e40;
  --ink-soft: #1a3060;
  --accent: #1e6ab8;
  --accent-dark: #155296;
  --accent-light: #e5f0fa;
  --paper: #ffffff;
  --mist: #f3f7fb;
  --line: #dde5ee;
  --text: #0d1e40;
  --muted: #6b7a8d;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --radius: 6px;
  --radius-lg: 12px;
  font-family: "Poppins", Inter, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}
img {
  display: block;
  width: 100%;
}
.fa {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ==============================================
   LAYOUT
   ============================================== */
.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-weight: 800;
  color: var(--paper);
  flex-shrink: 0;
}

/* Company logo image */
.brand-logo {
  height: 40px;
  width: auto;
  max-width: min(320px, 48vw);
  object-fit: contain;
}

/* ====== Code-Logo (Rücknahme: <img> einkommentieren, diesen Block auskommentieren) ====== */
.logo-code {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: "Poppins", sans-serif;
  line-height: 1;
  user-select: none;
  text-decoration: none;
}

.logo-code__emn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-code__arc {
  display: block;
  width: 82%;
  height: 11px;
  border-top: 2.5px solid var(--accent);
  border-radius: 50%;
  margin-bottom: -4px;
}

.logo-code__emn {
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(
    160deg,
    #7ecfff 0%,
    var(--accent) 45%,
    #0d3a7a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-code__right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  align-self: flex-end;
  padding-bottom: 5px;
}

.logo-code__sicherheit {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
  line-height: 1;
}

.logo-code__rule {
  display: flex;
  align-items: center;
  height: 9px;
  gap: 3px;
}

.logo-code__rule::before,
.logo-code__rule::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--accent);
}

.logo-code__diamond {
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
/* ====== Ende Code-Logo ====== */

/* Hexagon Logo Mark */
.brand-hex {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 44px;
  flex-shrink: 0;
}

.brand-hex::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.brand-hex i {
  font-style: normal;
  color: var(--paper);
  font-weight: 900;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-text small {
  display: block;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Fallback for old brand-mark class (used in subpages) */
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand small {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.92rem;
  transition:
    background 0.18s,
    color 0.18s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper) !important;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.18s,
    border-color 0.18s !important;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.2s;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s;
}

.btn-primary {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196, 151, 58, 0.4);
}

.btn-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.btn-outline:hover {
  background: var(--mist);
  border-color: var(--accent);
}

.btn-dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  transform: translateY(-1px);
}

/* ==============================================
   HERO
   ============================================== */
@keyframes kenburns {
  from {
    /* transform: scale(1) translateX(0); */
    transform: scale(1);
  }
  to {
    /* transform: scale(1.05) translateX(-3%); */
    transform: scale(1.05);
  }
}

.hero {
  position: relative;
  display: grid;
  min-height: 72vh;
  align-items: center;
  overflow: visible;
  color: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  animation: kenburns 4s ease-in-out forwards;
  transform-origin: right center;
  will-change: transform;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 27, 50, 0.93) 0%,
    rgba(10, 27, 50, 0.72) 50%,
    rgba(10, 27, 50, 0.2) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 80px 0 120px;
}

.hero-content {
  width: min(580px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--center {
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ==============================================
   FEATURE BAR
   ============================================== */
.feature-bar {
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
  margin-top: -72px;
  margin-left: 40px;
  margin-right: 40px;
  /*border-radius: var(--radius-lg);*/
}

.feature-bar-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-bar-inner .feature-item {
  flex: 1;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 12px;
  position: relative;
}

.feature-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--line);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.feature-item h3 {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.5;
  font-weight: 300;
}

/* ==============================================
   SPLIT SECTION (ÜBER UNS + LEISTUNGEN)
   ============================================== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: 40px;
  margin-right: 40px;
}

.split-left {
  overflow: hidden;
  min-height: 560px;
}

.split-content {
  padding: 80px 32px 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
}

.split-content .eyebrow {
  margin-bottom: 0;
}

.split-content h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}

.split-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
  font-weight: 300;
}

.split-img {
  position: relative;
  min-height: 560px;
  height: 100%;
  overflow: hidden;
}

.split-img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 42% center;
  display: block;
}
.split-right {
  background: var(--ink);
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-right .eyebrow {
  margin-bottom: 36px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 16px;
}

.service-item {
  text-align: center;
  color: var(--paper);
  transition: opacity 0.2s;
}

.service-item:hover {
  opacity: 0.75;
}

.service-item > i,
.service-item > svg.fa {
  font-size: 1.65rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}

.service-item h3 {
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.service-item p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.55;
  font-weight: 300;
}

/* ==============================================
   PROJEKTE SECTION
   ============================================== */
.projekte-section {
  background: var(--mist);
  padding: 80px 0;
}

.projekte-section .eyebrow {
  display: block;
  margin-bottom: 40px;
}

.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.projekte-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.projekte-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projekte-item:hover img {
  transform: scale(1.05);
}

/* ==============================================
   SECTIONS (allgemein)
   ============================================== */
section,
.page-section {
  padding: 84px 0;
}
.section-alt {
  background: var(--mist);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
}

.stacked-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 36px;
}

.page-section > .container > .eyebrow + .stacked-headline {
  margin-top: 4px;
}

.page-section > .container > .eyebrow:has(+ .stacked-headline) {
  color: var(--ink-soft);
}

.stacked-headline .sh-1 {
  display: block;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.stacked-headline .sh-2 {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stacked-headline .sh-3 {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.03em;
}

/* ==============================================
   CARDS & ICONS (Leistungsseite)
   ============================================== */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--ink);
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 1.3rem;
  transition:
    background 0.18s,
    color 0.18s;
}

.card:hover .icon {
  background: var(--accent);
}
.card h3 {
  font-size: 1.1rem;
  color: var(--ink);
}
.card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==============================================
   SERVICE CARDS (Leistungsseite)
   ============================================== */
.service-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.service-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover img {
  transform: scale(1.04);
}
.service-card-body {
  padding: 24px;
}
.service-card-body h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.service-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ==============================================
   BAND / DARK SECTIONS
   ============================================== */
.band {
  color: var(--paper);
  background: var(--ink);
}
.band h2,
.band h3 {
  color: var(--paper);
}
.band p {
  color: rgba(255, 255, 255, 0.75);
}

/* ==============================================
   CTA SECTION
   ============================================== */
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 8px;
}

/* ==============================================
   PAGE HERO (Unterseiten)
   ============================================== */
.page-hero {
  padding: 90px 0 60px;
  color: var(--paper);
  background:
    linear-gradient(
      135deg,
      rgba(10, 37, 64, 0.94) 0%,
      rgba(10, 37, 64, 0.65) 100%
    ),
    url("../images/page-hero3.png") center / cover;
}

.page-hero .container {
  padding-left: 20%;
}

.page-hero h1 {
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
}

.contact-box {
  padding: 32px;
  border-radius: var(--radius-lg);
  color: var(--paper);
  background: var(--ink);
}

.contact-box h2,
.contact-box h3 {
  color: var(--paper);
  margin-bottom: 6px;
}
.contact-box a,
.contact-box p {
  color: rgba(255, 255, 255, 0.8);
}
.contact-box a:hover {
  color: var(--accent);
}

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.contact-wa-box {
  margin-top: 28px;
  padding: 16px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-wa-box i {
  color: var(--wa);
  font-size: 1.4rem;
}
.contact-wa-box span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(196, 151, 58, 0.2);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
}
.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-dark);
}

.form-status {
  min-height: 24px;
  font-weight: 700;
  font-size: 0.92rem;
}
.form-status.success {
  color: #1a7f4b;
}
.form-status.error {
  color: #c0392b;
}

/* ==============================================
   LEGAL PAGES
   ============================================== */
.legal {
  max-width: 800px;
}
.legal h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}
.legal p,
.legal li {
  color: var(--muted);
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.6);
  background: #050505;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ==============================================
   SCROLL REVEAL
   ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1100px) {
  .split-section {
    margin-left: 0;
    margin-right: 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .split-right {
    padding: 60px 32px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: var(--ink);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 11px 14px;
  }
  .nav-cta {
    justify-content: center;
  }

  /* auskommentiert – ersetzt durch @media (max-width: 749px) */
  /* .feature-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .feature-item:nth-child(3n)::after { display: none; }
  .feature-item:nth-child(n + 4) { border-top: 1px solid var(--line); } */

  .split-section {
    grid-template-columns: 1fr;
  }
  .split-left {
    min-height: auto;
  }
  .split-img {
    min-height: unset;
    aspect-ratio: 16 / 9;
  }
  .split-right {
    padding: 60px 24px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 16px;
  }

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

  .hero {
    min-height: auto;
  }
  .hero .container {
    padding: 72px 0 48px;
  }

  .grid-3,
  .cta,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
  .section-head .btn {
    margin-top: 16px;
  }
  section,
  .page-section {
    padding: 60px 0;
  }
  .page-hero .container {
    padding-left: 10%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    display: block;
    text-align: center;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 749px) {
  .split-img video {
    object-position: center center;
    transform: scale(1.2);
    transform-origin: center center;
  }

  .feature-bar {
    margin-left: 20px;
    margin-right: 20px;
  }
  .feature-bar-inner {
    flex-direction: column;
    padding: 0 16px;
  }
  .feature-bar-inner .feature-item {
    flex: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 24px 16px;
  }
  .feature-item:first-child {
    border-top: none;
  }
  .feature-item:not(:last-child)::after {
    display: none;
  }
  .projekte-grid {
    grid-template-columns: 1fr;
  }
  .projekte-item img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, 1140px);
  }
  .page-hero .container {
    padding-left: 0;
  }
  .page-hero h1 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
    line-height: 1.15;
  }
  .hero::before {
    background-position: 92% center;
  }
  /* .brand-text small { display: none; } */
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  /* auskommentiert – übernommen von @media (max-width: 749px) */
  /* .feature-bar { margin-left: 0; margin-right: 0; }
  .feature-bar-inner { flex-direction: column; padding: 0; }
  .feature-bar-inner .feature-item { flex: none; width: 100%; flex-direction: row; text-align: left; align-items: center; border-top: 1px solid var(--line); padding: 20px 16px; }
  .feature-item:first-child { border-top: none; }
  .feature-item:not(:last-child)::after { display: none; } */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-right {
    padding-top: 40px;
  }
  .projekte-grid {
    grid-template-columns: 1fr;
  }
}
