/* =========================
   FinanzenStark Teens - Vintage Retro CSS
   ========================= */

/* === Vintage Retro Color Palette === */
:root {
  --primary: #174EA6;
  --secondary: #F7B32B;
  --accent: #FFFFFF;
  --retro-red: #C44536;
  --retro-green: #6A994E;
  --retro-blue: #38618C;
  --retro-cream: #F6E7CB;
  --retro-brown: #7C5E3C;
  --retro-orange: #F78F3F;
  --retro-bg: #F6E7CB;
  --retro-bg-dark: #E9D8B7;
  --retro-shadow: 0 4px 18px rgba(124,94,60,0.10), 0 1.5px 0 #F7B32B;
  --retro-border: #E9D8B7;
  --retro-pattern: repeating-linear-gradient(135deg, #F7B32B 0 2px, transparent 2px 20px);
  --font-display: 'Montserrat', 'Raleway', 'Poppins', Arial, sans-serif;
  --font-body: 'Roboto', 'IBM Plex Sans', 'Arial', sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--retro-bg);
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #3B2F2F;
  background: var(--retro-bg);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 #F7B32B33;
}
h1 {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
p, ul, ol, address {
  font-family: var(--font-body);
  color: #3B2F2F;
  font-size: 1rem;
  margin-bottom: 1.2em;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}

/* === Vintage Patterns & Details === */
body {
  background: var(--retro-bg);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-bg-dark);
  border-radius: 18px;
  box-shadow: var(--retro-shadow);
  border: 2px solid var(--retro-border);
  position: relative;
}

.section:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0; right: 0; height: 8px;
  background: var(--retro-pattern);
  opacity: 0.18;
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === Header & Navigation === */
header {
  background: var(--retro-blue);
  border-bottom: 4px solid var(--secondary);
  box-shadow: 0 2px 12px #0001;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
  filter: sepia(0.2) contrast(1.1);
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  letter-spacing: 0.03em;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 8px #F7B32B33;
}
header nav a.cta {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 800;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px #F7B32B33;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: var(--retro-red);
  color: var(--accent);
  border-color: var(--retro-red);
}

/* === Mobile Navigation === */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px #F7B32B33;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:active {
  background: var(--retro-red);
  color: var(--accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-blue);
  color: var(--accent);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 0 100vw #174EA6cc;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === Hero Section === */
.hero {
  background: linear-gradient(120deg, var(--retro-cream) 60%, var(--secondary) 100%);
  border-bottom: 4px solid var(--retro-orange);
  padding: 60px 0 40px 0;
  margin-bottom: 60px;
  position: relative;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  color: var(--retro-red);
  text-shadow: 2px 2px 0 #F7B32B55;
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--retro-brown);
}

/* === CTA Button === */
.cta, a.cta, button.cta {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px #F7B32B33, 0 1.5px 0 #F7B32B;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta:hover, .cta:focus {
  background: var(--retro-red);
  color: var(--accent);
  border-color: var(--retro-red);
  box-shadow: 0 6px 24px #C4453633;
}

/* === Features Section === */
.features {
  background: var(--retro-bg-dark);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--retro-shadow);
  border: 2px solid var(--retro-border);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px #7C5E3C22;
  border: 2px solid var(--retro-border);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px #F7B32B44;
  transform: translateY(-4px) scale(1.03);
}
.feature-grid strong {
  font-family: var(--font-display);
  color: var(--retro-red);
  font-size: 1.1rem;
}
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  align-items: center;
  justify-content: flex-start;
}
.feature-icons > div, .feature-icons > span {
  background: var(--retro-orange);
  color: var(--primary);
  border-radius: 50px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #F7B32B33;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: background 0.2s, color 0.2s;
}
.feature-icons > div:hover, .feature-icons > span:hover {
  background: var(--retro-red);
  color: var(--accent);
}

