/*
Theme Name: Falkonia Child
Template: Divi
Author: Wolfgang Korda
Description: Child-Theme für das Divi-Theme
Version: 1.0
*/


/* ========================
   🌐 Basis-Layout und Typo
======================== */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

/* Responsive Schriftgrößen */
@media (max-width: 980px) {
  body { font-size: 16px; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
}


/* ========================
   📅 ConcertOne als Standard Schriftart
======================== */

@font-face {
  font-family: 'Concert One';
  src: url('/wp-content/themes/falkonia-markt-schwaben/fonts/concertone/concert-one-v22-latin-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Concert One', sans-serif;
}


/* ========================
   📅 Animation zwischen den Sektionen
========================  */

/* 🌊 Wellenanimation für alle Browser außer Firefox */
.et_pb_section.wavey > div[class*="_inside_divider"] {
  background-image: url('/wp-content/themes/falkonia-markt-schwaben/wellenform.svg');
  background-repeat: repeat-x;
  background-size: 1600px 160px;
  animation: waveSlide 20s linear infinite;
  height: 160px;
  overflow: visible;
  display: block;
  z-index: 1;
  pointer-events: none;
}

@keyframes waveSlide {
  0%   { background-position-x: 0; }
  100% { background-position-x: -1600px; }
}

/* 🦊 Firefox: keine Animation, aber Welle sichtbar */
@supports (-moz-appearance: none) {
  .et_pb_section.wavey > div[class*="_inside_divider"] {
    animation: none !important;
    background-position-x: 0 !important;
    transform: none !important;
    height: 160px !important;
  }
}





/*

.et_pb_section.wavey > div[class*="_inside_divider"] {
  background-image: url('/wp-content/themes/dein-child-theme/images/wave-loop.svg');
  background-repeat: repeat-x;
  background-size: 1600px 160px;
  animation: waveSlide 20s linear infinite;
  height: 160px;
  background-position: 0 0;
  z-index: 1;
  pointer-events: none;
}

@keyframes waveSlide {
  0%   { background-position-x: 0; }
  100% { background-position-x: -1600px; }
}

*/


/* ========================
   📅 Timeline
======================== */

.kics-timeline-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 20px;
  scroll-snap-type: none;
  position: relative;
}

.kics-timeline-item {
  flex: 0 0 auto;
  width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.kics-timeline-item:hover {
  transform: scale(1.05);
}

.kics-timeline-badge,
.kics-timeline-date {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #ff3d97;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.75em;
  border-radius: 12px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Inhalt */
.kics-timeline-content h4 {
  font-size: 1.2em;
  margin: 16px 0 10px;
  color: #0a2d61;
}

.kics-timeline-content p {
  font-size: 0.95em;
  color: #444;
}

/* Galerie-Button */
.kics-timeline-content a.button {
  display: inline-block;
  margin-top: 12px;
  background: #0073e6;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
.kics-timeline-content a.button:hover {
  background: #005bb5;
}

/* Bilder */
.kics-timeline-content img {
  max-width: 200px;
  margin-top: 10px;
  border-radius: 8px;
}

/* Highlight */
.kics-timeline-item.highlight {
  border: 2px solid #0073e6;
  background: #f0faff;
}
.kics-timeline-item.highlight h4 {
  font-size: 1.4em;
  color: #0073e6;
}

/* ========================
   ⬅️➡️ Scroll-Pfeile
======================== */

.timeline-scroll-container {
  position: relative;
  overflow: hidden;
}
.timeline-scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.timeline-scroll-button.left {
  left: 0;
}
.timeline-scroll-button.right {
  right: 0;
}
