/*
Theme Name: Schutzkreis Site
Theme URI: https://schutzkreis.app/
Author: Schutzkreis
Author URI: https://schutzkreis.app/
Description: Eigenstaendiges WordPress-Theme fuer Schutzkreis mit individueller Startseite, Pflegediensteseite und cleanen Rechtstext-Seiten.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: schutzkreis-site
*/

:root {
  --sk-ink: #152334;
  --sk-ink-soft: #607386;
  --sk-line: rgba(21, 35, 52, 0.1);
  --sk-blue: #2f61b7;
  --sk-blue-deep: #173f7b;
  --sk-blue-soft: #eef5ff;
  --sk-bg: #f6fbff;
  --sk-white: #ffffff;
  --sk-shadow: 0 18px 48px rgba(17, 39, 71, 0.08);
  --sk-radius: 28px;
  --sk-container: 920px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--sk-ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(92, 201, 151, 0.08), transparent 16%),
    radial-gradient(circle at 85% 12%, rgba(67, 152, 245, 0.1), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, var(--sk-bg) 58%, #f9fcff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
}

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

a {
  color: inherit;
}

.sk-shell {
  min-height: 100vh;
}

.sk-container {
  width: min(var(--sk-container), calc(100% - 32px));
  margin: 0 auto;
}

.sk-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 253, 255, 0.88);
  border-bottom: 1px solid rgba(21, 35, 52, 0.05);
}

.sk-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sk-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.sk-brand-mark {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 63, 123, 0.1);
}

.sk-brand-copy {
  display: grid;
  gap: 3px;
}

.sk-brand-copy small {
  color: var(--sk-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sk-brand-copy strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.sk-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sk-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sk-line);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.sk-main {
  padding: 40px 0 56px;
}

.sk-card {
  padding: 32px;
  border-radius: var(--sk-radius);
  border: 1px solid var(--sk-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--sk-shadow);
}

.sk-page-header {
  margin-bottom: 28px;
}

.sk-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--sk-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sk-page-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.sk-page-header p {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--sk-ink-soft);
  font-size: 18px;
}

.sk-legal-shell {
  display: grid;
  gap: 24px;
}

.sk-legal-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 97, 183, 0.12), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(92, 201, 151, 0.09), transparent 24%),
    rgba(255, 255, 255, 0.9);
}

.sk-legal-hero::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 97, 183, 0.12) 0%, rgba(47, 97, 183, 0.02) 58%, transparent 72%);
  pointer-events: none;
}

.sk-legal-header {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.sk-legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.sk-legal-header p {
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.62;
}

.sk-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sk-legal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sk-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(17, 39, 71, 0.05);
  color: var(--sk-ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.sk-legal-article {
  padding: 34px;
}

.sk-legal-content {
  max-width: 780px;
  font-size: 17px;
}

.sk-legal-content > :first-child {
  margin-top: 0;
}

.sk-legal-content h2 {
  margin-top: 1.8em;
  padding-top: 20px;
  border-top: 1px solid var(--sk-line);
}

.sk-legal-content h2:first-of-type {
  margin-top: 1.2em;
  padding-top: 0;
  border-top: 0;
}

.sk-legal-content p,
.sk-legal-content ul,
.sk-legal-content ol {
  color: var(--sk-ink-soft);
}

.sk-legal-content p strong,
.sk-legal-content li strong,
.sk-legal-content h2,
.sk-legal-content h3,
.sk-legal-content h4 {
  color: var(--sk-ink);
}

.sk-legal-content a {
  color: var(--sk-blue-deep);
}

.sk-legal-content ul li::marker,
.sk-legal-content ol li::marker {
  color: var(--sk-blue);
}

.sk-content {
  font-size: 17px;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.sk-page-header,
.sk-page-header p,
.sk-content p,
.sk-content li,
.sk-content a,
.sk-content h1,
.sk-content h2,
.sk-content h3,
.sk-content h4,
.sk-footer,
.sk-footer a,
.sk-brand-copy,
.sk-brand-copy small,
.sk-brand-copy strong,
.sk-legal-chip {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sk-content h2,
.sk-content h3,
.sk-content h4 {
  margin: 1.6em 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sk-content h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.sk-content h3 {
  font-size: 24px;
}

.sk-content p,
.sk-content ul,
.sk-content ol {
  margin: 0 0 1em;
}

.sk-content ul,
.sk-content ol {
  padding-left: 1.2em;
}

.sk-content strong {
  color: var(--sk-ink);
}

.sk-footer {
  padding: 0 0 48px;
  color: var(--sk-ink-soft);
  font-size: 14px;
}

.sk-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--sk-line);
}

.sk-footer-right {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.sk-footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sk-footer-links a {
  color: inherit;
}

@media (max-width: 860px) {
  .sk-topbar-inner,
  .sk-footer-inner {
    align-items: flex-start;
  }

  .sk-topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
  }

  .sk-brand {
    width: 100%;
  }

  .sk-brand-mark {
    width: 42px;
    height: 42px;
    padding: 7px;
  }

  .sk-brand-copy small {
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .sk-brand-copy strong {
    font-size: 18px;
  }

  .sk-nav {
    display: flex;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .sk-nav::-webkit-scrollbar {
    display: none;
  }

  .sk-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .sk-footer-right {
    justify-items: start;
  }

  .sk-card {
    padding: 24px;
  }

  .sk-legal-article {
    padding: 24px;
  }

  .sk-page-header {
    margin-bottom: 22px;
  }

  .sk-page-header h1 {
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.14;
    letter-spacing: -0.03em;
  }

  .sk-page-header p {
    font-size: 14px;
    line-height: 1.62;
  }

  .sk-legal-meta {
    gap: 8px;
    margin-top: 16px;
  }

  .sk-legal-header h1 {
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .sk-legal-header p {
    font-size: 13px;
    line-height: 1.56;
  }

  .sk-legal-chip {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .sk-content {
    font-size: 15px;
    line-height: 1.62;
  }

  .sk-content h2 {
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .sk-content h3 {
    font-size: 17px;
    line-height: 1.22;
  }
}
