/* ===== DESIGN-SYSTEM ===== */
:root {
  --primary: #6366f1; /* Lebhaftes Indigo */
  --secondary: #f59e0b; /* Energetisches Amber */
  --accent: #10b981; /* Frisches Grün */
  --background: #fefce8; /* Warmes Hellgelb */
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;

  --font-headings: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* ===== GLOBAL STYLES & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

/* ===== LAYOUT & HELPERS ===== */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-alt-bg {
  background-color: #fffbeb;
}

.section-title {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.full-width { width: 100%; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent);
}

/* ===== COMPONENTS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}
.btn-primary {
  background-image: linear-gradient(45deg, var(--primary) 0%, #818cf8 100%);
  color: white;
}
.btn-secondary {
  background-color: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(254, 252, 232, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 15px 0;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 100px 0 60px 0;
}
.hero h1 {
  max-width: 800px;
  margin: 0 auto;
}
.subheadline {
  max-width: 700px;
  margin: 1.5rem auto 2rem auto;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-image {
  width: 100%;
  max-width: 900px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  margin-top: 2rem;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  padding-bottom: 60px;
}
.trust-badges .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--surface);
  padding: 15px 25px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  flex-grow: 1;
  justify-content: center;
}
.badge-item .icon-bg {
  font-size: 1.5rem;
  background-color: var(--background);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.badge-item p {
  line-height: 1.3;
}

/* ===== CARD GRIDS ===== */
.card-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 2rem;
}
.three-cols { grid-template-columns: repeat(3, 1fr); }
.four-cols { grid-template-columns: repeat(4, 1fr); }
.info-card, .job-card {
  background-color: var(--surface);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover, .job-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}
.card-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}
.info-card h3 {
  margin-bottom: 1rem;
}
.job-card i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}
.job-card h4 {
    margin-bottom: 0.5rem;
}

/* ===== BAFOEG SECTION ===== */
.checklist-container {
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.05), rgba(245, 158, 11, 0.05));
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-width: 800px;
    margin: 2rem auto 0 auto;
}
.checklist-container h4 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checklist i {
    color: var(--accent);
}

/* ===== NEBENJOBS SECTION ===== */
.warn-box {
    background-color: #fffbeb;
    border: 2px solid var(--secondary);
    border-radius: var(--border-radius-md);
    padding: 25px;
    margin-top: 3rem;
}
.warn-box h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}
.warn-box ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}
.warn-box .tipp {
    font-style: italic;
    color: var(--muted);
}

/* ===== SPARTIPPS SECTION ===== */
.spartipps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.spartipp-category {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}
.spartipp-category h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--background);
    padding-bottom: 0.5rem;
}
.spartipp-category ul {
    list-style: '✅ ';
    padding-left: 20px;
}
.spartipp-category li {
    margin-bottom: 0.5rem;
}

/* ===== BUDGET BEISPIEL SECTION ===== */
.budget-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
th, td {
    padding: 15px;
    text-align: left;
}
thead {
    background-color: var(--primary);
    color: white;
}
tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
tfoot {
    background-color: var(--muted);
    color: white;
    font-weight: 700;
}
.income-mix {
    background-color: var(--surface);
    padding: 25px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}
.income-mix h4 { margin-bottom: 1rem; }
.income-mix hr {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
    margin: 1rem 0;
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--surface);
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.faq-item summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 20px 20px;
    color: var(--muted);
}

/* ===== CONTACT SECTION ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}
.contact-info p { margin-bottom: 1rem; }
.contact-info i { vertical-align: middle; margin-right: 5px; }
.social-links span {
    background-color: var(--background);
    padding: 5px 10px;
    border-radius: 8px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary);
    border-color: var(--primary);
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--text);
    color: #e2e8f0;
    padding: 60px 0 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col .logo { color: white; }
.footer-col .tagline, .footer-col .made-with {
    color: var(--muted);
    margin-top: 1rem;
}
.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: var(--font-headings);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: var(--muted); }
.footer-col ul a:hover { color: white; }
.newsletter-form {
    display: flex;
    gap: 5px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--muted);
    background-color: #2b394d;
    color: white;
}
.newsletter-form .btn {
    padding: 10px 20px;
}
.footer-bottom {
    border-top: 1px solid var(--muted);
    text-align: center;
    padding: 20px 0;
    color: var(--muted);
    font-size: 0.9rem;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .three-cols { grid-template-columns: 1fr; }
    .four-cols { grid-template-columns: repeat(2, 1fr); }
    .spartipps-grid { grid-template-columns: 1fr; }
    .budget-layout, .contact-layout { grid-template-columns: 1fr; }
    .checklist { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--surface);
        flex-direction: column;
        padding: 80px 40px;
        box-shadow: var(--shadow-medium);
        transition: right 0.4s ease-in-out;
    }
    .main-nav.nav-open {
        right: 0;
    }
    .main-nav a {
        font-size: 1.2rem;
        color: var(--text);
    }
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .four-cols { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .trust-badges .container { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .newsletter-form { justify-content: center; }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}