:root {
  --green-950: #062418;
  --green-850: #0a3d25;
  --green-700: #0a6f33;
  --green-560: #11943f;
  --leaf-420: #8fd11f;
  --cyan-560: #0587bd;
  --ink: #12231b;
  --muted: #52645a;
  --line: #d9e7dd;
  --soft: #f4faf5;
  --paper: #ffffff;
  --warning: #fff8df;
  --font-logo: "Comfortaa", "Quicksand", "Trebuchet MS", Arial, sans-serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
  --base-font-size: 16px;
  --hero-scale: 1;
  --heading-scale: 1;
  --body-scale: 1;
  --card-radius: 8px;
  --division-accent: var(--green-560);
  --shadow: 0 18px 48px rgba(6, 36, 24, 0.14);
  --image-home-hero: url("../../Logo/Desktop Hintergrundbild.png");
  --image-page-hero: url("../../Logo/Notebook Hintergrund.png");
  --image-section-panel: url("../../Logo/Logo Hintergrund Notebook.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: calc(var(--base-font-size) * var(--body-scale));
  line-height: 1.6;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  color: var(--green-560);
}

.breadcrumb a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 231, 221, 0.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-700);
  font-family: var(--font-logo);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

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

.main-nav a {
  padding: 10px 12px;
  border-radius: var(--card-radius);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.2;
}

.division-menu {
  position: relative;
}

.division-menu summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--card-radius);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  list-style: none;
}

.division-menu summary::-webkit-details-marker {
  display: none;
}

.division-menu summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.division-menu[open] summary::after {
  transform: rotate(-135deg) translateY(2px);
}

.division-menu summary:hover,
.division-menu[open] summary,
.division-menu summary.is-active {
  background: var(--soft);
  color: var(--green-700);
}

.division-menu-list {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: grid;
  min-width: 250px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.division-menu-list a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 650;
}

.division-menu-list a:hover,
.division-menu-list a.is-active {
  background: var(--soft);
  color: var(--green-700);
}

.division-menu-top {
  margin-bottom: 4px;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--line);
  color: var(--green-700) !important;
  font-weight: 800 !important;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--soft);
  color: var(--green-700);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-850);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle {
  flex-direction: column;
  gap: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 82vh, 760px);
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: var(--image-home-hero);
  background-position: center;
  background-size: cover;
}

.hero.is-compact {
  min-height: clamp(420px, 58vh, 560px);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(90deg, rgba(6, 36, 24, 0.86), rgba(6, 36, 24, 0.5) 52%, rgba(6, 36, 24, 0.14));
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ken-burns-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease;
  animation: ken-burns-zoom 26s ease-in-out infinite alternate;
}

.ken-burns-slide.is-active {
  opacity: 1;
}

@keyframes ken-burns-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.18);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .ken-burns-slide {
    animation: none !important;
    transition: none !important;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #d8f6ca;
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: calc(clamp(2.55rem, 7vw, 5.35rem) * var(--hero-scale));
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  width: min(640px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green-700);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.button:hover {
  background: var(--green-560);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.light {
  border-color: var(--line);
  background: var(--paper);
  color: var(--green-700);
}

.button.light:hover {
  border-color: var(--green-560);
  background: var(--soft);
}

.section {
  padding: 84px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--green-950);
  color: #ffffff;
}

.section.dark .section-kicker,
.section.dark .muted {
  color: #bde8cb;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--green-700);
  font-family: var(--font-logo);
  font-weight: 750;
}

.section h2,
.section h3,
.page-hero h1 {
  color: inherit;
}

.section h2 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: calc(clamp(2rem, 4vw, 3.15rem) * var(--heading-scale));
  line-height: 1.1;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 12px;
  font-family: var(--font-logo);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  justify-content: center;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-card,
.portal-card,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(6, 36, 24, 0.06);
}

.card,
.service-card {
  padding: 26px;
}

.service-card {
  display: flex;
  min-height: 265px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card .service-mark,
.feature-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-700), var(--leaf-420));
  color: #ffffff;
  font-family: var(--font-logo);
  font-weight: 800;
}

.service-card p,
.card p {
  margin: 0 0 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 52px;
  align-items: center;
}

.image-panel {
  min-height: 390px;
  border-radius: 8px;
  background-image: var(--image-section-panel);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.14em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--leaf-420);
  color: var(--green-950);
  content: "✓";
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.division-card {
  position: relative;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 30px;
  border-radius: calc(var(--card-radius) + 6px);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  color: #ffffff;
  transition: transform 0.3s ease;
}

