/* ===============================================
   KADENCE CHILD THEME – STYLE.CSS (bereinigt)
   =============================================== */

/* ------------------------------------------------
   ROOT COLORS
-------------------------------------------------- */
:root {
  --blue-dark:  #1750A7;
  --blue-mid:   #4F73C9;
  --blue-light: #A8C6FF;
  --gold:       #FAD24B;
  --red:        #D93221;
  --green:      #2FB15C;
  --glass-bg: rgba(45, 80, 160, 0.38);
}

/* ------------------------------------------------
   GLOBAL BACKGROUND
-------------------------------------------------- */
body {
  background: linear-gradient(180deg,
    var(--blue-dark) 0%,
    var(--blue-mid) 50%,
    var(--blue-light) 100%
  ) fixed;
  margin: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
}

header, footer,
.site-main, .content-area, .site-content,
.entry-content, .entry, article,
#inner-wrap, #page-wrap, .site-container,
.wp-site-blocks,
.elementor-section, .elementor-container,
.elementor-column, .elementor-widget-wrap {
  background: transparent !important;
}

/* ------------------------------------------------
   HAUPTÜBERSCHRIFT CHRONIK
-------------------------------------------------- */
/* ------------------------------------------------
   HAUPTÜBERSCHRIFT CHRONIK – KORRIGIERTE VERSION
-------------------------------------------------- */
/* ------------------------------------------------
   HAUPTÜBERSCHRIFT CHRONIK – FINAL WORKING VERSION
-------------------------------------------------- */
.chor-haupttitel {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  margin: 2.5rem auto 1rem;

 background-image: linear-gradient(90deg,

  /* Deutlich stärkeres Rot */
  var(--red) 0%,
  var(--red) 32%,

  /* Weicher Übergang Rot → Orange */
  #ff5e2d 38%,
  #ff8d2d 43%,

  /* Gold-Bereich */
  var(--gold) 50%,
  #ffd86b 57%,

  /* Soft Gold → Hellgrün Übergang */
  #c8ee76 64%,
  #9eee75 72%,

  /* Klar sichtbares Grün */
  var(--green) 80%,
  var(--green) 100%
);


  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.chor-haupttitel::after {
  content: "";
  display: block;
  width: 75%;
  height: 4px;
  margin: 1rem auto 0;

  background-image: linear-gradient(90deg,
    var(--red) 0%,
    var(--gold) 50%,
    var(--green) 100%
  );

  border-radius: 4px;
  box-shadow:
    0 0 4px rgba(255, 214, 107, 0.45),
    0 0 6px rgba(0, 255, 0, 0.25);
}

/* ------------------------------------------------
   GLAS CONTAINER
-------------------------------------------------- */
.chor-bereich {
  max-width:1300px;
  margin:3rem auto;
  padding:2.5rem;
  border-radius:24px;
  background:linear-gradient(to bottom,rgba(255,255,255,0.18),rgba(255,255,255,0)),var(--glass-bg);
  backdrop-filter:blur(14px);
  box-shadow:0 0 0 3px rgba(255,214,107,0.55),0 10px 32px rgba(0,0,0,0.35);
  animation:fadeIn .8s ease;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(20px);}
  to{opacity:1;transform:translateY(0);}
}

