/*
Theme Name: ROADSTONES CORE
Theme URI: https://roadstones.com
Author: Roadstones Media
Description: Eigenständiges, block-editor-freundliches Theme für ROADSTONES MEDIA. Ohne Pagebuilder-Abhängigkeit.
Version: 0.3.6
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: roadstones-core
*/

:root {
  --rs-ink: #070b0d;
  --rs-panel: #10171a;
  --rs-panel-2: #172126;
  --rs-paper: #e9e6e2;
  --rs-copy: #d9dedc;
  --rs-muted: #9aa9a8;
  --rs-line: #294047;
  --rs-cyan: #2ea59d;
  --rs-bronze: #b87333;
  --rs-turquoise: #2f8f8b;
  --rs-orange: #ff7417;
  --rs-red: #e51f2b;
  --rs-width: 1260px;
  --rs-reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(2, 8, 10, .96), rgba(4, 14, 17, .82) 48%, rgba(0, 0, 0, .96)),
    url('/wp-content/uploads/frosted-roadstones.png') center top / cover fixed;
  color: var(--rs-copy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}
.rs-has-page-bg { background: #04090b; }
.rs-page-backdrop {
  position: fixed; z-index: 0; inset: -36px; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(2, 8, 10, .30), rgba(4, 14, 17, .20) 48%, rgba(0, 0, 0, .42)),
    var(--rs-page-bg, url('/wp-content/uploads/frosted-roadstones.png')) center / cover no-repeat;
  filter: blur(7px) saturate(.98); opacity: .98; transform: scale(1.02);
}
.rs-page-backdrop::after { position: absolute; inset: 0; content: ""; background: url('/wp-content/uploads/frosted-roadstones.png') center / cover; opacity: .10; mix-blend-mode: screen; }
.site-header, .rs-sotd-wrap, .site-main, .site-footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--rs-cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--rs-paper); }

.rs-shell { width: min(calc(100% - 40px), var(--rs-width)); margin-inline: auto; }
.rs-reading { width: min(100%, var(--rs-reading)); }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed; z-index: 99999; top: 10px; left: 10px; width: auto; height: auto;
  padding: 10px 14px; clip: auto; background: #fff; color: #000;
}

.site-header {
  position: sticky; z-index: 100; top: 0;
  border-bottom: 1px solid var(--rs-line);
  background: linear-gradient(180deg, rgba(5, 9, 11, .96), rgba(5, 10, 12, .88));
  box-shadow: 0 14px 40px rgba(0,0,0,.28); backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 76px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2vw, 28px); }
