/*
 Theme Name:   twenty twenty five amp child theme
 Template:     twentytwentyfive
 Version:      1.0
*/

@import url("../twentytwentyfive/style.css");

/* Styling des Kontaktformulars */

.kontaktformular-container {
    width: 360px;
    height: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff00;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Alle Formularfelder */
.kontaktformular input[type="text"],
.kontaktformular input[type="email"],
.kontaktformular textarea {
    font-family: inherit;
    width: 90%;
    margin: 0 auto 16px auto;
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block;
    box-sizing: border-box;
}

/* Textarea größer */
.kontaktformular textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox mit Text */
.kontaktformular input[type="checkbox"] {
    margin-right: 8px;
    color: #ffffff;
}

.kf_datenschutz {
    color: #ffffff;
}

.kontaktformular label {
    display: block;
    width: 90%;
    margin: 0 auto 16px auto;
    font-size: 14px;
    color: #333;
}

/* Absenden-Button */
.kontaktformular input[type="submit"] {
    display: block;
    margin: 0 auto;
    padding: 10px 24px;
    font-size: 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #bd0926; /* <<< HIER FARBE ANPASSEN */
    color: #fff;
    transition: background-color 0.3s ease;
}

.kontaktformular input[type="submit"]:hover {
    background-color: #005bb5; /* <<< HIER HOVER-FARBE ANPASSEN */
}

/* Erfolgs- und Fehlertext */
.kontaktformular-feedback {
    text-align: center;
    font-size: 13px;
    margin-bottom: 16px;
    color: #2c7c3f;
}

.kontaktformular-feedback.error {
    color: #b50000;
}

.kontaktformular-container h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff!important;
}

.kontaktformular textarea {
    resize: none;
}

:root :where(.is-layout-flow) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Styling des Sliders */

/* Mehr Spezifität zur Sicherheit */

body .projekt-slider-container {
    max-width: 1140px;
    margin: 0 auto;
    overflow: hidden;
  }
  
  body .projekt-slider-wrapper {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  body .projekt-slider-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  body .projekt-slide {
    flex: 0 0 auto;
    width: 250px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    text-align: center;
  }
  
  body .projekt-slide img {
    width: 100%;
    height: 200px; /* oder was für dich gut aussieht */
    object-fit: cover;
    object-position: center;
    border-radius: 8px; /* optional: abgerundete Ecken */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* optional: dezente Schatten */
  }
  
  body .projekt-slide h3 {
    margin: 0.5rem 0 0;
    font-size: 20px;
  }
  
  body .projekt-slide p {
    margin: 0 0 1rem;
    font-size: 15px;
    color: #555;
  }

/* Pfeile */

.projekt-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .projekt-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
  }
  
  .projekt-slide {
    min-width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
  }
  
  .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  
  .slider-arrow.left {
    left: 0;
  }
  
  .slider-arrow.right {
    right: 0;
  }
  
/* Margin am Seitenanfang entfernen */

:where(.wp-site-blocks) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

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

.hero-slide h2 {
  position: absolute;
  bottom: 40px;
  left: 50px;
  font-size: 3rem;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  background-color: rgba(0, 0, 0, 0.5); /* halbtransparenter Hintergrund */
}

body {
  overflow-x: hidden;
}

/* Ken Burns Effekt auf aktiven Slide anwenden */

@keyframes kenburns-zoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(2%, 2%);
  }
}

.hero-slide img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  animation: kenburns-zoom 10s ease-in-out forwards;
  animation-play-state: paused; /* Warten bis Slide aktiv ist */
}

/* Nur aktive Slide soll den Effekt abspielen */
.hero-slide.active img {
  animation-play-state: running;
}

/* Timeline Über Uns Seite */

.timeline-wrapper {
  max-width: 1140px;
  margin: 3rem auto;
  position: relative;
  padding: 2rem 0;
}

.timeline-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #2b2c83;
  z-index: 0;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 4rem 0;
  width: 100%;
  z-index: 1;
}

