/*
Theme Name: Rock N Growl Modern
Theme URI: https://www.rockngrowl.com
Author: Rock N Growl Promotion
Author URI: https://www.rockngrowl.com
Description: Ultra-leichtes, schnelles und mehrsprachiges (DE/EN/ES) Editorial-Theme für Rock N Growl (Music Press & Promotion). 1:1 zur Live-Vorschau: Bunny Fonts (Autoptimize-sicher), WebP-Express <picture>-Fix, Full-Stretch Hero/Studio-Frames, Live Light/Dark Switch, Promo-Formular & vereinigtes /news-Archiv.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rockngrowl
Tags: editorial, news, music, blog, multilingual, custom-colors, custom-logo, featured-images, accessibility-ready
*/

:root {
  --rng-bg: #f7f7f5;
  --rng-bg-alt: #efefec;
  --rng-surface: #ffffff;
  --rng-surface-muted: #e9e9e5;
  --rng-border: #e2e2dd;
  --rng-border-strong: #cfcfc8;
  --rng-text: #111114;
  --rng-text-body: #34343a;
  --rng-text-muted: #52525b;
  --rng-accent: #b45309;
  --rng-accent-hover: #92400e;
  --rng-accent-contrast: #ffffff;
  --rng-footer-bg: #111114;
  --rng-footer-border: #27272c;
  --rng-radius: 16px;
  --rng-container: 1180px;
  --rng-measure: 760px;
  --rng-font-display: 'Barlow Condensed', system-ui, -apple-system, sans-serif;
  --rng-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --rng-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html.rng-dark {
  --rng-bg: #0c0c0e;
  --rng-bg-alt: #131317;
  --rng-surface: #17171c;
  --rng-surface-muted: #17171c;
  --rng-border: #27272f;
  --rng-border-strong: #3a3a46;
  --rng-text: #f4f4f6;
  --rng-text-body: #d4d4dc;
  --rng-text-muted: #a1a1aa;
  --rng-accent: #f59e0b;
  --rng-accent-hover: #fbbf24;
  --rng-accent-contrast: #111114;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
}

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

/* Fix for WebP Express <picture> wrappers so images always fill frames properly */
.article-featured picture {
  display: block;
  width: 100%;
  height: auto;
}

.site-logo-badge picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--rng-surface);
  clip: auto !important;
  clip-path: none;
  color: var(--rng-text);
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  height: auto;
  left: 12px;
  padding: 12px 18px;
  top: 12px;
  width: auto;
  z-index: 10000;
  border: 1px solid var(--rng-border-strong);
  border-radius: 8px;
}

.rng-container {
  width: 100%;
  max-width: var(--rng-container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Clean 3-Zone Sticky Header matching Live Preview */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--rng-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rng-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 74px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rng-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rng-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-brand-wordmark span {
  color: var(--rng-accent);
}

.site-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f4f4f0;
  border: 1px solid var(--rng-border);
  padding: 4px;
  flex-shrink: 0;
}

.site-logo-badge img,
.custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rng-text-muted);
  white-space: nowrap;
  transition: color 150ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--rng-text);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--rng-accent);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--rng-accent);
  color: var(--rng-accent-contrast);
  font-family: var(--rng-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease;
}

.site-header .btn-primary {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn-primary:hover {
  background: var(--rng-accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--rng-surface);
  color: var(--rng-text);
  font-family: var(--rng-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--rng-border-strong);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.btn-secondary:hover {
  border-color: var(--rng-accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
  color: var(--rng-text);
  cursor: pointer;
}

.mobile-menu-toggle {
  display: none;
}

.header-search-bar {
  border-top: 1px solid var(--rng-border);
  padding: 14px 0;
  background: var(--rng-bg);
}

.header-search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.header-search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--rng-border-strong);
  background: var(--rng-surface);
  color: var(--rng-text);
  font: inherit;
}

/* Workspace Controls Strip (Language DE/EN/ES + Light/Dark Switcher above Hero) */
.workspace-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--rng-border);
}

.workspace-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--rng-surface-muted);
  border: 1px solid var(--rng-border);
}

.segmented-control a,
.segmented-control button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  font-family: var(--rng-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rng-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.segmented-control a.is-mono {
  font-family: var(--rng-font-mono);
  text-transform: uppercase;
}

.segmented-control a.is-active,
.segmented-control button.is-active {
  background: var(--rng-surface);
  color: var(--rng-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Sections & Typography */
.rng-section {
  padding: 68px 0;
}

.rng-section-hero {
  padding: 40px 0 64px;
}

.rng-section-alt {
  background-color: var(--rng-bg-alt);
  border-top: 1px solid var(--rng-border);
  border-bottom: 1px solid var(--rng-border);
}

.section-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rng-accent);
  margin: 0 0 10px;
}

h1, h2 {
  font-family: var(--rng-font-display);
  color: var(--rng-text);
  margin: 0 0 18px;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-family: var(--rng-font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rng-text);
  margin: 0 0 10px;
}

p {
  margin: 0 0 16px;
}

/* Hero Split (1.15fr / 0.85fr) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: stretch;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 58ch;
  color: var(--rng-text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--rng-radius);
  overflow: hidden;
  border: 1px solid var(--rng-border);
  background: var(--rng-surface);
  min-height: 340px;
  height: 100%;
  margin: 0;
}

.hero-media-frame picture,
.hero-media-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.hero-media-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--rng-surface) 95%, transparent);
  border: 1px solid var(--rng-border);
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--rng-text-body);
}

/* 4-Column Proof Strip below Hero */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rng-border);
}

