/* Seitenspezifische Gestaltung der Startseite. */

html,
body.home-page {
  height: 100%;
}

.home-page .wrap {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.home-page main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 44px;
  flex: 1;
}

.home-page .hero {
  margin: 10px 0 22px;
  padding: 0;
  text-align: left;
}

.home-page .hero h1 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.4px;
}

.home-page .hero p {
  max-width: 78ch;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.home-page .grid {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-page .flip {
  min-height: 320px;
  perspective: 1200px;
}

.home-page .flip button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.home-page .card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,246,.80));
  box-shadow: var(--shadow-md);
}

.home-page .card::before {
  position: absolute;
  inset: -90px -90px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(91,143,58,.22), transparent 62%);
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

.home-page .card-inner {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.home-page .face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.home-page .front {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,246,.80));
}

.home-page .back {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(238,245,244,.84));
  transform: rotateY(180deg) translateZ(0);
  -webkit-transform: rotateY(180deg) translateZ(0);
}

.home-page .kicker {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.home-page .title {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.15;
  letter-spacing: -.3px;
}

.home-page .desc {
  max-width: 62ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.home-page .front .desc {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.home-page .front-sub {
  max-width: 38rem;
  margin: 4px auto 0;
  color: var(--color-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.home-page .face a {
  position: relative;
  z-index: 20;
  padding: 2px 4px;
  border-radius: 6px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.home-page .face a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.home-page .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(29,42,46,.10);
  color: var(--color-muted);
  font-size: 13px;
}

.home-page .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(91,143,58,.38);
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-page .flip[data-open="true"] .card-inner {
  transform: rotateY(180deg);
}

.home-page .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 18px 16px;
  flex-wrap: wrap;
  border: 1px dashed rgba(29,42,46,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  color: var(--color-muted);
  text-align: center;
}

.home-page .cta-strong {
  color: var(--color-text);
  font-weight: 900;
}

.home-page .mini-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 13px;
}

.home-page .mini-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(91,143,58,.45);
  color: inherit;
  text-decoration: none;
}

@media (max-width: 860px) {
  .home-page main { padding-right: 12px; padding-left: 12px; }
  .home-page .grid { grid-template-columns: 1fr; }
  .home-page .flip { width: 100%; min-height: 430px; }
  .home-page .meta { flex-wrap: wrap; }
  .home-page .pill { text-align: center; white-space: normal; }
}

@media (max-width: 520px) {
  .home-page .flip { min-height: 480px; }
  .home-page .face { padding-bottom: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .home-page .meta { position: static; margin-top: auto; padding-bottom: 0; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .card-inner { transition: none !important; }
}
