
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  
  /* Globale Hintergründe */
  background: var(--bg-body);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
    color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; 
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============ Theme-Farben ============ */
:root {
  /* --- Primitive Farben --- */
  --color-brand-dark: #132739;
  --color-brand-light: #fffdfa;
  --color-accent: #E67E22; 
  --color-white: #ffffff;
  --color-black: #050a10;

  /* --- Semantische Variablen --- */
  --bg-body: var(--color-brand-light);
  --bg-card: var(--color-white);
  --bg-formular: #f8bb49;
  --bg-card-accent: #ffffff; 
  --bg-glass: rgba(19, 39, 57, 0.4);
  --bg-footer: #f1f1f1;
  --bg-input: #FFEDCA; 
  
  --text-main: var(--color-brand-dark);
  --text-muted: #555555;
  --text-inverse: var(--color-white); 
  --text-hero: var(--color-brand-dark); 
  --text-headings: #050a10;
  
  --border-color: rgba(19, 39, 57, 0.1);
  --accent: var(--color-accent);

  /* --- Motivation & Hero Assets --- */
  --motivation-bg: url('../img/motivation_bright.svg');
  --ground-color: #E54465;
  --motivation-overlay: #feb47b; 

  /* --- BADGES TRAINING-SEITE (LIGHT MODE) --- */
  --badge-regen-bg: #f0fff4;
  --badge-regen-text: #0CA95D;
  --badge-speed-bg: #fff0eb;
  --badge-speed-text: #FF5D34;
  --badge-base-bg: #e6f7ff;
  --badge-base-text: #0091ff;
  --badge-mental-bg: #f4f2ff;
  --badge-mental-text: #6e56cf;
  
  /* --- Slider- & Cards-Farben --- */
  --nav-btn-bg: #132739;
  --nav-btn-icon: #ffffff;
  --card-bg-gradient: linear-gradient(160deg, #e9e9e9 0%, #fafafa 100%);
  --card-border-style: 1px solid rgba(19, 39, 57, 0.08);
}

/* --- Farben Darkmode --- */
[data-theme="dark"] {
  --bg-body: linear-gradient(to bottom, #000000, #16202a);
  --bg-card: #16202a; 
  --bg-formular: #16202a;
  --bg-card-accent: #132739;
  --bg-glass: rgba(0, 0, 0, 0.15); 
  --bg-footer: #132739;
  --bg-input: #0d131a; 
  
  --text-main: #d4d3d3; 
  --text-muted: #a0aab5;
  --text-inverse: #132739; 
  --text-hero: #d1d1d1;
  --text-headings: #ebebeb;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.03);
  --accent: #ff9f43; 

  /* Assets Dark */
  --motivation-bg: url('../img/motivation_dark.svg');
  --ground-color: #0b1521;
  --motivation-overlay: transparent; /* Fix für #; Platzhalter */
  

  /* Badges Dark */
  --badge-regen-bg: rgba(12, 169, 93, 0.15); 
  --badge-regen-text: #6ee7b7; 
  --badge-speed-bg: rgba(255, 93, 52, 0.15); 
  --badge-speed-text: #fdba74; 
  --badge-base-bg: rgba(0, 145, 255, 0.15); 
  --badge-base-text: #7dd3fc; 
  --badge-mental-bg: rgba(110, 86, 207, 0.15); 
  --badge-mental-text: #c4b5fd;
  
  /* Slider Dark */
  --nav-btn-bg: #ffffff;
  --nav-btn-icon: #132739;
  --card-bg-gradient: linear-gradient(1deg, #132739 0%, #16202a 100%);
  --card-border-style: 1px solid rgba(255, 255, 255, 0.1);
}


/*  Schriftarten  */
h1, h2, h3, h4 {
  color: var(--text-headings);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}


/*  Weitere Komp. Buttons, Animationen usw.  */

/* Buttons */
.cta, .button {
  display: inline-block;
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
  
  &:hover {
    background-color: #e67e22;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  
  &.badge-regen { background-color: var(--badge-regen-bg); color: var(--badge-regen-text); }
  &.badge-speed { background-color: var(--badge-speed-bg); color: var(--badge-speed-text); }
  &.badge-base  { background-color: var(--badge-base-bg); color: var(--badge-base-text); }
  &.badge-mental{ background-color: var(--badge-mental-bg); color: var(--badge-mental-text); }
}

/* Animation für Hero-Header */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}


/* Wrapper für hero  */

.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100svh;           
  min-height: 400px;     
  border-radius: 0px;  
  overflow: hidden;  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  & .hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
  }

  & .hero-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
  }
  
  /* Overlay für Community (leicht anders, dunkler) */
  & .hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); z-index: 1;
  }

  & .hero-content {
    position: relative; z-index: 2; padding: 2rem; max-width: 800px;
    
    & h1 {
      color: #fff; font-size: 3rem; margin-bottom: 0.5rem;
    }
    
    & h2 {
      color: #f0f0f0; font-size: 1.5rem; font-weight: 500;
      text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
  }
}


