/* -------- BASIS DESIGN (war verloren) -------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #FFF8DC;
  color: #333;
}

section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

/* HEADER */

.hero {
  background: transparent;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden; /* wichtig fur saubere Kanten */
}

.hero-top,
.hero-bottom {
  background: #FFF8DC;
  box-shadow: none;
}

/* ---------------- OBERE LEISTE ---------------- */
.hero-top {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 10px 20px;
  border-radius: 12px;
  margin: 20px auto 0 auto;
  max-width: 1200px;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: none;
}

.hero-top .contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-top .icon {
  font-size: 1.1rem;
}

/* ---------------- LOGO HERO ---------------- */
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;

  max-width: 900px;
  margin: 20px auto;
}

/* FLIP WRAPPER */
.hero-logo-flip {
  perspective: 1000px;
  width: 100%;
}

/* INNER */
.hero-logo-inner {
  position: relative;
  width: 100%;
  min-height: 260px;

  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/* FLIP ACTIVE */
.hero-logo-flip.flipped .hero-logo-inner {
  transform: rotateY(180deg);
}

/* FRONT + BACK */
.hero-logo-front,
.hero-logo-back {
  position: absolute;
  inset: 0;

  border-radius: 18px;
  padding: 50px 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  backface-visibility: hidden;

  /* DAS IST JETZT DEINE GRUNE BOX */
  background: linear-gradient(180deg, #B4EEB4, #a0e0a0);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* BACK */
.hero-logo-back {
  transform: rotateY(180deg);
}

/* TEXT */
.hero-logo-front h1 {
  font-size: 3rem;
  margin: 0;
}

.hero-logo-front p {
  margin: 10px 0;
}

.hero-tagline {
  font-size: 1rem;
}

/* BUTTON */
.flip-btn {
  position: absolute;
  top: 15px;
  right: 15px;

  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 50%;

  width: 34px;
  height: 34px;

  cursor: pointer;
}
/* ---------------- LOGO HERO ---------------- */


.hero-logo h1 {
  font-size: 3.5rem;
  margin: 0;
  color: #333;
}
.hero-logo p {
  font-size: 1.3rem;
  margin: 10px 0 20px 0;
  color: #555;
}



/* Responsiv */
@media(max-width:768px){
  .hero-logo h1 {
    font-size: 2.2rem;
  }
  .hero-logo p {
    font-size: 1rem;
  }
}
/* ---------------- UNTERER SLOGAN ---------------- */
.hero-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 20px;
  border-radius: 12px;
  margin: 0 auto 20px auto;
  max-width: 1200px;
  font-weight: 500;
  white-space: nowrap;
  font-size: 1rem;
  box-shadow: none;
}

.hero-bottom .button {
  padding: 12px 24px;
  background: #6ca96c;
  color: white;
  border-radius: 12px;
  text-decoration: none;
}
/* ---------------- RESPONSIVE ---------------- */
@media(max-width: 768px) {
  .hero-top, .hero-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    max-width: 90%;
  }

  .hero-logo img {
    width: 100%;
    height: auto;
  }
}


.contact {
  text-align: center;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  background: #6ca96c;
  color: white;
  text-decoration: none;
  border-radius: 12px;
}

/* -------- GRID -------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media(min-width: 768px) {
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
  }
}

/* -------- FLIP CARD -------- */
.card {
  perspective: 1000px;
  height: 340px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* -------- FRONT & BACK -------- */
.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 20px;
  box-sizing: border-box;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

/* FRONT */
.card-front {
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* dunkler Overlay */
.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* Inhalt */
.card-front .overlay {
  position: relative;
  z-index: 1;
}

/* BACK */
.card-back {
  background: #f3e9dc;
  transform: rotateY(180deg);
}

/* Badge */
.badge {
  margin-top: 10px;
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.85em;
  display: inline-block;
}
.footer {
  text-align: center;
  padding: 40px 20px;
  background: #f3e9dc;
  margin-top: 40px;
  font-size: 0.9em;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}