.division-card::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(6, 36, 24, 0.1) 0%, rgba(6, 36, 24, 0.55) 55%, rgba(6, 36, 24, 0.94) 100%);
  content: "";
}

.division-card:hover {
  transform: translateY(-6px);
}

.division-card > * {
  position: relative;
  z-index: 1;
}

.division-card-eyebrow {
  margin: 0 0 8px;
  color: #d8f6ca;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.division-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-logo);
  font-size: 1.55rem;
  line-height: 1.2;
}

.division-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.division-card .text-link {
  color: #ffffff;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.stat {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-logo);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #c6ebd0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  color: #ffffff;
  background-image: var(--image-page-hero);
  background-position: center;
  background-size: cover;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(6, 36, 24, 0.9), rgba(10, 111, 51, 0.72));
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero p {
  width: min(730px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.breadcrumb {
  margin-bottom: 22px;
  color: #d9f5cf;
  font-weight: 700;
}

.breadcrumb-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}

.breadcrumb-tags [data-breadcrumb-division-tags] {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-tags-label {
  color: #d9f5cf;
  font-weight: 700;
}

.division-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 750;
}

.division-tag:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

[data-division-page] .eyebrow {
  color: var(--division-accent);
}

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].reveal-ready.is-revealed {
  opacity: 1;
  transform: none;
}

[data-tilt] {
  transition: transform 0.15s ease;
  will-change: transform;
}

.site-header {
  transition: min-height 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-shrunk .header-inner {
  min-height: 58px;
}

.site-header.is-shrunk {
  box-shadow: 0 12px 30px rgba(6, 36, 24, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-ready,
  .site-header,
  [data-tilt] {
    transition: none;
  }
}

.process {
  counter-reset: process;
}

.process .card {
  position: relative;
  padding-top: 62px;
}

.process .card::before {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-700);
  color: #ffffff;
  counter-increment: process;
  content: counter(process);
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.process-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-visual-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.process-visual-card .visual {
  min-height: 180px;
  background-position: center;
  background-size: cover;
}

.process-visual-card .copy {
  padding: 24px;
}

.process-visual-card strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-logo);
  font-size: 1.35rem;
  line-height: 1.2;
}

.process-visual-card p {
  margin: 10px 0 0;
  color: #c6ebd0;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border-radius: 8px;
  background: var(--green-850);
  color: #ffffff;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.cta-band p {
  margin: 0;
  color: #d7efd8;
}

.site-footer {
  padding: 54px 0 30px;
  background: var(--green-950);
  color: #dceee1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) repeat(3, minmax(150px, 0.46fr));
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--font-logo);
  font-weight: 800;
}

.footer-logo img {
  width: 42px;
  height: 42px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: var(--font-logo);
}

.site-footer p,
.site-footer ul {
  margin: 0;
}

.site-footer .muted {
  color: #a9c7b2;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #dceee1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #a9c7b2;
  font-size: 0.94rem;
}

.legal-content {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 42px;
  font-size: 1.65rem;
}

.legal-content p {
  margin: 10px 0;
}

.legal-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.notice {
  padding: 22px;
  border: 1px solid #f3d37a;
  border-radius: 8px;
  background: var(--warning);
  color: #5f4b12;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 24px;
  align-items: start;
}

.settings-panel {
  padding: 24px;
}

.settings-panel h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--green-850);
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.toggle-row {
  display: grid;
  gap: 12px;
}

.toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--green-700);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.settings-status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf7ec;
  color: var(--green-850);
  font-weight: 750;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.captcha-box {
  min-height: 78px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.consent input {
  margin-top: 0.36em;
  accent-color: var(--green-700);
}

.contact-status {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf7ec;
  color: var(--green-850);
  font-weight: 750;
}

.seo-copy {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.98rem;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.settings-tabs button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-850);
  cursor: pointer;
  font-weight: 800;
}

.settings-tabs button.is-active {
  border-color: var(--green-700);
  background: var(--green-700);
  color: #ffffff;
}

.settings-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
}

.settings-login-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.settings-login-card h1 {
  margin: 0 0 12px;
  font-family: var(--font-logo);
}

.settings-shell[hidden],
.settings-login[hidden] {
  display: none !important;
}

