/* ============================================
   Ein Guter Vater — Style Sheet
   ============================================ */

:root {
  --navy: #1a2744;
  --navy-light: #243358;
  --gold: #d4a843;
  --gold-light: #e8c46a;
  --white: #f8f6f1;
  --white-pure: #ffffff;
  --green: #4a7c59;
  --green-light: #5d9a6f;
  --text-dark: #2c2c2c;
  --text-muted: #6b7280;
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.10);
  --shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.15);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

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

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(12px);
  padding: 0 24px;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo i { color: var(--gold); font-size: 1.2rem; }
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(248, 246, 241, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.lang-group {
  display: inline-flex;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  overflow: hidden;
}
.lang-opt {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(212,175,55,.3);
  color: rgba(255,255,255,.6);
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
  letter-spacing: .5px;
}
.lang-opt:last-child { border-right: none; }
.lang-opt:hover { color: var(--gold); }
.lang-opt.active { background: var(--gold); color: var(--navy); }
.lang-toggle {
  display: none; /* hide old toggle */
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-toggle:hover { background: var(--gold); color: var(--navy); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/egv_hero.jpg') 60% center/cover;
  opacity: 0.45;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(to right, transparent 0%, var(--navy) 70%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.15rem;
  color: rgba(248,246,241,0.85);
  margin-bottom: 36px;
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.3); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 12px;
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* SCROLL ANIMATION */
.reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal.pre-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.pre-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SECTIONS */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ABOUT */
.about { background: var(--white-pure); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}
.about-text h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.about-feature {
  display: flex;
  align-items: start;
  gap: 10px;
}
.about-feature i {
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 3px;
}
.about-feature span {
  font-weight: 500;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { height: 300px; }
}

/* ARTICLES CARDS */
.articles { background: var(--white); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white-pure);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-card-img {
  height: 200px;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-body {
  padding: 24px;
}
.article-card-tag {
  display: inline-block;
  background: rgba(74, 124, 89, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-card-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.article-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
.article-card-link:hover { gap: 10px; }

/* DOS AND DONTS */
.dosdonts { background: var(--white-pure); }
.dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.dd-column h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dd-column.dos h3 { color: var(--green); }
.dd-column.donts h3 { color: #c0392b; }
.dd-item {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--white);
  border-radius: 10px;
  transition: transform var(--transition);
}
.dd-item:hover { transform: translateX(4px); }
.dd-item i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.dos .dd-item i { color: var(--green); }
.donts .dd-item i { color: #c0392b; }
.dd-item p { font-size: 0.95rem; color: var(--text-dark); }

@media (max-width: 768px) {
  .dd-grid { grid-template-columns: 1fr; }
}

/* RESOURCES */
.resources { background: var(--white); }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.resource-card {
  background: var(--white-pure);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.resource-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resource-card h3 i { color: var(--gold); }
.resource-card ul {
  list-style: none;
}
.resource-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.resource-card li:last-child { border: none; }
.resource-card li i { color: var(--green); margin-right: 8px; width: 16px; }
.resource-card li a { color: var(--navy); font-weight: 500; }
.resource-card li a:hover { color: var(--gold); }

/* COMMUNITY */
.community {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.community::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(212,168,67,0.06);
}
.community .section-header h2 { color: var(--white); }
.community .section-header p { color: rgba(248,246,241,0.7); }

.community-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 30px;
  border: 2px solid rgba(248,246,241,0.2);
  background: rgba(248,246,241,0.08);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(248,246,241,0.5); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form .btn { white-space: nowrap; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: rgba(248,246,241,0.06);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: rgba(248,246,241,0.8);
  font-size: 0.85rem;
  font-weight: 500;
}
.social-card i { font-size: 1.6rem; color: var(--gold); }
.social-card:hover {
  background: rgba(248,246,241,0.12);
  color: var(--white);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .community-content { grid-template-columns: 1fr; gap: 40px; }
  .newsletter-form { flex-direction: column; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

/* CONTACT */
.contact { background: var(--white-pure); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info { padding-top: 12px; }
.contact-info p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.05rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-detail .icon-circle {
  width: 48px; height: 48px;
  background: rgba(212,168,67,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail .icon-circle i { color: var(--gold); font-size: 1.1rem; }
.contact-detail span { font-weight: 500; }
.contact-detail a { color: var(--navy); font-weight: 500; }

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white-pure);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 28px; }
}

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: rgba(248,246,241,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248,246,241,0.1);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(248,246,241,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(248,246,241,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,246,241,0.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(248,246,241,0.6); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* UTILITY */
.text-gold { color: var(--gold); }
.bg-pattern {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(212,168,67,0.05);
  pointer-events: none;
}

/* Impressum Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--white-pure);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-content h2 { color: var(--navy); margin-bottom: 20px; }
.modal-content p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }

/* Hero layout: text left, thumbnails right */
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: static;
  z-index: 2;
}
.hero-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  width: 220px;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.hero-thumbnails img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}
.hero-thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .hero .container { flex-direction: column; }
  .hero-thumbnails {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }
  .hero-thumbnails img {
    width: 100px;
    height: 80px;
  }
}
