/*
Theme Name: Stufe 10
Theme URI: https://example.com
Author: You
Version: 1.1
Description: Minimalstes statisches Theme mit Header, Main, Footer � Styles ausgelagert.
*/

:root {
  --c-header: #e6f0ff;   /* sanftes Hellblau */
  --c-main: #ffffff;     /* wei� f�r Content */
  --c-footer: #f5f7fa;   /* helles Grau */
  --text: #222;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.5;
}

header,
main,
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

header {
  background: var(--c-header);
  min-height: 100px;
}

main {
  background: var(--c-main);
  min-height: 400px;
}

footer {
  background: var(--c-footer);
  min-height: 80px;
  flex-direction: column;
  gap: 6px;
}

h1, h2, p {
  margin: 0.25em 0;
}

.wrap {
  max-width: 960px;
  width: 100%;
}

/*CSS grid layout*/
/* Make the section a grid container */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
  gap: 20px; /* Space between posts */
  padding: 20px;
}

/* Style individual posts */
.content article {
  background-color: #fff; /* Optional: card background */
  border: 1px solid #ddd; /* Optional: border */
  padding: 15px;
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Optional: subtle shadow */
}

/* Post title styling */
.content article h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Post content styling */
.content article .entry {
  font-size: 1rem;
  line-height: 1.6;
}
/*Styling for responsive Menu*/
/* Grundstil */
.main-nav {
  background: #333;
  color: #fff;
  position: relative;
}

.main-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.main-nav .menu li {
  position: relative;
}

.main-nav .menu li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

/* Untermenüs verstecken */
.main-nav .menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #444;
  list-style: none;
  padding: 0;
  min-width: 180px;
  z-index: 100;
}

/* Untermenüeinträge */
.main-nav .menu li ul li a {
  padding: 10px;
}

/* Aufklappen beim Hover (Desktop) */
.main-nav .menu li:hover > ul {
  display: block;
}

/* Responsive */
.menu-toggle {
  display: none;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .main-nav .menu {
    flex-direction: column;
    display: none; /* versteckt für Mobile */
    width: 100%;
  }

  .main-nav .menu li ul {
    position: static;
  }

  .menu-toggle {
    display: block;
  }
}
