/* Elterngeld-Stichtag-Rechner – Elterngeldhelfer
   Alle Regeln sind auf .egs begrenzt, damit sie nicht mit dem Theme kollidieren. */

.egs {
  --egs-teal: #14a79d;
  --egs-teal-dark: #0e7d75;
  --egs-mint: #e5fff5;
  --egs-grey: #f4f4f4;
  --egs-line: #c3d3d1;
  --egs-text: #2b2b2b;
  --egs-muted: #6b7280;
  --egs-ms: #f4a259;
  --egs-eg: #a9c6ee;
  --egs-ez: #e3e5e8;
  --egs-warn-bg: #fff6e8;
  --egs-warn: #8a5a12;
  --egs-red: #d62828;
  --egs-red-bg: #fff1f1;

  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 30px rgba(20, 167, 157, .12);
  color: var(--egs-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.egs *, .egs *::before, .egs *::after { box-sizing: border-box; }
.egs p { margin: 0; padding: 0; }
.egs [hidden] { display: none !important; }

/* ---------- Formular ---------- */

.egs .egs-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.egs .egs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.egs .egs-field--full { grid-column: 1 / -1; }
.egs .egs-field > label {
  font-weight: 700;
  font-size: 15px;
  color: var(--egs-text);
  padding: 0;
}
.egs input[type="date"],
.egs input[type="number"],
.egs select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  border: 2px solid var(--egs-line);
  border-radius: 10px;
  background: var(--egs-grey);
  color: var(--egs-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: none;
  transition: border-color .2s, background-color .2s;
}
.egs select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314a79d' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.egs input:focus,
.egs select:focus {
  outline: none;
  border-color: var(--egs-teal);
  background-color: #fff;
}
.egs .egs-field > label.egs-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}
.egs .egs-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--egs-teal);
}
.egs .egs-feldhinweis { font-size: 13px; color: var(--egs-muted); }
.egs .egs-warn ul { margin: 6px 0; padding-left: 20px; }
.egs .egs-warn li { margin: 3px 0; }
.egs .egs-hint { font-size: 14px; color: var(--egs-muted); margin-top: -6px; }
.egs .egs-bezugende { color: var(--egs-teal-dark); font-weight: 700; }
.egs .egs-sonderfall {
  padding: 12px 16px;
  border-left: 4px solid var(--egs-ms);
  border-radius: 6px;
  background: var(--egs-warn-bg);
  color: var(--egs-warn);
  font-size: 14px;
}
.egs .egs-errors {
  padding: 12px 16px;
  border-radius: 10px;
  background: #fdecec;
  color: #a12626;
  font-size: 15px;
}
.egs .egs-actions { text-align: center; margin-top: 4px; }

/* ---------- Buttons (wie auf elterngeldhelfer.de) ---------- */

.egs .egs-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--egs-teal);
  border-radius: 50px;
  background: var(--egs-teal);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s, transform .15s;
}
.egs .egs-btn:hover,
.egs .egs-btn:focus-visible {
  background: #fff;
  color: var(--egs-teal);
  text-decoration: none;
}
.egs .egs-btn:active { transform: translateY(1px); }
.egs .egs-btn:focus-visible { outline: 3px solid rgba(20, 167, 157, .35); outline-offset: 2px; }

/* ---------- Ergebnis ---------- */

.egs .egs-result {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 2px solid var(--egs-mint);
  scroll-margin-top: 90px;
}
.egs .egs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 20px;
  border-radius: 10px;
  background: var(--egs-teal);
  color: #fff;
  text-align: center;
}
.egs .egs-kicker { font-size: 15px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; opacity: .92; }
.egs .egs-date { font-size: clamp(30px, 6vw, 42px); font-weight: 700; line-height: 1.15; }
.egs .egs-sub { font-size: 15px; opacity: .92; }
.egs .egs-sub2 { margin-top: 2px; font-size: 16px; font-weight: 700; }

.egs .egs-warn {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--egs-ms);
  border-radius: 6px;
  background: var(--egs-warn-bg);
  color: var(--egs-warn);
  font-size: 15px;
}
.egs .egs-tipp {
  position: relative;
  margin-top: 22px;
  padding: 16px 18px 14px;
  border: 2px solid var(--egs-red);
  border-radius: 10px;
  background: var(--egs-red-bg);
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(214, 40, 40, .15);
}
.egs .egs-tipp strong { color: var(--egs-red); }
.egs .egs-stoerer {
  position: absolute;
  top: -13px;
  right: 14px;
  padding: 3px 12px;
  border-radius: 50px;
  background: var(--egs-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(3deg);
  box-shadow: 0 2px 6px rgba(214, 40, 40, .35);
}
.egs .egs-warn p + p { margin-top: 6px; }

.egs .egs-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.egs .egs-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--egs-mint);
}
.egs .egs-fact-label { font-size: 13px; font-weight: 700; color: var(--egs-teal-dark); text-transform: uppercase; letter-spacing: .5px; }
.egs .egs-fact-value { font-size: 20px; font-weight: 700; }
.egs .egs-fact-value.egs-ok { color: var(--egs-teal-dark); }
.egs .egs-fact-note { font-size: 13px; color: var(--egs-muted); line-height: 1.4; }