/* Header und Footer */

/* Navigation und header  */
.site-header {
  position: fixed; top: 2rem; left: 50%; transform: translateX(-50%);
  width: auto; max-width: 90%; margin: 0; z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; padding: 0.8rem 2rem; transition: all 0.3s ease;

  & .logo {
    color: var(--color-white); text-decoration: none; font-weight: 700;
    font-size: 1.2rem; white-space: nowrap; text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  & .nav {
    & ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
    
    & a {
      color: var(--color-white); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; height: 100%; line-height: 1;
      padding: 0.6rem 1.2rem; border-radius: 99px; white-space: nowrap; border: 1px solid transparent;
      transition: background-color 0.2s, border-color 0.2s, color 0.2s;
      
      &:hover, &:focus {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff !important;
      }
    }
  }
}

/* Dark/Bright-Mode Toggle */
.theme-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; width: 40px; height: 40px; display: grid;
  place-items: center; cursor: pointer; color: white; transition: all 0.2s ease;
  
  &:hover { background-color: rgba(255, 255, 255, 0.15); }
  & svg { width: 20px; height: 20px; fill: currentColor; }
}


.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hamburger { display: none; }

/* Footer */
footer {
  background-color: var(--bg-footer);
  color: var(--text-main);
  padding: 2rem 1rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.5rem; padding-top: 3rem;
  border-top: 1px solid var(--border-color);
  
  & a {
    color: var(--text-main); text-decoration: none; opacity: 0.8;
    &:hover { text-decoration: underline; opacity: 1; }
  }
  
  & ul {
    list-style: none; 
    padding: 0; 
    margin: 0;
    justify-content: left;
}   

}   

/*  spezifische codes */
/* Hero nur für index */
.hero {
  width: 100%; min-height: 110svh;
  background: url("../img/hero.webp") center/cover no-repeat;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0; padding-bottom: 1rem; margin-top: -4rem;
  
  & img {
    display: block; width: 100%; height: auto; max-height: 60vh;
    object-fit: cover; margin: 1.5rem 0; object-position: 50% 35%;
  }
  & h1 { font-size: 2rem; margin-bottom: 0.5rem; }
  & p { max-width: 700px; margin: 0 auto 1rem auto; }
}

/* nur für about */
.about-hero {
  position: relative; width: 100%; min-height: 100svh;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding-bottom: 1rem;
  background: linear-gradient(to bottom, #ff7e5f, #feb47b);
  transition: background 0.5s ease;
  
  & h1 {
    position: relative; z-index: 20; color: var(--text-hero);
    text-align: center; 
  }
  
  &::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    z-index: 200; background-image: url("../img/portait.svg");
    background-repeat: no-repeat; background-position: center;
    background-size: auto 100%; mix-blend-mode: overlay;
    filter: contrast(1.0); transition: all 1.1s ease; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 78%);
            mask-image: linear-gradient(to bottom, black 72%, transparent 78%);
  }
}

/* dark mode about hero */
[data-theme="dark"] .about-hero {
  background: linear-gradient(to top, #025371 10%, #001A3A 100%);
  
  &::after {
    mix-blend-mode: overlay; filter: contrast(1.2) brightness(0.9); opacity: 0.9;
  }
}

/* Motivation Section */
.motivation {
  width: 100%; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin-top: -12rem; padding: 2rem;
  transition: background 0.5s ease;
  
  &::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    background-image: var(--motivation-bg);
    background-position: bottom center; background-repeat: no-repeat;
    background-size: cover; z-index: 200; pointer-events: none;
  }
}

[data-theme="dark"] .motivation {
background: transparent;}

.motivation-content {
  position: relative; z-index: 201; max-width: 800px;
  text-shadow: 0 0px 0px rgba(0,0,0,0.1);
}

/* weitere Sections */
.begeisterung, .goals, .motto, .favorite-spot {
  width: 100%; min-height: 50vh; padding: 6rem 2rem;
  display: flex; justify-content: center;

}

.begeisterung-inner, .goals-inner, .favorite-spot-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 4rem;
  max-width: 1100px; width: 100%;
}

.begeisterung-header h2, .goals-header h2, .favorite-spot-header h2 { font-size: 2.5rem; line-height: 1.2; margin: 0; }
.begeisterung-body p, .goals-body p, .favorite-spot-body p { font-size: 1.15rem; line-height: 1.8; max-width: 65ch; }

.favorite-spot {
  align-items: center;
  background: transparent;
}

