/*
Theme Name: Praxis Jan Franke V1
Theme URI: https://www.jan-franke.com/
Author: Niklas Kneipp
Description: Website Praxis Jan Franke.
Version: 1.0.0
Text Domain: praxis-jan-franke
*/

/* =========================
   ANPASSEN: Farben / Look
========================= */
:root {
  color-scheme: light;
  --primary: #12344d;
  --primary-soft: #214f72;
  --accent: #d17b49;
  --accent-soft: #f3dccb;
  --header-tint: #f2e8df;
  --header-tint-strong: #eadbcd;
  --header-line: rgba(120, 90, 68, 0.14);
  --bg: #eef2f6;
  --surface: rgba(255, 251, 245, 0.78);
  --surface-strong: #fffdf9;
  --text: #16212a;
  --muted: #5d6a74;
  --line: rgba(22, 33, 42, 0.1);
  --shadow: 0 24px 70px rgba(18, 52, 77, 0.12);
  --shadow-soft: 0 12px 30px rgba(18, 52, 77, 0.08);
  --radius-panel: 34px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  color-scheme: light;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top left, rgba(223, 196, 171, 0.22), transparent 22%),
    radial-gradient(circle at top right, rgba(25, 75, 109, 0.1), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(207, 227, 241, 0.22), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #f6f1ea 0%, var(--bg) 44%, #e6edf4 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 34px
    );
  opacity: 0.42;
}

body::after {
  background:
    radial-gradient(circle at 82% 16%, rgba(223, 196, 171, 0.14), transparent 18%),
    radial-gradient(circle at 74% 62%, rgba(24, 68, 102, 0.08), transparent 22%);
  filter: blur(14px);
  opacity: 0.8;
}

a {
  color: inherit;
}

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

.page-orb {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
}

.page-orb-left {
  top: -90px;
  left: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(209, 123, 73, 0.2), transparent 70%);
}

.page-orb-right {
  right: -90px;
  top: 140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(18, 52, 77, 0.14), transparent 72%);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
