/* ===== DESIGN-SYSTEM & GRUNDEINSTELLUNGEN ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --primary-color: #1e3a5f;
  --secondary-color: #8b7355;
  --accent-color: #c9a227;
  --background-color: #faf9f7;
  --surface-color: #ffffff;
  --text-color: #2d3748;
  --muted-color: #718096;
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Source Sans Pro", sans-serif;
  --border-radius: 12px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Header height */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(216, 210, 201, 0.1) 1px, rgba(216, 210, 201, 0.1) 2px); /* Subtle paper texture */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--accent-color);
}
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  color: var(--muted-color);
  font-size: 1.1rem;
}

p { margin-bottom: 1rem; }
a { color: var(--secondary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-color); }
ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-section {
    padding: 80px 0;
}
.tinted-section {
    background-color: rgba(255, 255, 255, 0.6);
}

/* ===== HEADER ===== */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}
.logo-icon { color: var(--secondary-color); }
.logo:hover { color: var(--primary-color); }

.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-weight: 600;
  color: var(--primary-color);
  padding: 5px 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 80px 0;
  background-color: var(--background-color);
}
.hero-container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}
.hero-content .badge {
  display: inline-block;
  background-color: rgba(139, 115, 85, 0.1);
  color: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.hero-content .subheadline {
  font-size: 1.1rem;
  color: var(--muted-color);
  margin-bottom: 2rem;
}
.button-group {
  display: flex;
  gap: 15px;
}
.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  text-align: center;
  transition: var(--transition);
}
.btn-primary {
  background-color: var(--primary-color);
  color: var(--surface-color);
  border: 2px solid var(--primary-color);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}
.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}
.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--surface-color);
}
.hero-image-wrapper img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ===== TRUST BADGES ===== */
.trust-badges-section {
  padding-bottom: 80px;
}
.trust-badges-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.1);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted-color);
}
.trust-badge i {
  color: var(--secondary-color);
  width: 32px;
  height: 32px;
}
.trust-badge strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 30px;
}
.three-columns { grid-template-columns: repeat(3, 1fr); }

.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(30, 58, 95, 0.1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
    color: var(--accent-color);
    margin: 20px 20px 0;
}
.card h3 {
    padding: 0 20px;
}
.card p {
    padding: 0 20px 20px;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top: 2px solid var(--accent-color);
  margin-top: 1rem;
}
.text-card {
    padding: 30px;
}
.text-card h4 {
    color: var(--secondary-color);
}

/* ===== TESTAMENT SECTION ===== */
.testament-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.info-box-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-box {
  background-color: rgba(30, 58, 95, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 25px;
  border-radius: 8px;
}
.info-box ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}
.small-text { font-size: 0.9rem; color: var(--muted-color); }
.warning-cards {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.warning-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.warning-card:last-child { border: none; }
.warning-card span {
    background: #ffdddd;
    color: #c53030;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== ACCORDION ===== */
.accordion-item {
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}
.accordion-item:first-of-type { border-top: 1px solid rgba(30, 58, 95, 0.1); }
.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
  position: relative;
  transition: background-color 0.3s ease;
}
.accordion-header::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header::after {
  transform: translateY(-50%) rotate(45deg);
}
.accordion-header:hover {
    background-color: rgba(30, 58, 95, 0.03);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
}
.accordion-content p {
  padding: 0 20px 20px;
  margin: 0;
}

/* ===== ERBSCHAFTSSTEUER SECTION ===== */
.tax-table-wrapper {
  overflow-x: auto;
  margin-bottom: 3rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
thead {
  background-color: var(--primary-color);
  color: var(--surface-color);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background-color: #f7fafc;
}
.subsection-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== CHECKLISTE ===== */
.checklist-section {
    background-color: var(--primary-color);
    color: #e2e8f0;
}
.checklist-section .section-title {
    color: var(--surface-color);
}
.checklist {
    max-width: 800px;
    margin: 0 auto;
    columns: 2;
    column-gap: 40px;
}
.checklist li {
    padding: 10px 0 10px 35px;
    position: relative;
}
.checklist li::before {
    content: '□';
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--muted-color);
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
}

/* ===== WARNUNG ===== */
.warning-section {
    padding: 60px 0;
}
.warning-box {
    background-color: #fffaf0;
    border: 1px solid #f6e05e;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}
.warning-box h3 {
    color: #dd6b20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.warning-box ul {
    margin-top: 1rem;
}
.warning-box li {
    margin-bottom: 0.5rem;
}

/* ===== KONTAKT ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info .section-title { text-align: left; }
.contact-info .section-title::after { left: 0; transform: none; }
.contact-info ul {
    margin: 2rem 0;
}
.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}
.contact-info li i {
    color: var(--secondary-color);
    margin-top: 5px;
}
.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 95, 0.2);
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.form-group-checkbox input { width: auto; }
.contact-form .btn { width: 100%; }
.map-placeholder iframe {
    border-radius: var(--border-radius);
}


/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--primary-color);
    color: #a0aec0;
    padding-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-col .logo {
    color: var(--surface-color);
    margin-bottom: 1rem;
}
.footer-col h4 {
    color: var(--surface-color);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul a {
    color: #a0aec0;
}
.footer-col ul a:hover {
    color: var(--surface-color);
    padding-left: 5px;
}
.newsletter-form {
    display: flex;
    margin-bottom: 0.5rem;
}
.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 8px 0 0 8px;
    outline: none;
}
.newsletter-form button {
    background-color: var(--secondary-color);
    border: none;
    color: var(--surface-color);
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover {
    background-color: var(--accent-color);
}
.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrapper { order: -1; margin-bottom: 2rem; }
  .button-group { justify-content: center; }
  .card-grid.three-columns, .trust-badges-container { grid-template-columns: 1fr 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .contact-container { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 80px 30px;
    gap: 20px;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .main-nav.active { right: 0; }
  
  .mobile-nav-toggle { display: block; z-index: 1001; }
  .testament-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .card-grid, .trust-badges-container, .footer-container { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
  .button-group { flex-direction: column; }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}