@font-face {
  font-family: 'DiddyFont';
  src: url('../fonts/Blockblueprint-LV7z5.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
body {
  font-family: 'Courier New', monospace;
  margin: 0;
  background: #111;
  color: #e0e0c0;
}
header, footer {
  background-image: url('../assets/dirt_background.jpg');
  background-size: contain;
  background-repeat: repeat-x;
  background-position: top;
  padding: 1rem 2rem;
  color: white;
  border-bottom: 4px solid #888;
}
header{
    background-image: url('../assets/minecraft_background.jpg');
    background-size: auto;
}
nav {
  margin-top: 0.5rem;
  background: #222;
  padding: 0.5rem;
  border: 2px solid #555;
  display: inline-block;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
  padding: 0.3rem 0.6rem;
  background: #333;
  border: 1px solid #666;
}
nav a:hover {
  background: #4CAF50;
  color: black;
}
main {
  background: #1b1b1b;
  padding: 2rem;
  max-width: 100%;
  margin: auto;
  border-top: 4px solid #ccc;
  border-bottom: 4px solid #ccc;
}
main section {
  max-width: 900px;
  margin: auto;
  border: 2px solid #555;
  padding: 1.5rem;
  background: #2a2a2a;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 0 3px #333;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  border: 2px solid #666;
  box-shadow: 2px 2px 0 #000;
}
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: #111;
  text-decoration: none;
  border: 2px solid #fff;
  font-weight: bold;
  box-shadow: 3px 3px 0 #222;
}
.button:hover {
  background: #88ff88;
  color: black;
  box-shadow: none;
}
h1, h2 {
  font-family: 'DiddyFont', 'Courier New', monospace;
  color: #ffeb8a;
  text-shadow: 1px 1px 0 #000;
}
footer {
  text-align: center;
  border-top: 4px solid #888;
  background-color: #000;
}
.map-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border: 3px solid #888;
  box-shadow: 4px 4px 0 #000;
  background: #111;
}

.map-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #fff;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

.form-box {
  max-width: 600px;
  margin: auto;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-row label {
  width: 150px;
  margin-right: 10px;
  font-weight: bold;
}

.form-row input {
  flex: 1;
  padding: 8px;
  font-size: 1rem;
}

.button-secondary {
  background: #ccc;
  color: black;
}

/* Dynmap Sektion Styling */
.dynmap-section {
    padding: 20px;
    margin: 20px auto;
    max-width: 650px; /* Oder eine andere maximale Breite für den Inhalt */
    text-align: center;
    background-color: #f9f9f9; /* Leichter Hintergrund */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Leichter Schatten */
}

.dynmap-section h2 {
    color: #333;
    margin-bottom: 10px;
}

.dynmap-section p {
    color: #666;
    margin-bottom: 25px;
}

/* Dynmap Iframe Responsive Container */
.dynmap-container {
    position: relative; /* Wichtig für das Padding-Trick */
    width: 100%;
    /* Das 56.25% Verhältnis entspricht einem 16:9 Seitenverhältnis (9 / 16 = 0.5625) */
    /* Du kannst dies an das gewünschte Seitenverhältnis deiner Karte anpassen */
    padding-bottom: 56.25%; /* Für 16:9 Videos */
    height: 0;
    overflow: hidden; /* Verhindert Scrollbalken im Container */
    border-radius: 6px; /* Abgerundete Ecken für den Iframe-Container */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* Leichter Schatten für die Karte selbst */
}

.dynmap-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Stellt sicher, dass kein Rahmen angezeigt wird */
}

/* Optional: Für kleinere Bildschirme die Höhe anpassen, falls nötig */
@media (max-width: 768px) {
    .dynmap-container {
        padding-bottom: 75%; /* Anpassung für ein 4:3 Seitenverhältnis auf kleineren Bildschirmen */
    }
}

li .button{
  margin-bottom: 10px;
}

/* Footer allgemeines Styling */
footer {
    text-align: center;
    padding: 20px 0; /* Beispiel-Padding für den Footer */
    background-color: #333;
    color: #eee;
    font-size: 16px; /* Beispiel Schriftgröße */
    /* Füge hier weitere Footer-Styles hinzu, die du hast */
}

footer p {
    margin: 0; /* Entfernt Standard-Margin von p-Tags im Footer */
    display: flex; /* Nutze Flexbox für bessere vertikale Ausrichtung */
    align-items: center; /* Zentriert Inhalte vertikal */
    justify-content: center; /* Zentriert Inhalte horizontal */
    gap: 10px; /* Abstand zwischen Text und Bild */
    /* Wichtig: Setze eine explizite Line-Height, die groß genug für Manfred ist */
    line-height: 1; /* Starte mit 1 oder einem anderen Wert */
}


/* Styling für Manfred das Mammut Bild */
.manfred-mammut-img {
    height: 90px; /* Mach Manfred größer, z.B. 70px */
    width: auto; /* Behält das Seitenverhältnis bei */
    vertical-align: middle; /* Wichtig für die vertikale Ausrichtung mit dem Text */
    /* max-height: 100%; Dies ist eine weitere Option, um das Bild an die Zeilenhöhe anzupassen */
}

/* Optional: Anpassung der line-height des p-Tags, wenn das Bild sehr groß wird */
/* Nur anpassen, wenn das Bild den Text "quetscht" oder der Footer skaliert */
footer p {
    /* Wenn z.B. Manfred 70px hoch ist, stelle die line-height des p-Tags sicher,
       dass sie mindestens 70px + etwas Platz ist, damit der Text nicht gequetscht wird.
       Aber nur wenn display:flex nicht alles regelt.
       Die Flexbox-Lösung oben (display: flex + align-items: center) ist oft besser
       als manuelles line-height-Anpassen, wenn Text und Bild auf einer Linie sind.
    */
    line-height: 1; /* Oft ausreichend mit flexbox */
}