/* ============================================================
   FAMILIENHILFE DEUTSCHLAND — Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,800;1,9..144,400&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --fh-accent: #2563EB;
  --fh-bg: #F7F8FC;
  --fh-card: #FFFFFF;
  --fh-text: #1A1F36;
  --fh-muted: #64748B;
  --fh-border: #E8ECF4;
  --fh-radius: 16px;
  --fh-shadow: 0 4px 24px rgba(30,40,80,.08);
  --fh-shadow-lg: 0 12px 48px rgba(30,40,80,.13);
}

/* ---- BASE ---- */
.fh-wrap * { box-sizing: border-box; }
.fh-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--fh-text);
  background: var(--fh-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
.fh-wrap h1, .fh-wrap h2, .fh-wrap h3, .fh-wrap h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}
.fh-wrap a { color: var(--fh-accent); text-decoration: none; }
.fh-wrap a:hover { text-decoration: underline; }

/* ---- HERO ---- */
.fh-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #2563eb 70%, #3b82f6 100%);
  color: #fff;
  padding: 72px 40px 80px;
  overflow: hidden;
  text-align: center;
}
.fh-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.fh-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.fh-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.2);
}
.fh-hero-sub {
  font-size: 1.15rem;
  opacity: .88;
  margin: 0 0 36px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.fh-hero-search {
  max-width: 520px;
  margin: 0 auto;
}
.fh-hero-search input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 100px;
  border: none;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  outline: none;
  color: #1A1F36;
  transition: box-shadow .2s;
}
.fh-hero-search input:focus { box-shadow: 0 8px 32px rgba(0,0,0,.28), 0 0 0 3px rgba(255,255,255,.4); }

