/* ============================================
   vgain.de – Gemeinsames Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --green-dark:   #1a6b08;
  --green-mid:    #207B0A;
  --green-light:  #6CB04E;
  --green-pale:   #e8f5e0;
  --yellow:       #F5C800;
  --yellow-light: #FFF3B0;
  --white:        #ffffff;
  --off-white:    #f7faf4;
  --text:         #1e2a18;
  --text-muted:   #556b47;
  --border:       #c8dfc0;
  --shadow:       0 4px 18px rgba(0,0,0,0.10);
  --shadow-strong:0 8px 28px rgba(0,0,0,0.16);
  --radius:       4px;
  --max-width:    1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--off-white);
}

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

a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--green-mid); text-decoration: underline; }

h1, h2, h3 {
  font-family: 'Lora', serif;
  color: var(--green-dark);
  line-height: 1.3;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

/* --- Header / Nav --- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  letter-spacing: .04em;
  color: var(--green-dark);
  text-decoration: none;
  line-height: 1;
}
.site-logo span { color: var(--green-light); }
.site-logo:hover { text-decoration: none; color: var(--green-dark); }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-dark);
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--green-mid);
  color: var(--green-mid);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 6px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-mid);
  transition: .2s;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(160deg, #207B0A 0%, #6CB04E 100%);
}
.hero-sub { height: 340px; }

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  left: 0; right: 0;
}

.hero-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .95rem;
  letter-spacing: .2em;
  color: var(--yellow);
  margin-bottom: .5rem;
}

.hero h2 {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: 700px;
  margin-bottom: .6rem;
}

.hero h1 {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: 700px;
  margin-bottom: .6rem;
}

/* Artikel-Titel im Hero – semantisch kein Heading, visuell wie Hero-H2 */
.hero-article-title {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  max-width: 700px;
  margin-bottom: .6rem;
  line-height: 1.2;
}

.hero p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  max-width: 580px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  margin-bottom: 1.4rem;
}

.hero-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--green-dark) !important;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background .2s, transform .15s;
}
.hero-btn:hover { background: #e6b800; transform: translateY(-2px); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.main-content.full-width {
  grid-template-columns: 1fr;
}

/* --- Cards / Boxes --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 28px;
}

.card:first-child h1, .card:first-child h2 { margin-top: 0; }

/* --- Sidebar --- */
.sidebar { position: sticky; top: 84px; }

.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-box h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  border-bottom: 2px solid var(--green-pale);
  padding-bottom: .5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav li { border-bottom: 1px solid var(--green-pale); }
.sidebar-nav a {
  display: block;
  padding: 8px 4px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--green-dark);
}
.sidebar-nav a:hover { padding-left: 8px; text-decoration: none; }

/* --- Buch-Empfehlungen --- */
.buch-box {
  position: relative;
  background: var(--yellow-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px 28px;
  margin: 36px 0;
}

.buch-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--yellow);
  color: #333;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  transform: rotate(-2deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

.buch-item {
  border: 2px solid #e0d080;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #fffef5;
}

.buch-item h3 { margin-top: 0; font-size: 1rem; }
.buch-item p { font-size: .92rem; margin-bottom: .5rem; }

/* --- Info-Boxes --- */
.info-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: .95rem;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 2px solid var(--green-pale);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--green-dark);
  cursor: pointer;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.blog-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: .4rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .6rem;
  color: var(--green-dark);
}

.blog-card p {
  font-size: .91rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card a.read-more {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-mid);
  align-self: flex-start;
}

/* --- Feature Strips --- */
.feature-strip {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}

.feature-strip h2 { color: #F5C800; font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.feature-strip p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 1rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 24px auto 0;
}

.feature-item {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
}
.feature-item .icon { font-size: 2rem; margin-bottom: .6rem; }
.feature-item h3 { color: #F5C800; font-size: 1rem; margin-top: 0; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.feature-item p { font-size: .9rem; color: rgba(255,255,255,.8); margin: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 48px 24px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-col h3 {
  color: var(--yellow);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .8rem;
  margin-top: 0;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .35rem; }
.footer-col a { color: rgba(255,255,255,.75); font-weight: 400; font-size: .92rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: .04em;
  display: block;
  margin-bottom: .5rem;
  text-decoration: none;
}
.footer-logo span { color: var(--green-light); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .83rem;
  color: rgba(255,255,255,.5);
}

.footer-bottom a { color: rgba(255,255,255,.6); font-weight: 400; }
.footer-bottom a:hover { color: var(--white); }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--green-pale);
  padding: 10px 0;
  font-size: .83rem;
}
.breadcrumb .container { display: flex; gap: 6px; align-items: center; }
.breadcrumb a { font-weight: 400; color: var(--green-dark); }
.breadcrumb span { color: var(--text-muted); }

/* --- Table --- */
table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; }
th {
  background: var(--green-dark);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: var(--green-pale); }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--green-mid); padding: 12px 20px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { height: 380px; }
  .hero-overlay { padding: 0 20px; }
  .card { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}