@font-face {
    font-family: MinecrafterAlt;
    src: url("Minecrafter.Alt.dc7947b63602.ttf") format('truetype');
}
@font-face {
    font-family: MinecrafterReg;
    src: url("Minecrafter.Reg.9a402d6a80ce.ttf") format('truetype');
}

body {
  background: #232927;
  color: #e5e9e3;
  font-family: 'Montserrat', 'Verdana', 'Geneva', sans-serif;
}

.site-header {
  width: 100%;
  background: rgba(32, 38, 35, 0.95);
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 60px;
}

.site-logo {
  height: 64px;
  width: auto;
  margin-right: 1.2rem;
  display: block;
  filter: drop-shadow(0 2px 5px #444);
}

.main-nav ul {

  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav ul li a {
    font-family: MinecrafterReg, serif;
  color: #fff6e0;
  font-weight: 700;
  text-decoration: none;
  #font-size: 1.22rem;
    font-size: 1.5rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.4rem;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #333b39;
  color: #ffc640;
}

.site-content {
  margin-top: 90px;
  min-height: 70vh;
}

/* Hero-Bereich: zentriert, große Schrift, Schatten */
.hero-banner {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg,#282e29 0%, #46492e 90%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) blur(0.3px);
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  transition: filter 0.15s;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: MinecrafterAlt, serif;
  font-size: 4rem;
  color: #ffc640;
  text-shadow: 0 2px 28px #000, 0 1px 0 #fff6e0;
  margin-bottom: 0.6rem;
  transform-style: preserve-3d;
  transform: perspective(200px) rotateX(30deg) ;
}

.hero-content p {
  font-size: 1.5rem;
  color: #fff6e0;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 10px #000;
}

.cta-btn {
  background: #ffc640;
  color: #242921;
  font-size: 1.3rem;
  padding: 0.9em 2em;
  border-radius: 26px;
  box-shadow: 0 2px 16px #3335;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
  background: #ffe593;
  color: #282e29;
}

h2 {
    font-family: MinecrafterAlt, serif;
}
.site-footer {
  background: #2a2d27;
  color: #bcbcb7;
  text-align: center;
  padding: 2rem 0 0.8rem 0;
  font-size: 1rem;
  margin-top: 3rem;
}

.site-footer a {
  color: #ffc640;
  text-decoration: none;
  margin: 0 0.7rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive Menü (Kompakt für Mobilgeräte) */
@media (max-width: 900px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 0.6rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    width: 100%;
    padding: 1rem 0.7rem;
    text-align: left;
  }
  .site-logo {
    height: 42px;
    margin-bottom: 0.7rem;
  }
}

/* for contact form */

/* Kontaktformular – konsistente Ausrichtung */
.contact-form {
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem;
}

/* Wenn das Formular via form.as_p gerendert wird */
.contact-form p {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  column-gap: 1rem;
  margin: 0.75rem 0;
}

/* Label gleichmäßig links ausrichten */
.contact-form p > label {
  font-weight: 600;
  margin: 0.35rem 0 0;
  word-break: break-word;
}

/* Eingabefelder auf volle Breite */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form input[type="password"],
.contact-form input[type="date"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
}

/* Checkboxen und Radios besser platzieren */
.contact-form input[type="checkbox"],
.contact-form input[type="radio"] {
  transform: translateY(2px);
  margin-right: 0.5rem;
}

/* Hilfe- und Fehlermeldungen konsistent */
.contact-form .helptext {
  display: block;
  color: #6a737d;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.contact-form .errorlist {
  grid-column: 2; /* in die rechte Spalte */
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: #b42318; /* Rot */
  font-size: 0.92rem;
}

.contact-form .errorlist li {
  margin: 0.15rem 0;
}

/* Submit-Button hervorheben */
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
  display: inline-block;
  background: #2f855a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
}

.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
  background: #276749;
}