.site-brand { color: var(--rs-paper); text-decoration: none; }
.site-brand__name { display: block; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.site-brand__claim { display: block; margin-top: 6px; color: var(--rs-cyan); font: 700 10px/1.2 ui-monospace, monospace; letter-spacing: .15em; }
.custom-logo, .rs-header-logo { display: block; width: auto; max-width: 58px; max-height: 56px; }
.primary-navigation { min-width: 0; }
.primary-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(10px, 1.35vw, 20px); margin: 0; padding: 0; list-style: none; }
.primary-menu > li { min-width: 0; }
.primary-menu a { display: block; padding-block: 8px; color: rgba(233,230,226,.84); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(11px, .9vw, 13px); font-weight: 430; letter-spacing: .005em; line-height: 1.15; text-decoration: none; text-transform: none; white-space: nowrap; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--rs-bronze); }
.primary-menu a[href*="kontakt"] { padding: 8px 11px; border: 1px solid rgba(184,115,51,.62); border-radius: 999px; color: var(--rs-paper); background: rgba(184,115,51,.07); }
.primary-menu a[href*="kontakt"]:hover { color: #071012; background: var(--rs-bronze); }
.rs-language-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid rgba(233,230,226,.16); border-radius: 999px; background: rgba(0,0,0,.28); }
.rs-language-switcher__link { min-width: 34px; padding: 6px 9px; border-radius: 999px; color: var(--rs-muted); font: 850 10px/1 ui-monospace, monospace; letter-spacing: .12em; text-align: center; text-decoration: none; }
.rs-language-switcher__link:hover { color: var(--rs-paper); }
.rs-language-switcher__link.is-current { color: #061012; background: var(--rs-cyan); }

.site-main { position: relative; min-height: 62vh; padding-block: clamp(42px, 7vw, 92px); }
.site-main::before {
  position: fixed; z-index: -1; inset: 0; content: ""; pointer-events: none;
  background: radial-gradient(circle at 18% 15%, rgba(46, 165, 157, .12), transparent 34%), radial-gradient(circle at 82% 70%, rgba(184, 115, 51, .09), transparent 32%);
}
.rs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 70px; align-items: start; }
.rs-has-sidebar .rs-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.rs-kicker { color: var(--rs-cyan); font: 800 12px/1.4 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.entry-title, .archive-title {
  margin: .25em 0 .35em; color: var(--rs-paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.6rem, 7vw, 6.4rem); font-weight: 400; letter-spacing: .01em; line-height: .94; text-transform: uppercase;
}
.entry-subtitle { max-width: 880px; margin: 0 0 34px; color: var(--rs-muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.45; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 34px; color: var(--rs-muted); font-size: 13px; }
.entry-hero { margin: 0 0 clamp(34px, 6vw, 72px); }
.entry-hero img { width: 100%; border: 1px solid var(--rs-line); }
.entry-content { color: var(--rs-copy); }
.entry-content > * { max-width: var(--rs-reading); }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin: 1.8em 0 .55em; color: var(--rs-paper); font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 400; letter-spacing: .025em; line-height: 1.05; text-transform: uppercase;
}
.entry-content h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); }
.entry-content h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--rs-orange); color: var(--rs-paper); font-size: 1.2em; }
.entry-content hr { margin: 48px 0; border: 0; border-top: 1px solid var(--rs-line); }
.entry-content figcaption { color: var(--rs-muted); font-size: 13px; }

.rs-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 38px); }
.post-card {
  min-width: 0; overflow: hidden; border: 1px solid rgba(233, 230, 226, .13); border-radius: 10px;
  background: linear-gradient(145deg, rgba(18, 29, 32, .58), rgba(3, 8, 10, .50));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42); backdrop-filter: blur(18px);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(46, 165, 157, .58); box-shadow: 0 28px 75px rgba(0, 0, 0, .58); }
.post-card__link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.post-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #10191d, #05090b); }
.post-card__media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 48%, rgba(2, 7, 9, .78)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease, filter .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.045); filter: contrast(1.05) saturate(1.06); }
.post-card__signal { display: grid; height: 100%; place-items: center; color: rgba(233,230,226,.12); font-family: Impact, sans-serif; font-size: clamp(4rem, 11vw, 8rem); letter-spacing: .08em; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.post-card__title { max-width: 100%; margin: 9px 0 14px; color: var(--rs-paper); font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(1.85rem, 3.1vw, 3.15rem); font-weight: 400; letter-spacing: .015em; line-height: .98; overflow-wrap: anywhere; hyphens: auto; text-transform: uppercase; transition: color .25s ease; }
.post-card:hover .post-card__title { color: var(--rs-cyan); }
.post-card__excerpt { color: var(--rs-copy); font-size: .94rem; line-height: 1.6; }
.post-card__excerpt p { margin: 0; }
.post-card__more { margin-top: auto; padding-top: 22px; color: var(--rs-bronze); font: 800 11px/1.3 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }

.rs-article-stage { position: relative; isolation: isolate; margin-block: calc(-1 * clamp(42px, 7vw, 92px)); padding-block: clamp(42px, 7vw, 92px); }
.rs-article-stage::before, .rs-article-stage::after { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none; }
.rs-article-stage::after { z-index: -1; background: linear-gradient(180deg, rgba(2, 7, 9, .16), rgba(2, 7, 9, .30) 34%, rgba(2, 7, 9, .46)); }
.rs-article-panel {
  padding: clamp(28px, 5vw, 72px); border: 1px solid rgba(233, 230, 226, .14); border-radius: 12px;
  background: linear-gradient(145deg, rgba(8, 16, 19, .62), rgba(3, 8, 10, .54));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42); backdrop-filter: blur(15px);
}
.rs-article-panel .entry-header, .rs-article-panel .entry-content, .rs-article-panel > .post-navigation { width: min(100%, 920px); margin-inline: auto; }
.rs-article-panel .entry-title { text-shadow: 0 4px 30px rgba(0,0,0,.65); }
.rs-article-panel .entry-hero { width: min(100%, 1100px); margin-inline: auto; overflow: hidden; border-radius: 8px; box-shadow: 0 24px 65px rgba(0,0,0,.48); }
.rs-article-panel .entry-hero img { display: block; }

