@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

/* ==============================================
   VARIABLEN & BASIS
   ============================================== */
:root {
  --ink: #0c1f33;
  --ink-soft: #1a3450;
  --accent: #c4973a;
  --accent-dark: #a87c2e;
  --accent-light: #f8f0e3;
  --paper: #ffffff;
  --mist: #f5f7fa;
  --line: #e2e8f0;
  --text: #24384b;
  --muted: #637487;
  --shadow: 0 4px 24px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 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%;
}
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: 34px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(62%) sepia(44%) saturate(631%)
    hue-rotate(5deg) brightness(96%);
}

/* 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);
  }
  to {
    transform: scale(1.05) translateX(-3%);
  }
}

.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;
  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 {
  background: var(--paper);
  display: grid;
  grid-template-columns: 58% 42%;
  overflow: hidden;
  min-height: 560px;
  /*gap: 0;*/
}

.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 {
  overflow: hidden;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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(3, 1fr);
  gap: 44px 20px;
}

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

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

.service-item > i {
  font-size: 1.65rem;
  color: var(--accent);
  display: 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;
}

/* ==============================================
   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-hero.jpg") center / cover;
}

.page-hero h1 {
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

.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: #061624;
}

.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-left {
    grid-template-columns: 1fr;
  }
  .split-img {
    display: none;
  }
}

@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;
  }

  .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;
    margin-left: 0;
    margin-right: 0;
  }
  .split-left {
    min-height: auto;
  }
  .split-content {
    padding: 60px 24px;
  }
  .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;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    display: block;
    text-align: center;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, 1140px);
  }
  .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;
  }
  .feature-bar-inner {
    flex-direction: column;
  }
  .feature-bar-inner .feature-item {
    flex: none;
    width: 100%;
    flex-direction: row;
    text-align: left;
    align-items: center;
    border-top: 1px solid var(--line);
  }
  .feature-item:first-child {
    border-top: none;
  }
  .feature-item:not(:last-child)::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projekte-grid {
    grid-template-columns: 1fr;
  }
}