.egs .egs-ohne {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--egs-grey);
  color: var(--egs-muted);
  font-size: 14px;
}
.egs .egs-ohne strong { color: var(--egs-text); }

.egs .egs-h3 {
  margin: 28px 0 12px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--egs-text);
}

/* ---------- Zeitstrahl ---------- */

.egs .egs-timeline { display: flex; flex-direction: column; gap: 5px; }
.egs .egs-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.egs .egs-timeline--tags .egs-row { grid-template-columns: 44px 1fr 112px; }
.egs .egs-year { font-size: 13px; font-weight: 700; color: var(--egs-muted); }
.egs .egs-tag { font-size: 12px; font-weight: 700; color: var(--egs-teal-dark); text-transform: uppercase; letter-spacing: .4px; }
.egs .egs-cells { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.egs .egs-row--head .egs-cells span { font-size: 11px; color: var(--egs-muted); text-align: center; }
.egs .egs-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 5px;
  background: var(--egs-ez);
}

.egs .egs-inc { background: var(--egs-teal); opacity: .35; }
.egs .egs-inc.egs-bz { opacity: 1; }
.egs .egs-bz { box-shadow: inset 0 0 0 2px var(--egs-teal-dark); }
.egs .egs-ms { background: var(--egs-ms); }
.egs .egs-eg { background: var(--egs-eg); }
.egs .egs-egz { background: repeating-linear-gradient(135deg, var(--egs-eg) 0 4px, #fff 4px 8px); }
.egs .egs-ez { background: var(--egs-ez); }
.egs .egs-none { background: transparent; border: 1px dashed var(--egs-line); }

.egs .egs-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: #fff;
  color: var(--egs-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.egs .egs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--egs-muted);
}
.egs .egs-legend li { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; }
.egs .egs-legend li::before { content: none; }
.egs .egs-sw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.egs .egs-sw--mark { background: transparent; }
.egs .egs-sw--mark { width: auto; }
.egs .egs-sw--mark .egs-mark { min-width: 22px; height: 18px; font-size: 10px; }

.egs .egs-caption { margin-top: 16px; font-size: 15px; }

.egs .egs-details {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--egs-grey);
  font-size: 14px;
}
.egs .egs-details summary { cursor: pointer; font-weight: 700; color: var(--egs-teal-dark); }
.egs .egs-details ul { margin: 10px 0 0; padding-left: 20px; }
.egs .egs-details li { margin: 4px 0; }

.egs .egs-wissen {
  margin-top: 20px;
  padding: 18px 20px;
  border: 2px solid var(--egs-teal);
  border-radius: 10px;
  background: #fff;
}
.egs .egs-wissen h4 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--egs-teal-dark);
  font-size: 17px;
  font-weight: 700;
}
.egs .egs-wissen ul { margin: 0; padding-left: 20px; font-size: 15px; }
.egs .egs-wissen li { margin: 8px 0; padding: 0; }
.egs .egs-wissen li::marker { color: var(--egs-teal); }
.egs .egs-disclaimer { margin-top: 18px; font-size: 13px; color: var(--egs-muted); text-align: center; }
.egs .egs-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.egs .egs-btn--secondary { background: #fff; color: var(--egs-teal); }
.egs .egs-btn--secondary:hover,
.egs .egs-btn--secondary:focus-visible { background: var(--egs-teal); color: #fff; }
.egs .egs-msb { background: repeating-linear-gradient(135deg, var(--egs-ms) 0 4px, var(--egs-teal) 4px 8px); }

/* ---------- Folgeseite Buchung ---------- */

.egs .egs-schwanger { margin-top: 6px; font-size: 16px; }
.egs .egs-buchung-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}
.egs .egs-buchung-embed iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  min-height: 560px;
  border: 2px solid var(--egs-line);
  border-radius: 10px;
  background: var(--egs-grey);
}
.egs .egs-buchung-extern {
  display: inline-block;
  margin-top: 10px;
  color: var(--egs-teal-dark);
  font-size: 14px;
  font-weight: 700;
}
.egs .egs-buchung-qr {
  position: sticky;
  top: 20px;
  padding: 20px;
  border-radius: 10px;
  background: var(--egs-mint);
  text-align: center;
}
.egs .egs-buchung-qr h3 { margin: 0 0 6px; padding: 0; color: var(--egs-teal-dark); font-size: 19px; font-weight: 700; }
.egs .egs-buchung-qr p { font-size: 14px; color: var(--egs-muted); }
.egs .egs-qr {
  width: 100%;
  max-width: 220px;
  margin: 14px auto 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}
.egs .egs-qr svg { display: block; width: 100%; height: auto; }
.egs .egs-qr-url { font-size: 12px; color: var(--egs-muted); word-break: break-all; }

@media (max-width: 760px) {
  .egs .egs-buchung-grid { grid-template-columns: 1fr; }
  .egs .egs-buchung-qr { display: none; }   /* am Handy nicht sinnvoll scanbar */
  .egs .egs-buchung-embed iframe { min-height: 640px; }
}

