/*
Theme Name:  Andreas Paust
Theme URI:   https://andreas-paust.de
Author:      Dr. Andreas Paust
Author URI:  https://andreas-paust.de
Description: Persönliches Theme für andreas-paust.de – im Partizipedia-Design (Navy/Orange). Kompatibel mit dem bestehenden Menü: Willkommen, Lebenslauf, Kommunalpolitik, Bürgerbeteiligung, Publikationen (mit Untermenü), Kontakt/Impressum.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andreaspaust
Tags:        two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  --navy:     #1a3a5c;
  --orange:   #e87722;
  --light-bg: #f5f7fa;
  --text:     #2c2c2c;
  --border:   #d0d8e4;
  --white:    #ffffff;
  --muted:    #aab8cc;
}

/* ─────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; border-bottom: 1px dotted var(--orange); transition: color .2s, border-color .2s; }
a:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
#site-header {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 70px;
}

#site-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

#site-branding a {
  color: var(--white);
  border: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Custom logo in header */
#site-branding .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}

.site-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: .02em;
  color: var(--white);
  line-height: 1.2;
}

.site-title .name-accent  { color: var(--orange); font-weight: bold; }

.site-description {
  font-family: Arial, sans-serif;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Social Icons in Header */
#header-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

#header-social a {
  color: var(--muted);
  border: none;
  font-family: Arial, sans-serif;
  font-size: .8rem;
  transition: color .2s;
}

#header-social a:hover { color: var(--orange); }

/* ─────────────────────────────────────────────────────────────
   PRIMARY NAVIGATION  (mit Dropdown)
───────────────────────────────────────────────────────────── */
#primary-navigation {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.1);
}

#primary-navigation .nav-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menüliste */
#primary-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

#primary-navigation > .nav-wrapper > ul > li > a {
  display: block;
  color: #cdd8e8;
  text-decoration: none;
  border: none;
  padding: 12px 16px;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

#primary-navigation > .nav-wrapper > ul > li > a:hover,
#primary-navigation > .nav-wrapper > ul > li.current-menu-item > a,
#primary-navigation > .nav-wrapper > ul > li.current-menu-ancestor > a,
#primary-navigation > .nav-wrapper > ul > li.current-menu-parent > a {
  background: var(--orange);
  color: var(--white);
}

/* Dropdown */
#primary-navigation ul li { position: relative; }

#primary-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy);
  border-top: 3px solid var(--orange);
  z-index: 9999;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

#primary-navigation ul li:hover > ul,
#primary-navigation ul li:focus-within > ul { display: flex; }

#primary-navigation ul ul li a {
  display: block;
  color: #cdd8e8;
  border: none;
  padding: 10px 18px;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .2s, color .2s;
}

#primary-navigation ul ul li a:hover { background: rgba(232,119,34,.2); color: var(--white); }

/* Dropdown-Pfeil */
#primary-navigation ul li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: .7rem;
  opacity: .7;
}

/* Inline-Suchformular in Nav */
.nav-search { display: flex; align-items: center; }
.nav-search form { display: flex; }
.nav-search input[type="search"] {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 5px 10px;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: .82rem;
  width: 140px;
  outline: none;
}
.nav-search input[type="search"]::placeholder { color: rgba(255,255,255,.4); }
.nav-search input[type="search"]:focus { background: rgba(255,255,255,.15); border-color: var(--orange); }
.nav-search button {
  background: var(--orange);
  border: none;
  border-radius: 0 3px 3px 0;
  color: var(--white);
  padding: 5px 10px;
  cursor: pointer;
  font-size: .82rem;
  transition: background .2s;
}
.nav-search button:hover { background: #c96218; }

/* ─────────────────────────────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────────────────────────────── */
#page { display: flex; flex-direction: column; min-height: 100vh; }

#page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex: 1;
}

#primary  { flex: 1; min-width: 0; }
#secondary { width: 260px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   PROFIL-BILD (Willkommen-Seite)
───────────────────────────────────────────────────────────── */
.profile-image {
  float: right;
  margin: 0 0 24px 32px;
  border: 4px solid var(--border);
  border-radius: 4px;
  max-width: 220px;
}

/* ─────────────────────────────────────────────────────────────
   CONTENT TYPOGRAPHY
───────────────────────────────────────────────────────────── */
.entry-title, .page-title {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 10px;
  line-height: 1.2;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--navy);
  font-family: Arial, sans-serif;
  margin: 1.6em 0 .7em;
}

