/*
Theme Name: SPD-Design
Theme URI: https://www.spd.de
Description: Theme basierend auf dem Erscheinungsbild von spd.de – Rot #E3000F, klare Typografie. Für PoliTools-Demo.
Author: PoliTools
Author URI: https://politools.de
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spd-theme
*/

:root {
  --spd-red: #E3000F;
  --spd-red-dark: #c2000c;
  --spd-red-light: #ff4d5c;
  --spd-white: #ffffff;
  --spd-black: #1a1a1a;
  --spd-gray: #4a4a4a;
  --spd-gray-light: #f5f5f5;
}

* {
  box-sizing: border-box;
}

/* Basis: immer anwenden, damit nicht auf Default-Theme zurückfällt */
body.spd-theme,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--spd-black) !important;
  background: var(--spd-white) !important;
  margin: 0;
}

a {
  color: var(--spd-red);
  text-decoration: none;
}

a:hover {
  color: var(--spd-red-dark);
  text-decoration: underline;
}

/* Header im SPD-Look – kräftig, damit sichtbar (überschreibt Block-/Standard-Styles) */
body .site-header,
body.spd-theme .site-header,
.site-header,
header.site-header {
  background: var(--spd-red) !important;
  background-image: linear-gradient(180deg, var(--spd-red) 0%, var(--spd-red-dark) 100%) !important;
  color: var(--spd-white) !important;
  padding: 1rem 2rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 !important;
}
.site-header .site-title,
.site-header .site-title a,
.site-header a {
  color: var(--spd-white) !important;
}

.site-header a {
  color: var(--spd-white);
}

.site-header a:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

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

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-title a,
.site-title a:hover {
  color: var(--spd-white) !important;
}

/* Block-Editor / Gutenberg: Site-Titel und Überschriften überschreiben (kein Lila mehr) */
.wp-block-site-title a,
.wp-block-post-title,
h1.entry-title,
h1.wp-block-post-title,
.site-main h1,
.site-main .entry-title {
  color: var(--spd-black) !important;
}
.wp-block-site-title a:hover {
  color: var(--spd-red) !important;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  font-weight: 500;
}

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

article {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.entry-title {
  color: var(--spd-black);
  font-size: 1.75rem;
  margin-top: 0;
}

.entry-title a {
  color: inherit;
}

.entry-meta {
  color: var(--spd-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"],
.button,
.wp-block-button__link {
  background: var(--spd-red);
  color: var(--spd-white) !important;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.wp-block-button__link:hover {
  background: var(--spd-red-dark);
  color: var(--spd-white) !important;
}

/* Footer */
.site-footer {
  background: var(--spd-gray-light);
  padding: 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--spd-gray);
}

.site-info {
  max-width: 1200px;
  margin: 0 auto;
}

/* Widgets / Sidebar */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.1rem;
  color: var(--spd-red);
  margin-bottom: 0.75rem;
}

/* Kommentare */
.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 1rem;
  background: var(--spd-gray-light);
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.form-submit input[type="submit"] {
  background: var(--spd-red);
  color: var(--spd-white);
}

/* Hauptinhalt: Lila/Standard-Farben durch SPD ersetzen */
.site-content,
.site-main,
.wp-block-post-content,
.entry-content {
  color: var(--spd-black);
}
.site-content a,
.site-main a,
.entry-content a {
  color: var(--spd-red);
}
.site-content a:hover,
.site-main a:hover {
  color: var(--spd-red-dark);
}