.brand,
.btn,
.btn-submit,
.section-label,
.eyebrow,
.card-label,
.site-nav a,
.contact-form label {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* LAYOUT */
.site-header,
.section,
.hero,
.site-footer,
.contact-layout {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px 16px 18px;
  margin-top: 16px;
  border: 1px solid var(--header-line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(249, 242, 236, 0.94), rgba(241, 231, 221, 0.8));
  backdrop-filter: blur(14px);
  box-shadow:
    0 16px 42px rgba(120, 90, 68, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -18px;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(238, 228, 217, 0.34), rgba(238, 228, 217, 0));
  filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-role {
  color: #7b6452;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-nav-list a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #756354;
  text-decoration: none;
  background: rgba(255, 250, 246, 0.34);
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-menu-parent > a,
.site-nav .current_page_item > a,
.site-nav .current_page_parent > a,
.site-nav .current_page_ancestor > a,
.site-nav .current-page-ancestor > a,
.site-nav-list a:hover,
.site-nav-list a.is-current,
.site-nav-list .current-menu-item > a,
.site-nav-list .current-menu-ancestor > a,
.site-nav-list .current-menu-parent > a,
.site-nav-list .current_page_item > a,
.site-nav-list .current_page_parent > a,
.site-nav-list .current_page_ancestor > a,
.site-nav-list .current-page-ancestor > a {
  color: var(--text);
  background: rgba(255, 250, 246, 0.76);
  border-color: rgba(120, 90, 68, 0.12);
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(120, 90, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.site-nav a.is-current,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav-list a.is-current,
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a {
  color: #131d25;
  background: rgba(255, 252, 248, 0.94);
  border-color: rgba(120, 90, 68, 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(120, 90, 68, 0.12);
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.72);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 40;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: #6e5240;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero {
  display: block;
  padding: 42px 0 48px;
}

.home-shell .hero {
  padding-top: 18px;
}

.hero-panel,
.hero-card,
.card,
.contact-panel,
.contact-form,
.legal-section,
.cta,
.process-panel,
.timeline {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(135deg, rgba(255, 247, 241, 0.72) 0%, rgba(248, 250, 252, 0) 34%),
    linear-gradient(220deg, rgba(239, 226, 214, 0.42) 0%, rgba(239, 226, 214, 0) 24%),
    linear-gradient(180deg, rgba(232, 240, 247, 0.22) 0%, rgba(232, 240, 247, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 249, 252, 0.8));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 42px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(209, 123, 73, 0.14), transparent 28%),
    radial-gradient(circle at left 18%, rgba(18, 52, 77, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(253, 249, 245, 0.84));
}

.hero-about {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-about-media {
  display: flex;
  justify-content: center;
}

.hero-media-stack {
  position: relative;
  width: min(100%, 440px);
  height: 420px;
}

.practice-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 72%;
  border-radius: 28px 18px 18px 18px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(18, 52, 77, 0.08);
}

.practice-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18%;
  background: linear-gradient(180deg, rgba(244, 239, 232, 0) 0%, rgba(244, 239, 232, 0.2) 100%);
  pointer-events: none;
}

.practice-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-about-copy {
  position: relative;
  z-index: 1;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 123, 73, 0.16), transparent 68%);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(120, 90, 68, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.section-label,
.card-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-soft);
}

.hero h1,
.section h1,
.section h2 {
  margin: 0 0 16px;
  line-height: 1.06;
}

.hero h1 {
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  max-width: none;
}

.hero-text,
.section-text,
.card p,
.contact-panel p,
.legal-section p,
.timeline-item p,
.contact-note p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy .hero-text + .hero-text {
  margin-top: 14px;
}

.hero-editor-content p {
  margin: 0 0 14px;
}

.hero-editor-content p:last-child {
  margin-bottom: 0;
}

.hero-editor-content strong {
  color: var(--text);
}

.hero-editor-content a {
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.home-editor-shell {
  padding-top: 18px;
  padding-bottom: 40px;
}

.home-editor-content > :first-child {
  margin-top: 0;
}

.home-editor-content > :last-child {
  margin-bottom: 0;
}

.home-editor-content .jf-home-hero {
  position: relative;
  margin: 0;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(135deg, rgba(255, 247, 241, 0.72) 0%, rgba(248, 250, 252, 0) 34%),
    linear-gradient(220deg, rgba(239, 226, 214, 0.42) 0%, rgba(239, 226, 214, 0) 24%),
    linear-gradient(180deg, rgba(232, 240, 247, 0.22) 0%, rgba(232, 240, 247, 0) 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(253, 249, 245, 0.84));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.home-editor-content .jf-home-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(120, 90, 68, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.home-editor-content .jf-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 123, 73, 0.16), transparent 68%);
  pointer-events: none;
}

.home-editor-content .wp-block-columns.jf-home-hero-inner {
  gap: 28px;
  align-items: center;
  margin-bottom: 0;
}

.home-editor-content .jf-home-stage-column {
  position: relative;
}

.home-editor-content .jf-home-hero-stage {
  position: relative;
  width: min(100%, 440px);
  height: 420px;
  margin: 0 auto;
}

.home-editor-content .jf-home-hero-stage .wp-block-image {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(18, 52, 77, 0.1);
}

.home-editor-content .jf-home-hero-stage .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-editor-content .jf-home-hero-stage .wp-block-image.is-style-jf-stage-top {
  top: 0;
  left: 0;
  width: 72%;
  height: 72%;
  border-radius: 28px 18px 18px 18px;
  z-index: 1;
}

.home-editor-content .jf-home-hero-stage .wp-block-image.is-style-jf-stage-top img {
  border-radius: 28px 18px 18px 18px;
}

.home-editor-content .jf-home-hero-stage .wp-block-image.is-style-jf-stage-bottom {
  right: 0;
  bottom: 0;
  width: min(54%, 238px);
  height: 312px;
  border-radius: 18px 18px 28px 18px;
  z-index: 2;
}

.home-editor-content .jf-home-hero-stage .wp-block-image.is-style-jf-stage-bottom img {
  border-radius: 18px 18px 28px 18px;
  object-position: center 34%;
}

.home-editor-content .jf-home-copy {
  position: relative;
  z-index: 1;
}

.home-editor-content .jf-home-copy > *:first-child {
  margin-top: 0;
}

.home-editor-content .jf-home-copy > *:last-child {
  margin-bottom: 0;
}

.home-editor-content .jf-home-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  line-height: 1.06;
}

.home-editor-content .jf-home-copy p:not(.section-label) {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.home-editor-content .hero-actions {
  margin-top: 30px;
}

.home-editor-content .wp-block-button.btn {
  margin: 0;
}

.home-editor-content .wp-block-button.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #b96839);
  box-shadow: 0 16px 34px rgba(209, 123, 73, 0.28);
}

.btn,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    filter 0.2s ease;
}