.settings-hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.settings-hero h1 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: calc(clamp(2rem, 4vw, 3.15rem) * var(--heading-scale));
  line-height: 1.1;
  letter-spacing: 0;
}

.settings-hero p {
  width: min(730px, 100%);
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.settings-page-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(380px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.settings-preview-panel {
  position: sticky;
  top: 96px;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.preview-frame {
  width: 100%;
  height: 680px;
  border: 0;
  background: #ffffff;
}

.content-editor {
  display: grid;
  gap: 14px;
}

.content-editor h3 {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--green-850);
  font-family: var(--font-logo);
}

.customer-editor {
  display: grid;
  gap: 18px;
}

.customer-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.customer-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.customer-card-head h3 {
  margin: 0;
  color: var(--green-850);
  font-family: var(--font-logo);
}

.range-field {
  display: grid;
  gap: 8px;
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--green-700);
}

.swatch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.color-field {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: end;
}

.color-field input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: #ffffff;
}

.font-sample {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
}

.font-sample strong {
  display: block;
  font-family: var(--font-logo);
  font-size: 1.35rem;
}

.font-sample span {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
}

.settings-logout {
  margin-left: auto;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.portal-login-section {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.portal-auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 0.48fr);
  gap: 24px;
  align-items: stretch;
}

.portal-login-card h1,
.portal-welcome h1 {
  margin: 0 0 22px;
  font-family: var(--font-logo);
  font-size: calc(clamp(2.1rem, 5vw, 3.8rem) * var(--heading-scale));
  line-height: 1.05;
  letter-spacing: 0;
}

.portal-login-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-dashboard {
  display: grid;
  gap: 24px;
}

.portal-welcome {
  max-width: 780px;
}

.portal-status-grid,
.portal-files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portal-files-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.portal-progress {
  overflow: hidden;
  height: 12px;
  margin: 20px 0 12px;
  border-radius: 999px;
  background: var(--soft);
}

.portal-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--leaf-420));
}

.portal-timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-timeline li {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 34px;
  color: var(--muted);
}

.portal-timeline li::before {
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.portal-timeline li.is-done::before,
.portal-timeline li.is-active::before {
  border-color: var(--green-700);
  background: var(--green-700);
}

.portal-timeline strong {
  color: var(--ink);
}

.portal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.portal-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.portal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portal-gallery figcaption {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.portal-gallery a {
  font-weight: 800;
}

.portal-card {
  padding: 24px;
}

.portal-card h2,
.portal-card h3 {
  margin-top: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf7ec;
  color: var(--green-850);
  font-weight: 800;
}

.document-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.document-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(6, 36, 24, 0.06);
}

.product-card-image {
  aspect-ratio: 4 / 3;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.product-card-body h3 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 1.2rem;
  line-height: 1.25;
}

.product-card-body p {
  margin: 0;
  color: var(--muted);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-card-price strong {
  color: var(--green-700);
  font-family: var(--font-logo);
  font-size: 1.35rem;
}

.product-card-price span {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-stock {
  font-size: 0.85rem;
  font-weight: 700;
}

.product-stock.is-low {
  color: #a35b00;
}

.product-stock.is-out {
  color: #b3261e;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.product-detail-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--card-radius);
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.price-breakdown {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--soft);
}

.price-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.price-breakdown-row.is-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.quantity-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-field input {
  width: 70px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.cart-table-wrap {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.cart-table th {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
}

.cart-remove {
  color: var(--muted);
  font-weight: 700;
}

.cart-summary {
  width: min(360px, 100%);
  margin-left: auto;
}

.checkout-notice {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .division-menu {
    width: 100%;
  }

  .division-menu summary {
    width: 100%;
  }

  .division-menu-list {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .section-head,
  .split,
  .settings-layout,
  .settings-page-grid,
  .portal-auth-layout,
  .portal-status-grid,
  .portal-files-grid,
  .portal-shell,
  .footer-grid,
  .cta-band,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.two,
  .stats-band,
  .process-visuals,
  .portal-gallery,
  .contact-layout,
  .division-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 76vh;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand span {
    max-width: 190px;
    overflow-wrap: anywhere;
  }

  .main-nav {
    top: 68px;
    left: 14px;
    right: 14px;
  }

  .section {
    padding: 62px 0;
  }

  .hero-content {
    padding: 44px 0;
  }

  .hero-actions,
  .section-actions,
  .settings-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card,
  .settings-panel,
  .portal-card,
  .cta-band {
    padding: 20px;
  }
}
