/* ============================================
   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(255, 255, 255, 0.95);
  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.95rem;
  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); }



/* === NAVBAR (used by index.html & about.html) === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--white) !important;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

/* Language pill group — HIGH CONTRAST */
.lang-group {
  display: inline-flex;
  border: 2px solid var(--gold);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.lang-opt {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(212,175,55,.35);
  color: rgba(255,255,255,.8);
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: .6px;
}
.lang-opt:last-child { border-right: none; }
.lang-opt:hover {
  color: #fff;
  background: rgba(212,168,67,0.25);
}
.lang-opt.active {
  background: var(--gold);
  color: var(--navy);
}

/* Hide old toggle if present */
.lang-toggle { display: none !important; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar .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: 0 12px 40px rgba(26,39,68,0.15);
  }
  .navbar .nav-links.open { transform: translateY(0); }
  .lang-group {
    margin-top: 8px;
  }
}