.btn:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.03);
}

.btn-primary,
.btn-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #b96839);
  box-shadow: 0 16px 34px rgba(209, 123, 73, 0.28);
}

.hero-actions .btn {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.92rem;
  box-shadow: 0 10px 20px rgba(209, 123, 73, 0.18);
}

.contact-form .btn-submit {
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 46px;
  padding: 11px 22px;
  font-size: 0.94rem;
  box-shadow: 0 12px 24px rgba(209, 123, 73, 0.2);
  align-self: flex-start;
}

.portrait-shell {
  position: relative;
  width: 100%;
  border-radius: 20px 20px 28px 20px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.portrait-shell-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(54%, 238px);
  z-index: 2;
}

.portrait-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18%;
  border-radius: 0 0 26px 18px;
  background: linear-gradient(180deg, rgba(244, 239, 232, 0) 0%, rgba(244, 239, 232, 0.12) 100%);
  pointer-events: none;
  z-index: 2;
}

.portrait-image {
  width: 100%;
  height: 312px;
  border-radius: 18px 18px 28px 18px;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.92) contrast(1.01) brightness(1.02);
  transform: scale(1);
  box-shadow: 0 16px 34px rgba(18, 52, 77, 0.08);
}

.section {
  padding: 22px 0 52px;
}

.legal-section,
.intro-section {
  padding-top: 14px;
}

#ueber-mich {
  scroll-margin-top: 86px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.card::before,
.contact-panel::before,
.contact-form::before,
.legal-section::before,
.process-panel::before,
.timeline::before,
.cta::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(120, 90, 68, 0.06);
  pointer-events: none;
}

.card::after,
.contact-panel::after,
.contact-form::after,
.legal-section::after,
.process-panel::after,
.timeline::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0) 58%, rgba(228, 238, 247, 0.14) 100%);
  pointer-events: none;
}

.contact-panel,
.contact-form,
.legal-section,
.process-panel,
.timeline,
.cta {
  position: relative;
  overflow: hidden;
}

.card-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
}

.process-panel,
.timeline {
  padding: 30px;
}

.process-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.timeline-item + .timeline-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 33, 42, 0.08);
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.page-shell {
  padding-top: 10px;
  padding-bottom: 24px;
}

.intro-section {
  padding-bottom: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding-bottom: 48px;
}

.contact-page .intro-section {
  padding-top: 10px;
}

body.page-template-page-contact::after,
body.page-template-page-contact-php::after {
  background:
    radial-gradient(circle at 82% 16%, rgba(223, 196, 171, 0.12), transparent 18%),
    radial-gradient(circle at 74% 62%, rgba(24, 68, 102, 0.035), transparent 18%);
  filter: blur(10px);
  opacity: 0.42;
}

body.page-template-page-contact .page-orb-right,
body.page-template-page-contact-php .page-orb-right {
  opacity: 0.18;
  background: radial-gradient(circle, rgba(18, 52, 77, 0.08), transparent 74%);
}

