/*
Theme Name: Schlangen Gesang
Description: Custom theme for schlangengesang.de
Version: 1.0
*/

/* ============================================
   Schlangen Gesang - Redesign
   Terrakotta & Creme + DM Serif/Sans
   ============================================ */

:root {
  --bg: #FAF5EF;
  --bg-alt: #F2EADE;
  --accent: #C97B5C;
  --accent-dark: #8B4513;
  --text: #2D1F17;
  --sub-text: #6B5744;
  --border: #E6D9C7;
  --card-bg: #FFFFFF;
  --shadow: 0 2px 10px rgba(139, 69, 19, 0.06);
  --shadow-hover: 0 6px 24px rgba(139, 69, 19, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(250, 245, 239, 0.92);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.logo span { color: var(--accent); font-style: italic; }

.nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a.nav-accent {
  color: var(--accent);
  font-weight: 700;
}
.nav a.nav-accent:hover { border-bottom-color: var(--accent); }

/* ============================================
   HERO
   ============================================ */
.hero {
  max-width: 1200px;
  margin: 48px auto 72px;
  padding: 0 28px;
}

.hero-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 520px;
  background-image: linear-gradient(135deg, rgba(45, 31, 23, 0.65) 0%, rgba(201, 123, 92, 0.35) 100%), url('https://images.unsplash.com/photo-1515envelope-hidden');
  background-color: var(--accent-dark);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-content {
  padding: 56px;
  max-width: 700px;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 500;
}
.hero h1 {
  font-size: 56px;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.1;
}
.hero p {
  font-size: 19px;
  opacity: 0.92;
  margin-bottom: 24px;
}
.hero a.read-more {
  display: inline-block;
  color: #fff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.hero a.read-more:hover { color: var(--accent); }

/* ============================================
   FEATURE-STRIP
   ============================================ */
.feature-strip {
  max-width: 1200px;
  margin: 0 auto 72px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  padding: 20px 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.feature-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}
.feature-pill .pill-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.feature-pill .pill-text {
  line-height: 1.3;
  font-size: 15px;
}
.feature-pill .pill-text strong {
  font-weight: 700;
}
.feature-pill .pill-text small {
  color: var(--sub-text);
  font-size: 13px;
}

/* ============================================
   MAGAZIN-GRID
   ============================================ */
.section-title {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title h2 {
  font-size: 36px;
  color: var(--text);
}
.section-title .sub {
  font-size: 14px;
  color: var(--sub-text);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.article-grid {
  max-width: 1200px;
  margin: 0 auto 72px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.card {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(250, 245, 239, 0.92);
  color: var(--accent-dark);
  padding: 5px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 2px;
  font-weight: 500;
}

.card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-body p {
  color: var(--sub-text);
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--sub-text);
}
.card-link {
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.card-link:hover { color: var(--accent); }

/* ============================================
   INTERAKTIVE FEATURES
   ============================================ */

/* ---- Section Wrapper ---- */
.feature-section {
  background: var(--bg-alt);
  padding: 72px 28px;
  margin-bottom: 0;
}
.feature-section.alt { background: var(--bg); }
.feature-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.feature-label {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.feature-inner h2 {
  font-size: 42px;
  margin-bottom: 14px;
}
.feature-inner > p.lead {
  color: var(--sub-text);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Quiz ---- */
.quiz-box {
  background: var(--card-bg);
  padding: 44px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}
.quiz-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}
.quiz-question {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--text);
}
.quiz-options {
  display: grid;
  gap: 12px;
}
.quiz-option {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 18px 22px;
  text-align: left;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  color: var(--text);
}
.quiz-option:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
}
.quiz-result {
  text-align: center;
}
.quiz-result h3 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--accent-dark);
}
.quiz-result p {
  color: var(--sub-text);
  margin-bottom: 20px;
}
.quiz-result a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.quiz-result a:hover { background: var(--accent-dark); color: #fff; }
.quiz-reset {
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--sub-text);
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

/* ---- Saison-Ratgeber ---- */
.season-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.season-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 28px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.season-btn .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.season-btn .label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.season-btn:hover, .season-btn.active {
  border-color: var(--accent);
  background: var(--bg);
}
.season-btn.active { box-shadow: var(--shadow); }
.season-suggestions {
  text-align: left;
  background: var(--card-bg);
  padding: 32px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  min-height: 180px;
}
.season-suggestions h3 {
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--accent-dark);
}
.season-suggestions ul {
  list-style: none;
  display: grid;
  gap: 12px;
}
.season-suggestions li {
  padding-left: 24px;
  position: relative;
  color: var(--text);
}
.season-suggestions li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.season-suggestions li a { font-weight: 500; }

/* ---- Rituale-Generator ---- */
.ritual-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 56px 44px;
  border-radius: 4px;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.ritual-box h3 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 14px;
}
.ritual-box p {
  opacity: 0.92;
  margin-bottom: 28px;
}
.ritual-display {
  background: rgba(255, 255, 255, 0.12);
  padding: 28px;
  border-radius: 4px;
  margin-bottom: 24px;
  min-height: 120px;
  font-size: 18px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ritual-display .empty {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
.ritual-btn {
  background: #fff;
  color: var(--accent-dark);
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.ritual-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 56px 28px 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250, 245, 239, 0.12);
}
.footer-inner h4 {
  color: var(--bg);
  font-size: 16px;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}
.footer-inner ul { list-style: none; }
.footer-inner ul li { margin-bottom: 8px; }
.footer-inner a {
  color: var(--bg);
  opacity: 0.75;
  font-size: 15px;
}
.footer-inner a:hover { opacity: 1; color: var(--accent); }
.footer-inner .tagline {
  color: var(--bg);
  opacity: 0.75;
  font-size: 15px;
  margin-top: 10px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.6;
}

/* ============================================
   ARTIKELSEITE
   ============================================ */
.article-layout {
  max-width: 1200px;
  margin: 48px auto 72px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
}
.article-main {
  max-width: 720px;
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--sub-text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-main h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.15;
}
.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  color: var(--sub-text);
  font-size: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-lead-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  margin-bottom: 32px;
  border-radius: 4px;
}
.article-main p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.8;
}
.article-main h2 {
  font-size: 30px;
  margin: 40px 0 16px;
}
.article-main h3 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.article-main blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--sub-text);
  font-size: 19px;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.sidebar-widget {
  background: var(--card-bg);
  padding: 28px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sub-text);
  margin-bottom: 18px;
  font-weight: 500;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget a {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  display: block;
}
.sidebar-widget a:hover { color: var(--accent); }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 200;
  transition: width 0.1s;
}

