/*
Theme Name: AktuellWissen
Theme URI: https://example.com/aktuellwissen
Author: Custom Theme for Education
Author URI: https://example.com
Description: Einfaches, barrierefreies WordPress-Theme für eine KI-gestützte Bildungsplattform zu aktuellen Ereignissen. Optimiert für ältere Nutzer mit großer Schrift, hohem Kontrast und klarer Navigation. Deutschsprachig, DSGVO- und Meta-Ads-konform vorbereitet.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aktuellwissen
Tags: accessibility-ready, education, news, custom-menu, featured-images, translation-ready
*/

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* 18px base for elderly readability */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background-color: #f8f9fa;
  -webkit-font-smoothing: antialiased;
}

/* High contrast links */
a {
  color: #0056b3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover, a:focus {
  color: #003d80;
  outline: 3px solid #0056b3;
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 100000;
  font-size: 1.1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 4px solid #0056b3;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0056b3;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-description {
  margin: 0;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

/* Navigation - large touch targets */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-navigation a {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: #1a1a1a;
  background: #e9ecef;
  border-radius: 8px;
  min-height: 48px;
  line-height: 1.4;
  border: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item a {
  background: #0056b3;
  color: #fff;
  outline: none;
  border-color: #003d80;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: #0056b3;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  min-height: 48px;
}

.menu-toggle:focus {
  outline: 3px solid #003d80;
  outline-offset: 2px;
}

/* Main content */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero / CTA section */
.hero {
  background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  min-height: 56px;
  line-height: 1.3;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary {
  background: #ffc107;
  color: #1a1a1a;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ffca2c;
  outline: 3px solid #fff;
  outline-offset: 3px;
  color: #1a1a1a;
  text-decoration: none;
}

.btn-secondary {
  background: #fff;
  color: #0056b3;
  border-color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #e9ecef;
  outline: 3px solid #fff;
  outline-offset: 3px;
  text-decoration: none;
}

/* Content cards - large, clear */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: #fff;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h2, .card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #0056b3;
}

.card p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Forms - large inputs for elderly */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  max-width: 500px;
  padding: 0.9rem 1rem;
  font-size: 1.15rem;
  border: 3px solid #adb5bd;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  min-height: 52px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #0056b3;
  outline: 3px solid rgba(0,86,179,0.3);
  outline-offset: 1px;
}

.form-group .required {
  color: #c82333;
  font-weight: 700;
}

.consent-box {
  background: #e7f1ff;
  border: 2px solid #0056b3;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

.consent-box label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.consent-box input[type="checkbox"] {
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-top: 2px;
  accent-color: #0056b3;
}

/* Notice / Info boxes */
.notice {
  background: #fff3cd;
  border-left: 6px solid #ffc107;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem;
}

.notice-info {
  background: #d1ecf1;
  border-left-color: #0c5460;
}

.notice-success {
  background: #d4edda;
  border-left-color: #155724;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #f8f9fa;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  font-size: 1.05rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer a {
  color: #ffc107;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
  outline-color: #ffc107;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #495057;
  text-align: center;
  font-size: 0.95rem;
}

/* Typography helpers */
h1, h2, h3, h4 {
  line-height: 1.3;
  color: #1a1a1a;
}

.entry-content {
  font-size: 1.15rem;
  max-width: 70ch;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 106.25%; /* still large on mobile */
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    background: #fff;
    color: #000;
  }
  .card, .hero, .site-header {
    border-width: 3px;
  }
}

/* Print */
@media print {
  .site-header, .site-footer, .btn, .menu-toggle {
    display: none;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}
