/*
Theme Name: Klarseite Landing
Description: Ein schnelles, barrierearmes One-Page-Theme für eine minimalistische Landingpage mit flexiblen Kontaktoptionen.
Version: 1.1.0
Author: Christoph Schymura
Text Domain: klarseite
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2.0 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-logo, custom-colors, custom-menu, accessibility-ready, responsive-layout
*/

:root {
  --accent: #356df3;
  --accent-rgb: 53, 109, 243;
  --surface: #f5f7fb;
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #5e6879;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 24px 70px rgba(25, 38, 67, 0.12);
  --radius-large: clamp(1.5rem, 3vw, 2.25rem);
  --content: 74rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #090d15;
    --surface-strong: #111722;
    --text: #f4f7fb;
    --muted: #aab3c1;
    --line: rgba(255, 255, 255, 0.13);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  pointer-events: none;
}

body::before {
  top: -20rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0));
}

body::after {
  bottom: -24rem;
  left: -18rem;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0));
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: #111827;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - clamp(2rem, 6vw, 6rem)), var(--content));
  margin-inline: auto;
}

.site-header {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.site-header__inner {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding,
.site-branding a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-branding .brand-mark {
  width: clamp(2.25rem, 5vw, 2.7rem);
  height: auto;
  flex: 0 0 auto;
}

.site-branding .brand-name {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  letter-spacing: -0.035em;
}

.site-branding .brand-tld {
  color: var(--accent);
}

.site-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-status::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.3rem rgba(var(--accent-rgb), 0.12);
  content: "";
}

.landing-main {
  display: grid;
  min-height: calc(100vh - 12.5rem);
  min-height: calc(100svh - 12.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 8vh, 6.5rem);
}

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.6rem, 6vw, 5.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  top: -14rem;
  right: -13rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 68%);
  content: "";
}

.hero-content {
  width: min(100%, 55rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.35rem;
  color: var(--accent);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.65rem, 8.4vw, 6.9rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-intro {
  max-width: 42rem;
  margin: clamp(1.4rem, 4vw, 2.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2.3vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.contact-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.82rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  font-size: 0.96rem;
  font-weight: 690;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.14);
  transform: translateY(-2px);
}

.contact-button--primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.contact-button--primary:hover {
  color: #fff;
}

.contact-button svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-content,
.standard-content {
  width: min(100%, 52rem);
  margin: clamp(2rem, 6vw, 4rem) auto 0;
}

.standard-main {
  min-height: calc(100vh - 12rem);
  padding-block: clamp(2rem, 7vw, 5rem);
}

.standard-card {
  padding: clamp(1.4rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.entry-title {
  margin-top: 0;
  font-size: clamp(2rem, 6vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
  line-height: 1.15;
}

.entry-content p,
.entry-content li {
  color: var(--muted);
}

.entry-content a {
  color: var(--accent);
}

.entry-content .alignwide {
  width: min(68rem, calc(100vw - 2rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.site-footer {
  padding-block: 1.7rem 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  color: var(--muted);
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--text);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 43rem) {
  .site-shell {
    width: min(calc(100% - 1.4rem), var(--content));
  }

  .site-status {
    font-size: 0;
  }

  .site-status::before {
    width: 0.65rem;
    height: 0.65rem;
  }

  .site-branding .brand-mark {
    width: 2.2rem;
  }

  .landing-main {
    min-height: auto;
    padding-block: 1.35rem 3rem;
  }

  .hero-card {
    min-height: min(36rem, calc(100vh - 9rem));
    min-height: min(36rem, calc(100svh - 9rem));
    display: flex;
    align-items: center;
  }

  .contact-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-button {
    width: 100%;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (background: color-mix(in srgb, white, transparent)) {
  .hero-card {
    background: var(--surface-strong);
  }
}

@media print {
  body::before,
  body::after,
  .site-status {
    display: none;
  }

  .hero-card,
  .standard-card {
    border: 1px solid #bbb;
    box-shadow: none;
  }
}
