/*
Theme Name: Raumklima-Lotse
Theme URI: https://raumklimalotse.de/
Author: Raumklima-Lotse
Description: Schlankes, barrierearmes Editorial-Theme für Raumklima-Lotse.
Version: 1.1.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: raumklima-lotse
*/

:root {
  --rkl-ink: #102c32;
  --rkl-ink-soft: #345159;
  --rkl-paper: #f7f4ec;
  --rkl-surface: #ffffff;
  --rkl-mint: #dff3e8;
  --rkl-teal: #087f78;
  --rkl-teal-dark: #05625d;
  --rkl-sun: #ffd166;
  --rkl-sky: #dcedf5;
  --rkl-line: #d9e2df;
  --rkl-radius: 1.25rem;
  --rkl-shadow: 0 18px 50px rgba(16, 44, 50, 0.1);
  --rkl-content: 74rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rkl-paper);
  color: var(--rkl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

a {
  color: var(--rkl-teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rkl-teal);
}

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

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.65rem, 7vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

p {
  margin: 0 0 1.25rem;
}

.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;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  background: var(--rkl-surface);
  color: var(--rkl-ink);
}

.rkl-wrap {
  width: min(calc(100% - 2rem), var(--rkl-content));
  margin-inline: auto;
}

.rkl-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 226, 223, 0.86);
  background: rgba(247, 244, 236, 0.93);
  backdrop-filter: blur(16px);
}

.rkl-header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.rkl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rkl-ink);
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.rkl-brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 0.8rem 0.8rem 0.8rem 0.25rem;
  background: var(--rkl-teal);
  color: white;
  box-shadow: 0 8px 20px rgba(8, 127, 120, 0.22);
}

.rkl-brand-mark img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}

.rkl-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rkl-nav a {
  color: var(--rkl-ink);
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
}

.rkl-nav a:hover {
  color: var(--rkl-teal);
}

.rkl-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--rkl-ink);
  font: inherit;
  font-weight: 750;
}

.rkl-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) 0 5rem;
}

.rkl-hero::before,
.rkl-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  filter: blur(2px);
}

.rkl-hero::before {
  top: -10rem;
  right: -7rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(220, 237, 245, 0.96), rgba(220, 237, 245, 0));
}

.rkl-hero::after {
  bottom: -14rem;
  left: -12rem;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(223, 243, 232, 0.95), rgba(223, 243, 232, 0));
}

.rkl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.rkl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(8, 127, 120, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--rkl-teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rkl-eyebrow::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rkl-teal);
  content: "";
}

.rkl-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.rkl-highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.rkl-highlight::after {
  position: absolute;
  right: -0.05em;
  bottom: 0.08em;
  left: -0.05em;
  z-index: -1;
  height: 0.24em;
  border-radius: 999px;
  background: var(--rkl-sun);
  content: "";
  transform: rotate(-1deg);
}

.rkl-hero-copy {
  max-width: 42rem;
  color: var(--rkl-ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.32rem);
}

.rkl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.rkl-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--rkl-teal);
  border-radius: 0.8rem;
  background: var(--rkl-teal);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rkl-button:hover {
  background: var(--rkl-teal-dark);
  color: white;
  box-shadow: 0 10px 25px rgba(8, 127, 120, 0.2);
  transform: translateY(-2px);
}

.rkl-button--ghost {
  background: transparent;
  color: var(--rkl-teal-dark);
}

.rkl-button--ghost:hover {
  background: var(--rkl-mint);
  color: var(--rkl-teal-dark);
  box-shadow: none;
}

.rkl-hero-visual {
  position: relative;
  min-height: 29rem;
}

