/*
Theme Name: RSB Blank
Theme URI: https://rsb-design.de/
Author: RSB DESIGN GmbH
Author URI: https://rsb-design.de/
Description: Leichtes, neutrales WordPress-Theme für individuelle Kundenprojekte mit Elementor und Elementor Pro.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: rsb-blank
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready, accessibility-ready
*/

:root {
  --rsb-container: 1280px;
  --rsb-content: 820px;
  --rsb-gutter: clamp(18px, 3vw, 32px);
  --rsb-text: #1f2933;
  --rsb-muted: #667085;
  --rsb-border: #e5e7eb;
  --rsb-bg: #ffffff;
  --rsb-link: #1d4ed8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rsb-bg);
  color: var(--rsb-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--rsb-link); }
a:hover, a:focus { text-decoration-thickness: 2px; }
.screen-reader-text {
  position: absolute !important; 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 {
  top: 8px; left: 8px; z-index: 100000; display: block; width: auto; height: auto;
  padding: 12px 16px; clip: auto; background: #fff; color: #111; box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.rsb-container { width: min(100% - (2 * var(--rsb-gutter)), var(--rsb-container)); margin-inline: auto; }
.rsb-content-width { width: min(100% - (2 * var(--rsb-gutter)), var(--rsb-content)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rsb-border); }
.site-header__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 14px; }
.custom-logo { display: block; max-height: 52px; width: auto; }
.site-title { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 3px 0 0; color: var(--rsb-muted); font-size: .875rem; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 0; list-style: none; }
.primary-menu a { color: inherit; text-decoration: none; }
.primary-menu a:hover, .primary-menu a:focus { text-decoration: underline; }
.site-main { min-height: 50vh; }
.rsb-default-content { padding-block: clamp(44px, 7vw, 88px); }
.entry-title { margin-top: 0; line-height: 1.15; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--rsb-border); color: var(--rsb-muted); }
.site-footer__inner { padding-block: 28px; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers { padding: 7px 11px; border: 1px solid var(--rsb-border); text-decoration: none; }
.page-numbers.current { font-weight: 700; }

body.rsb-elementor-page .site-main { min-height: 0; }
body.elementor-page .entry-content { margin: 0; }
body.rsb-full-width .rsb-default-content { width: 100%; max-width: none; padding-inline: 0; }
body.rsb-canvas .site-header, body.rsb-canvas .site-footer { display: none; }
body.rsb-canvas .site-main { min-height: 100vh; }

@media (max-width: 767px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .primary-menu { gap: 12px 18px; }
}

/* RSB fallback brand logo */
.rsb-fallback-logo { display: inline-flex; align-items: center; text-decoration: none; }
.rsb-fallback-logo img { display: block; width: auto; max-height: 46px; }

/* Back to top */
.rsb-back-to-top {
  position: fixed;
  bottom: var(--rsb-btt-bottom);
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rsb-btt-size);
  height: var(--rsb-btt-size);
  padding: 0;
  border: 0;
  border-radius: var(--rsb-btt-radius);
  background: var(--rsb-btt-bg);
  color: var(--rsb-btt-color);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background-color .22s ease, color .22s ease;
}
.rsb-back-to-top--right { right: var(--rsb-btt-side); }
.rsb-back-to-top--left { left: var(--rsb-btt-side); }
.rsb-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.rsb-back-to-top:hover,
.rsb-back-to-top:focus-visible { background: var(--rsb-btt-hover-bg); color: var(--rsb-btt-hover-color); }
.rsb-back-to-top:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.rsb-back-to-top svg { width: var(--rsb-btt-icon-size); height: var(--rsb-btt-icon-size); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.rsb-back-to-top svg .rsb-btt-fill { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rsb-back-to-top { transition: none; }
}


/* Sticky / glass header */
.rsb-sticky-header-spacer {
  height: 0;
  pointer-events: none;
}
.rsb-sticky-header-target {
  width: 100%;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease;
}
.rsb-sticky-header-target.is-rsb-sticky {
  position: fixed !important;
  top: var(--rsb-admin-bar-offset, 0px);
  right: 0;
  left: 0;
  z-index: 99998;
  margin: 0 !important;
  background: var(--rsb-sticky-bg, rgba(255,255,255,.78)) !important;
  border-bottom: 1px solid var(--rsb-sticky-border, rgba(229,231,235,.55));
  box-shadow: var(--rsb-sticky-shadow, 0 8px 16px rgba(15,23,42,.14));
  -webkit-backdrop-filter: blur(var(--rsb-sticky-blur, 14px)) saturate(140%);
  backdrop-filter: blur(var(--rsb-sticky-blur, 14px)) saturate(140%);
  animation: rsb-sticky-header-in .24s ease both;
}
@keyframes rsb-sticky-header-in {
  from { opacity: .92; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rsb-sticky-header-target,
  .rsb-sticky-header-target.is-rsb-sticky { transition: none; animation: none; }
}
