/*
Theme Name: Huber Finance Theme
Theme URI: https://huberfinance.de
Author: Benjamin Huber
Author URI: https://huber.official
Description: Optimiertes WordPress-Theme
Version: 1.2
*/

/* = Basislayout ============== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #111;
}

/* = Struktur Wrapper ========== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* CAT: Header-Styling */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

header.shrink {
  padding: 0.3rem 1.5rem !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease;
}

.header-logo img {
  height: 48px;
  transition: height 0.3s ease;
}

header.shrink .header-logo img {
  height: 36px;
}

/* CAT: Navigation */
.main-nav .nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.main-menu li a:hover {
  color: #3C8DBC;
  text-decoration: none;
}

.main-menu a.active {
  color: #3C8DBC;
  font-weight: 700;
}

/* CAT: CTA-Button mit Shine */
.cta-button {
  position: relative;
  background-color: #000;
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  overflow: hidden;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.cta-button:hover {
  background-color: #111;
}

/* CAT: CTA-Button sekundÃ¤r */
.cta-button-secondary {
  background-color: #000;
  color: #fff;
  padding: 0.85rem 1.8rem;
  margin: 0;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}


/* CAT: Hero-Section */
.hero {
  background: #143852;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
	  position: relative; /* wichtig für absolute Positionierung des Stickers */
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero img.sticker {
  position: absolute;
  bottom: 0px;       /* Sticker bünfig mit dem Hero-Bereich raus */
  right: 10%;
  max-height: 300px;   /* Maximalhöhe für Desktop */
  width: auto;
  z-index: 10;
  filter: drop-shadow(3px 5px 5px rgba(0,0,0,0.3));
  transition: max-height 0.3s ease, right 0.3s ease;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero img.sticker {
    max-height: 200px;
    right: 5%;
    bottom: -30px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero img.sticker {
    max-height: 120px;
    right: 3%;
    bottom: -20px;
  }
}




/* Optional: Hintergrund, falls du noch einen separaten Layer willst */
.hero-bg {
  position: absolute;
  inset: 0; /* top,right,bottom,left 0 */
  background-color: inherit; /* gleiche Farbe wie Section */
  z-index: 1;
}

/* Sticker-Bild */
.hero-sticker {
  position: absolute;
  bottom: -40px;  /* Negativer Wert, damit das Bild nach unten aus der Section ragt */
  right: 10%; /* Je nachdem wo du den Sticker willst */
  max-height: 90%;
  z-index: 10;
  transform-style: preserve-3d; /* für 3D-Effekt */
  filter: drop-shadow(3px 5px 5px rgba(0,0,0,0.3)); /* Schatten für 3D Tiefe */
}

/* Inhalt über dem Sticker */
.hero-content {
  position: relative;
  z-index: 20;
  max-width: 600px;
}

/* CAT: Content Sections */
.content {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* CAT: Accordion */
.accordion-item {
  margin-bottom: 0;
  border: none;
  border-bottom: 3px solid #ddd;
  background-color: transparent;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  color: #111;
  transition: color 0.3s ease;
}

.accordion-toggle::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  font-size: 1.2rem;
  color: #999;
  transition: transform 0.3s ease;
}

.accordion-toggle.active::after {
  content: '-';
  color: #333;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.2rem;
  background-color: transparent;
  border-top: 1px solid #eee;
}

.accordion-toggle.active + .accordion-content {
  max-height: 500px;
  padding: 1rem 1.2rem 1.2rem;
}

/* CAT: Footer */
footer {
  background-color: #222;
  color: #eee;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.footer-menu li {
  display: inline;
  margin: 0 15px;
}

.footer-menu a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #fff;
}

.footer-socials {
  margin: 1.5rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-socials i {
  line-height: 1;
  transform: translateY(1px);
}

/* CAT: Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .main-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0;
  }

  .main-menu li {
    display: inline-block;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-left: 0;
    text-align: center;
  }

  .header-logo {
    margin-bottom: 0.5rem;
  }
	
	.vertrauens-counter-section {
    margin-top: 2rem; /* Weniger Abstand auf kleinen Bildschirmen */
}
}

/* CAT: Statische Timeline */
.timeline-static-section {
  padding: 5rem 2rem;
  background-color: #f9f9f9;
}

.timeline-static-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 5rem;
}

.timeline-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.timeline-content {
  max-width: 700px;
  margin-top: 1.5rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 1rem;
  color: #444;
}

.centered-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .timeline-content {
    padding: 0 1rem;
  }
}
/* Button 3 */

.button-center-spacing {
  display: inline-block;
 
  text-align: center;

}

.button-center-spacing-wrapper {
  text-align: center;
  margin: 1rem 0;
}

/* CAT: Vertrauensbausteine */
.vertrauens-counter-section {
  background: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
	  margin-top: 3rem; /* Abstand nach oben */
}

.vertrauens-counter-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.vertrauens-box {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  min-width: 240px;
  max-width: 280px;
}

.vertrauens-number {
 font-size: 3.5rem;
  font-weight: bold;
  color: #3C8DBC;
  min-height: 4.5rem; /* ⬅ sorgt für gleiche Höhe trotz kurzer Zahlen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.vertrauens-title {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 600;
	min-height: 2.5rem; /* Einheitliche Höhe für alle Titel */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vertrauens-subtext {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: #555;
}
	