/* Decorative shapes */
.fh-hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fh-shape { position: absolute; border-radius: 50%; opacity: .15; }
.fh-shape-1 { width: 400px; height: 400px; background: radial-gradient(circle, #ffffff, transparent); top: -120px; right: -80px; animation: fh-float1 8s ease-in-out infinite; }
.fh-shape-2 { width: 250px; height: 250px; background: radial-gradient(circle, #bfdbfe, transparent); bottom: -60px; left: -40px; animation: fh-float2 10s ease-in-out infinite; }
.fh-shape-3 { width: 150px; height: 150px; background: radial-gradient(circle, #93c5fd, transparent); top: 30%; left: 20%; animation: fh-float1 6s ease-in-out infinite reverse; }
@keyframes fh-float1 { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }
@keyframes fh-float2 { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(15px) scale(.97); } }

/* ---- QUICKNAV ---- */
.fh-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 40px;
  background: #fff;
  border-bottom: 1px solid var(--fh-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.fh-nav-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--fh-bg);
  border: 1.5px solid var(--fh-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fh-text);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.fh-nav-chip:hover {
  background: var(--fh-accent);
  border-color: var(--fh-accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.fh-nav-icon { font-size: 16px; }

/* ---- CONTENT ---- */
.fh-content { max-width: 1200px; margin: 0 auto; padding: 0 40px 60px; }

/* ---- SECTION ---- */
.fh-section {
  margin-top: 56px;
  animation: fh-fadein .5s ease both;
}
.fh-section.fh-hidden { display: none; }
@keyframes fh-fadein { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

.fh-section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: var(--fh-radius);
  color: #fff;
}
.fh-section-header h2 { margin: 0; font-size: 1.7rem; color: #fff; }
.fh-section-header p { margin: 4px 0 0; opacity: .85; font-size: 15px; }
.fh-icon { font-size: 2.6rem; flex-shrink: 0; }

/* Color variants */
.fh-color-blue    { background: linear-gradient(135deg,#1d4ed8,#3b82f6); }
.fh-color-purple  { background: linear-gradient(135deg,#7c3aed,#a78bfa); }
.fh-color-orange  { background: linear-gradient(135deg,#ea580c,#fb923c); }
.fh-color-teal    { background: linear-gradient(135deg,#0d9488,#2dd4bf); }
.fh-color-pink    { background: linear-gradient(135deg,#be185d,#f472b6); }
.fh-color-green   { background: linear-gradient(135deg,#15803d,#4ade80); }
.fh-color-berlin  { background: linear-gradient(135deg,#b91c1c,#ef4444); }
.fh-color-yellow  { background: linear-gradient(135deg,#b45309,#fbbf24); }
.fh-color-indigo  { background: linear-gradient(135deg,#312e81,#6366f1); }
.fh-color-red     { background: linear-gradient(135deg,#991b1b,#f87171); }
.fh-color-paed    { background: linear-gradient(135deg,#1e3a5f,#0ea5e9); }

/* ---- CARDS GRID ---- */
.fh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.fh-info-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 24px;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
}
.fh-info-card:hover { transform: translateY(-4px); box-shadow: var(--fh-shadow-lg); }
.fh-info-card h3 { margin: 0 0 16px; font-size: 1.05rem; font-family: 'Fraunces', serif; }

/* ---- TABLE ---- */
.fh-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.fh-table th { text-align: left; color: var(--fh-muted); font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--fh-border); }
.fh-table td { padding: 8px 0; border-bottom: 1px solid var(--fh-border); }
.fh-table tr:last-child th, .fh-table tr:last-child td { border-bottom: none; }

/* ---- LIST ---- */
.fh-list { margin: 0; padding: 0; list-style: none; }
.fh-list li {
  padding: 7px 0 7px 22px;
  border-bottom: 1px solid var(--fh-border);
  font-size: 14px;
  position: relative;
}
.fh-list li:last-child { border-bottom: none; }
.fh-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--fh-accent);
  font-weight: 700;
  font-size: 12px;
  top: 8px;
}

/* ---- TAGS ---- */
.fh-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fh-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.fh-tag-green { background: #dcfce7; color: #166534; }
.fh-tag-blue  { background: #dbeafe; color: #1d4ed8; }

/* ---- BUTTON ---- */
.fh-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--fh-accent);
  color: #fff !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.fh-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}

/* ---- STEPS ---- */
.fh-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.fh-step {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--fh-shadow);
  transition: transform .2s;
}
.fh-step:hover { transform: translateY(-4px); }
.fh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--fh-accent), #60a5fa);
  color: #fff;
  border-radius: 50%;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.fh-step h4 { margin: 0 0 8px; font-size: .95rem; }
.fh-step p { font-size: 13px; color: var(--fh-muted); margin: 0; }

/* ---- FOERDER GRID ---- */
.fh-foerder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.fh-foerder-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 24px;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.fh-foerder-card:hover { transform: translateY(-4px); box-shadow: var(--fh-shadow-lg); }
.fh-foerder-icon { font-size: 2rem; margin-bottom: 12px; }
.fh-foerder-card h4 { margin: 0 0 8px; font-family: 'Fraunces', serif; font-size: 1rem; }
.fh-foerder-card p { font-size: 13px; color: var(--fh-muted); margin: 0 0 12px; flex: 1; }
.fh-link { font-size: 13px; font-weight: 600; color: var(--fh-accent); margin-top: auto; }

/* ---- CONTACT GRID ---- */
.fh-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.fh-contact-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--fh-shadow);
  transition: transform .2s;
}
.fh-contact-card:hover { transform: translateY(-4px); }
.fh-contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.fh-contact-card h4 { margin: 0 0 10px; font-size: .95rem; }
.fh-contact-card p { font-size: 13px; color: var(--fh-muted); margin: 8px 0 0; }
.fh-tel {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fh-accent) !important;
}

/* ---- PÄDAGOGEN ---- */
.fh-paed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.fh-paed-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 24px;
  box-shadow: var(--fh-shadow);
  transition: transform .2s;
}
.fh-paed-card:hover { transform: translateY(-4px); }
.fh-paed-card h3 { margin: 0 0 14px; font-size: 1rem; }
.fh-paed-highlight {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #f0f7ff, #fff);
}

/* ---- ALERTS ---- */
.fh-alert {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 24px;
  line-height: 1.6;
}
.fh-alert-info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.fh-alert-custom { background: #f0fdf4; border-left: 4px solid #22c55e; }
.fh-alert-paed { background: #fff7ed; border-left: 4px solid #f97316; }

/* ---- CUSTOM CONTENT ---- */
.fh-custom-content {
  margin-top: 20px;
  padding: 20px 24px;
  background: #fffbf0;
  border: 1px dashed #fbbf24;
  border-radius: 10px;
  font-size: 14px;
}

/* ---- FOOTER ---- */
.fh-footer {
  text-align: center;
  padding: 40px 40px 28px;
  border-top: 1px solid var(--fh-border);
  color: var(--fh-muted);
  font-size: 13px;
  margin-top: 60px;
}
.fh-footer p { margin: 4px 0; }

/* ---- SEARCH HIGHLIGHT ---- */
.fh-section-dim { opacity: .25; transition: opacity .3s; pointer-events: none; }
.fh-section-dim.fh-hidden { display: block !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .fh-hero { padding: 48px 20px 56px; }
  .fh-quicknav { padding: 16px 20px; gap: 8px; position: relative; }
  .fh-content { padding: 0 20px 40px; }
  .fh-section { margin-top: 40px; }
  .fh-section-header { padding: 18px 20px; flex-wrap: wrap; }
  .fh-step-grid { grid-template-columns: 1fr 1fr; }
  .fh-foerder-grid, .fh-contact-grid { grid-template-columns: 1fr 1fr; }
  .fh-paed-grid { grid-template-columns: 1fr; }
  .fh-nav-chip span:last-child { display: none; }
  .fh-nav-chip { padding: 8px 12px; }
}
@media (max-width: 480px) {
  .fh-cards, .fh-foerder-grid, .fh-contact-grid, .fh-step-grid { grid-template-columns: 1fr; }
  .fh-hero-title { font-size: 1.8rem; }
}

/* ---- BUNDESLAND GRID (Sozialpass Übersicht) ---- */
.fh-bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.fh-bl-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-border);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: var(--fh-shadow);
  transition: transform .2s, box-shadow .2s;
}
.fh-bl-card:hover { transform: translateY(-3px); box-shadow: var(--fh-shadow-lg); }
.fh-bl-card h4 { margin: 0 0 8px; font-family: 'Fraunces', serif; font-size: .95rem; color: var(--fh-text); }
.fh-bl-pass { font-size: 13px; color: var(--fh-muted); margin: 0 0 10px; font-style: italic; }
.fh-bl-list { margin: 0 0 10px; padding: 0 0 0 16px; font-size: 12px; color: var(--fh-muted); }
.fh-bl-list li { margin-bottom: 3px; }

/* ---- BUNDESLAND NOTE (Elterngeld) ---- */
.fh-bundesland-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: #f8faff;
  border: 1.5px solid #c7d7f9;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fh-bundesland-note strong { flex-shrink: 0; }

/* ---- TAG BL ---- */
.fh-tag-bl {
  background: #e0e7ff;
  color: #3730a3;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .18s;
  display: inline-block;
}
.fh-tag-bl:hover { background: var(--fh-accent); color: #fff; text-decoration: none !important; }

/* ---- FERIEN BUNDESLAND PORTALE ---- */
.fh-bl-ferien { margin-top: 24px; }
.fh-bl-ferien h3 { margin: 0 0 14px; font-size: 1rem; font-family: 'Fraunces', serif; }

/* ---- FOOTER UPDATED ---- */
.fh-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.fh-footer-col { font-size: 13px; }
.fh-footer-col a { color: var(--fh-accent); }

@media (max-width: 768px) {
  .fh-bl-grid { grid-template-columns: 1fr 1fr; }
  .fh-bundesland-note { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .fh-bl-grid { grid-template-columns: 1fr; }
}