body.page-template-page-contact .page-orb-left,
body.page-template-page-contact-php .page-orb-left {
  opacity: 0.3;
}

.contact-page .intro-section {
  position: relative;
  z-index: 1;
}

.contact-panel,
.contact-form,
.legal-section {
  padding: 32px;
}

.contact-page .contact-panel,
.contact-page .contact-form {
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.76) 0%, rgba(248, 250, 252, 0) 36%),
    linear-gradient(220deg, rgba(239, 226, 214, 0.32) 0%, rgba(239, 226, 214, 0) 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 248, 243, 0.82));
  box-shadow:
    0 22px 48px rgba(120, 90, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.contact-form h2,
.contact-panel h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.contact-panel > p {
  margin: 0 0 14px;
}

.contact-page .contact-panel > p,
.contact-page .section-text,
.contact-page .field-note,
.contact-page .checkbox-row span,
.contact-page .contact-note p {
  color: #66727b;
}

.contact-panel > p:last-of-type {
  margin-bottom: 0;
}

.contact-panel .card-label {
  margin-bottom: 18px;
}

.contact-panel h2 + p {
  margin-bottom: 20px;
}

.contact-note {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(242, 246, 250, 0.68));
}

.contact-page .contact-note {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.86), rgba(247, 243, 238, 0.74));
  border-color: rgba(120, 90, 68, 0.1);
}

.contact-note strong {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.86));
  font: inherit;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 241, 0.9));
  border-color: rgba(120, 90, 68, 0.12);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(18, 52, 77, 0.18);
  border-color: var(--primary-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 4px rgba(18, 52, 77, 0.05);
}

