/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* CrazzyUniverse Minecraft & Universe Theme */

/* Minecraft Font */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

@font-face {
  font-family: 'Minecraft';
  src: url('https://db.onlinewebfonts.com/t/b2e75c336df191233b3096585bb3a0de.eot');
  src: url('https://db.onlinewebfonts.com/t/b2e75c336df191233b3096585bb3a0de.eot?#iefix') format('embedded-opentype'),
       url('https://db.onlinewebfonts.com/t/b2e75c336df191233b3096585bb3a0de.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/b2e75c336df191233b3096585bb3a0de.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* General styles */
body {
  background: url('../img/h1.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  /*background-color: #0a0a23;
  color: #e6e6e6;
  font-family: 'Minecraft', 'VT323', monospace, Arial, sans-serif;
  background: linear-gradient(to bottom, #0a0a23 0%, #1a1a4a 100%);
  background-attachment: fixed;
  position: relative;
  image-rendering: pixelated;*/
}

/* Create stars effect with pseudo-elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 2px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 1px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 2px);
  background-size: 550px 550px, 350px 350px, 250px 250px, 256px 256px;
  background-position: 0 0, 40px 60px, 130px 270px, 0 0;
  z-index: -1;
  animation: twinkling 10s linear infinite;
}

/* Add floating particles effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(rgba(127, 53, 190, 0.4) 1px, transparent 1px),
    radial-gradient(rgba(127, 53, 190, 0.3) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: floating 20s linear infinite;
  z-index: -1;
  opacity: 0.5;
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
    padding: 0 2px;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  /* Verbesserte Lesbarkeit für mobile Geräte */
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Verhindern von horizontalem Scrollen */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Bessere Anpassung von Bildern */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Anpassung der Buttons */
  .btn, .btn-primary, .btn-submit {
    width: 100%;
    margin: 5px 0;
    box-sizing: border-box;
  }
}

@keyframes twinkling {
  from { opacity: 0.7; }
  50% { opacity: 1; }
  to { opacity: 0.7; }
}

@keyframes floating {
  from { background-position: 0 0, 0 0; }
  to { background-position: 100px 100px, -100px 100px; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  p, h2, h3, .feature p, .about-content p, .event-desc {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

/* Header styles */
header {
  background-color: rgba(21, 21, 21, 0.9);
  padding: 20px 0;
  border-bottom: 4px solid #5d4a1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 150px;
  margin-right: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.logo h1 {
  margin: 0;
  color: #55ff55; /* Minecraft green */
  text-shadow: 2px 2px 0 #000;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 800px;
}

nav li {
  flex: 1 0 auto;
  min-width: 120px; /* Mindestbreite für gleichmäßige Verteilung */
}

nav ul li {
  flex: 0 0 33.33%;
  min-width: 0;
  margin-left: 0;
  text-align: center;
}

nav ul li a {
  color: #aaaaaa; /* Minecraft light gray */
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s;
  font-size: 1.1rem;
  text-shadow: 1px 1px 0 #000;
  padding: 5px 10px;
  border: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
  color: #ffff55; /* Deutlich sichtbares Gelb für aktive/hover Links */
  border: 2px solid #5d4a1f;
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .dropdown-toggle { display: block; cursor: pointer; }
  .menu-icon {
    width: 30px; height: 3px; background: #333; display: block; margin: 6px 0;
    box-shadow: 0 8px 0 #333, 0 16px 0 #333;
  }
  .dropdown-menu { display: none; flex-direction: column; }
  .menu-toggle:checked ~ nav .dropdown-menu { display: flex; }
}
@media (min-width: 769px) {
  .dropdown-toggle { display: none; }
  .dropdown-menu { display: flex !important; flex-direction: row; }
}

@media (max-width: 768px) {
  .dropdown-toggle {
    display: block;
    position: relative;
    z-index: 1000;
  }

  nav ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Position direkt unter dem Toggle-Button */
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(21, 21, 21, 0.95);
    z-index: 999;
  }

  .menu-toggle:checked ~ nav .dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Stellt sicher, dass es direkt unter dem Button erscheint */
  }

  /* Stellen Sie sicher, dass der Header eine relative Position hat */
  header {
    position: relative;
  }

  /* Stellen Sie sicher, dass der Container für den Header eine relative Position hat */
  .header-content {
    position: relative;
  }
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #1D1F21 0%, #2E2C29 50%, #5D4A1F 100%);
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Minecraft blocks effect */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px);
  background-size: 16px 16px; /* Minecraft block size */
  z-index: 0;
  image-rendering: pixelated;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABUSURBVDiNY2AYBYMIfGBg+P+BgeE/lM3AwMDwH8q+/4GBgfEDAwMjAyYACmBggrKZGBgYGP5D5ZkYGBgYmaAK/kPFmKBsRgYGBkYmqDwjAyMD4wADAKiuB4Q3KkPEAAAAAElFTkSuQmCC');
  background-repeat: repeat;
  opacity: 0.2;
  image-rendering: pixelated;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background-color: rgba(21, 21, 21, 0.8);
  border: 4px solid #5d4a1f;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000;
  image-rendering: pixelated;
}

.hero h2 {
  color: #55ff55; /* Minecraft green */
  font-size: 3rem;
  margin-top: 0;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #aaaaaa; /* Minecraft light gray */
  text-shadow: 1px 1px 0 #000;
}

@media (max-width: 768px) {
  .hero {
    background: linear-gradient(135deg, #1D1F21 0%, #2E2C29 50%, #5D4A1F 100%);
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
}

/* Button styles are now defined in the Minecraft-inspired elements section */

/* Main content */
main {
  padding: 60px 0;
}

section {
  margin-bottom: 60px;
}

section h2 {
  color: #ffff55; /* Minecraft yellow */
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 20px;
}

section h2::before, section h2::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABUSURBVDiNY2AYBYMIfGBg+P+BgeE/lM3AwMDwH8q+/4GBgfEDAwMjAyYACmBggrKZGBgYGP5D5ZkYGBgYmaAK/kPFmKBsRgYGBkYmqDwjAyMD4wADAKiuB4Q3KkPEAAAAAElFTkSuQmCC');
  background-size: contain;
  transform: translateY(-50%);
  image-rendering: pixelated;
}

section h2::before {
  left: -40px;
}

section h2::after {
  right: -40px;
}

/* Features section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -15px;
}

.feature {
  flex: 0 0 calc(33.333% - 30px);
  margin: 0 15px 30px;
  background-color: rgba(21, 21, 21, 0.8);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 4px solid #5d4a1f;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000;
  transition: transform 0.3s;
  image-rendering: pixelated;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: #55ff55; /* Minecraft green */
}

.feature h3 {
  color: #ffaa00; /* Minecraft gold */
  margin-top: 0;
  text-shadow: 1px 1px 0 #000;
  border-bottom: 2px solid #5d4a1f;
  padding-bottom: 10px;
}

.feature p {
  margin-bottom: 0;
  color: #aaaaaa; /* Minecraft light gray */
}

/* Protocol forms */
.protocols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.protocol-form {
  flex: 0 0 calc(50% - 30px);
  background-color: rgba(21, 21, 21, 0.8);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 4px solid #5d4a1f;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000;
  image-rendering: pixelated;
}

.protocol-form h3 {
  color: #ffaa00; /* Minecraft gold */
  margin-top: 0;
  border-bottom: 2px solid #5d4a1f;
  padding-bottom: 10px;
  text-shadow: 1px 1px 0 #000;
}

.loading-message {
  color: #aaaaaa; /* Minecraft light gray */
  text-align: center;
  padding: 20px;
  font-style: italic;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #55ff55; /* Minecraft green */
  text-shadow: 1px 1px 0 #000;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #5d4a1f;
  background-color: rgba(0, 0, 0, 0.6);
  color: #aaaaaa; /* Minecraft light gray */
  font-family: inherit;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.form-group textarea {
  min-height: 100px;
}

/* reCAPTCHA styling */
.g-recaptcha {
  margin-bottom: 15px;
  transform-origin: left top;
  transform: scale(0.95);
}

/* For mobile devices */
@media screen and (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}

/* Team Members styling */
.team-members {
  margin-top: 30px;
}

.team-role-img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 15px;
  image-rendering: pixelated;
}

.team-member {
  text-align: center;
}

.team-member h3 {
  text-align: center;
  margin-bottom: 0;
}

.team-member a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s;
}

.team-member a:hover {
  transform: scale(1.05);
}

/* Recipe categories styling */
.recipe-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.recipe-btn {
  min-width: 180px;
  text-align: center;
  margin: 5px;
  font-size: 1.1rem;
}

/* Button styles are now defined in the Minecraft-inspired elements section */

/* Footer */
footer {
  background-color: rgba(21, 21, 21, 0.9);
  padding: 1px 0;
  text-align: center;
  border-top: 4px solid #5d4a1f;
  position: relative;
}

/* Minecraft dirt border at top of footer */
footer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABUSURBVDiNY2AYBYMIfGBg+P+BgeE/lM3AwMDwH8q+/4GBgfEDAwMjAyYACmBggrKZGBgYGP5D5ZkYGBgYmaAK/kPFmKBsRgYGBkYmqDwjAyMD4wADAKiuB4Q3KkPEAAAAAElFTkSuQmCC');
  background-repeat: repeat-x;
  image-rendering: pixelated;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-logo {
  flex: 0 0 200px;
}

.footer-logo h3 {
  color: #55ff55; /* Minecraft green */
  text-shadow: 1px 1px 0 #000;
  font-size: 1.8rem;
  margin-bottom: 1em;
}

.footer-logo img {
  max-width: 100%;
}

.footer-links {
  flex: 0 0 calc(50% - 100px);
  text-align: left;
}

.footer-links h4 {
  color: #ffaa00; /* Minecraft gold */
  margin-top: 1em;
  text-shadow: 1px 1px 0 #000;
  border-bottom: 2px solid #5d4a1f;
  padding-bottom: 5px;
  display: inline-block;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap; /* falls mehrere Zeilen erlaubt sein sollen */
  gap: 15px; /* Abstand zwischen den Links */
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links ul li {
  margin: 0;
}

.footer-links ul li a {
  color: #aaaaaa; /* Minecraft light gray */
  text-decoration: none;
  transition: color 0.3s;
  text-shadow: 1px 1px 0 #000;
  padding: 2px 5px;
  border: 1px solid transparent;
}

.footer-links ul li a:hover {
  color: #ffffff;
  border: 1px solid #5d4a1f;
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .footer-links {
    display: none;
  }
}

.copyright {
  width: 100%;
  margin-top: 30px;
  color: #aaaaaa; /* Minecraft light gray */
  text-shadow: 1px 1px 0 #000;
  border-top: 2px solid #5d4a1f;
  padding-top: 15px;
}

/* Minecraft-inspired elements */
.minecraft-border {
  position: relative;
  border: 4px solid #555;
  box-shadow:
    inset 0 0 0 2px #000,
    0 0 0 2px #000;
  image-rendering: pixelated;
}

.minecraft-border::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #4a00e0, #7b68ee, #c77dff, #4a00e0);
  z-index: -1;
  border-radius: 0;
  opacity: 0.7;
  image-rendering: pixelated;
}

/* Minecraft button style */
.btn-primary, .btn-submit, .btn {
  position: relative;
  background-color: #4a00e0;
  color: white;
  border: 2px solid #000;
  padding: 12px 24px;
  border-radius: 0;
  cursor: pointer;
  font-weight: bold;
  font-family: inherit;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
  box-shadow:
    inset -2px -4px #0006,
    inset 2px 2px #FFF7;
  image-rendering: pixelated;
}

.btn-primary:hover, .btn-submit:hover, .btn:hover {
  background-color: #7b68ee;
}

/* Dropdown Menu Styles */
.dropdown-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 0;
  position: relative;
  z-index: 1000;
}

.menu-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #aaaaaa;
  position: relative;
  transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: #aaaaaa;
  transition: transform 0.3s;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.dropdown-toggle.active .menu-icon {
  background-color: transparent;
}

.dropdown-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.dropdown-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.dropdown-menu {
  display: flex;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }

  .dropdown-toggle {
    display: block;
  }

  nav ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(21, 21, 21, 0.95);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-bottom: 4px solid #5d4a1f;
    z-index: 999;
  }

  nav ul.dropdown-menu.show {
    display: flex;
    animation: slideDown 0.3s ease-in-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav ul li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .feature {
    flex: 0 0 calc(50% - 30px);
  }

  .protocol-form {
    flex: 0 0 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-logo, .footer-links {
    flex: 0 0 100%;
    margin-bottom: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .feature {
    flex: 0 0 100%;
  }
}

/* Responsive Anpassungen für Handy-Darstellung */
@media (max-width: 600px) {
  .container {
    padding: 0 5px;
    max-width: 100vw;
  }
  header, footer {
    padding: 10px 0;
  }
  .header-content, .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .logo img {
    height: 80px;
    margin-bottom: 10px;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  nav ul li {
    min-width: 0;
    width: 100%;
    text-align: left;
    margin: 0;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: 1.1rem;
    border-left: 4px solid #5d4a1f;
    border-radius: 0;
  }
  .hero-content, .about-content, .minecraft-border, .protocol-form, .feature, .event-card {
    padding: 10px;
    font-size: 1rem;
  }
  .event-card {
    width: 98vw;
    min-width: 0;
    font-size: 1rem;
  }
  .event-card .event-header h3 {
    font-size: 1.2rem;
  }
  .event-card .event-icon {
    width: 32px;
    height: 32px;
  }
  .btn, .btn-primary, .btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px 0;
  }
  .form-group input, .form-group textarea {
    font-size: 1rem;
    padding: 10px;
  }
  section h2 {
    font-size: 1.5rem;
    padding: 0 5px;
  }
}

/* About page styles */
.page-hero {
  background: linear-gradient(135deg, #1D1F21 0%, #2E2C29 50%, #5D4A1F 100%);
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px);
  background-size: 16px 16px; /* Minecraft block size */
  z-index: 0;
  image-rendering: pixelated;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAABUSURBVDiNY2AYBYMIfGBg+P+BgeE/lM3AwMDwH8q+/4GBgfEDAwMjAyYACmBggrKZGBgYGP5D5ZkYGBgYmaAK/kPFmKBsRgYGBkYmqDwjAyMD4wADAKiuB4Q3KkPEAAAAAElFTkSuQmCC');
  background-repeat: repeat;
  opacity: 0.2;
  image-rendering: pixelated;
}

.about-section, .join-section {
  margin-bottom: 60px;
}

.about-content, .join-content {
  background-color: rgba(21, 21, 21, 0.8);
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 4px solid #5d4a1f;
  box-shadow: inset 0 0 0 2px #000, 0 0 0 2px #000;
  image-rendering: pixelated;
}

.about-content h3, .join-content h3 {
  color: #ffaa00; /* Minecraft gold */
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 0 #000;
  border-bottom: 2px solid #5d4a1f;
  padding-bottom: 10px;
}

.about-content p, .join-content p {
  color: #aaaaaa; /* Minecraft light gray */
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-content a {
  color: #ffff55; /* gut lesbares Gelb auf dunklem Hintergrund */
  text-decoration: underline;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  transition: color 0.2s;
}
.about-content a:hover, .about-content a:focus {
  color: #ffffff;
  background: #5d4a1f;
  text-decoration: underline;
}

.join-content a {
  color: #55ff55; /* Minecraft green */
  text-decoration: none;
  border-bottom: 1px dotted #55ff55;
  transition: color 0.3s, border-color 0.3s;
}

.join-content a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.join-content strong {
  color: #ffff55; /* Minecraft yellow */
  font-weight: bold;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Image Modal Styles
   ========================================================================== */

/* The Modal (background) */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border: 4px solid #5d4a1f;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
  from {transform: scale(0.1)}
  to {transform: scale(1)}
}

/* The Close Button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #55ff55;
  text-decoration: none;
}

/* Caption of Modal Image */
#modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
  font-size: 1.5rem;
  text-shadow: 2px 2px 0 #000;
}

/* Make clickable images have a pointer cursor */
.team-role-img {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.team-role-img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.gallery-img {
  width: 800px;
  height: 730px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.gallery-img-container {
  text-align: center;
}

.gallery-img-container h3 {
  margin-top: 10px;
  margin-bottom: 0;
  color: #ffaa00; /* Minecraft gold */
  text-shadow: 1px 1px 0 #000;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Event-Karten Minecraft & Universum Stil */
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.event-card {
  background: #23272e repeat;
  border: 8px solid #4caf50;
  border-radius: 16px;
  box-shadow: 0 0 16px #222, 0 0 0 8px #795548 inset;
  width: 340px;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  color: #fffde7;
  font-family: 'VT323', 'Minecraft', 'Arial', monospace;
  position: relative;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s;
}
.event-card:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 0 32px #0ff, 0 0 0 8px #212121 inset;
}
.event-card .event-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.event-card .event-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px #00e5ff);
}
.event-card .event-info {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.1rem;
  color: #b2ff59;
  text-shadow: 1px 1px 2px #222;
}
.event-card .event-desc {
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 1.1rem;
  color: #fffde7;
  text-shadow: 1px 1px 2px #000;
}
@media (max-width: 800px) {
  .event-list {
    flex-direction: column;
    align-items: center;
  }
  .event-card {
    width: 95vw;
    min-width: 0;
  }
}