/* Responsiv: unter 640px einspaltig */
@media (max-width: 640px) {
  .contact-form p {
    grid-template-columns: 1fr;
  }
  .contact-form .errorlist {
    grid-column: 1;
  }
}

/* ------------------------------------------------------------
   Startseite: News/Event-Kachelraster
   ------------------------------------------------------------ */
.home-tiles {
  max-width: 1180px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobil: eine Spalte */
  gap: 1rem;
}

/* Kachel-Grundstil */
.tile {
  background: #2b302d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.tile:hover,
.tile:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  background: #303631;
}

.tile__link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.tile__media {
  background: #1f2321;
  line-height: 0; /* remove whitespace below images */
}

.tile__media img {
  width: 100%;
  height: auto;
  display: block;
}

.tile__body {
  padding: 1rem 1rem 1.1rem;
}

.tile__title {
  margin: 0 0 .35rem;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #fff6e0;
}

.tile__meta {
  color: #c9c7b8;
  font-size: 0.95rem;
  margin: 0 0 .5rem;
}

.tile__intro {
  margin: 0;
  color: #eae8dc;
  font-size: 1rem;
}

/* Layout-Varianten ab Tablet-Breite */
@media (min-width: 720px) {
  .tiles-grid { grid-template-columns: repeat(6, 1fr); }

  /* 1. Kachel: volle Breite */
  .tile--featured { grid-column: span 6; }

  /* 2.–3. Kachel: halbe Breite */
  .tile--half { grid-column: span 3; }

  /* ab 4.: Drittelbreite */
  .tile--third { grid-column: span 2; }
}

/* Feinheiten: Fokus-Styles und Tastaturbedienung */
.tile__link:focus-visible {
  outline: 3px solid #ffc640;
  outline-offset: -3px;
}

/* Optional: Bildverhältnis konsistent halten (falls gewünscht) */
@supports (aspect-ratio: 16 / 9) {
  .tile__media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* Dark-Theme feine Akzente */
.tile--featured .tile__title { font-size: 1.4rem; }
.tile--half .tile__title { font-size: 1.25rem; }
.tile--third .tile__title { font-size: 1.1rem; }

/* Responsive Abstände verfeinern */
@media (min-width: 1024px) {
  .home-tiles { margin-top: 3rem; }
  .tile__body { padding: 1.1rem 1.1rem 1.2rem; }
}

/* ... existing code ... */
.tile--third .tile__title { font-size: 1.1rem; }

/* Responsive Abstände verfeinern */
@media (min-width: 1024px) {
  .home-tiles { margin-top: 3rem; }
  .tile__body { padding: 1.1rem 1.1rem 1.2rem; }
}

/* ------------------------------------------------------------
   News-Detailseite
   ------------------------------------------------------------ */
.hero-content .hero-subtitle {
  font-size: 1.25rem;
  color: #fff6e0;
  margin: 0.1rem 0 0;
  text-shadow: 0 1px 10px #000;
  opacity: 0.95;
}

.article {
  max-width: 1000px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.article__meta {
  color: #c9c7b8;
  font-size: 0.95rem;
  margin: 1rem 0 1rem;
}

.article__intro {
  font-size: 1.125rem;
  color: #eae8dc;
  margin: 0 0 1rem;
}

.article__body {
  line-height: 1.65;
  font-size: 1.05rem;
  color: #e5e9e3;
}

/* Toolbar über dem Artikel (z. B. Zurück-Button) */
.article-toolbar {
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

/* Generischer Button + Back-Variante */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  transition: background .18s, color .18s, border-color .18s;
}

.btn--back {
  background: #333b39;
  color: #fff6e0;
  border: 1px solid #454d4a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.btn--back:hover,
.btn--back:focus {
  background: #3c4643;
  color: #ffc640;
  border-color: #58635f;
}
/* floating für den Fließtext */
.richtext-image.left {
  float: left;
  padding: 15px;
}

.richtext-image.right {
  float: right;
  padding: 15px;
}