.field-note {
  margin: -4px 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 24px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 246, 250, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.contact-page .checkbox-row {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.88), rgba(247, 243, 238, 0.76));
  border-color: rgba(120, 90, 68, 0.12);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.checkbox-row span {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.checkbox-row a {
  color: var(--primary);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.success-message {
  min-height: 28px;
  margin-top: 6px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
}

.success-message.is-success {
  color: #1c7c54;
}

.success-message.is-error {
  color: #bf3d3d;
}

.legal-section h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.legal-list {
  margin: 0 0 16px 22px;
  padding: 0;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--primary);
}

.legal-editor-content p,
.legal-editor-content ul,
.legal-editor-content ol {
  color: var(--muted);
}

.legal-editor-content,
.legal-editor-content p,
.legal-editor-content li,
.legal-editor-content a,
.legal-editor-content strong,
.legal-editor-content em {
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.legal-editor-content > :last-child {
  margin-bottom: 0;
}

.legal-editor-content h2,
.legal-editor-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.legal-editor-content ul,
.legal-editor-content ol {
  margin: 0 0 16px 22px;
  padding: 0;
}

.legal-editor-content li + li {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0 40px;
  color: var(--muted);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-page .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (max-width: 980px) {
  .section-grid,
  .cards,
  .split-panel,
  .contact-layout,
  .hero-about {
    grid-template-columns: 1fr;
  }

  .home-editor-content .wp-block-columns.jf-home-hero-inner {
    flex-direction: column;
  }

  .hero-media-stack {
    width: min(100%, 390px);
    height: 372px;
  }
}

@media (max-width: 920px) {
  .site-header,
  .cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .site-header {
    position: relative;
    gap: 14px;
    padding-right: 68px;
  }

  .brand {
    max-width: calc(100% - 12px);
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 14px;
    right: 14px;
    pointer-events: auto;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(120, 90, 68, 0.1);
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav a,
  .site-nav-list a {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 11px 12px;
    font-size: 0.96rem;
    white-space: normal;
  }

  .hero-panel,
  .hero-card,
  .card,
  .contact-panel,
  .contact-form,
  .legal-section,
  .cta,
  .process-panel,
  .timeline {
    border-radius: 26px;
  }

  .home-editor-content .jf-home-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .home-editor-content .jf-home-hero-stage {
    width: min(100%, 390px);
    height: 372px;
  }

  .portrait-shell-overlay {
    right: 0;
    bottom: 0;
    width: min(52%, 190px);
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
      radial-gradient(circle at top left, rgba(223, 196, 171, 0.26), transparent 28%),
      radial-gradient(circle at top right, rgba(25, 75, 109, 0.12), transparent 34%),
      radial-gradient(circle at 18% 78%, rgba(207, 227, 241, 0.24), transparent 28%),
      linear-gradient(135deg, #f6f1ea 0%, var(--bg) 46%, #e4ebf3 100%);
  }

  .site-header,
  .section,
  .hero,
  .site-footer,
  .contact-layout {
    width: min(100% - 20px, 1140px);
  }

  .site-header {
    padding: 12px 58px 12px 12px;
    border-radius: 24px;
  }

  .brand {
    align-items: center;
    gap: 0;
    max-width: calc(100% - 64px);
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-role {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }

  .nav-toggle {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .site-nav a,
  .site-nav-list a {
    font-size: 0.9rem;
  }

  #ueber-mich {
    scroll-margin-top: 110px;
  }

  .hero-copy,
  .contact-panel,
  .contact-form,
  .legal-section,
  .cta,
  .process-panel,
  .timeline {
    padding: 20px;
  }

  .hero-panel,
  .card,
  .contact-panel,
  .contact-form,
  .legal-section,
  .cta,
  .process-panel,
  .timeline {
    background:
      linear-gradient(135deg, rgba(255, 246, 239, 0.78) 0%, rgba(248, 250, 252, 0) 40%),
      linear-gradient(220deg, rgba(239, 226, 214, 0.5) 0%, rgba(239, 226, 214, 0) 30%),
      linear-gradient(180deg, rgba(232, 240, 247, 0.24) 0%, rgba(232, 240, 247, 0) 32%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 249, 252, 0.84));
  }

  .card::after,
  .contact-panel::after,
  .contact-form::after,
  .legal-section::after,
  .process-panel::after,
  .timeline::after,
  .cta::after {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0) 52%, rgba(228, 238, 247, 0.18) 100%);
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.4vw, 2.15rem);
    max-width: none;
    line-height: 1.04;
  }

  .hero-about {
    gap: 20px;
  }

  .hero-about-media {
    order: -1;
  }

  .hero-media-stack {
    width: min(100%, 320px);
    height: 302px;
  }

  .portrait-shell-overlay {
    right: 0;
    bottom: 0;
    width: min(50%, 154px);
  }

  .portrait-image {
    height: 198px;
  }

  .section h1,
  .section h2 {
    overflow-wrap: anywhere;
  }

  .legal-section h1 {
    font-size: clamp(1.8rem, 8.8vw, 2.3rem);
  }

  .legal-editor-content h2,
  .legal-editor-content h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .section-label,
  .card-label {
    margin-bottom: 12px;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .hero-text,
  .section-text,
  .card p,
  .contact-panel p,
  .legal-section p,
  .timeline-item p,
  .contact-note p {
    font-size: 1rem;
  }

  .legal-editor-content ul,
  .legal-editor-content ol {
    margin-left: 18px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .btn {
    min-height: 40px;
    padding: 9px 15px;
    font-size: 0.88rem;
  }

  .contact-form .btn-submit {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .home-editor-content .jf-home-hero {
    padding: 20px;
  }

  .home-editor-content .jf-home-hero::before {
    inset: 12px;
    border-radius: 22px;
  }

  .home-editor-content .jf-home-hero-stage {
    width: min(100%, 320px);
    height: 302px;
  }

  .home-editor-content .jf-home-copy h1 {
    font-size: clamp(1.65rem, 7.4vw, 2.15rem);
    line-height: 1.04;
  }

  .home-editor-content .jf-home-copy p:not(.section-label) {
    font-size: 1rem;
  }

  .contact-form .btn-submit {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 4px;
  }
}

.contact-page .section-label {
  display: none;
}
