/* ===== DESIGN SYSTEM ===== */
:root {
  --primary: #16a34a;
  --secondary: #0284c7;
  --accent: #eab308;
  --background: #f0fdf4;
  --surface: #ffffff;
  --text: #14532d;
  --muted: #4b5563;
  --border-color: #d1fae5;
  
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --border-radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
}

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

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

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

.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }

.section-headline {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-headline::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

section {
    padding: 6rem 0;
}

ul {
    list-style: none;
}

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

a:hover {
    color: var(--secondary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--surface);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* ===== HEADER ===== */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.logo-icon {
    color: var(--primary);
    margin-right: 0.5rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 4rem 0 8rem;
  background: linear-gradient(180deg, var(--background) 80%, var(--surface) 100%);
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--surface);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
}
.hero-image {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* ===== TRUST BADGES SECTION ===== */
.trust-badges-section {
    background-color: var(--surface);
    padding: 3rem 0;
    margin-top: -4rem; /* Overlap with hero */
    position: relative;
    z-index: 10;
}
.trust-badges-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.trust-badge i {
    color: var(--secondary);
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
}
.trust-badge h3 {
    font-size: 1.1rem;
}
.trust-badge p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== WHY BUDGET SECTION ===== */
.why-budget-section {
    background-color: var(--surface);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--surface);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.benefit-icon i {
    width: 28px;
    height: 28px;
}

/* ===== STEPS SECTION (TIMELINE) ===== */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 30px;
}
.timeline-item {
    padding: 10px 40px 30px 80px;
    position: relative;
}
.timeline-icon {
    position: absolute;
    left: 0;
    top: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 3px solid var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.timeline-icon i {
    color: var(--secondary);
}
.timeline-content {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.timeline-content .step-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}
.timeline-content ul {
    list-style-type: '✓ ';
    padding-left: 1.5rem;
}
.timeline-content ul li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

/* ===== METHODS SECTION ===== */
.methods-section {
    background-color: var(--surface);
}
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.method-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background-color: #fff;
}
.method-card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.method-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    min-height: 50px;
}
.method-card ul {
    font-size: 0.9rem;
}
.method-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}
.method-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}


/* ===== SPARTIPPS SECTION (TABS) ===== */
.tabs-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    background-color: var(--background);
}
.tab-button {
    flex: 1;
    padding: 1rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.tab-button.active, .tab-button:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tabs-content {
    padding: 2rem;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
.tab-pane ul {
    list-style-type: '💰';
    padding-left: 2rem;
}
.tab-pane li {
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ===== VORLAGEN & APPS SECTIONS ===== */
.vorlagen-section {
    background-color: var(--surface);
}
.vorlagen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}
.vorlage-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
}
.vorlage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vorlagen-hinweis {
    text-align: center;
    background-color: var(--accent-light, #fffbeb);
    color: var(--accent-dark, #92400e);
    padding: 1rem;
    border-radius: var(--border-radius);
}
.apps-section {
    text-align: center;
}
.apps-intro, .apps-outro {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--muted);
}
.apps-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.apps-features span {
    background-color: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.apps-features i {
    width: 16px;
    height: 16px;
    color: var(--secondary);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background-color: var(--surface);
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-accordion details {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    padding: 1rem;
}
.faq-accordion details[open] {
    border-color: var(--primary);
}
.faq-accordion summary {
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordion p {
    margin-top: 1rem;
    color: var(--muted);
}
.faq-accordion summary i {
    transition: transform 0.3s ease;
}
.faq-accordion details[open] summary i {
    transform: rotate(180deg);
}

/* ===== KONTAKT SECTION ===== */
.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--surface);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.kontakt-info h2 { margin-bottom: 1rem; }
.kontakt-info p { color: var(--muted); margin-bottom: 2rem; }
.kontakt-info ul { list-style: none; }
.kontakt-info li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ===== FOOTER ===== */
.footer {
    background-color: var(--text);
    color: #e5e7eb;
    padding-top: 4rem;
}
.footer a {
    color: #e5e7eb;
}
.footer a:hover {
    color: var(--primary);
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-col .logo { color: #fff; }
.footer-col .tagline { margin: 1rem 0; font-size: 0.9rem; }
.footer-col .address { font-size: 0.9rem; line-height: 1.5; }
.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.newsletter-form {
    display: flex;
    margin-top: 0.5rem;
}
.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem;
    border-radius: 8px 0 0 8px;
}
.newsletter-form button {
    background-color: var(--primary);
    border: none;
    color: #fff;
    padding: 0 1rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}
.newsletter-hinweis {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid var(--muted);
    padding: 1.5rem 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrapper { grid-row: 1; margin-bottom: 2rem; }
    .kontakt-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 60px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 4rem 0; }
    .header { padding: 0.75rem 0; }
    .main-nav { display: none; /* Simplification: On a real project, add hamburger menu */ }
    .trust-badges-container { grid-template-columns: 1fr 1fr; }
    .vorlagen-grid { grid-template-columns: 1fr; }
    .tabs-nav { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
}