/* ------------------------------------------------
   HEADER SCROLL
-------------------------------------------------- */
.site-header{padding-top:40px;transition:.3s;}
.site-header.scrolled{
  background:rgba(10,52,140,0.95);
  box-shadow:0 0 0 3px rgba(255,214,107,0.55),0 6px 20px rgba(0,0,0,0.35);
}
.site-header.scrolled .kadence-navigation>li>a{color:#fff!important;}

/* ------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
#main-header .kadence-navigation>li>a{
  color:#000!important;
  font-weight:600;
}
#main-header .kadence-navigation>li>a:hover{color:var(--gold)!important;}
#main-header .primary-navigation ul.sub-menu{background:var(--blue-dark)!important;}
#main-header .primary-navigation ul.sub-menu a{color:#fff!important;}
#main-header .primary-navigation ul.sub-menu a:hover{color:var(--gold)!important;}

.mobile-header-navigation .kadence-mobile-popup{background:var(--blue-dark)!important;}
.mobile-header-navigation .menu-item>a{color:#fff!important;}
.mobile-header-navigation .menu-item>a:hover{color:var(--gold)!important;}

/* ------------------------------------------------
   CHRONIK JAHRES-TITEL
-------------------------------------------------- */
.chor-titel-poppig{
  font-size:clamp(2.4rem,4vw,3.5rem);
  font-weight:900;
  color:transparent;
  background:linear-gradient(90deg,#fff,#FFD66B,#fff);
  -webkit-background-clip:text;
  text-shadow:0 4px 14px rgba(0,0,0,0.25);
}
.chor-titel-poppig::after{
  content:"";
  display:block;
  width:55%;
  height:4px;
  margin:1rem auto 0;
  background:var(--gold);
  border-radius:4px;
}

.chor-text{
  font-size:1.5rem!important;
  font-weight:800!important;
  color:#000!important;
}
.chor-datum{display:none!important;}

/* ------------------------------------------------
   ⭐ MODERNES ARCHIV-LAYOUT — 3 SPALTEN
-------------------------------------------------- */

/* Jahrzehnte-Container */
.archiv-gitter{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
  padding: 3rem 1rem;
}

/* Jahrzehnt-Block */
.decade-block{
  background: rgba(255, 255, 255, 0.06);
  border-radius: 26px;
  padding: 2rem 1.6rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  
  grid-auto-rows: 64px;      /* <<< WICHTIG! feste Zeilenhöhe */
  align-items: center;       /* zentriert Inhalte */
  justify-items: center;

  gap: 1.2rem;
  animation: decadeIn .6s ease;
}

/* Jahrzehnt Einblenden */
@keyframes decadeIn {
  from { opacity:0; transform: translateY(15px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Jahrzehnt Titel */
.decade-sep{
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: .8rem;
  text-shadow: 0 0 12px rgba(255,215,100,0.35);
}

/* Jahres-Kacheln */
.archiv-jahr{
  width: 100%;
  height: 100%;              /* <<< Passt sich exakt der Grid-Zelle an */

  display: flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(
      135deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.01)
  );

  border: 2px solid rgba(255,215,100,0.75);
  border-radius: 18px;

  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.2rem;

  transition: .26s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.archiv-jahr:hover{
  background: rgba(255,255,255,0.15);
  border-color: #ffe387;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 16px rgba(255,215,100,0.7);
}

/* Mobile Optimierung */
@media(max-width: 640px){
  .decade-block{
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1.2rem;
  }
}

/* ------------------------------------------------
   PLAYER
-------------------------------------------------- */
.chor-player-line{
  display:flex;
  align-items:center;
  gap:.6rem;
  background:rgba(0,32,96,.6);
  padding:.5rem .7rem;
  border-radius:999px;
  max-width:420px;
  margin:1rem auto 2rem auto;
}

.chor-play-btn{
  width:46px;
  height:46px;
  border-radius:50%;
  border:3px solid #ffd84a;
  background:rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.chor-progress-bar{
  flex:1;
  height:5px;
  background:rgba(255,255,255,0.25);
  border-radius:4px;
  overflow:hidden;
}

.chor-progress-bar-fill{
  height:100%;
  width:0;
  background:#ffd84a;
}

/* ------------------------------------------------
   MOBILE FIX
-------------------------------------------------- */
@media(max-width:700px){
  .top-right-button{
    left:20px!important;
    right:auto!important;
  }
}
/* --- ARCHIV FIX – überschreibt Kadence komplett --- */

.archiv-jahr {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;
  height: 64px !important;        /* <<< feste Höhe */
  padding: 0 !important;          /* <<< zerstört Kadence-Padding */

  background: linear-gradient(
      135deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.01)
  ) !important;

  border: 2px solid rgba(255,215,100,0.75) !important;
  border-radius: 18px !important;

  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  text-decoration: none !important;

  box-shadow: 0 3px 10px rgba(0,0,0,0.25) !important;
  transition: .26s ease !important;
}

.archiv-jahr:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #ffe387 !important;
  transform: translateY(-4px) scale(1.06) !important;
  box-shadow: 0 0 16px rgba(255,215,100,0.7) !important;
}

/* Grid-Zeilenhöhe fixieren */
.decade-block {
  grid-auto-rows: 64px !important;
  align-items: center !important;
  justify-items: center !important;
}
/* --- FIX: Home-Button korrekt anzeigen --- */

.top-right-button {
  position: absolute;
  top: 20px;
  right: 20px;

  padding: 10px 14px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 3px solid var(--gold) !important;

  border-radius: 14px !important;

  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #fff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  height: auto !important;

  z-index: 9999 !important;
}

.top-right-button::before {
  content: "🏠" !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 1.4rem !important;
  color: #fff !important;
}

/* Mobile */
@media (max-width: 600px){
  .top-right-button {
    top: 12px !important;
    right: 12px !important;
    padding: 8px 10px !important;
    font-size: 1.2rem !important;
    border-width: 2px !important;
  }

  .top-right-button::before {
    font-size: 1.2rem !important;
  }

/* ------------------------------ */
/* ICON-STEUERUNG FÜR TOP BUTTON */
/* ------------------------------ */

/* Standard: Home (nur Header-Button) */
.top-right-button::before {
  content: "🏠" !important;
  margin-right: 6px !important;
  font-size: 1.4rem !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Aktivitätsseiten: Buch-Icon (Link zu 8112-2) */
a.top-right-button[href*="8112-2"]::before {
  content: "📖" !important;
}

/* Seefahrten-Seiten: Schiffs-Icon (Link zu /seefahrten/) */
a.top-right-button[href*="seefahrten"]::before {
  content: "🚢" !important;
}
/* ------------------------------ */
/* ICON-STEUERUNG FÜR TOP BUTTON */
/* ------------------------------ */

/* Standard: Home für Header */
.top-right-button::before {
  content: "🏠" !important;
  margin-right: 6px !important;
  font-size: 1.4rem !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Aktivitäts-Chronik → Buch */
a.top-right-button[href*="8112-2"]::before {
  content: "📖" !important;
}

/* Seefahrten → Schiff (ALLE Varianten matchen) */
a.top-right-button[href*="/seefahrten"]::before,
a.top-right-button[href*="seefahrten/"]::before,
a.top-right-button[href$="seefahrten"]::before,
a.top-right-button[href$="seefahrten/"]::before,
a.top-right-button[href*="friedrichslinde.at/seefahrten"]::before,
a.top-right-button[href*="test.friedrichslinde.at/seefahrten"]::before {
  content: "🚢" !important;
}
/* 📘 Schiff-Icon für alle Zur-Chronik-Links mit Ziel /seefahrten/ */
a.top-right-button[href="https://www.friedrichslinde.at/seefahrten/"]::before {
    content: "🚢" !important;
    margin-right: 6px !important;
    font-size: 1.4rem !important;
}