/* ---------- Startbildschirm (Messe) ---------- */

.egs.egs--messe {
  max-width: 1100px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.egs.egs--messe .egs-main,
.egs.egs--messe .egs-buchung {
  padding: clamp(20px, 4vw, 48px);
  border-radius: 16px;
  background: linear-gradient(140deg, #19b8ad 0%, var(--egs-teal) 45%, var(--egs-teal-dark) 100%);
  box-shadow: 0 16px 50px rgba(14, 125, 117, .35);
}
.egs .egs-main-head { margin-bottom: clamp(16px, 3vw, 28px); color: var(--egs-text); text-align: center; }
.egs.egs--messe .egs-main-head,
.egs.egs--messe .egs-main-head h2 { color: #fff; }
.egs .egs-main-head h2 {
  margin: 0 0 6px;
  padding: 0;
  color: var(--egs-teal-dark);
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
}
.egs .egs-main-head p { font-size: clamp(16px, 2vw, 22px); opacity: .95; }
.egs.egs--messe .egs-panel {
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
.egs.egs--messe input[type="date"],
.egs.egs--messe input[type="number"],
.egs.egs--messe select { min-height: 56px; font-size: 18px; }
.egs.egs--messe .egs-field > label { font-size: 17px; }

.egs.egs--start {
  max-width: 1100px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.egs .egs-start {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vh, 26px);
  min-height: min(88vh, 900px);
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, .16) 0 18%, transparent 19%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .12) 0 22%, transparent 23%),
    linear-gradient(140deg, #19b8ad 0%, var(--egs-teal) 45%, var(--egs-teal-dark) 100%);
  color: #fff;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 16px 50px rgba(14, 125, 117, .35);
}
.egs .egs-start:focus-visible { outline: 4px solid rgba(20, 167, 157, .45); outline-offset: 4px; }
.egs .egs-start-kicker {
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .18);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.egs .egs-start-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(44px, 8.5vw, 112px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1px;
}
.egs .egs-start-text {
  max-width: 760px;
  font-size: clamp(18px, 2.6vw, 30px);
  line-height: 1.35;
  opacity: .95;
}
.egs .egs-start-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(4px, .8vw, 10px);
  width: min(100%, 720px);
  margin: clamp(4px, 1.5vh, 16px) 0;
}
.egs .egs-start-strip span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  animation: egs-strip 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * .18s);
}
.egs .egs-start-strip .egs-s-inc { --c: #fff; }
.egs .egs-start-strip .egs-s-ms { --c: var(--egs-ms); }
.egs .egs-start-strip .egs-s-eg { --c: var(--egs-eg); }
.egs .egs-start-strip b {
  padding: 2px 6px;
  border-radius: 10px;
  background: #fff;
  color: var(--egs-teal-dark);
  font-size: clamp(10px, 1.4vw, 16px);
  font-weight: 800;
}
@keyframes egs-strip {
  0%, 8% { background: rgba(255, 255, 255, .18); transform: scale(1); }
  18% { background: var(--c); transform: scale(1.08); }
  26%, 80% { background: var(--c); transform: scale(1); }
  100% { background: rgba(255, 255, 255, .18); }
}
.egs .egs-start-btn {
  display: inline-block;
  margin-top: clamp(4px, 1vh, 12px);
  padding: clamp(18px, 2.4vw, 28px) clamp(32px, 6vw, 84px);
  border-radius: 80px;
  white-space: nowrap;
  background: #fff;
  color: var(--egs-teal-dark);
  font-size: clamp(20px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: clamp(1px, .2vw, 2px);
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
  animation: egs-pulse 2s ease-out infinite;
  transition: transform .15s;
}
.egs .egs-start:hover .egs-start-btn,
.egs .egs-start:active .egs-start-btn { transform: scale(1.05); }
@keyframes egs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70% { box-shadow: 0 0 0 28px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.egs .egs-start-trust { font-size: clamp(14px, 1.6vw, 18px); opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .egs .egs-start-strip span,
  .egs .egs-start-btn { animation: none; }
  .egs .egs-start-strip span { background: var(--c); }
}

/* ---------- Mobil ---------- */

@media (max-width: 600px) {
  .egs .egs-form { grid-template-columns: 1fr; }
  .egs .egs-row,
  .egs .egs-timeline--tags .egs-row { grid-template-columns: 36px 1fr; gap: 6px; }
  .egs .egs-timeline--tags .egs-tag { grid-column: 2; margin-top: -2px; }
  .egs .egs-timeline--tags .egs-row--head .egs-tag,
  .egs .egs-timeline--tags .egs-tag:empty { display: none; }
  .egs .egs-cells { gap: 3px; }
  .egs .egs-cell { height: 26px; border-radius: 4px; }
  .egs .egs-mark { min-width: 0; height: 17px; padding: 0 2px; font-size: 9px; letter-spacing: -.2px; }
  .egs .egs-btn { font-size: 15px; padding: 12px 22px; }
}