.timeline-content, .timeline-image {
  width: 48%;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #f4f4f4;
  padding: 1.5rem;
}

.timeline-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.timeline-date {
  display: inline-block;
  background: #2b2c83;
  color: #fff;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Text links, Bild rechts */
.timeline-item.left .timeline-content {
  order: 1;
}
.timeline-item.left .timeline-image {
  order: 2;
  margin-left: 1rem;
}

/* Bild links, Text rechts */
.timeline-item.right .timeline-content {
  order: 2;
}
.timeline-item.right .timeline-image {
  order: 1;
  margin-right: 1rem;
}

/* Responsive Verhalten */
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
  }

  .timeline-content,
  .timeline-image {
    width: 100%;
    margin: 0 0 1.5rem 0;
  }

  .timeline-wrapper::after {
    left: 20px;
    transform: none;
  }

  .timeline-item.right .timeline-content,
  .timeline-item.right .timeline-image,
  .timeline-item.left .timeline-content,
  .timeline-item.left .timeline-image {
    order: initial;
  }
}

/* Timeline Schriften */

/* Datum */
.timeline-date {
  font-size: 20px;         /* kleinere Schriftgröße */
  font-weight: 700;           /* fett */
  text-transform: uppercase;  /* optional: Großbuchstaben */
}

/* Abschnittsüberschrift */
.timeline-content h3 {
  font-size: 30px;         /* z. B. 20px */
  font-weight: 600;           /* halbfett */
  margin: 0 0 0.5rem 0;
}

/* Fließtext */
.timeline-content p {
  font-size: 15px;            /* z. B. 16px */
  font-weight: 400;           /* normal */
  line-height: 1.6;           /* bessere Lesbarkeit */
}

/* Pfeilspitze */

.timeline-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 60px; /* damit Platz für den Pfeil bleibt */
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #2b2c83;
  z-index: 0;
}

/* Pfeil am unteren Ende */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border: solid transparent;
  border-top-color: #2b2c83;
  border-width: 40px;
  height: 0;
  width: 0;
  z-index: 1;
}

/* Referenz Seite Lightbox */

.projekt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.projekt-kachel {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 8px;
}

.projekt-kachel img {
  width: 280px;
  height: auto;
  aspect-ratio: 4 / 3; /* Verhältnis: Breite zu Höhe */
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.projekt-kachel:hover img {
  transform: scale(1.05);
}

.hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(43, 44, 131, 1);
  color: #fff;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 15px;
}

.projekt-kachel:hover .hover-info {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-content {
  background: #fff;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  border-radius: 8px;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  margin-top: 1rem;
}

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.lightbox-content h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 12px;
}

.lightbox-content p {
  font-size: 15px;
  font-weight: normal;
  line-height: 1.5;
}

.projekt-kachel .hover-info h3 {
  font-size: 15px; /* z. B. auf 20px anpassen */
  font-weight: bold; /* optional, falls du auch den Schriftschnitt ändern willst */
}

.projekt-kachel .hover-info p {
  font-size: 15px; /* z. B. für den Untertext */
}

/* Referenzen Marken Slider */

.brand-scroller {
  position: sticky;
  top: 0px; /* Abstand zum oberen Bildschirmrand */
  z-index: 999;

  /* Neuer Rahmen / Hintergrund */
  background: #ffffff;         /* kannst du auf #f8f8f8 ändern, wenn du einen hellgrauen Block willst */
  padding: 20px 0;             /* oben + unten Abstand */
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* dezenter Schatten */

  width: 100%;
  white-space: nowrap;
}

/* Track */
.brand-track {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
  overflow: hidden;
}

/* Einzelmarke */
.brand {
  flex: 0 0 auto;
  padding: 0 2rem;
}

/* Logos */
.brand img {
  height: 60px; /* anpassen je nach Design */
  width: auto;
  object-fit: contain;
}

/* Animation */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Fix für Gutenberg-Flex-Container */
.wp-block-group.is-layout-flex .brand-scroller {
  align-self: flex-start !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999;
}
