/*
Theme Name: My Simple Theme
Theme URI: https://example.com
Author: Uwe Züllchner
Description: Ein einfaches WordPress Theme mit Navigation
Version: 5.0
License: GPL v2 or later
*/

/* Google Fonts - Saira (lokal gehostet als WOFF) */
@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-thin.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Rest des CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Saira', sans-serif;
  line-height: 1.7;
  color: #333;
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navigation */
.main-navigation {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-list li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 25px 1.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-list > li > a:hover {
  color: #667eea;
  border-bottom-color: #667eea;
  background-color: rgba(102, 126, 234, 0.05);
}

.nav-list > li > a.current-menu-item {
  color: #667eea;
  border-bottom-color: #667eea;
}

/* Dropdown Menü */
.nav-list .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.nav-list > li:hover > .submenu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.nav-list .submenu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.nav-list .submenu li a:hover {
  background-color: rgba(102, 126, 234, 0.1);
  padding-left: 2rem;
  color: #667eea;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: currentColor;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Header - Vollbild mit Bild */
.site-header {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 3rem;
  margin: 0 auto;
}

.header-content {
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.header-logo img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.site-header h1 {
  margin: 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-header p {
  margin: 0;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Text Container - 75% Breite */
main {
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Artikel */
article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

article h2,
article h1 {
  margin-bottom: 1rem;
  color: #222;
  font-size: 2rem;
}

article p {
  margin-bottom: 1rem;
  text-align: justify;
}

article small {
  color: #999;
  font-size: 0.9rem;
}

article a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

article a:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 3rem 0;
  list-style: none;
  padding: 0;
}

.pagination ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #667eea;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination a:hover {
  background-color: #667eea;
  color: white;
}

.pagination .current {
  padding: 8px 12px;
  background-color: #667eea;
  color: white;
  border: 1px solid #667eea;
  border-radius: 4px;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

.page-content,
.post-content {
  margin-top: 2rem;
}

.page-links {
  margin: 2rem 0;
  padding: 1rem;
  background: #f5f5f5;
  border-left: 4px solid #667eea;
}

.page-links a {
  margin: 0 5px;
  padding: 5px 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
  color: #667eea;
}

.page-links a:hover {
  background: #667eea;
  color: white;
}

/* Footer - 3 Spalten auf 50% Breite zentriert */
footer {
  background: #f5f5f5;
  color: #333;
  padding: 0;
  margin-top: 4rem;
}

.footer-wrapper {
  width: 100%;
  padding: 3rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 50%;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-column h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #667eea;
  text-decoration: underline;
}

.footer-column p {
  color: #666;
  line-height: 1.6;
}

.footer-bottom {
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 2rem;
  text-align: center;
  color: #666;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-content {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }

  .nav-brand a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 999;
    width: 100%;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list > li {
    width: 100%;
  }

  .nav-list > li > a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    border-bottom-color: #eee;
  }

  .nav-list .submenu {
    position: static;
    background: #f5f5f5;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    border-radius: 0;
    max-width: 100%;
  }

  .nav-list > li:hover > .submenu {
    display: none;
  }

  .nav-list .submenu li a {
    padding: 0.75rem 2rem;
  }

  .site-header {
    height: 60vh !important;
    padding-top: 2rem;
  }

  .site-header h1 {
    font-size: 2rem !important;
  }

  .header-logo {
    max-width: 100px !important;
  }

  main {
    width: 90% !important;
    padding: 2rem 1rem;
  }

  .footer-content {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }

  .footer-wrapper {
    padding: 2rem 1rem;
  }

  .footer-column {
    text-align: center;
  }

  article h2,
  article h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-brand a {
    font-size: 1rem;
  }

  .nav-container {
    height: 50px;
  }

  .site-header h1 {
    font-size: 1.5rem !important;
  }

  .site-header p {
    font-size: 0.9rem !important;
  }

  .header-logo {
    max-width: 80px !important;
  }
}