
/* ============================================================
   NAV – EDER
   Desktop Dropdown + Mobile Offcanvas
   ============================================================ */

/* -------------------------
   DESKTOP NAV
------------------------- */
.uk-navbar-nav > li > a {
  position: relative;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: color 0.2s ease;
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a,
.uk-navbar-nav > li.uk-parent > a:hover {
  color: #fff;
}

.uk-navbar-nav > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 66%;
  width: 0;
  height: 2px;
  background: #a61d14;
  transform: translateY(6px);
  transition: width 0.22s ease;
}

.uk-navbar-nav > li > a:hover::before,
.uk-navbar-nav > li.uk-active > a::before,
.uk-navbar-nav > li.uk-parent > a:hover::before {
  width: 22px;
}


/* -------------------------
   DESKTOP DROPDOWN
------------------------- */
.uk-navbar-dropdown {
  background: #fff;
  min-width: 220px;
  margin-top: 10px;
  padding: 20px 24px;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.uk-navbar-dropdown-nav > li > a {
  color: #7d7d7d;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.uk-navbar-dropdown-nav > li > a:hover,
.uk-navbar-dropdown-nav > li.uk-active > a {
  color: #111;
}

/* -------------------------
   MOBILE / OFFCANVAS
------------------------- */
.tm-header-mobile .uk-navbar-toggle {
  color: #fff !important;
}

.tm-header-mobile .uk-navbar-toggle:hover {
  color: rgba(255,255,255,0.8) !important;
}

.uk-offcanvas-bar {
  background: #1f2027;
}

.uk-offcanvas-bar .uk-nav-default > li {
  margin-bottom: 8px;
}

.uk-offcanvas-bar .uk-nav-default > li > a {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 0;
  transition: color 0.2s ease;
}

.uk-offcanvas-bar .uk-nav-default > li > a:hover,
.uk-offcanvas-bar .uk-nav-default > li.uk-active > a {
  color: #fff;
}

/* Untermenü-Toggle */
.uk-offcanvas-bar .uk-nav-parent-icon > .uk-parent > a::after,
.uk-offcanvas-bar .uk-nav-parent-icon > .uk-parent > span::after {
  color: rgba(255,255,255,0.6);
}

/* Subnav */
.uk-offcanvas-bar .uk-nav-sub {
  margin-top: 10px;
  padding-left: 16px;
}

.uk-offcanvas-bar .uk-nav-sub a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0;
}

.uk-offcanvas-bar .uk-nav-sub a:hover,
.uk-offcanvas-bar .uk-nav-sub li.uk-active > a {
  color: #fff;
}

/* ============================================================
   01. HERO
   ============================================================ */

.hero-panel.uk-card {
  display: inline-block;
  width: auto;
  max-width: min(90vw, 700px);
  padding: 22px 28px;
}

/* Desktop */
.hero-panel h2,
.hero-panel .el-content h2 {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
}

/* TABLET */
@media (max-width: 1024px) {
  .hero-panel.uk-card {
    max-width: 620px;
    padding: 20px 24px;
  }

  .hero-panel h1,
  .hero-panel .el-title {
    font-size: 2rem !important;
  }

  .hero-panel h2,
  .hero-panel .el-content h2 {
    font-size: 1.5rem !important;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-panel.uk-card {
    max-width: calc(100vw - 32px);
    padding: 16px 18px;
  }

  .hero-panel h1,
  .hero-panel .el-title {
    font-size: 1.8rem !important;
    line-height: 1.15 !important;
  }

  .hero-panel h2,
  .hero-panel .el-content h2 {
    font-size: 1.1rem !important;
    line-height: 1.25 !important;
    margin-top: 6px !important;
  }
}

/* ============================================================
   HERO HEIGHT – nur für Hero
   ============================================================ */

/* iPad quer */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-viewport > [uk-height-viewport] {
    min-height: 80vh !important;
  }
}

/* iPad hoch */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-viewport > [uk-height-viewport] {
    min-height: 85vh !important;
  }
}

