/* ==========================================================================
   Freizeit (freizeit.html) – Dez. 2026
   E-Bike-Verleih: Werbefläche mit animierter Grafik neben der E-Bike-Karte.
   ========================================================================== */

.ha-ebike-section .blog-items { height: 100%; }

/* Alle Karten einer Reihe gleich hoch, "Link" bündig unten */
.blog-section .row > [class*="col-"] { display: flex; }
.blog-section .blog-items { display: flex; flex-direction: column; width: 100%; height: 100%; }
.blog-section .blog-items .content { display: flex; flex-direction: column; flex: 1 1 auto; }
.blog-section .blog-items .content p { margin-bottom: 22px; }
.blog-section .blog-items .content .blog-btn { margin-top: auto; align-self: flex-start; }

.ha-ebike {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100%;
  border: 1px solid var(--base-color);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

/* ---------- Text ---------- */
.ha-ebike__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 34px;
}
.ha-ebike__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--theme-color);
}
.ha-ebike__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--theme-color); }
.ha-ebike__title {
  margin: 10px 0 14px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  color: var(--base-color);
}
.ha-ebike__intro { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--pragraph-color); }

.ha-ebike__fakten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.ha-ebike__fakten li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-color);
  font-size: 14.5px;
  line-height: 1.3;
  color: #4d4d4d;
}
.ha-ebike__fakten strong { display: block; font-weight: 600; color: var(--base-color); }
.ha-ebike__fakten svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--theme-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ha-ebike__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ha-ebike__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 16px;
  border-radius: 999px;
  background: var(--theme-color);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(170, 132, 83, .9);
  transition: background-color .25s, transform .25s;
}
.ha-ebike__btn:hover { background: var(--base-color); color: #fff; transform: translateY(-2px); }
.ha-ebike__btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linejoin: round; animation: ha-eb-klingeln 3.2s ease-in-out infinite;
}
.ha-ebike__btn span { display: flex; flex-direction: column; font-size: 17px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.ha-ebike__btn small { font-size: 13px; letter-spacing: .02em; text-transform: none; opacity: .9; }
.ha-ebike__link { font-size: 15px; color: var(--theme-color); border-bottom: 1px solid currentColor; }
.ha-ebike__link:hover { color: var(--base-color); }

/* ---------- Grafik ---------- */
.ha-ebike__szene { position: relative; min-height: 100%; overflow: hidden; background: #FBF8F3; }
.ha-ebike__szene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }

.ha-eb-t-gross { font-family: "Gilda Display", serif; font-size: 26px; fill: #fff; }
.ha-eb-t-klein { font-family: "Barlow", sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: #E6D6BF; }

.ha-eb-dreh { transform-box: fill-box; transform-origin: center; animation: ha-eb-drehen 1.1s linear infinite; }
.ha-eb-pedal { transform-box: fill-box; transform-origin: center; animation: ha-eb-gegen 1.1s linear infinite; }
.ha-eb-fern { animation: ha-eb-laufen 42s linear infinite; }
.ha-eb-nah { animation: ha-eb-laufen 16s linear infinite; }
.ha-eb-strasse { animation: ha-eb-strasse .55s linear infinite; }
.ha-eb-kette { animation: ha-eb-kette .4s linear infinite; }
.ha-eb-bike { animation: ha-eb-wippen .5s ease-in-out infinite alternate; }
.ha-eb-wind path { animation: ha-eb-wind 1.2s ease-in infinite; }
.ha-eb-wind .ha-eb-wind--2 { animation-delay: .35s; }
.ha-eb-wind .ha-eb-wind--3 { animation-delay: .7s; }
.ha-eb-sonnenring { transform-box: fill-box; transform-origin: center; animation: ha-eb-puls 4s ease-in-out infinite; }
.ha-eb-wolke { animation: ha-eb-wolke 38s linear infinite; transform: translate(-90px, -30px); }
.ha-eb-wolke--2 { animation-duration: 52s; animation-delay: -26s; translate: 0 60px; }
.ha-eb-plakette-inner { transform-box: fill-box; transform-origin: 50% 0; animation: ha-eb-schaukeln 3.6s ease-in-out infinite; }
.ha-eb-akku { animation: ha-eb-akku 2.8s ease-in-out infinite; }
.ha-eb-akku--2 { animation-delay: .25s; }
.ha-eb-akku--3 { animation-delay: .5s; }
.ha-eb-akku--4 { animation-delay: .75s; }

@keyframes ha-eb-drehen { to { transform: rotate(360deg); } }
@keyframes ha-eb-gegen { to { transform: rotate(-360deg); } }
@keyframes ha-eb-laufen { to { transform: translateX(-400px); } }
@keyframes ha-eb-strasse { to { stroke-dashoffset: 32; } }
@keyframes ha-eb-kette { to { stroke-dashoffset: -10; } }
@keyframes ha-eb-wippen { from { transform: translate(10px, 160px); } to { transform: translate(10px, 158.5px); } }
@keyframes ha-eb-wind {
  0% { transform: translateX(30px); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateX(-40px); opacity: 0; }
}
@keyframes ha-eb-puls { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .35; } }
@keyframes ha-eb-wolke { from { transform: translate(-90px, -30px); } to { transform: translate(430px, -30px); } }
@keyframes ha-eb-schaukeln { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ha-eb-akku { 0%, 15% { opacity: .25; } 35%, 85% { opacity: 1; } 100% { opacity: .25; } }
@keyframes ha-eb-klingeln { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 95% { transform: rotate(-8deg); } }

/* ---------- Responsive ---------- */
/* unter 1200 px: Grafik oben (unterer Teil der Szene), Text darunter */
@media (max-width: 1199px) {
  .ha-ebike { grid-template-columns: 1fr; height: auto; }
  .ha-ebike__szene { order: -1; min-height: 0; aspect-ratio: 8 / 5; }
  .ha-ebike__szene svg { top: auto; bottom: 0; height: auto; }
  .ha-ebike__text { padding: 26px 28px 30px; }
}
@media (max-width: 575px) {
  /* Seitentitel "Ahrtaler Freizeitangebote" war auf dem Handy breiter als der Bildschirm */
  .breadcumd-content h1 { font-size: 27px; letter-spacing: .03em; overflow-wrap: anywhere; }
  .ha-ebike__szene { aspect-ratio: 4 / 3; }
  .ha-ebike__text { padding: 24px 20px 26px; }
  .ha-ebike__fakten { grid-template-columns: 1fr; }
  .ha-ebike__aktion { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ha-ebike *, .ha-ebike__btn svg { animation: none !important; }
}
