/*
Theme Name: STASERA Basis
Author: STASERA
Description: Die reduzierte STASERA-Grundseite: Original-Signet, Wortmarke und ausschliesslich AGB und Impressum im Footer. Eigenständige Variante ohne Page-Builder.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stasera-basis
Tags: one-column, theme-options, editor-style
*/

:root {
  --stb-bg: #060c15;
  --stb-ink: #f6f8fc;
  --stb-muted: #a6b5c9;
  --stb-blue: #79caff;
  --stb-rule: rgba(147, 181, 221, .16);
  --stb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--stb-ink);
  background: var(--stb-bg);
  font-family: var(--stb-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
body.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100svh - 32px); }
::selection { background: #1558b0; color: #fff; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { color: var(--stb-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--stb-blue);
  outline-offset: 5px;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 500; text-wrap: balance; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }
.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;
}
.stb-skip:focus {
  position: fixed !important; z-index: 10000;
  top: 16px; left: 16px;
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  clip: auto; background: #fff; color: #060c15;
}
#main:focus { outline: none; }

/* A single quiet screen. No menu, introduction or brand panels. */
.stb-splash {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 70px 24px 64px;
  background: radial-gradient(ellipse 410px 350px at 50% 47%, rgba(16, 58, 109, .15), transparent 75%);
}
.stb-identity { width: 100%; text-align: center; }
.stb-mark {
  display: block;
  width: clamp(176px, 19vw, 238px);
  height: auto;
  margin: 0 auto 35px;
  object-fit: contain;
}
.stb-wordmark {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .27em;
  text-indent: .27em;
  overflow-wrap: normal;
}
.stb-company-form {
  margin: 16px 0 0;
  color: var(--stb-blue);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .44em;
  text-indent: .44em;
}
.stb-footer {
  flex: 0 0 auto;
  width: min(680px, calc(100% - 64px));
  margin: 0 auto;
  padding: 20px 0 max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--stb-rule);
}
.stb-legal-nav { display: flex; justify-content: center; align-items: center; gap: 34px; }
.stb-legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  font-size: 12px;
  letter-spacing: .035em;
  color: var(--stb-muted);
  text-decoration: none;
}
.stb-legal-nav a:hover, .stb-legal-nav a[aria-current="page"] { color: var(--stb-ink); }
.stb-legal-nav a:hover { text-decoration: underline; }

/* Standard WordPress content on the two legal destinations. */
.stb-header {
  width: min(920px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid var(--stb-rule);
}
.stb-home-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; text-decoration: none; }
.stb-home-link img { width: 31px; height: 29px; object-fit: contain; }
.stb-home-link span { font-size: 13px; letter-spacing: .19em; }
.stb-document {
  flex: 1;
  width: min(760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 60px 0 80px;
}
.stb-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--stb-muted); text-decoration: none; font-size: 12px; }
.stb-document h1 { margin: 0 0 32px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; }
.stb-document h2 { margin: 2em 0 .75em; font-size: 1.5rem; }
.stb-document h3 { margin: 1.75em 0 .75em; font-size: 1.2rem; }
.stb-content { color: #bac7d9; }
.stb-content strong { color: var(--stb-ink); }
.stb-content a { color: var(--stb-blue); }
.stb-content ul, .stb-content ol { padding-left: 1.5em; }
.stb-content li { margin-bottom: .5em; }
.stb-content blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.5em; border-left: 2px solid var(--stb-blue); }
.stb-content table { width: 100%; border-collapse: collapse; }
.stb-content th, .stb-content td { padding: 10px; border: 1px solid var(--stb-rule); text-align: left; }
.stb-content pre, .stb-content .wp-block-table { overflow-x: auto; }
.stb-content pre { padding: 1em; background: #0e1b2b; }
.stb-content hr { border: 0; border-top: 1px solid var(--stb-rule); margin: 2em 0; }
.stb-content .aligncenter { display: block; margin-inline: auto; }
.stb-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.stb-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.stb-content::after { content: ""; display: table; clear: both; }
.stb-content .wp-caption { max-width: 100%; }
.stb-content .wp-caption-text, .stb-content figcaption { color: var(--stb-muted); font-size: .875em; }
.stb-content input, .stb-content textarea { max-width: 100%; padding: 10px; border: 1px solid var(--stb-rule); background: #0e1b2b; color: var(--stb-ink); }
.stb-content input[type="submit"] { cursor: pointer; min-height: 44px; }
.stb-content .page-links { margin-top: 24px; }
.stb-content .page-links a { display: inline-flex; padding: 6px 12px; min-height: 44px; }
.stb-entry + .stb-entry { border-top: 1px solid var(--stb-rule); padding-top: 40px; margin-top: 40px; }
.stb-pagination { margin-top: 40px; }
.stb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 782px) {
  body.admin-bar { min-height: calc(100vh - 46px); min-height: calc(100svh - 46px); }
}
@media (max-width: 480px) {
  .stb-splash { padding: 54px 20px 48px; }
  .stb-mark { margin-bottom: 28px; }
  .stb-wordmark { font-size: clamp(1.65rem, 7.5vw, 2.1rem); letter-spacing: .23em; text-indent: .23em; }
  .stb-company-form { font-size: 10px; margin-top: 14px; }
  .stb-footer { width: calc(100% - 48px); padding-top: 14px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .stb-header, .stb-document { width: calc(100% - 48px); }
  .stb-header { padding: 14px 0; }
  .stb-document { padding: 32px 0 56px; }
}
@media (max-height: 580px) and (min-width: 481px) {
  .stb-splash { padding: 28px 24px; }
  .stb-mark { width: 130px; margin-bottom: 20px; }
  .stb-wordmark { font-size: 2rem; }
  .stb-company-form { margin-top: 8px; font-size: 10px; }
  .stb-footer { padding: 8px 0 10px; }
}
@media print {
  body { display: block; min-height: 0; background: white; color: black; }
  .stb-splash { background: none; padding: 40px 0; }
  .stb-header, .stb-footer, .stb-back { display: none; }
  .stb-document { width: 100%; padding: 0; }
  .stb-content, .stb-content strong, .stb-content a { color: black; }
  .stb-company-form { color: #245a96; }
}
