/* ===========================================================================
   Hufbeschlag Liebig — Website
   Komponenten (Button, Tag, Card, Field/Input, SectionHeader) + Seitenlayout.
   Baut auf styles.css (Tokens + Interaktions-States) auf.
   =========================================================================== */

/* --------------------------------------------------------------- LAYOUT -- */
.container {
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -50px;
  z-index: var(--z-toast);
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

.icon { width: 1em; height: 1em; display: inline-block; flex: none; }
.icon--sm { width: 15px; height: 15px; }
.icon--md { width: 22px; height: 22px; }
.icon--lg { width: 26px; height: 26px; }

.icon-sprite { display: none; }

/* -------------------------------------------------------------- BUTTON --- */
.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  letter-spacing: 0.02em;
  line-height: 1;
  border: var(--border-bold) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.hl-btn .icon { font-size: 1.15em; }
.hl-btn--sm { font-size: 13px; padding: 8px 14px; border-radius: var(--radius-sm); }
.hl-btn--md { font-size: 15px; padding: 12px 20px; }
.hl-btn--lg { font-size: 17px; padding: 15px 26px; }
.hl-btn--primary   { background: var(--accent); color: var(--text-on-accent); }
.hl-btn--secondary { background: var(--iron-800); color: var(--paper-100); }
.hl-btn--outline   { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.hl-btn--ghost     { background: transparent; color: var(--text-strong); box-shadow: none; }
.hl-btn--onDark    { background: var(--paper-100); color: var(--iron-900); }

/* --------------------------------------------------------------- CARD ---- */
.hl-card {
  background: var(--surface);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hl-card--dark { background: var(--surface-dark); color: var(--text-on-dark); border-color: var(--line-ink); }
.hl-card--pad-sm { padding: var(--space-4); }
.hl-card--pad-md { padding: var(--space-5); }
.hl-card--pad-lg { padding: var(--space-6); }

/* --------------------------------------------------------- SERVICE CARD -- */
.service-card {
  background: var(--surface);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-card__top { display: flex; align-items: center; justify-content: space-between; }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--copper-100);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.service-card__icon img { width: 28px; height: 28px; }
.service-card__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: var(--w-extra);
  font-size: 21px;
  color: var(--text-strong);
  margin: 0;
  letter-spacing: -0.01em;
  min-height: 2.1em;
}
.service-card__text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}

.service-card__icon--iron   { background: color-mix(in oklab, var(--iron-800) 14%, var(--paper-50)); color: var(--iron-800); }
.service-card__icon--copper { background: var(--copper-100); color: var(--accent); }
.service-card__icon--brass  { background: var(--gold-tint); color: var(--brass-600); }
.service-card__icon--green  { background: var(--green-100); color: var(--green-600); }

.service-card__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 2px 0;
  background: transparent;
  border: none;
  border-top: var(--border-hair) solid var(--line);
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-fast) var(--ease-out);
}
.service-card__trigger:hover { color: var(--accent-hover); }
.service-card__trigger:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.service-card__chevron {
  transition: transform var(--dur-base) var(--ease-out);
  flex: none;
}
.service-card__trigger[aria-expanded="true"] .service-card__chevron {
  transform: rotate(180deg);
}

.service-card__panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.service-card__trigger[aria-expanded="true"] + .service-card__panel-wrap {
  grid-template-rows: 1fr;
}
.service-card__panel { overflow: hidden; }
.service-card__panel-inner { padding-top: var(--space-4); }

.service-card__facts { display: grid; gap: var(--space-3); margin: 0; }
.service-card__facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.service-card__facts dd {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

/* ---------------------------------------------------------------- TAG ---- */
.hl-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-weight: var(--w-medium);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: var(--border) solid transparent;
  white-space: nowrap;
}
.hl-tag--outline { background: transparent; color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------- FIELD ----- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.field__label .required { color: var(--accent); }

.hl-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-strong);
  background: var(--paper-50);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-inset);
}
textarea.hl-input { resize: vertical; }

/* ------------------------------------------------------- SECTION HEADER -- */
.section-header { max-width: none; }
.section-header--center { text-align: center; max-width: 640px; margin-inline: auto; }
.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  font-size: 11.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}
.section-header__eyebrow-line { width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.section-header__title {
  font-family: var(--font-display);
  font-weight: var(--w-extra);
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text-strong);
  margin: 0;
}
.section-header--dark .section-header__title { color: var(--text-on-dark); }
.section-header__lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 16px 0 0;
  max-width: 560px;
}
.section-header--dark .section-header__lead { color: var(--text-on-dark-soft); }
.section-header--center .section-header__lead { margin-inline: auto; }

/* ============================================================== HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--paper-100) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border) solid var(--line);
}
.hl-logo-link { display: inline-flex; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__links a {
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  margin-right: 28px;
}
.site-nav__links a:last-child { margin-right: 0; }
.site-nav__links a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .site-nav__links { display: none; }
  .site-nav { gap: 12px; }
}

/* ================================================================ HERO === */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 85% -10%, var(--copper-100) 0%, var(--paper-100) 55%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 84px 92px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.hero__eyebrow-line { width: 22px; height: 2px; background: var(--accent); }
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 0;
}
.hero__title .accent { color: var(--accent); }
.hero__lead {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 480px;
  margin: 24px 0 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; }
.hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg) !important;
}
.hero__badge-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--gold-tint);
  color: var(--brass-600);
  display: grid;
  place-items: center;
}
.hero__badge-title { font-family: var(--font-display); font-weight: var(--w-extra); font-size: 15px; color: var(--text-strong); }
.hero__badge-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero__media { max-width: none; }
}