.stat-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
}

.stat-value {
  font-family: var(--rng-font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rng-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-value.is-accent {
  color: var(--rng-accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--rng-text-muted);
  margin-top: 4px;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.editorial-card {
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
  border-radius: var(--rng-radius);
  padding: 24px;
  transition: border-color 160ms ease;
}

.editorial-card:hover {
  border-color: var(--rng-border-strong);
}

.grid-4 .editorial-card h3 {
  font-size: 1rem;
}

.studio-media-frame {
  position: relative;
  border-radius: var(--rng-radius);
  overflow: hidden;
  border: 1px solid var(--rng-border);
  background: var(--rng-surface);
  min-height: 320px;
  height: 100%;
}

.studio-media-frame picture,
.studio-media-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Releases Toolbar & Filter Bar */
.releases-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.releases-search-form {
  position: relative;
  width: 100%;
  max-width: 288px;
}

.releases-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rng-text-muted);
  pointer-events: none;
}

.releases-search-form input[type="search"] {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 12px;
  border: 1px solid var(--rng-border-strong);
  background: var(--rng-surface);
  color: var(--rng-text);
  font: inherit;
  font-size: 0.875rem;
}

.archive-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: var(--rng-surface-muted);
  border: 1px solid var(--rng-border);
  margin-bottom: 28px;
}

.archive-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rng-text-muted);
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.archive-filter-tab:hover {
  color: var(--rng-text);
}

.archive-filter-tab.is-active {
  background: var(--rng-surface);
  color: var(--rng-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Press Release Post Cards */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
  border-radius: var(--rng-radius);
  overflow: hidden;
  transition: border-color 160ms ease;
}

.post-card:hover {
  border-color: var(--rng-accent);
}

.post-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--rng-bg-alt);
}

.post-card-thumb picture,
.post-card-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  font-family: var(--rng-font-mono);
  font-size: 0.75rem;
  color: var(--rng-text-muted);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.post-card-meta-cat {
  font-weight: 600;
  color: var(--rng-accent);
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--rng-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.post-card-excerpt p {
  margin: 0;
}

.post-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rng-accent);
}

.post-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Pagination */
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
  font-family: var(--rng-font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.page-numbers.current {
  background: var(--rng-accent);
  color: var(--rng-accent-contrast);
  border-color: transparent;
}

/* Native HTML5 FAQ Accordion */
.faq-list details {
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 12px;
}

.faq-list details[open] {
  border-color: var(--rng-accent);
}

.faq-list summary {
  font-weight: 600;
  font-size: 1rem;
  color: var(--rng-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--rng-accent);
  font-weight: 600;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  margin-top: 12px;
  color: var(--rng-text-muted);
  font-size: 0.9rem;
}

/* Contact & Promo Form Section (2-Column Grid matching Preview) */
.promo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.rng-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.rng-field {
  margin-bottom: 16px;
}

.rng-form-row .rng-field {
  margin-bottom: 0;
}

.rng-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rng-text);
  margin-bottom: 6px;
}

.rng-field input,
.rng-field select,
.rng-field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--rng-bg);
  border: 1px solid var(--rng-border-strong);
  color: var(--rng-text);
  font-family: var(--rng-font-sans);
  font-size: 0.875rem;
}

.rng-spotlight-dark {
  background: #111114;
  color: #f4f4f6;
  border: 1px solid #27272c;
  border-radius: var(--rng-radius);
  padding: 32px;
}

.rng-spotlight-dark h2 {
  color: #ffffff;
}

.rng-spotlight-dark ol {
  padding-left: 18px;
  margin: 0 0 24px;
  color: #d4d4d8;
  font-size: 0.88rem;
  line-height: 1.75;
}

.rng-notice-success {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--rng-accent);
  color: var(--rng-text);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Single Article & Page Reader */
.article-wrap {
  max-width: var(--rng-measure);
  margin: 0 auto;
}

.article-featured {
  border-radius: var(--rng-radius);
  overflow: hidden;
  border: 1px solid var(--rng-border);
  margin: 24px 0 32px;
}

.article-content {
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-content a {
  color: var(--rng-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-content iframe {
  max-width: 100%;
  border-radius: 12px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--rng-surface);
  border: 1px solid var(--rng-border);
  border-radius: 12px;
  font-style: italic;
  color: var(--rng-text);
}

/* Footer */
.site-footer {
  background: var(--rng-footer-bg);
  color: #e4e4e7;
  border-top: 1px solid var(--rng-footer-border);
  padding: 56px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rng-footer-border);
}

.footer-heading {
  font-family: var(--rng-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #a1a1aa;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  color: #a1a1aa;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--rng-border);
  background: var(--rng-bg);
  padding: 18px 24px 24px;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.mobile-nav-drawer li a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--rng-border);
}

@media (max-width: 1040px) {
  .primary-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .promo-form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-4,
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-media-frame {
    min-height: 320px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .studio-media-frame {
    min-height: 280px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

@media (max-width: 640px) {
  .rng-section {
    padding: 52px 0;
  }
  .grid-4,
  .rng-form-row {
    grid-template-columns: 1fr;
  }
  .hero-media-frame {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }
  .hero-media-frame picture {
    position: relative;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .hero-media-frame img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
  .hero-media-caption {
    position: static;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .hero-media-scrim {
    display: none;
  }
}