/* ============================================
   PAGE-LAYOUTS (Legal + Kategorie)
   ============================================ */
.page-hero {
  max-width: 1200px;
  margin: 48px auto 40px;
  padding: 0 28px;
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 13px;
  color: var(--sub-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: 54px;
  margin-bottom: 14px;
}
.page-hero .page-lead {
  font-size: 18px;
  color: var(--sub-text);
  max-width: 640px;
  margin: 0 auto;
}
.page-divider {
  max-width: 120px;
  margin: 0 auto 56px;
  border: none;
  border-top: 2px solid var(--accent);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto 96px;
  padding: 0 28px;
}
.legal-content h2 {
  font-size: 30px;
  margin: 48px 0 18px;
  color: var(--accent-dark);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 21px;
  margin: 32px 0 12px;
  color: var(--text);
}
.legal-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.legal-content ul {
  margin-bottom: 20px;
  padding-left: 24px;
}
.legal-content ul li {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--text);
}
.legal-content a {
  word-break: break-word;
}

.contact-box {
  background: var(--bg-alt);
  padding: 44px 48px;
  border-radius: 4px;
  margin: 40px 0;
  text-align: center;
}
.contact-box h3 {
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--accent-dark);
}
.contact-box p {
  font-size: 17px;
  color: var(--sub-text);
  margin-bottom: 20px;
}
.contact-box .contact-email {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--accent);
  display: inline-block;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-strip { grid-template-columns: 1fr; gap: 12px; margin-bottom: 48px; }
  .hero h1 { font-size: 38px; }
  .hero-content { padding: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .season-picker { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 16px 20px; gap: 16px; }
  .nav ul { gap: 16px; }
  .nav a { font-size: 13px; }
}

@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .hero { margin: 24px auto 48px; }
  .hero h1 { font-size: 30px; }
  .feature-inner h2 { font-size: 30px; }
  .article-main h1 { font-size: 32px; }
  .page-hero h1 { font-size: 34px; }
  .contact-box { padding: 28px 24px; }
  .nav ul li.hide-mobile { display: none; }
}