.rkl-room-card {
  position: absolute;
  inset: 1.5rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(16, 44, 50, 0.08);
  border-radius: 2rem;
  background: linear-gradient(155deg, #e8f5f2 0 52%, #cde5df 52%);
  box-shadow: var(--rkl-shadow);
}

.rkl-window {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 9rem;
  height: 11rem;
  border: 0.8rem solid white;
  background: linear-gradient(145deg, #a9d7ea, #eef9fc);
  box-shadow: 0 12px 25px rgba(16, 44, 50, 0.08);
}

.rkl-window::before,
.rkl-window::after {
  position: absolute;
  background: white;
  content: "";
}

.rkl-window::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 0.45rem;
}

.rkl-window::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.45rem;
}

.rkl-device {
  position: absolute;
  right: 3.6rem;
  bottom: 3rem;
  width: 8rem;
  height: 11rem;
  border-radius: 1.5rem 1.5rem 1rem 1rem;
  background: white;
  box-shadow: 0 20px 35px rgba(16, 44, 50, 0.18);
}

.rkl-device::before {
  position: absolute;
  top: 1.4rem;
  right: 1.2rem;
  left: 1.2rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--rkl-line);
  box-shadow: 0 1rem 0 var(--rkl-line), 0 2rem 0 var(--rkl-line);
  content: "";
}

.rkl-device::after {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--rkl-teal);
  content: "";
  transform: translateX(-50%);
}

.rkl-plant {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  width: 7rem;
  height: 8rem;
}

.rkl-plant::before {
  position: absolute;
  right: 1rem;
  bottom: 2.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 80% 10% 70% 20%;
  background: var(--rkl-teal);
  content: "";
  transform: rotate(24deg);
}

.rkl-plant::after {
  position: absolute;
  right: 0.8rem;
  bottom: 0;
  width: 5.2rem;
  height: 3rem;
  border-radius: 0.5rem 0.5rem 1.25rem 1.25rem;
  background: #bf7654;
  content: "";
}

.rkl-metric {
  position: absolute;
  top: 0;
  left: -1.5rem;
  z-index: 2;
  width: 10rem;
  padding: 1rem;
  border: 1px solid rgba(16, 44, 50, 0.08);
  border-radius: 1rem;
  background: var(--rkl-surface);
  box-shadow: var(--rkl-shadow);
}

.rkl-metric strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.rkl-metric span {
  color: var(--rkl-ink-soft);
  font-size: 0.78rem;
}

.rkl-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.rkl-section--white {
  background: var(--rkl-surface);
}

.rkl-section--dark {
  background: var(--rkl-ink);
  color: white;
}

.rkl-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.5fr);
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.rkl-section-heading p {
  color: var(--rkl-ink-soft);
}

.rkl-section--dark .rkl-section-heading p {
  color: #bfd0d3;
}

.rkl-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rkl-topic-card {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--rkl-line);
  border-radius: var(--rkl-radius);
  background: var(--rkl-surface);
  color: var(--rkl-ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rkl-topic-card:hover {
  border-color: rgba(8, 127, 120, 0.45);
  color: var(--rkl-ink);
  box-shadow: var(--rkl-shadow);
  transform: translateY(-5px);
}

.rkl-topic-card:nth-child(2) {
  background: var(--rkl-mint);
}

.rkl-topic-card:nth-child(3) {
  background: var(--rkl-sky);
}

.rkl-card-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 2rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--rkl-ink);
  color: white;
  font-size: 1.3rem;
  font-weight: 900;
}

.rkl-topic-card p {
  color: var(--rkl-ink-soft);
}

.rkl-card-link {
  margin-top: auto;
  color: var(--rkl-teal-dark);
  font-weight: 800;
}

.rkl-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rkl-radius);
  background: rgba(255, 255, 255, 0.14);
}

.rkl-principle {
  padding: 2rem;
  background: var(--rkl-ink);
}

.rkl-principle-number {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--rkl-sun);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rkl-principle p {
  color: #bfd0d3;
}

.rkl-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.5rem;
  background: var(--rkl-sun);
}

.rkl-band h2 {
  max-width: 18ch;
  margin-bottom: 0.5rem;
}

.rkl-band p {
  margin: 0;
  color: #55430e;
}

