/* FinanzSchool CSS - Chill + Interactive Theme (Updated for Mobile) */

:root {
  --bg: #fdfdfd;
  --text: #111;
  --accent: #101816;
  --card-bg: #252020;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


body.dark-mode {
  --bg: #111;
  --text: #fdfdfd;
  --accent: #192723;
  --card-bg: #1e1e1e;
  --shadow: 0 4px 20px rgba(0, 255, 200, 0.15);
}
.hero .bounce{
position: relative;
top: 60px;

}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

header.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom right, var(--accent), transparent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.finanzschoollogo {
 animation: bounce 1.5s infinite;
  position: relative;
  
  max-width: 250px; /* you can change this size */
  height: auto;
  margin: 1rem 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
nav {
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta {
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.cta:hover {
  transform: scale(1.05);
}

section.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  justify-content: center;
  background-color: #192723;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--accent);
  color: white;
}

section.seo-text {
  padding: 3rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: #f0f0f0;
  color: #555;
}

.dark-mode footer {
  background: #1a1a1a;
  color: #ccc;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  nav ul {
    display: none;
  }
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero.small {
  background: linear-gradient(to right, #ffdde1, #ee9ca7);
  padding: 60px 20px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero.small .hero-text h1 {
  font-size: 2.8rem;
  color: #222;
  font-weight: 700;
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease;
}

.blog-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  animation: fadeInUp 0.8s ease;
}

.blog-content p {
  margin-bottom: 1.5rem;
  background-color: #c2bfbf;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(209, 100, 100, 0.05);
  transition: transform 0.3s ease;
}

.blog-content p:hover {
  transform: translateY(-4px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bouncingtext {
  animation: bounce 2s infinite;
  position: relative;
  
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-25px);
  }
  60% {
    transform: translateY(-12px);
  }
}

/* Courses Section */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 40px 20px;
}

.course-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .course-card {
  background: #1e1e1e;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h2 {
  font-size: 1.4rem;
  margin: 15px;
}

.course-card p {
  font-size: 0.95rem;
  margin: 0 15px 15px;
  color: #161313;
}

body.dark .course-card p {
  color: #111010;
}

/* Name Cards Section */
.name-card {
  background: #f5f5f5;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.name-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #00C6FF;
  background: linear-gradient(to right, #ffffff, #f0faff);
}

.name-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.name-card a {
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

.name-card a:hover {
  text-decoration: underline;
}

.names {
  padding: 60px 20px;
  background: #fff;
}

.bounce {
  animation: bounce 2s infinite;
  font-size: 20px;
  margin-top: 10px;
}

/* Fade-in on scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 1em;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner button {
  background: #f25c05;
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}
