/* HERO VIDEO */

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.55);
}

/* OVERLAY */
.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.hero-overlay h1 {
  background: rgba(0, 0, 0, 0.1); /* halbtransparente Box */
  padding: 1rem 2rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  display: inline-block;
}

.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
  color: #f5f5f5;
}

.hero-overlay p {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: #f5f5f5;
}

/* TYPEWRITER */
.cursor {
  display: inline-block;
  background-color: #fff;
  width: 2px;
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

.typed-text {
  color: #e63946;
  font-weight: 600; /* optional, damit es etwas kräftiger wirkt */
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* OPTIONAL: leichter Fade-Effekt beim Start */
.hero-overlay {
  animation: fadeIn 1.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #e63946;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.3);
}

.hero-cta:hover {
  background-color: #ff4b5a;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.45);
  transform: translateY(-2px);
}


.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  color: #ffffff;
  opacity: 0.7;
  z-index: 2;
  animation: scrollPulse 1.8s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes scrollPulse {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, 10px);
    opacity: 1;
  }
}



.left-column {
  width: 40%;
  text-align: left
}

.right-column {
  width: 55%;
  margin-top: 2rem; /* oder mehr für größeren Abstand */
  text-align: left
}

.left-column img {
  width: 75%;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

a {
  color: #e63946; /* Modernes Rot */
  text-decoration: none;
}

a:hover {
  color: #f36b6b; /* Helleres Rot beim Hover */
  text-decoration: underline; /* Optional: Hover-Effekt */
}

.section-spacer {
  width: 100%;
  height: 10px;
  background-color: #ffffff; /* gleiche Farbe wie vorherige Sektion */
  box-shadow: 0 3px 16px rgba(0,0,0,0.3);
}

/* === INTRO-SEKTION === */

.intro-section {
  padding: 6rem 2rem;
  background-color: #ffffff;
  color: #424242;
  display: flex;
  justify-content: center;
}

.intro-content {
  max-width: 900px;
  text-align: left;
}

.intro-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #e63946;
}

.intro-content p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Intro – Mobile Optimierung */
@media (max-width: 768px) {
  .intro-content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem 1.1rem;               /* Innenabstand */
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  }
}

/* === LEISTUNGS-SEKTION === */

.leistungen-section {
  padding: 5rem 1.5rem;
  background: #ffffff;
  color: #1f2937; /* dunkler, wertiger */
}

.leistungen-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.leistungen-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.leistungen-head h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.leistungen-sub {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4b5563;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.leistung-card {
  grid-column: span 6;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}


.leistung-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 57, 70, 0.35);
  background: linear-gradient(
    180deg,
    rgba(230, 57, 70, 0.06),
    #ffffff 70%
  );
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
}

.leistung-card:hover .leistung-icon {
  background: rgba(230, 57, 70, 0.14);
  color: #e63946;
}


.leistung-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.leistung-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(230, 57, 70, 0.10);
  color: #e63946;
  flex: 0 0 44px;
}

.leistung-icon i {
  font-size: 1.5rem;
  line-height: 1;
}

.leistung-card h3 {
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.leistung-text {
  margin: 0.5rem 0 0.9rem 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
}

.leistung-benefit {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: #111827;
  padding-top: 0.9rem;
  border-top: 1px dashed #e5e7eb;
}

.leistung-link {
  color: #e63946;
  font-weight: 600;
  text-decoration: none;
}

.leistung-link:hover {
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 900px) {
  .leistung-card {
    grid-column: span 12;
  }
}


/* === CASESTUDIES-SEKTION === */

.case-studies {
  padding: 5rem 1.5rem;
  background: #f5f6f8;
  color: #1f2937;
}

.case-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.case-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.case-head h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.case-sub {
  max-width: 70ch;
  margin: 0 auto;
  color: #4b5563;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Grid: 12 Spalten */
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

/* Card Basis */
.case-card {
  position: relative;
  grid-column: span 6;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

/* Featured: volle Breite */
.case-card--featured {
  grid-column: span 12;
  min-height: 420px;
}

/* dunkler Verlauf fürs Bild */
.case-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.18) 0%,
    rgba(17, 24, 39, 0.55) 55%,
    rgba(17, 24, 39, 0.82) 100%
  );
}

/* Content: Standard (unten, links, lesbar) */
.case-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.4rem 1.2rem;
  color: #ffffff;
  display: grid;
  gap: 0.75rem;
  text-align: left;
  align-items: start;
}

/* Featured Content: echte Zentrierung (Breite begrenzen + center) */
.case-card--featured .case-content {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 2.8rem));
  text-align: center;
  justify-items: center;
  align-items: center;
}