.entry-content h2 { font-size: 1.4rem; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content h4 { font-size: 1rem; }

.entry-content p  { margin-bottom: 1.1em; font-size: 1.05rem; }
.entry-content strong { color: var(--navy); }

.entry-content ul,
.entry-content ol  { margin: .5em 0 1.2em 1.5em; }
.entry-content li  { margin-bottom: .4em; font-size: 1.05rem; }

.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 12px 20px;
  background: var(--light-bg);
  margin: 1.5em 0;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.entry-content a { color: var(--orange); border-bottom: 1px dotted var(--orange); }
.entry-content a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.entry-content hr {
  border: none;
  border-top: 2px solid var(--orange);
  margin: 2em 0;
  opacity: .35;
}

/* ─────────────────────────────────────────────────────────────
   PUBLIKATIONEN-LISTE
───────────────────────────────────────────────────────────── */
.publikation-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.publikation-item:last-child { border-bottom: none; }

.publikation-item .pub-title {
  font-weight: bold;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.publikation-item .pub-meta {
  font-family: Arial, sans-serif;
  font-size: .85rem;
  color: #667;
}

/* ─────────────────────────────────────────────────────────────
   KARTE / POST-CARD
───────────────────────────────────────────────────────────── */
.post-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 24px;
  transition: box-shadow .2s;
}

.post-card:hover { box-shadow: 0 4px 16px rgba(26,58,92,.1); }

.post-card .card-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.post-card .card-title a { color: var(--navy); border: none; }
.post-card .card-title a:hover { color: var(--orange); }
.post-card .card-meta { font-family: Arial, sans-serif; font-size: .82rem; color: #889; margin-top: 10px; }

.read-more {
  display: inline-block;
  margin-top: 10px;
  background: var(--orange);
  color: var(--white) !important;
  border: none !important;
  padding: 6px 14px;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  transition: background .2s;
}
.read-more:hover { background: var(--navy); }

/* ─────────────────────────────────────────────────────────────
   HINWEISBOX  [hinweis titel="…"]…[/hinweis]
───────────────────────────────────────────────────────────── */
.hinweisbox {
  background: var(--light-bg);
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  margin: 2em 0;
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
}
.hinweisbox .hinweis-titel {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-weight: bold;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR WIDGETS
───────────────────────────────────────────────────────────── */
.widget { margin-bottom: 28px; }

.widget-title {
  font-family: Arial, sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--light-bg);
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  color: var(--navy);
  margin-bottom: 0;
}

.widget ul {
  list-style: none;
  border: 1px solid var(--border);
  border-top: none;
}

.widget ul li { border-bottom: 1px solid var(--border); }

.widget ul li a {
  display: block;
  color: var(--navy);
  border: none;
  padding: 8px 14px;
  font-family: Arial, sans-serif;
  font-size: .88rem;
  font-weight: bold;
}
.widget ul li a:hover { color: var(--orange); background: var(--light-bg); }

.widget ul li ul li a {
  font-weight: normal;
  font-size: .82rem;
  color: #445566;
  padding: 5px 14px 5px 28px;
}

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-family: Arial, sans-serif;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--navy);
  font-size: .9rem;
  border-bottom: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ─────────────────────────────────────────────────────────────
   SEARCH FORM
───────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: 0; margin-bottom: 1em; }

.search-form input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-family: Georgia, serif;
  font-size: .95rem;
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--navy); }

.search-form button,
.search-form input[type="submit"] {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  transition: background .2s;
}
.search-form button:hover { background: var(--navy); }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
#colophon {
  background: var(--navy);
  color: var(--muted);
  padding: 18px 40px;
  font-family: Arial, sans-serif;
  font-size: .85rem;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#colophon a { color: var(--orange); border: none; }
#colophon a:hover { color: var(--white); }

.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--muted); font-size: .82rem; }
.footer-social a:hover { color: var(--orange); }

/* ─────────────────────────────────────────────────────────────
   404 / NO RESULTS
───────────────────────────────────────────────────────────── */
.no-results-message {
  text-align: center;
  padding: 60px 20px;
  color: #667;
}
.no-results-message h2 { color: var(--navy); margin-bottom: 12px; }

/* ─────────────────────────────────────────────────────────────
   MOBILE HAMBURGER
───────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #cdd8e8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 0;
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #page-wrapper { flex-direction: column; }
  #secondary    { width: 100%; }
  .profile-image { float: none; margin: 0 0 20px 0; max-width: 160px; }
}

@media (max-width: 700px) {
  #site-header   { padding: 12px 16px; }
  #header-social { display: none; }
  #page-wrapper  { padding: 24px 16px; }
  .entry-title, .page-title { font-size: 1.5rem; }
  #colophon      { flex-direction: column; text-align: center; padding: 14px 16px; }

  .nav-toggle { display: block; }

  #primary-navigation .nav-wrapper { flex-direction: column; align-items: flex-start; padding: 0; }
  #primary-navigation > .nav-wrapper > ul { display: none; flex-direction: column; width: 100%; }
  #primary-navigation > .nav-wrapper > ul.nav-open { display: flex; }
  #primary-navigation > .nav-wrapper > ul > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }

  #primary-navigation ul ul {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--orange);
    margin-left: 20px;
  }
  #primary-navigation ul li:hover > ul { display: flex; }
  .nav-search { width: 100%; padding: 8px 16px 12px; }
  .nav-search input[type="search"] { width: 100%; }
}
