/* styles.css – unverändertes Design plus Overlay */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    height: 100%;
    overflow-x: hidden;
    background-color: #f4f4f4;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Damit der Wrapper (site-content) den Platz füllt und der Footer unten bleibt */
#site-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    right: 8rem;
    transform: translateY(-50%);
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    padding-bottom: 3rem;
}

.post-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.post {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
    display: block;
    width: calc(33.333% - 2rem);
    min-height: 200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
}

.post h2 {
    margin-bottom: 1rem;
}

.post h2, .post p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post:hover {
    background-color: #e0e0e0;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

footer a.white-link {
    color: #fff !important;
    text-decoration: none !important;
}

footer a.white-link:hover {
    text-decoration: underline !important;
}

/* Medienabfragen */
@media (max-width: 768px) {
    nav ul {
        position: static;
        text-align: center;
        transform: none;
        margin-top: 1rem;
    }
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }
    .post {
        width: calc(50% - 2rem);
    }
}
@media (max-width: 480px) {
    .post {
        width: calc(100% - 2rem);
    }
}

/* Overlay für Mobile-Warnung */
#mobile-warning {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#mobile-warning .warning-content {
  background: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  max-width: 90%;
}
#mobile-warning p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
#mobile-warning button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Blur-Klasse für den Hintergrund */
.blur {
  filter: blur(5px);
  pointer-events: none;
}
