/*
Theme Name: Nightmare Network
Theme URI: https://nightmare-network.de
Author: Nightmare Network Team
Description: Ein gruseliges WordPress-Theme mit Dark/Light-Mode und einem benutzerfreundlichen Design.
Version: 1.0
License: GPLv2 or later
Text Domain: nightmare-network
*/

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f8f8f8;
}

header {
    background: #1c1c1c;
    color: #fff;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

footer {
    background: #121212;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

a {
    color: #f34d4d;
    text-decoration: none;
}
a:hover {
    color: #ff7d7d;
}
/* Hauptmenü */
.main-menu .menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    background-color: #1c1c1c;
}

.main-menu .menu > li {
    position: relative;
    margin: 0 10px;
}

.main-menu .menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.main-menu .menu a:hover {
    background-color: #f34d4d;
    border-radius: 5px;
}

/* Untermenü */
.main-menu .menu .sub-menu {
    list-style: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #121212;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.main-menu .menu .sub-menu li {
    padding: 0;
}

.main-menu .menu .sub-menu a {
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
}

.main-menu .menu .sub-menu a:hover {
    background-color: #f34d4d;
}

/* Dropdown anzeigen bei Hover */
.main-menu .menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .menu .sub-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Pfeilsymbol für Dropdown-Menüs */
.main-menu .menu-item-has-children > a::after {
    content: " ▼"; /* Unicode-Pfeil */
    font-size: 0.8em;
    margin-left: 5px;
    color: #f34d4d;
    transition: transform 0.3s ease-in-out;
}

/* Drehe den Pfeil bei Hover */
.main-menu .menu-item-has-children:hover > a::after,
.main-menu .menu-item-has-children .sub-menu.open > a::after {
    transform: rotate(180deg);
}

/* Standard-Styling für Desktop */
.main-menu .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#hamburger {
    display: none; /* Nur auf Mobilgeräten anzeigen */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    top: 15px;
    right: 15px;
}

#hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, background-color 0.3s;
}

/* Animation für das Hamburger-Menü */
#hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

/* Container für Darkmode-Schalter und Suche */
.darkmode-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

/* Darkmode-Schalter */
#darkmode-toggle {
    background-color: #1c1c1c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#darkmode-toggle:hover {
    background-color: #f34d4d;
    transform: scale(1.1);
}

/* Suchfeld */
.search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.search-form input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.search-form button {
    background-color: #1c1c1c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #f34d4d;
}
/* Standard-Hellmodus */
body {
    background-color: #ffffff;
    color: #121212;
}

/* Dunkelmodus */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode a {
    color: #f34d4d;
}

body.dark-mode input,
body.dark-mode button {
    background-color: #1c1c1c;
    color: #fff;
    border-color: #444;
}

body.dark-mode button:hover {
    background-color: #f34d4d;
}
/* Social Media im Footer */
.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-media a {
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-media a:hover {
    color: #f34d4d;
    transform: scale(1.2);
}

/* News-Übersicht */
.news-overview {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #f34d4d;
}

/* News-Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background-color: #1c1c1c;
    color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: scale(1.05);
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    padding: 20px;
}

.news-heading {
    font-size: 1.5em;
    margin: 0 0 10px;
}

.news-excerpt {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 0.8em;
    color: #999;
}

.news-meta span {
    margin-right: 10px;
}

/* Pagination */
.news-pagination {
    text-align: center;
    margin-top: 30px;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 15px;
    background-color: #1c1c1c;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.news-pagination a:hover {
    background-color: #f34d4d;
}
/* Footer-Menü */
.footer-menu {
    margin-top: 20px;
    text-align: center;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 10px;
}

.footer-menu-list li {
    display: inline;
}

.footer-menu-list li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-menu-list li a:hover {
    color: #f34d4d;
}

/* Separator | zwischen Links */
.footer-menu-list li:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: #fff;
}
.news-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.news-header {
    text-align: center;
    margin-bottom: 20px;
}

.news-header img {
    max-width: 100%;
    border-radius: 8px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 10px;
}

.news-meta a {
    color: #e63946;
    text-decoration: none;
}

.news-meta a:hover {
    text-decoration: underline;
}

.news-content {
    line-height: 1.6;
}
.author-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #1a1a1a;
    color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.author-header {
    text-align: center;
    margin-bottom: 20px;
}

.author-description {
    font-style: italic;
    color: #ccc;
}

.author-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    display: flex;
    flex-direction: column;
    background-color: #1c1c1c;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.post-thumbnail img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.post-content h2 {
    font-size: 1.5rem;
    color: #e63946;
    margin: 10px 0;
}

.post-content p {
    margin: 10px 0;
    color: #ccc;
}

.read-more {
    color: #f34d4d;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    color: #fff;
    background-color: #1c1c1c;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 5px;
}

.pagination a:hover {
    background-color: #e63946;
}
.related-posts {
    margin-top: 40px;
    padding: 20px;
    background-color: #1c1c1c;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #f34d4d;
}

.related-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-post-item {
    text-align: center;
}

.related-post-item img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.related-post-item h4 {
    font-size: 1rem;
    color: #fff;
    margin: 10px 0 0;
}

.related-post-item a {
    color: #fff;
    text-decoration: none;
}

.related-post-item a:hover {
    color: #f34d4d;
    text-decoration: underline;
}
/* Hero Section */
.hero {
    background: url('https://your-image-url.com/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f34d4d;
}

.hero-content span {
    color: #fff;
    text-shadow: 0 2px 5px black;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #f34d4d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #ff7d7d;
}

/* Latest Posts */
.latest-posts {
    padding: 40px 20px;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.latest-posts h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f34d4d;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.post-item {
    background: #121212;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.post-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-item a {
    text-decoration: none;
    color: #fff;
}

.post-item a:hover {
    color: #f34d4d;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Kategorien & Call-to-Action */
.categories-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 40px 20px;
    background: #1c1c1c;
    color: #fff;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories ul li a {
    color: #f34d4d;
    text-decoration: none;
    font-size: 1.2rem;
}

.categories ul li a:hover {
    text-decoration: underline;
}

.cta-box {
    background: #121212;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.cta-box p {
    margin: 10px 0;
}

/* Footer Widget-Bereich */
.footer-widgets {
    background: #121212;
    padding: 20px;
    color: #fff;
    text-align: center;
}