/* Wolken & Sterne für bright/dark mode */
.clouds-wrapper {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; transition: opacity 0.5s ease;
}
.cloud { position: absolute; opacity: 0.8; animation: floatClouds 8s infinite ease-in-out alternate; }
.cloud-back { z-index: 3; opacity: 0.7; filter: blur(1.5px); }
.cloud-front { z-index: 225; filter: brightness(1.0); }
.c1 { top: 2%; left: 10%; width: 30rem; animation-duration: 80s; }
.c2 { top: 5%; right: 20%; width: 30rem; animation-duration: 40s; animation-delay: -2s;}
.c3 { bottom: 0%; left: -16%; width: 30rem; opacity: 0.9; animation-duration: 90s; animation-delay: -2s;}
.c4 { bottom: 0%; right: -10%; width: 55rem; opacity: 0.6; animation-duration: 80s; animation-delay: -2s;}

[data-theme="dark"] .clouds-wrapper { opacity: 0; }
html:not([data-theme="dark"]) .star-container { display: none; }
.star-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.star { position: absolute; background: white; border-radius: 50%; opacity: 0.3; animation: twinkle 2s infinite ease-in-out; }

@keyframes floatClouds { 0% { transform: translateY(0) translateX(0); } 100% { transform: translateY(-15px) translateX(40rem); } }
@keyframes twinkle { 0%, 100% { opacity: 0.9; transform: scale(0.8); } 50% { opacity: 0.2; transform: scale(0.9); } }


/*  FORCE SCROLL BUTTON  */
.scroll-to-top {
  /* ZWINGENDES Schweben */
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 10000 !important; 

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background-color: var(--accent, #E67E22) !important; 
  color: white !important;
  border: none !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
  cursor: pointer !important;
  
  /* Animation */
  transition: all 0.3s ease !important;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
}

/* Sichtbar-Klasse */
.scroll-to-top.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Hover */
.scroll-to-top:hover {
  transform: translateY(-5px) !important;
  background-color: #d35400 !important; /* Etwas dunkler */
}




@media (max-width: 768px) {
  
  .site-header {
    /* ... Basis-Styles ... */
    position: fixed; top: 0; left: 0; right: 0; width: 100%; margin: 0;
    transform: none; background: transparent; border: none; box-shadow: none;
    backdrop-filter: none; pointer-events: none; z-index: 1100;
    display: flex;
    align-items: center;
  }

  .site-header .logo {
    pointer-events: auto;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: relative; z-index: 1200;
    padding: 2rem;
        flex-grow: 1; 
    text-align: left; /* Text linksbündig */
  }

  .site-header .nav {
    display: block; position: fixed; top: 0; left: 0; width: 100%; height: 70vh;
    z-index: 1150; pointer-events: auto; background-color: rgba(19, 39, 57, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none;
    transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 120px 2rem 2rem 2rem; display: flex; flex-direction: column; align-items: center;
    
    & ul { display: flex; flex-direction: column; gap: 1rem; align-items: center; padding: 0; margin: 0; width: 100%; }
    & a { color: #fff; font-size: 1.4rem; font-weight: 600; text-align: center; display: inline-block; padding: 0.8rem 2rem; border-radius: 99px; border: 1px solid transparent; background-color: transparent; transition: all 0.2s ease; }
    & a:hover, & a:focus { background-color: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); transform: scale(1.05); }
  }

  .theme-toggle {
    pointer-events: auto;
    z-index: 1200;
    margin-right: 0.2rem; 
    
    /* Kein Flex-Grow, nimmt nur seinen Platz ein */
    flex-shrink: 0; 
  }

  
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 8px; pointer-events: auto; z-index: 1200; background: transparent;
    border: none; box-shadow: none; padding: 0.5rem; cursor: pointer; width: 48px; height: 48px;
    order: 3;
    margin-left: auto; 
    margin-right: 1rem; 
    
    & span { display: block; width: 24px; height: 2px; background-color: #fff; border-radius: 2px; transform-origin: center; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }
  }

  body.menu-open {
    overflow: hidden;
    & .site-header { pointer-events: auto; }
    & .site-header .nav { transform: translateY(0); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    & .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1140; }
    & .hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    & .hamburger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
  }

  .begeisterung-inner, .favorite-spot-inner, .goals-inner { grid-template-columns: 1fr; gap: 2rem; }
  .begeisterung-header h2, .favorite-spot-header h2, .goals-header h2 { font-size: 2rem; }
  
  .about-hero::after {
    background-size: contain; background-position: center; max-height: 100svh;
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 68%);
            mask-image: linear-gradient(to bottom, black 55%, transparent 68%);
  }
  
  .motivation::after {
    background-size: contain; background-position: bottom center;
  }
  
  .clouds-wrapper { display: none; }


  


}