/* ============================================================ TRUSTBAR === */
.trustbar { background: var(--iron-800); }
.trustbar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 20px;
}
.trustbar__item { display: flex; align-items: center; gap: 10px; color: var(--paper-100); }
.trustbar__item .icon { color: var(--gold); }
.trustbar__item span:last-child { font-family: var(--font-body); font-weight: var(--w-medium); font-size: 14.5px; }

@media (max-width: 900px) { .trustbar__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trustbar__inner { grid-template-columns: 1fr; } }

/* ============================================================ SERVICES === */
.services { padding-block: 96px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }

/* ================================================================ ABOUT == */
.about { padding-block: 40px 96px; }
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.about__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.about__text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  max-width: 540px;
}
.about__text--primary { color: var(--text); margin: 18px 0 16px; }
.about__text--soft { color: var(--text-soft); margin: 0 0 24px; }
.about__tags { display: flex; flex-wrap: wrap; gap: 9px; }

@media (max-width: 800px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__image { max-width: 420px; margin-inline: auto; }
}

/* ============================================================== PROCESS = */
.process { background: var(--bg-subtle); padding-block: 88px; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.process__step { position: relative; padding-top: 8px; }
.process__num {
  font-family: var(--font-display);
  font-weight: var(--w-black);
  font-size: 56px;
  line-height: 1;
  color: var(--copper-400);
  opacity: 0.55;
}
.process__title { font-family: var(--font-display); font-weight: var(--w-extra); font-size: 22px; color: var(--text-strong); margin: 10px 0 8px; }
.process__text { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text-soft); margin: 0; max-width: 320px; }

@media (max-width: 700px) { .process__grid { grid-template-columns: 1fr; } }

/* =========================================================== SERVICEAREA = */
.service-area { background: var(--surface-dark); color: var(--text-on-dark); padding-block: 92px; }
.service-area__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.service-area__cta { margin-top: 28px; }
.service-area__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: 15px;
  color: var(--paper-100);
  border: var(--border) solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
}
.pill .icon { color: var(--gold); }

@media (max-width: 800px) { .service-area__inner { grid-template-columns: 1fr; } }

/* ================================================================ CONTACT = */
.contact { padding-block: 96px; }
.contact__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
.contact__form { margin-top: 32px; display: grid; gap: 16px; }
.contact__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Honeypot — für Menschen unsichtbar, für einfache Spam-Bots aber im DOM
   vorhanden und ausfüllbar. Aus dem Tab-Fluss und aus Screenreadern entfernt. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.contact__sent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-family: var(--font-body);
  font-weight: var(--w-semibold);
  font-size: 14px;
}
.contact__sent[hidden] { display: none; }

.contact__card { display: grid; gap: 22px; }
.contact__card-row { display: flex; gap: 14px; align-items: flex-start; }
.contact__card-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius-md);
  background: rgba(244, 241, 234, 0.08);
  color: var(--gold);
  display: grid; place-items: center;
}
.contact__card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  margin-bottom: 3px;
}
.contact__card-value, .contact__card-value:link, .contact__card-value:visited {
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  font-size: 18px;
  color: var(--paper-100);
  text-decoration: none;
}
a.contact__card-value:hover { color: var(--paper-100); text-decoration: underline; }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__form-row { grid-template-columns: 1fr; }
}

/* ================================================================ FOOTER = */
.site-footer { background: var(--surface-darkest); color: var(--text-on-dark); padding-block: 48px 36px; }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer__meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-on-dark-soft); }
.site-footer__links { display: flex; gap: 20px; font-family: var(--font-body); font-size: 14px; }
.site-footer__links a { color: var(--text-on-dark-soft); text-decoration: none; }
.site-footer__links a:hover { color: var(--text-on-dark); text-decoration: underline; }
.site-footer__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: var(--border-hair) solid var(--line-on-dark);
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--iron-300);
}

/* ---------------------------------------------------------- LEGAL PAGE --- */
.legal-page {
  max-width: var(--container-sm);
  margin-inline: auto;
  padding: var(--space-10) var(--gutter) var(--space-11);
}
.legal-page h1 { font-size: var(--text-3xl); margin-bottom: var(--space-6); }
.legal-page h2 { font-size: var(--text-xl); margin-top: var(--space-8); }
.legal-page p, .legal-page li { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.legal-page ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-page a { word-break: break-word; }
.legal-page .placeholder {
  background: var(--gold-tint);
  color: var(--brass-600);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-xs);
  font-weight: var(--w-semibold);
}
.legal-page__back { display: inline-block; margin-bottom: var(--space-6); }

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-9) var(--gutter) var(--space-11);
}
.not-found__image {
  width: min(360px, 80vw);
  height: auto;
  margin-bottom: var(--space-2);
  mask-image: radial-gradient(ellipse 68% 68% at 62% 60%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 62% 60%, #000 55%, transparent 100%);
}
.not-found h1 {
  font-size: clamp(28px, 8vw, var(--text-4xl));
  overflow-wrap: break-word;
  max-width: 20ch;
}

/* ---------------------------------------------------- CONSTRUCTION PAGE -- */
.construction-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-9) var(--gutter);
  background: radial-gradient(120% 80% at 85% -10%, var(--copper-100) 0%, var(--paper-100) 55%);
}
.construction-page__logo { margin-bottom: var(--space-6); font-size: 26px; }
.construction-page h1 {
  font-size: clamp(28px, 6vw, var(--text-3xl));
  max-width: 16ch;
}
.construction-page .hero__lead { max-width: 46ch; margin: 0; }
.construction-page__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.construction-page__legal {
  margin-top: var(--space-8);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ------------------------------------------------------ REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
