/* H.A.G. Terradeals GmbH | site styles */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --green-900: #1B2E2A;
  --green-800: #23403A;
  --green-700: #3E6B5E;
  --sage: #9DB3A9;
  --terra: #C0592E;
  --terra-dark: #A2471F;
  --terra-light: #E8956B;
  --tint: #F1F4F2;
  --line: #D5DDD9;
  --text: #1F2A27;
  --muted: #5F6E68;
  --white: #FFFFFF;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(27, 46, 42, .06), 0 8px 24px rgba(27, 46, 42, .06);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--terra-light); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green-900); color: var(--white); padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--green-900); color: #DCE5E1; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--terra-light); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--terra); color: var(--white); }
.btn--primary:hover { background: var(--terra-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--outline { border-color: var(--green-900); color: var(--green-900); }
.btn--outline:hover { background: var(--green-900); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand img { height: 30px; width: auto; }
@media (max-width: 400px) { .brand img { height: 24px; } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 26px; list-style: none; }
.nav__list a {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--green-900); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__list a:hover { color: var(--terra); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--terra); }
.nav .btn { padding: 11px 20px; font-size: .88rem; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; color: var(--green-900); cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current="page"] { color: var(--terra); border-bottom-color: var(--line); }
  .nav .btn { margin-top: 18px; justify-content: center; }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}

/* ---------- Hero ---------- */
.hero { background: var(--green-900); color: #DCE5E1; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--terra-light); }
.hero .lead { color: #C9D6D0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__art img { width: 100%; max-width: 520px; margin-left: auto; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; font-size: .9rem; color: var(--sage); list-style: none; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--terra-light); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__art img { max-width: 260px; margin: 0 auto; }
}

.page-hero { background: var(--green-900); color: #C9D6D0; position: relative; overflow: hidden; }
.page-hero .container { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); position: relative; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: #C9D6D0; }
.page-hero__mark { position: absolute; right: var(--gutter); top: 50%; width: 220px; transform: translateY(-50%); opacity: .9; }
@media (max-width: 860px) { .page-hero__mark { display: none; } }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--tint); border-radius: var(--radius-lg); padding: 28px; }
.section--tint .card { background: var(--white); box-shadow: var(--shadow); }
.card h3 { margin-top: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card--dark, .section--tint .card.card--dark { background: var(--green-900); color: #C9D6D0; }
.card--dark h3 { color: var(--white); }
.card--dark p { color: #C9D6D0; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-900); color: var(--white);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--terra { background: var(--terra); }
.icon-badge--mid { background: var(--green-700); }

.line-card { border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; }
.line-card--light { background: var(--tint); }
.line-card--dark { background: var(--green-900); color: #DCE5E1; }
.line-card--dark h3 { color: var(--white); }
.line-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.line-card__head h3 { font-size: 1.45rem; margin: 0; }
.line-card__sub { font-size: .95rem; color: var(--muted); margin: 2px 0 0; }
.line-card--dark .line-card__sub { color: var(--sage); }
.checklist { list-style: none; display: grid; gap: 10px; margin: 8px 0 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--terra); }
.line-card--dark .checklist .icon { color: var(--terra-light); }
.line-card .btn { margin-top: auto; align-self: flex-start; }
.line-card--dark .btn--outline { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.line-card--dark .btn--outline:hover { background: var(--white); color: var(--green-900); }

/* ---------- Steps ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }
.phase { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.section:not(.section--tint) .phase { background: var(--tint); box-shadow: none; }
.phase__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--white);
  background: var(--green-900); padding: 10px 18px 10px 14px; border-radius: 999px; margin-bottom: 14px;
}
.phase--2 .phase__tag { background: var(--green-700); }
.phase--3 .phase__tag { background: var(--terra); }
.phase__tag span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: .85rem; }
.phase__receive { font-size: .9rem; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.steps { list-style: none; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--green-900);
}
.phase--2 .steps li::before { color: var(--green-700); }
.phase--3 .steps li::before { color: var(--terra); }
.steps strong { display: block; font-family: var(--font-head); color: var(--green-900); font-size: .98rem; }
.steps span { color: var(--muted); font-size: .93rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--tint); border-radius: var(--radius-lg); }
.stat { padding: 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--terra); line-height: 1; margin-bottom: 12px; }
.stat__label { font-family: var(--font-head); font-weight: 700; color: var(--green-900); }
.stat p { color: var(--muted); font-size: .95rem; margin: 4px 0 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.facts { width: 100%; border-collapse: collapse; font-size: .97rem; }
.facts th, .facts td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-family: var(--font-head); font-weight: 700; color: var(--green-700); width: 38%; padding-right: 16px; font-size: .92rem; }

.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.matrix thead th { font-family: var(--font-head); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--green-900); }
.matrix td.dot, .matrix th.dot { text-align: center; width: 150px; }
.matrix tbody th { font-family: var(--font-head); color: var(--green-900); font-size: .98rem; }
.matrix td { color: var(--muted); font-size: .95rem; }
.dot-yes, .dot-no { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.dot-yes { background: var(--terra); }
.dot-no { border: 2px solid #B9C7C1; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .matrix { min-width: 640px; }

/* ---------- Panels ---------- */
.panel-dark { background: var(--green-900); color: #DCE5E1; border-radius: var(--radius-lg); padding: 32px; }
.panel-dark h3 { color: var(--white); }
.panel-dark .label { font-family: var(--font-head); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-light); font-weight: 700; margin-bottom: 8px; }
.panel-dark .promise { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.35; color: var(--white); margin: 0; }
.panel-dark .german { font-style: italic; color: var(--sage); font-size: .93rem; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--green-700); }

.person { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.person__avatar { width: 88px; height: 88px; border-radius: 50%; background: var(--terra); color: var(--white); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; }
.person__name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--green-900); margin: 0; }
.person__role { color: var(--terra); font-weight: 600; margin: 2px 0 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pills li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: .92rem; color: var(--green-900); font-weight: 500; }
.section:not(.section--tint) .pills li { background: var(--tint); border-color: transparent; }
.section:not(.section--tint) .phase .pills li { background: var(--white); }
.phase .pills li { font-size: .85rem; padding: 6px 14px; }

.icon-list { list-style: none; display: grid; gap: 22px; }
.icon-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.icon-list h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.icon-list p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--terra); color: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 6px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta p { margin: 0; color: #FBE3D7; max-width: 56ch; }
.cta .btn { background: var(--white); color: var(--terra-dark); }
.cta .btn:hover { background: var(--green-900); color: var(--white); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--green-900); margin-bottom: 6px; }
.field .req { color: var(--terra); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(62, 107, 94, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--terra); }
.field__error { color: var(--terra-dark); font-size: .85rem; margin-top: 6px; display: none; }
.field.has-error .field__error { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--terra); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--radius); font-size: .97rem; }
.form-status.is-ok { display: block; background: #E6F0EC; color: var(--green-900); border: 1px solid #B9D3C8; }
.form-status.is-error { display: block; background: #FBEAE3; color: var(--terra-dark); border: 1px solid #F0C3AE; }
.contact-card { background: var(--tint); border-radius: var(--radius-lg); padding: 32px; }
.contact-card .icon-list { gap: 18px; }
.contact-card .icon-badge { width: 44px; height: 44px; }
.contact-card .icon-badge .icon { width: 20px; height: 20px; }
.contact-card .icon-list li { grid-template-columns: 44px 1fr; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #B7C7C0; font-size: .93rem; }
.site-footer a { color: #DCE5E1; text-decoration: none; }
.site-footer a:hover { color: var(--terra-light); }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding: 72px 0 48px; }
.footer-main h4 { color: var(--white); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-main ul { list-style: none; display: grid; gap: 9px; }
.footer-brand img { width: 100%; max-width: 300px; height: auto; margin-bottom: 20px; }
.footer-bottom { border-top: 1px solid var(--green-700); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 22px; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-l { margin-top: 48px; }
.text-muted { color: var(--muted); }
.note { font-size: .92rem; color: var(--muted); }
