/* ==========================================================================
   MakerToolHub – Layout: Header, Hero, Abschnitte, Preise, Footer, Dialog
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2 * var(--gutter), var(--container-narrow));
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 2px 14px rgba(15, 44, 33, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--green-900);
  text-decoration: none;
}
.logo:hover { color: var(--green-900); }

.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-text span {
  color: var(--green-600);
}

.logo-light,
.logo-light:hover {
  color: var(--white);
}
.logo-light .logo-text span {
  color: #f0a458;
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü (Standard) */
.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--space-4) var(--gutter) var(--space-5);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 16px 30px rgba(15, 44, 33, 0.1);
}

.nav-panel.is-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-bottom: var(--space-4);
}

.nav-list a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover {
  color: var(--green-700);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.nav-actions .btn {
  width: 100%;
  min-height: 48px;
}

/* Desktop-Navigation */
@media (min-width: 1300px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel,
  .nav-panel.is-open {
    position: static;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    max-height: none;
    overflow: visible;
    padding: 0 0 0 var(--space-5);
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 0;
    margin: 0;
  }

  .nav-list a {
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .nav-list a:hover {
    background: var(--green-50);
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
  }
  .nav-actions .btn {
    width: auto;
    min-height: 40px;
  }
}

/* ---------- Abschnitte ---------- */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-alt {
  background: #f4f7f5;
}

.section-head {
  max-width: 740px;
  margin-bottom: var(--space-7);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--green-600);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-soft);
  font-size: var(--text-md);
  line-height: 1.7;
}

.section-footnote {
  margin: var(--space-6) 0 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

/* Raster */
.grid {
  display: grid;
  gap: var(--space-5);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background: linear-gradient(180deg, #f4f7f5 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: var(--space-5);
}

.hero-copy .lead {
  max-width: 580px;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  list-style: none;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-list .ico-check {
  margin-top: 0;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
  }
}

/* Produktdarstellung im Hero */
.mock-browser {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.mock-url {
  flex: 1;
  max-width: 220px;
  margin-left: 12px;
  padding: 3px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

.mock-page {
  position: relative;
  height: 580px;
  background: var(--white);
  overflow: hidden;
}

.mock-skeleton {
  padding: 24px 22px;
}

.sk {
  background: var(--gray-100);
  border-radius: 6px;
}
.sk-nav   { width: 42%; height: 14px; margin-bottom: 28px; }
.sk-title { width: 72%; height: 30px; margin-bottom: 18px; background: var(--green-100); }
.sk-line  { width: 100%; height: 11px; margin-bottom: 10px; }
.sk-short { width: 62%; }
.sk-row   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.sk-box   { height: 96px; border-radius: 10px; }

.hero-widget-mount {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.hero-widget-mount > * {
  pointer-events: auto;
}

.mount-fallback {
  margin: 0;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.hero-visual-note {
  margin: var(--space-4) 0 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* ---------- Live-Demo-Abschnitt ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.demo-actions {
  margin: var(--space-5) 0;
}

.demo-note {
  margin: 0;
  padding: var(--space-4);
  background: var(--orange-100);
  border-left: 4px solid var(--orange-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--orange-900);
  font-size: var(--text-sm);
}

.demo-card {
  padding: clamp(24px, 3vw, 36px);
}

.demo-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  list-style: none;
  counter-reset: demo;
}

.demo-steps li {
  position: relative;
  padding-left: 48px;
  color: var(--ink-soft);
  counter-increment: demo;
}

.demo-steps li::before {
  content: counter(demo);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green-100);
  border-radius: 50%;
  color: var(--green-800);
  font-size: var(--text-sm);
  font-weight: 700;
}

.demo-steps strong {
  color: var(--green-900);
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Problem / Lösung ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.compare-col {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.compare-before {
  background: var(--white);
}

.compare-after {
  background: var(--green-50);
  border-color: var(--green-200);
}

.mark-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.mark-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
}

.example-box {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
}

.example-structured {
  border-style: solid;
  border-color: var(--green-200);
}

.example-box figcaption {
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-box blockquote {
  color: var(--ink-soft);
  font-style: italic;
}

.example-box dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.example-box dl > div {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.example-box dt {
  flex: 0 0 72px;
  color: var(--ink-muted);
  font-weight: 700;
}

.example-box dd {
  color: var(--ink);
}

@media (max-width: 860px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* ---------- Branchen ---------- */
.industry-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}

.ind-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-2);
  background: var(--green-100);
  border-radius: var(--radius-md);
  color: var(--green-800);
}

.industry-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.industry-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.industry-card .ind-meta {
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-100);
  color: var(--ink-muted);
  font-size: var(--text-xs);
}
.ind-meta span {
  color: var(--green-800);
  font-weight: 700;
}

.industry-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- So funktioniert's ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  list-style: none;
}

.step {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-4);
  background: var(--green-800);
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

.embed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: var(--space-8);
}

.embed-copy p {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .embed-grid { grid-template-columns: 1fr; }
}

/* ---------- Funktionen ---------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0 0 var(--space-6);
  list-style: none;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-card h3 {
  margin: var(--space-2) 0 0;
  font-size: 1.1rem;
}
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

/* ---------- Vorteile ---------- */
.benefit-grid {
  gap: var(--space-6) var(--space-6);
}

.benefit {
  padding-top: var(--space-4);
  border-top: 3px solid var(--green-800);
}
.benefit h3 {
  font-size: 1.15rem;
}
.benefit p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Preise ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
}

.price-card.is-featured {
  border: 2px solid var(--green-800);
  box-shadow: var(--shadow-md);
}

.price-flag {
  position: absolute;
  top: -15px;
  left: 28px;
  margin: 0;
  padding: 3px 14px;
  background: var(--green-800);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
}

.price-card h3 {
  margin-bottom: var(--space-1);
  font-size: 1.4rem;
}

.price-desc {
  margin-bottom: var(--space-5);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--space-2);
}

.price-amount {
  color: var(--green-900);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-amount-text {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.price-unit {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.price-setup {
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--gray-200);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  font-weight: 600;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  list-style: none;
  font-size: var(--text-sm);
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
}

.price-card .btn {
  margin-top: auto;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- Anfrageformular ---------- */
.inquiry-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.inquiry-copy {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.inquiry-form {
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.form-hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

@media (max-width: 960px) {
  .inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-copy { position: static; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-8) var(--space-6);
  background: var(--green-900);
  color: #cfe0d6;
}

.site-footer a {
  color: #cfe0d6;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: var(--space-6);
}

.footer-brand p {
  max-width: 340px;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 var(--space-4);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-title-gap {
  margin-top: var(--space-6);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  font-size: var(--text-sm);
}

.footer-placeholder {
  color: #9db8a9;
  font-style: italic;
}
.footer-placeholder small {
  font-size: inherit;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--text-sm);
}
.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Branchen-Dialog ---------- */
.industry-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  overflow: auto;
}

.industry-dialog::backdrop {
  background: rgba(10, 32, 24, 0.6);
}

.industry-dialog-inner {
  padding: clamp(18px, 3vw, 28px);
}

.industry-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.industry-dialog-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.industry-dialog-head .eyebrow {
  margin-bottom: 4px;
}

.industry-dialog-intro {
  margin-bottom: var(--space-4);
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.dialog-widget-mount {
  margin-bottom: var(--space-4);
}

.dialog-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  text-align: center;
}

/* ---------- Mount-Punkt der schwebenden Demo ---------- */
.demo-root {
  position: static;
}