.rkl-band .rkl-button {
  border-color: var(--rkl-ink);
  background: var(--rkl-ink);
}

.rkl-article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rkl-article-card {
  overflow: hidden;
  border: 1px solid var(--rkl-line);
  border-radius: var(--rkl-radius);
  background: var(--rkl-surface);
}

.rkl-article-card__body {
  padding: 1.5rem;
}

.rkl-article-card h2,
.rkl-article-card h3 {
  margin-bottom: 0.7rem;
}

.rkl-article-card h2 a,
.rkl-article-card h3 a {
  color: var(--rkl-ink);
  text-decoration: none;
}

.rkl-meta {
  color: var(--rkl-ink-soft);
  font-size: 0.85rem;
}

.rkl-content-shell {
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(14rem, 19rem);
  justify-content: space-between;
  gap: 4rem;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.rkl-entry-header {
  margin-bottom: 2.5rem;
}

.rkl-entry-header h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
}

.rkl-entry-content > * {
  max-width: 46rem;
}

.rkl-entry-content h2,
.rkl-entry-content h3 {
  margin-top: 2.8rem;
}

.rkl-entry-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 0.35rem solid var(--rkl-teal);
  background: var(--rkl-mint);
}

.rkl-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.rkl-entry-content th,
.rkl-entry-content td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--rkl-line);
  text-align: left;
}

.rkl-aside {
  align-self: start;
  padding: 1.4rem;
  border: 1px solid var(--rkl-line);
  border-radius: 1rem;
  background: var(--rkl-surface);
}

.rkl-site-footer {
  padding: 4rem 0 2rem;
  background: #092328;
  color: #c9d8da;
}

.rkl-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(10rem, 0.5fr));
  gap: 3rem;
}

.rkl-site-footer .rkl-brand {
  color: white;
}

.rkl-site-footer h2 {
  color: white;
  font-size: 1rem;
  letter-spacing: 0;
}

.rkl-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rkl-site-footer li + li {
  margin-top: 0.55rem;
}

.rkl-site-footer a {
  color: #dce8e9;
}

.rkl-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.82rem;
}

@media (max-width: 880px) {
  .rkl-menu-toggle {
    display: inline-flex;
  }

  .rkl-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 1rem;
    border-bottom: 1px solid var(--rkl-line);
    background: var(--rkl-paper);
  }

  .rkl-nav.is-open {
    display: block;
  }

  .rkl-nav ul {
    width: min(calc(100% - 2rem), var(--rkl-content));
    flex-direction: column;
    align-items: flex-start;
    margin-inline: auto;
  }

  .rkl-hero-grid,
  .rkl-section-heading,
  .rkl-band,
  .rkl-content-shell {
    grid-template-columns: 1fr;
  }

  .rkl-hero-visual {
    min-height: 25rem;
  }

  .rkl-card-grid,
  .rkl-principles,
  .rkl-article-list {
    grid-template-columns: 1fr;
  }

  .rkl-topic-card {
    min-height: 15rem;
  }

  .rkl-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rkl-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rkl-wrap {
    width: min(calc(100% - 1.25rem), var(--rkl-content));
  }

  .rkl-brand {
    font-size: 0.95rem;
  }

  .rkl-hero {
    padding-top: 3.5rem;
  }

  .rkl-hero-visual {
    min-height: 20rem;
  }

  .rkl-window {
    top: 2rem;
    right: 1.5rem;
    width: 7rem;
    height: 8rem;
  }

  .rkl-device {
    right: 2rem;
    bottom: 2rem;
    width: 6rem;
    height: 8rem;
  }

  .rkl-plant {
    bottom: 2rem;
    left: 1.5rem;
    transform: scale(0.8);
    transform-origin: bottom left;
  }

  .rkl-metric {
    left: 0.25rem;
  }

  .rkl-footer-grid {
    grid-template-columns: 1fr;
  }

  .rkl-footer-brand {
    grid-column: auto;
  }

  .rkl-footer-bottom {
    flex-direction: column;
  }
}

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

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