/* === Cards & Card Containers === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px #7C5E3C22;
  border: 2px solid var(--retro-border);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px #F7B32B44;
  transform: translateY(-4px) scale(1.03);
}

/* === Testimonials === */
.testimonials {
  background: var(--retro-bg);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--retro-shadow);
  border: 2px solid var(--retro-border);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px #7C5E3C22;
  border: 2px solid var(--retro-border);
  margin-bottom: 20px;
  max-width: 600px;
  color: #3B2F2F;
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  color: #3B2F2F;
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.testimonial-card span, .testimonial-card div {
  color: var(--retro-red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card div {
  color: var(--retro-orange);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px #F7B32B44;
  transform: translateY(-4px) scale(1.03);
}

/* === Blog/Accordion/Featured Tip === */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-list article {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px #7C5E3C22;
  border: 2px solid var(--retro-border);
  padding: 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-list article:hover {
  box-shadow: 0 6px 24px #F7B32B44;
  transform: translateY(-4px) scale(1.03);
}
.featured-tip {
  background: var(--retro-orange);
  color: var(--primary);
  border-radius: 14px;
  box-shadow: 0 2px 8px #F7B32B33;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.featured-tip h3 {
  margin-bottom: 0.5em;
  color: var(--retro-red);
}

/* === Accordion (FAQ) === */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.accordion-list details {
  background: var(--accent);
  border-radius: 12px;
  border: 2px solid var(--retro-border);
  box-shadow: 0 2px 8px #7C5E3C22;
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.accordion-list details[open] {
  box-shadow: 0 6px 24px #F7B32B44;
  transform: translateY(-2px) scale(1.01);
}
.accordion-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
  margin-bottom: 0.5em;
}
.accordion-list p {
  margin: 0.5em 0 0 0;
}

/* === Text-Image Section === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.text-image-section > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  max-width: 320px;
  flex: 1 1 180px;
}
.text-image-section img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  border: 3px solid var(--retro-orange);
  box-shadow: 0 2px 8px #F7B32B33;
  margin-bottom: 8px;
  background: var(--accent);
}
.text-image-section p {
  font-size: 0.98rem;
  color: var(--retro-brown);
  text-align: center;
}

/* === Feature Item (for future use) === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === Footer === */
footer {
  background: var(--retro-blue);
  color: var(--accent);
  padding: 40px 0 20px 0;
  border-top: 4px solid var(--secondary);
  box-shadow: 0 -2px 12px #0001;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer address {
  color: var(--accent);
  font-size: 0.98rem;
  font-style: normal;
  text-align: center;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-cream);
  color: #3B2F2F;
  border-top: 3px solid var(--retro-orange);
  box-shadow: 0 -2px 24px #7C5E3C22;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px 16px;
  font-size: 1rem;
  animation: cookieBannerIn 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 24px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  margin: 0 2px;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-banner .accept:hover {
  background: var(--retro-green);
  color: var(--accent);
  border-color: var(--retro-green);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--accent);
  border-color: var(--retro-red);
}
.cookie-banner .reject:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: #0008;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-bg-dark);
  border-radius: 18px;
  box-shadow: 0 8px 32px #7C5E3C44;
  border: 3px solid var(--retro-orange);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: #3B2F2F;
  font-family: var(--font-body);
  animation: modalIn 0.4s cubic-bezier(.77,0,.18,1);
  position: relative;
}
@keyframes modalIn {
  from { transform: scale(0.85) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--retro-red);
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--retro-orange);
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-category input[disabled] {
  accent-color: var(--retro-green);
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 24px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--retro-red);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .close-modal:hover {
  color: var(--primary);
}

/* === Responsive Design === */
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .feature-icons {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid > div, .card {
    max-width: 100%;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .text-image-section > div {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  .section, .features, .testimonials {
    padding: 24px 6px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 36px 0 24px 0;
    margin-bottom: 36px;
  }
  .footer {
    padding: 24px 0 12px 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
  }
  .cookie-modal {
    padding: 22px 8px 18px 8px;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .cta, a.cta, button.cta {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .feature-icons > div, .feature-icons > span {
    font-size: 0.98rem;
    padding: 8px 12px;
  }
}

/* === Utility Classes === */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 2px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mt-4 { margin-top: 4px !important; }
.mb-4 { margin-bottom: 4px !important; }

/* === Hide visually but keep accessible === */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* === Animations & Micro-interactions === */
a, button, .cta, .card, .feature-grid > div, .testimonial-card, .blog-list article, .accordion-list details {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
}

/* === Remove outline on mouse, keep for keyboard === */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed var(--retro-orange);
  outline-offset: 2px;
}

/* === Remove default details marker for accordion === */
details summary::-webkit-details-marker {
  display: none;
}
details summary::before {
  content: '▶';
  color: var(--retro-orange);
  margin-right: 8px;
  font-size: 1.1em;
  transition: transform 0.2s;
  display: inline-block;
}
details[open] summary::before {
  transform: rotate(90deg);
}

/* === Miscellaneous === */
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}

/* === Prevent Overlapping === */
.section, .features, .testimonials, .card, .feature-grid > div, .testimonial-card, .blog-list article, .accordion-list details, .featured-tip {
  margin-bottom: 20px;
}

/* === Z-Index for overlays === */
.mobile-menu,
.cookie-banner,
.cookie-modal-overlay {
  z-index: 99999;
}

/* === End of CSS === */