/* Badges */
.case-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-badge {
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(250, 35, 6, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

/* Featured: Badges mittig */
.case-card--featured .case-badges {
  justify-content: center;
}

/* Titel + Text */
.case-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.case-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 70ch;
}

/* Featured: Text optisch sauber zentrieren */
.case-card--featured .case-text {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Meta-Liste */
.case-meta {
  list-style: none;
  padding: 0;
  margin: 0.15rem 0 0.25rem 0;
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.case-meta span {
  color: rgba(255, 255, 255, 0.70);
  margin-right: 0.35rem;
}

/* Featured: Meta mittig, begrenzte Breite */
.case-card--featured .case-meta {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Link (wie bei Leistungen – kein Button, kein repetitives Design) */
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
  border-bottom: 2px solid rgba(230, 57, 70, 0.75);
  padding-bottom: 0.1rem;
}

.case-link:hover {
  border-bottom-color: #e63946;
}

/* Featured: Link wirklich mittig */
.case-card--featured .case-link {
  justify-self: center;
}

/* Hover: roter Akzent + Tiefe */
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
  border-color: rgba(230, 57, 70, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .case-card,
  .case-card--featured {
    grid-column: span 12;
    min-height: 360px;
  }

  /* Auf Mobile Featured nicht zu "breit-zentriert" wirken lassen */
  .case-card--featured .case-content {
    width: calc(100% - 2.8rem);
  }
}

/* === NEWS-SEKTION === */

.news-section {
  padding: 5rem 1.5rem;
  background: #ffffff;
  color: #1f2937;
}

.news-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.news-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-head h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.news-sub {
  max-width: 70ch;
  margin: 0 auto;
  color: #4b5563;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Layout: links Featured, rechts Liste (2 Reihen) */
.news-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* Tag */
.news-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.10);
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.18);
}

.news-tag--alt {
  background: rgba(17, 24, 39, 0.06);
  color: #374151;
  border-color: rgba(17, 24, 39, 0.10);
}

/* Featured Card */
.news-feature {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100%;
  text-align: left;

  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), #ffffff 60%);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;

  display: flex;
  flex-direction: column;
}

.news-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  border-color: rgba(230, 57, 70, 0.30);
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.05), #ffffff 70%);
}

.news-feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.news-date {
  font-size: 0.9rem;
  color: #6b7280;
}

.news-feature h3 {
  margin: 0 0 0.65rem 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.news-lead {
  margin: 0 0 1rem 0;
  color: #374151;
  line-height: 1.65;
}

/* Bullet-Punkte für mehr Inhalt */
.news-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem 0;
  display: grid;
  gap: 0.45rem;
  color: #374151;
  font-size: 0.98rem;
}

.news-points span {
  color: #6b7280;
  margin-right: 0.35rem;
}

/* Link im Entec-Stil */
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #e63946;
  text-decoration: none;
  border-bottom: 2px solid rgba(230, 57, 70, 0.35);
  padding-bottom: 0.12rem;
  width: fit-content;
}

.news-link:hover {
  border-bottom-color: #e63946;
}

/* Featured: Link nach unten */
.news-feature .news-link {
  margin-top: auto;
}

/* Liste rechts: 2 Karten gleiche Höhe */
.news-list {
  grid-column: 2;
  grid-row: 1 / span 2;

  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

/* News Item: wieder mit Datums-Spalte */
.news-item {
  height: 100%;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem; 
  text-align: left;

  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
  border-color: rgba(230, 57, 70, 0.28);
}

.news-item-date {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
}

.news-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-item-body h3 {
  margin: 0.55rem 0 0.55rem 0;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.news-item-body p {
  margin: 0 0 0.85rem 0;
  color: #374151;
  line-height: 1.6;
}

.news-item-body .news-link {
  margin-top: auto;
}

/* Responsive */
@media (max-width: 980px) {
  .news-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .news-feature {
    grid-column: 1;
    grid-row: auto;
  }

  .news-list {
    grid-column: 1;
    grid-row: auto;
    grid-template-rows: auto;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .news-item-date {
    justify-content: flex-start;
    text-align: left;
    padding-top: 0;
  }
}

/* === KONTAKT-SEKTION === */

.kontaktformular-section {
  background-color: #ffffff;
  padding: 4rem 2rem;
  margin: 0 auto;
  text-align: left;
  color: #424242;
}

.kontaktformular-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.kontaktformular-section p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.kontaktformular {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto 4rem auto;
  max-width: 800px;
  align-content: center;
}

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

.form-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e63946;
  background-color: #fff;
}

.kontakt-button {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontakt-button:hover {
  background-color: #d02736;
}


html {
  scroll-behavior: smooth;
}