:root {
  --c-forest: #40513B;
  --c-moss: #628141;
  --c-sand: #E5D9B6;
  --c-amber: #E67E22;
  --c-ink: #1e1f1c;
  --space-1: 0.5rem;
  --space-2: 0.9rem;
  --space-3: 1.2rem;
  --space-4: 1.8rem;
  --space-5: 2.8rem;
  --shadow-soft: 0 14px 32px rgba(35, 40, 30, 0.12);
  --shadow-crisp: 0 10px 18px rgba(36, 49, 33, 0.16);
  --radius-pill: 999px;
  --radius-card: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  color: var(--c-ink);
  background: linear-gradient(150deg, #f6f2e7 0%, #ece5d3 45%, #f8f5ec 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--c-forest);
}

a:hover {
  color: var(--c-amber);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p,
li {
  max-width: 72ch;
}

.site-header {
  padding: var(--space-3) 3.4vw;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
}

.header-row.reverse {
  flex-direction: row-reverse;
}

.brand-note {
  display: block;
}

.brand-note img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.brand-note img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.brand-note:hover img {
  transform: rotate(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .brand-note img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .brand-note img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .brand-note img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .brand-note img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  background: rgba(64, 81, 59, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.45rem;
}

.pill-nav a {
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pill-nav a[aria-current="page"] {
  background: var(--c-forest);
  color: #fff;
}

.pill-nav a:hover {
  background: rgba(230, 126, 34, 0.15);
  transform: translateY(-1px);
}

main {
  padding: 0 3.4vw 3.4rem;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-pane {
  padding: clamp(1.2rem, 2.4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  animation: liftIn 0.55s ease both;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--c-moss);
}

.disclaimer-inline {
  font-size: 0.92rem;
  background: #fff4df;
  padding: 0.6rem;
  border-left: 3px solid var(--c-amber);
  border-radius: 8px;
}

.mosaic-pane {
  display: grid;
  grid-template-columns: repeat(6, minmax(10px, 1fr));
  gap: var(--space-2);
  min-height: 260px;
}

.mosaic {
  background: #f8f4e6;
  border: 1px dashed rgba(64, 81, 59, 0.35);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mosaic:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: var(--shadow-crisp);
}

.mosaic.a {
  grid-column: span 4;
  background: #eff4e6;
}

.mosaic.b {
  grid-column: span 2;
  background: #f9eddc;
}

.mosaic.c {
  grid-column: span 6;
}

.timeline-band {
  margin: 1rem 0 2.6rem;
  background: var(--c-forest);
  color: #fff;
  border-radius: 24px 6px 24px 6px;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.timeline-band ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.masonry-grid {
  column-gap: 1.4rem;
  margin-bottom: 2.6rem;
}

.masonry-grid article {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease;
}

.masonry-grid article:hover {
  transform: translateY(-2px);
}

.doc-head {
  font-weight: 700;
  color: var(--c-moss);
}

.faq-and-limits {
  display: grid;
  gap: var(--space-3);
  margin-bottom: 2.4rem;
}

.faq-box,
.limits-box {
  border-radius: 16px;
  background: #fff;
  padding: 1rem;
}

.faq-item {
  border-bottom: 1px solid #eee3cb;
  padding: 0.55rem 0;
}

.faq-item p {
  display: none;
  margin: 0.45rem 0 0;
}

.faq-item.open p {
  display: block;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.cross-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cross-links a {
  text-decoration: none;
  background: #fff;
  padding: 1rem;
  border-radius: 16px 3px 16px 3px;
  border: 1px solid rgba(64, 81, 59, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cross-links a:hover {
  transform: translateY(-3px);
  border-color: var(--c-amber);
}

.service-index {
  margin: 1rem 0 2.2rem;
  display: grid;
  gap: 0.9rem;
}

.service-index details {
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(64, 81, 59, 0.14);
}

.service-index summary {
  font-weight: 600;
  cursor: pointer;
}

.weekly-planner {
  margin: 0 0 2.3rem;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
}

.weekday-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.day-btn {
  border: 1px solid rgba(64, 81, 59, 0.25);
  background: #f6f2e7;
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.7rem;
}

.day-btn.active {
  background: var(--c-moss);
  color: #fff;
}

.day-note {
  margin: 0;
  padding: 0.75rem;
  background: #f9f7ef;
  border-radius: 12px;
}

.site-footer {
  padding: 2rem 3.4vw;
  background: #26322a;
  color: #ebf0e2;
  display: grid;
  gap: 1rem;
}

.site-footer h2 {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #f6e6bf;
}

.site-footer.slim {
  display: block;
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(14, 22, 17, 0.2);
  padding: 1rem;
  animation: cookieRise 0.45s ease both;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button,
.primary-btn,
form button {
  border: 0;
  border-radius: 999px;
  padding: 0.52rem 1rem;
  cursor: pointer;
  background: var(--c-forest);
  color: #fff;
  text-decoration: none;
}

.cookie-actions button:nth-child(2) {
  background: #5f695f;
}

.cookie-actions button:nth-child(3) {
  background: var(--c-amber);
}

dialog {
  border: 0;
  border-radius: 12px;
  max-width: 420px;
  width: calc(100% - 2rem);
}

.cookie-dialog {
  display: grid;
  gap: 0.8rem;
}

.stacked-main,
.about-flow,
.contact-shell,
.policy-page,
.imprint-layout,
.thanks-layout {
  max-width: 1040px;
  margin: 0 auto;
}

.document-layout {
  background: #fff;
  border-left: 6px solid var(--c-forest);
  border-radius: 8px;
  padding: 1.2rem;
}

.side-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.side-notes aside {
  background: #fff;
  padding: 1rem;
  border-radius: 14px;
}

.regulatory-strip {
  margin-top: 1rem;
  background: linear-gradient(92deg, #f4ecd8, #f8f5ec);
  border-radius: 14px;
  padding: 1rem;
  border-left: 4px solid var(--c-amber);
}

.regulatory-strip ul {
  margin: 0.5rem 0 0;
}

.filter-head {
  margin-bottom: 1rem;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid rgba(64, 81, 59, 0.33);
  background: #f7f3e9;
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.9rem;
}

.chip.active {
  background: var(--c-forest);
  color: #fff;
}

.practice-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.practice-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  border-top: 5px solid var(--c-moss);
}

.practice-card.is-hidden {
  display: none;
}

.practice-card[data-level="low"] {
  border-top-color: #7a9a59;
}

.practice-card[data-level="medium"] {
  border-top-color: var(--c-amber);
}

.practice-card[data-level="calm"] {
  border-top-color: #40513B;
}

.practice-lab {
  margin-top: 1.3rem;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.practice-output {
  margin-top: 0.6rem;
  background: #f8f4e9;
  border-radius: 10px;
  padding: 0.7rem;
}

.offset-panel {
  margin-left: 7vw;
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
}

.two-column-notes {
  display: grid;
  gap: 1rem;
}

.two-column-notes article {
  background: #fff;
  padding: 1rem;
  border-radius: 14px;
}

.milestone-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.milestone-grid article {
  background: #fff;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px dashed rgba(64, 81, 59, 0.32);
}

.contact-intro {
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card,
.contact-meta {
  background: #fff;
  padding: 1rem;
  border-radius: 16px;
}

form {
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  border: 1px solid #c6ccb8;
  border-radius: 10px;
  padding: 0.6rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(230, 126, 34, 0.45);
  border-color: var(--c-amber);
}

input.invalid,
textarea.invalid {
  border-color: #ba3e2c;
  background: #fff4f2;
}

.field-error {
  min-height: 1.1rem;
  margin: 0;
  color: #9e2f20;
  font-size: 0.88rem;
}

.gdpr-line {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

iframe {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 12px;
}

.contact-availability {
  margin-top: 1rem;
  font-size: 0.95rem;
  background: #f8f1e3;
  border-radius: 10px;
  padding: 0.75rem;
}

.policy-page {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1.6rem;
}

.policy-page.alt {
  border-top: 6px solid var(--c-amber);
}

.policy-page nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.policy-page nav a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #f3efdf;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.imprint-layout {
  background: #fff;
  padding: 1rem;
  margin-top: 1.6rem;
  border-radius: 12px;
}

.imprint-layout dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 0.9rem;
}

.thanks-layout {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 2rem;
}

.thanks-layout section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.site-notice {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  opacity: 0.84;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cookieRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .split-hero {
    grid-template-columns: 1fr 1fr;
  }

  .masonry-grid {
    columns: 2;
  }

  .faq-and-limits {
    grid-template-columns: 1.5fr 1fr;
  }

  .side-notes {
    grid-template-columns: 1fr 1fr;
  }

  .two-column-notes {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .milestone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}