/* Handy quer */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-viewport > [uk-height-viewport] {
    min-height: 60vh !important;
  }
}

/* Handy hoch */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-viewport > [uk-height-viewport] {
    min-height: 90vh !important;
  }
}


/* ============================================================
   02. HEADER
   Logo + Sticky Shrink
   ============================================================ */

/* -------------------------
   DESKTOP
------------------------- */
.uk-logo .uk-svg {
  width: 200px;
  height: auto;
  transition: width 0.3s ease-in-out;
}

.tm-header .uk-sticky-below .uk-navbar-item,
.tm-header .uk-sticky-below .uk-navbar-nav > li > a,
.tm-header .uk-sticky-below .uk-navbar-toggle {
  min-height: 60px;
  display: flex;
  align-items: center;
}

.tm-header .uk-sticky-below .uk-logo .uk-svg {
  width: 150px;
}

/* ============================================================
   MOBILE PORTRAIT
   sticky + shrink on scroll
   ============================================================ */
@media (max-width: 959px) and (orientation: portrait) {

  .tm-header-mobile {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
  }

  /* Containerhöhe */
  .tm-header-mobile .uk-navbar-container {
    min-height: 56px;
    transition: min-height 0.3s ease-in-out;
  }

  /* Navbar-Ausrichtung */
  .tm-header-mobile .uk-navbar {
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  /* Logo */
  .tm-header-mobile .uk-logo {
    min-height: 56px;
    display: flex;
    align-items: center;
  }

  .tm-header-mobile .uk-logo .uk-svg {
    width: 140px;
    height: auto;
    transition: width 0.3s ease-in-out;
  }

  /* Burger / Toggle – echtes Touch-Ziel */
  .tm-header-mobile .uk-navbar-toggle {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Scroll-Zustand */
  .tm-header-mobile.is-scrolled .uk-navbar-container {
    min-height: 44px;
  }

  .tm-header-mobile.is-scrolled .uk-navbar {
    min-height: 44px;
  }

  .tm-header-mobile.is-scrolled .uk-logo {
    min-height: 44px;
  }

  .tm-header-mobile.is-scrolled .uk-logo .uk-svg {
    width: 110px;
  }

  .tm-header-mobile.is-scrolled .uk-navbar-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ============================================================
   MOBILE LANDSCAPE
   kompakt, nicht sticky
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) {

  .tm-header-mobile {
    position: relative;
  }

  .tm-header-mobile .uk-navbar-container {
    min-height: 44px;
  }

  .tm-header-mobile .uk-navbar {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .tm-header-mobile .uk-logo {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .tm-header-mobile .uk-logo .uk-svg {
    width: 110px;
    height: auto;
  }

  .tm-header-mobile .uk-navbar-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ============================================================
   03. FOOTER
   ============================================================ */

.footer-main {
  padding: 60px 0;
  line-height: 1.45;
}

.footer-main a {
  color: #fff;
  text-decoration: none;
}

.footer-main a:hover {
  opacity: 1;
}

.footer-main p {
  margin: 0 0 6px 0;
}

.footer-main p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-main {
    font-size: 0.9rem;
  }

  .footer-main p {
    margin: 0 0 4px 0;
  }
}

/* ============================================================
   04. LAYOUT HELPERS
   ============================================================ */

/* Reihenfolge Bild/Text auf Mobile drehen */
@media (max-width: 640px) {
  .uk-grid.reverse-mobile {
    display: flex;
    flex-direction: column;
  }

  .uk-grid.reverse-mobile > div:first-child {
    order: 2;
  }

  .uk-grid.reverse-mobile > div:nth-child(2) {
    order: 1;
  }
}
/* schmaler Contentbereich */
.stn-narrow {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.stn-narrow--small {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stn-narrow--wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Versatz */
.is-offset {
  margin-top: 100px;
}

@media (max-width: 768px) {
  .is-offset {
    margin-top: 0;
  }
}


/* ============================================================
   05. TYPO & CONTENT HELPERS
   ============================================================ */

.btn-line {
  margin-top: 30px !important;
}

.headline-accent .headline-highlight {
  color: #a61d14;
}


/* ============================================================
   06. BUTTONS
   ============================================================ */

.btn-line a,
a.btn-line,
.btn-line .uk-button {
  display: inline-block;
  position: relative;
  padding: 0 0 12px 0;
  background: none;
  border: 0;
  color: #111;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 21px;
}

.btn-line a::after,
a.btn-line::after,
.btn-line .uk-button::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 5px;
  background: #a61d14;
  transition: width 0.25s ease;
}

.btn-line a:hover::after,
a.btn-line:hover::after,
.btn-line .uk-button:hover::after {
  width: 64px;
}


/* ============================================================
   BUTTON – CTA VARIANTE (Mitte wächst nach außen)
   ============================================================ */

.btn-line--cta a,
a.btn-line--cta,
.btn-line--cta .uk-button {
  display: inline-block;
  position: relative;
  padding: 0 0 10px 0;
  background: none;
  border: 0;
  color: #a61d14;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
}

/* Linie */
.btn-line--cta a::after,
a.btn-line--cta::after,
.btn-line--cta .uk-button::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 6px;
  background: #a61d14;

  transform: scaleX(0.8);              /* Start kleiner */
  transform-origin: center;            /* 💥 KEY */
  transition: transform 0.35s ease;
}

/* Hover */
.btn-line--cta a:hover::after,
a.btn-line--cta:hover::after,
.btn-line--cta .uk-button:hover::after {
  transform: scaleX(1.2);                /* wächst nach außen */
}

/* ============================================================
   TYPO – Tablet & Mobile
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {

  .uk-heading-large {
    letter-spacing: 0;
  }

  .uk-heading-medium {
    font-size: 1.7rem;
  }
	
  .uk-heading-small {
    font-size: 1.4rem;
  }

}

/* Mobile */
@media (max-width: 768px) {

  .uk-heading-large {
    letter-spacing: 0;
  }

  .uk-heading-medium {
    font-size: 1.6rem;
  }

  .uk-heading-small {
    font-size: 1.4rem;
  }

}
/* ============================================================
   IMPRESSUM
   ============================================================ */

.legal-table {
  max-width: 980px;
}

.legal-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-row:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-label {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
}

.legal-value {
  font-size: 1rem;
  line-height: 1.55;
  color: #222;
}

.legal-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-value a:hover {
  color: #a61d14;
  border-bottom-color: #a61d14;
}

@media (max-width: 900px) {
  .legal-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0 16px;
  }

  .legal-label {
    font-size: 0.95rem;
  }
}

/* ============================================================
   Cookie
   ============================================================ */
.cc-custom-revoke {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: inline-block;
  margin: 0;
}

/* ============================================================
   EDER / STN STEPS – 5 Schritte
   oben: 1 / 3 / 5
   unten: 2 / 4
   ============================================================ */

.stn-steps {
  max-width: 1400px;
  margin: 0 auto;
}

.stn-steps__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto 44px auto;
  column-gap: clamp(24px, 2.5vw, 40px);
  row-gap: 34px;
  align-items: start;
  position: relative;
}

/* ------------------------------------------------------------
   STEP allgemein
------------------------------------------------------------ */

.step {
  text-align: left;
  justify-self: start;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out;
}

.stn-steps.animate .step {
  opacity: 1;
  transform: translateY(0);
}

.step-title {
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.15rem);
  line-height: 1.35;
  font-weight: 500;
  color: #111;
  max-width: 280px;
}

.step .nr {
  color: #a61d14;
  font-weight: 600;
  margin-right: 6px;
}

/* Staffelung */
.step-1 { transition-delay: 0.10s; }
.step-2 { transition-delay: 0.20s; }
.step-3 { transition-delay: 0.30s; }
.step-4 { transition-delay: 0.40s; }
.step-5 { transition-delay: 0.50s; }

/* ------------------------------------------------------------
   Desktop-Positionen
------------------------------------------------------------ */

.step-1 { grid-column: 1; grid-row: 1; }
.step-2 { grid-column: 2; grid-row: 3; }
.step-3 { grid-column: 3; grid-row: 1; }
.step-4 { grid-column: 4; grid-row: 3; }
.step-5 { grid-column: 5; grid-row: 1; }

/* ------------------------------------------------------------
   Linie
------------------------------------------------------------ */

.stn-steps__line {
  grid-column: 1 / 6;
  grid-row: 2;
  align-self: center;
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s ease-out;
}

.stn-steps.animate .stn-steps__line {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   Punkte Desktop
------------------------------------------------------------ */

.stn-steps__dot {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a61d14;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.stn-steps.animate .stn-steps__dot {
  opacity: 1;
  transform: scale(1);
}

.dot-1 { grid-column: 1; transition-delay: 0.20s; }
.dot-2 { grid-column: 2; transition-delay: 0.30s; }
.dot-3 { grid-column: 3; transition-delay: 0.40s; }
.dot-4 { grid-column: 4; transition-delay: 0.50s; }
.dot-5 { grid-column: 5; transition-delay: 0.60s; }

.dot-6 {
  display: none !important;
}

/* ============================================================
   TABLET + HANDY QUER
   2-spaltig, ohne horizontale Linie, mit Punkten links
   ============================================================ */

@media (max-width: 1024px) {
  .stn-steps__grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: none !important;
    gap: 34px 44px !important;
    padding-left: 24px;
  }

  .step,
  .step-1, .step-2, .step-3, .step-4, .step-5 {
    grid-column: auto !important;
    grid-row: auto !important;
    text-align: left;
    justify-self: stretch;
    position: relative;
  }

  .step-title {
    max-width: none;
    font-size: 1rem;
    line-height: 1.3;
  }

  .step .nr {
    display: inline;
    margin-right: 6px;
  }

  .step::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 0.42em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a61d14;
    opacity: 0;
    transform: scale(0.4);
    transition:
      opacity 0.4s ease-out,
      transform 0.4s ease-out;
  }

  .stn-steps.animate .step::before {
    opacity: 1;
    transform: scale(1);
  }

  .stn-steps__line,
  .stn-steps__dot {
    display: none !important;
  }
}

/* ============================================================
   MOBILE
   vertikale Linie links + Punkte pro Step
   ============================================================ */

@media (max-width: 768px) {
  .stn-steps__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 34px !important;
    position: relative;
    padding-left: 32px;
  }

  .stn-steps__grid::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(0, 0, 0, 0.18);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1s ease-out;
  }

  .stn-steps.animate .stn-steps__grid::before {
    transform: scaleY(1);
  }

  .step {
    position: relative;
    text-align: left;
    justify-self: auto;
  }

  .step-title {
    font-size: 0.98rem;
    line-height: 1.32;
    font-weight: 500;
    max-width: none;
    width: 100%;
  }

  .step .nr {
    color: #a61d14;
    font-weight: 600;
    margin-right: 6px;
  }

  .step::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a61d14;
    opacity: 0;
    transform: scale(0.4);
    transition:
      opacity 0.4s ease-out,
      transform 0.4s ease-out;
  }

  .stn-steps.animate .step::before {
    opacity: 1;
    transform: scale(1);
  }

  .stn-steps__line,
  .stn-steps__dot {
    display: none !important;
  }
}

/* ============================================================
   IGNITE
   ============================================================ */

.ig-slideshow-button svg {
    background: transparent;
    width: 25px;
    height: 40px;
    padding: 10px;
    box-sizing: content-box;
}

.ig-slideshow-button,
.ig-img-link,
.igui-close {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ig-slideshow-button:focus,
.ig-img-link:focus,
.igui-close:focus {
  outline: 2px solid #a61d14;
  outline-offset: 2px;
}