/*
Theme Name: Starke Wurzeln
Theme URI: https://www.starke-wurzeln.de
Author: Sabrina Köller
Author URI: https://www.starke-wurzeln.de
Description: Individuelles WordPress-Theme für Sabrina Köller (Starke Wurzeln) – begleitende Seelsorge, Coaching und Beratungsgespräche zur Persönlichkeitsentwicklung. Ruhige, warme Optik mit Baum-/Wurzel-Motiv, ohne externe Schriftarten oder Tracking.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: starke-wurzeln
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   1. Grundeinstellungen & Variablen
   ========================================================================== */

:root {
  /* Farben – abgeleitet aus dem bestehenden Flyer-Design von "Starke Wurzeln" */
  --color-bg: #fbfaf7;
  --color-bg-sage: #e8efee;
  --color-bg-sage-strong: #dbe7e4;
  --color-accent: #b8542f;        /* Terrakotta – Überschriften, Links */
  --color-accent-light: #d1734f;
  --color-teal: #6e9291;          /* gedecktes Blaugrün – Buttons, Akzente */
  --color-teal-dark: #55726f;
  --color-brown: #4a3826;         /* Wurzel-/Erdton */
  --color-text: #33403f;
  --color-text-soft: #5c6b6a;
  --color-white: #ffffff;
  --color-border: #d9e2e0;

  /* Typografie – bewusst auf Systemschriften gesetzt: schnell, ohne
     externe Anfragen an Google Fonts o. ä. (Datenschutz, DSGVO) */
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow-soft: 0 10px 30px rgba(74, 56, 38, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover, a:focus { color: var(--color-teal-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-brown);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 400;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-accent); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brown);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   2. Header
   ========================================================================== */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brown);
}

.site-branding img.custom-logo {
  height: 58px;
  width: auto;
}

.site-branding__text .site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.1;
}
.site-branding__text .site-title a { color: var(--color-brown); text-decoration: none; }
.site-branding__text .site-tagline {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-teal-dark);
  text-transform: uppercase;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--color-text);
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--color-bg-sage);
  color: var(--color-accent);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--color-brown);
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items:center; gap:8px; }
  .main-navigation { width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 2px; padding: 10px 0; }
  .site-header__inner { flex-wrap: wrap; }
}

/* ==========================================================================
   3. Hero
   ========================================================================== */

.hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 110px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 34, 24, 0.55), rgba(41, 34, 24, 0.72));
}
.hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: 1.2rem;
  color: #f3efe8;
}

.hero--page {
  padding: 70px 0 64px;
}
.hero--page h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  background: var(--color-teal);
  color: #fff !important;
  font-size: 1rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus { background: var(--color-teal-dark); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff !important;
}
.btn--outline:hover { background: rgba(255,255,255,0.15); }

.btn--accent { background: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-light); }

/* ==========================================================================
   5. Sections & Layout-Bausteine
   ========================================================================== */

section.section { padding: 76px 0; }
section.section--sage { background: var(--color-bg-sage); }
section.section--brown { background: var(--color-brown); color: #f1ece3; }
section.section--brown h2 { color: #e7b79a; }
section.section--brown p { color: #ddd5c6; }

.section__intro {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__intro h2 { margin-bottom: 0.4em; }
.section__eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-teal-dark);
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 30px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.card h3 { color: var(--color-accent); margin-bottom: 0.5em; }

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--color-border);
}
.topic-list li:last-child { border-bottom: none; }
.topic-list li::before {
  content: "\1F33F"; /* kleines Blatt-Symbol */
  position: absolute;
  left: 0;
  top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

blockquote.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}
blockquote.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.quote-photo-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 0;
}
.quote-photo-section::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(30, 40, 35, 0.62);
}
.quote-photo-section .container { position: relative; }
.quote-photo-section blockquote.pull-quote { color: #fff; }

.info-box {
  background: var(--color-bg-sage);
  border-left: 4px solid var(--color-teal);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin: 0 0 1.6em;
}
.info-box strong { color: var(--color-brown); }

.cta-band {
  background: var(--color-teal);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7f1f0; }

/* ==========================================================================
   6. Über mich
   ========================================================================== */

.about-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 0.97rem;
}
.about-facts li {
  padding: 8px 0 8px 20px;
  border-bottom: 1px dashed var(--color-border);
  position: relative;
}
.about-facts li::before {
  content: "—";
  position: absolute; left: 0; color: var(--color-teal);
}
@media (max-width: 560px) { .about-facts { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Kontaktformular
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details {
  background: var(--color-bg-sage);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-details h3 { margin-top: 0; }
.contact-details ul { list-style: none; padding: 0; margin: 0; }
.contact-details li { margin-bottom: 14px; }
.contact-details a { color: var(--color-brown); }

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--color-brown);
  font-size: 0.95rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}
.form-row--checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-row--checkbox input { width: auto; margin-top: 5px; }
.form-row--checkbox label { font-weight: 400; margin-bottom: 0; }

.form-hpot { position: absolute; left: -9999px; top: -9999px; }

.form-message {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.form-message--success { background: #e4f0e2; color: #315c2b; border: 1px solid #bcdab6; }
.form-message--error { background: #fbe8e4; color: #8a3320; border: 1px solid #f0c3b7; }

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-brown);
  color: #e7ded0;
  padding: 56px 0 26px;
}
.site-footer a { color: #f0d9c2; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-grid h4 {
  color: #f0d9c2;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.95rem; }

.footer-logo { height: 70px; margin-bottom: 14px; }

.site-footer .bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #cabfa9;
}
.site-footer .bottom-bar a { color: #cabfa9; }
.site-footer .bottom-bar nav ul { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .bottom-bar nav li { margin: 0; }

/* ==========================================================================
   9. Legal pages (Impressum/Datenschutz)
   ========================================================================== */

.legal-content h2 { color: var(--color-brown); font-size: 1.3rem; margin-top: 1.6em; }
.legal-content h1 { color: var(--color-brown); }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-note {
  background: #fbf3e9;
  border: 1px solid #efd9b8;
  color: #6b4d22;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 2.4em;
}

/* ==========================================================================
   10. Generischer Seiteninhalt (page.php)
   ========================================================================== */

.page-content {
  padding: 70px 0;
  max-width: 780px;
  margin: 0 auto;
}

/* ==========================================================================
   11. 404
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: 110px 0;
}
