/* ---------- GRUNDLAYOUT ---------- */
body {
    font-family: "Open Sans", sans-serif;
    background: #fff8f0;
    color: #333;
    margin: 0;
    text-align: center;
}

h1, h2 {
    color: #ad1457;
}

p {
    line-height: 1.6;
}

/* ---------- HERO-CARD HEADER ---------- */

.hero-card {
  width: 100%;
  padding: 30px;                    /* Abstand oben, links, rechts */
  box-sizing: border-box;
}

.hero-link {
  display: block;
  position: relative;
  width: 100%;
  max-width: 1400px;                /* Header auf großen Displays breiter */
  margin: 0 auto;                   /* zentriert */
  text-decoration: none;
}

.hero-image {
  width: 100%;
  height: 180px;                    /* kompakt bleiben */
  object-fit: cover;
  border-radius: 25px;              /* schöne Rundungen */
  display: block;
  transition: transform 0.25s ease;
}

.hero-image:hover {
  transform: scale(1.01);
}

.hero-title {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);   /* ← macht die Überschrift perfekt mittig */
  color: white;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
  margin: 0;
  pointer-events: none;           /* Klick geht weiter aufs Bild */
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .hero-card {
    padding: 15px;                  /* auf Handy etwas schmaler */
  }

  .hero-image {
    height: 130px;                  /* kompakter auf Mobile */
    border-radius: 20px;
  }

  .hero-title {
    left: 20px;
    bottom: 12px;
  }
}


/* ---------- BUTTONS ---------- */
.btn {
    background: white;
    color: #ad1457;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0.3rem;
}

    .btn:hover {
        background: #f1b24a;
        color: white;
    }

/* ---------- BESCHREIBUNG ---------- */
.beschreibung {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 1rem auto;
    padding: 1rem;
    color: #555;
}

/* ---------- GALERIE (ADVENTSKALENDER) ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

    .gallery img {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
        height: 150px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s;
    }

        .gallery img:hover {
            transform: scale(1.05);
        }

/* ---------- ZAHLENSCHLOSS ---------- */
.zahlenschloss {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem 1rem;
}

.code-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px;
    justify-content: center;
    margin: 1rem auto;
    max-width: 300px;
}

.code-field {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid #e6a33c;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

    .code-field:focus {
        border-color: #ad1457;
    }

#checkCode {
    background: #e6a33c;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

    #checkCode:hover {
        background: #f1b24a;
    }

#result {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ad1457;
}

/* ---------- BLOG-CONTAINER ---------- */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ---------- BLOGPOST ---------- */
.post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .post:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

.post-content {
    padding: 1.5rem;
    text-align: left;
}

    .post-content h2 {
        color: #ad1457;
        font-size: 1.4rem;
        margin-top: 0;
    }

.date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.7rem;
}

.excerpt {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #e6a33c;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

    .read-more:hover {
        color: #ad1457;
    }

/* ---------- FOOTER ---------- */
footer {
    background: #f8e1b8;
    padding: 1rem;
    font-size: 0.9rem;
    color: #555;
    margin-top: 2rem;
    box-shadow: 0 -3px 8px rgba(0,0,0,0.05);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    header, .site-header {
        flex-direction: column;
        text-align: center;
    }

        header h1, .site-header h1 {
            font-size: 1.4rem;
        }

    .gallery img {
        height: 120px;
    }

    .code-field {
        width: 35px;
        height: 35px;
    }

    .blog-container {
        gap: 1.2rem;
    }
}