.widget-area { position: sticky; top: 112px; }
.widget { margin-bottom: 34px; padding: 22px; border: 1px solid var(--rs-line); background: var(--rs-panel); }
.widget-title { margin: 0 0 14px; color: var(--rs-cyan); font: 800 12px/1.4 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.widget ul { margin: 0; padding-left: 18px; }

.site-footer { border-top: 1px solid rgba(46,165,157,.34); background: rgba(5, 11, 14, .84); box-shadow: 0 -28px 70px rgba(0,0,0,.22); backdrop-filter: blur(20px); }
.site-footer__inner { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.6fr); gap: clamp(38px, 6vw, 90px); padding-block: clamp(38px, 5vw, 62px); color: var(--rs-muted); font-size: 13px; }
.site-footer__identity { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.site-footer__identity strong { color: var(--rs-paper); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.site-footer__note { max-width: 330px; margin: 0; color: rgba(217,222,220,.72); font-size: 13px; line-height: 1.55; }
.site-footer__identity .rs-language-switcher { margin-top: 12px; }
.footer-menu, .footer-menu ul { margin: 0; padding: 0; list-style: none; }
.footer-menu { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 24px; }
.footer-menu > li > a { color: var(--rs-copy); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 13px; font-weight: 560; letter-spacing: .015em; }
.footer-menu ul { display: none; }
.footer-menu li { margin: 0; }
.footer-menu a { color: var(--rs-copy); line-height: 1.35; text-decoration: none; }
.footer-menu a:hover { color: var(--rs-bronze); }
.footer-menu a[href*="/en/"] { display: none; }
body.rs-lang-en .footer-menu a[href*="/en/"] { display: inline; }
body.rs-lang-en .footer-menu a:not([href*="/en/"]) { display: none; }

.nav-links { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 6px; margin: 48px clamp(7%, 11vw, 16%) 0 auto; padding: 8px; border: 1px solid rgba(46,165,157,.28); border-radius: 8px; background: rgba(5,12,15,.64); box-shadow: 0 14px 38px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.page-numbers { display: inline-block; min-width: 38px; padding: 7px 11px; border: 1px solid rgba(41,64,71,.78); border-radius: 4px; text-align: center; text-decoration: none; }
.page-numbers.current { border-color: var(--rs-orange); color: var(--rs-paper); }

@media (max-width: 900px) {
  .rs-layout { grid-template-columns: 1fr; }
  .widget-area { position: static; }
  .site-header__inner { min-height: 68px; grid-template-columns: auto 1fr auto; padding-block: 14px; }
  .primary-navigation { grid-column: 1 / -1; grid-row: 2; }
  .primary-menu { flex-wrap: wrap; gap: 5px 16px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 680px) {
  .rs-card-grid { grid-template-columns: 1fr; }
  .rs-shell { width: min(calc(100% - 24px), var(--rs-width)); }
  .rs-article-panel { padding: 24px 18px; }
  .nav-links { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
