/* ==========================================================================
   POINT-ERP4 GmbH — www.gettothepoint.de
   Design-Tokens
   ========================================================================== */

:root {
  /* Farben */
  --ink:        #0E1E33;   /* tiefes Navy – Überschriften, dunkle Flächen */
  --ink-70:     #46536A;   /* Navy, aufgehellt – sekundärer Text auf hell */
  --slate:      #5B6577;   /* gedämpfter Fliesstext */
  --paper:      #FBFAF7;   /* warmes Off-White – Seitenhintergrund */
  --surface:    #F1F0EA;   /* Kartenflächen, leichte Abgrenzung */
  --surface-2:  #E8E7E0;   /* etwas dunkler, für Chips/Hover */
  --line:       #DEDCD3;   /* Haarlinie */
  --line-dark:  rgba(251,250,247,0.14);
  --point:      #D2183B;   /* Markenrot – der "Punkt" */
  --point-dark: #A10F2C;   /* Hover/aktiv */
  --point-tint: #FCE7EB;   /* helles Rot für Flächen/Badges */
  --white:      #FFFFFF;

  /* Typografie */
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Sonstiges */
  --radius: 10px;
  --radius-sm: 6px;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(14,30,51,0.04), 0 12px 32px -16px rgba(14,30,51,0.16);
}

/* ==========================================================================
   Reset & Grundlagen
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p { margin: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--point);
  outline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--point);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--point);
  flex: none;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-70);
  margin-top: 0.9rem;
}

.on-dark { color: var(--paper); }
.on-dark .eyebrow { color: #FF6E82; }
.on-dark .eyebrow::before { background: #FF6E82; }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }
.on-dark .lead { color: rgba(251,250,247,0.72); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--point);
  color: var(--white);
}
.btn-primary:hover { background: var(--point-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark-btn {
  border-color: var(--line-dark);
  color: var(--paper);
}
.btn-ghost.on-dark-btn:hover { border-color: var(--paper); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,247,0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.logo .dot { color: var(--point); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-70);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-color: var(--point); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

#nav-check { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-grid > *, .grid-2 > *, .grid-3 > *, .footer-top > *, .contact-card > * {
  min-width: 0;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.hero-title .point-mark {
  color: var(--point);
  margin-left: 0.03em;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-70);
  max-width: 46ch;
  margin-top: 1.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.1rem;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em 0.6em;
}
.hero-trust a { color: var(--ink-70); border-bottom: 1px solid var(--line); }
.hero-trust a:hover { color: var(--point); border-color: var(--point); }

/* Hero visual — abstract "form definition" composition */
.hero-visual { position: relative; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.4rem;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.hero-card-head span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2);
}
.hero-card-head span:first-child { background: var(--point); }
.hero-field {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-70);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  min-width: 0;
}
.hero-field > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hero-field b { color: var(--ink); font-weight: 600; }
.hero-field .tag {
  font-size: 0.68rem;
  background: var(--point-tint);
  color: var(--point-dark);
  padding: 0.15em 0.55em;
  border-radius: 999px;
  white-space: nowrap;
  align-self: center;
}
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line);
}

/* ==========================================================================
   Feature chips
   ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-70);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.45em 0.9em;
  border-radius: 999px;
}

/* ==========================================================================
   Compare toggle (klassisch vs. no-code)
   ========================================================================== */

.compare {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.compare-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 1.1rem 0;
}
.compare-head label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink-70);
  transition: all .15s ease;
}
#tab-classic:checked ~ .compare-head label[for="tab-classic"],
#tab-nocode:checked ~ .compare-head label[for="tab-nocode"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.compare-body { padding: 1.6rem 1.8rem 1.9rem; }
.compare-panel { display: none; }
#tab-classic:checked ~ .compare-body .panel-classic,
#tab-nocode:checked ~ .compare-body .panel-nocode { display: block; }

.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-70);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--point);
  flex: none;
  padding-top: 0.1rem;
}
.steps .duration {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--surface);
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Grid / Cards
   ========================================================================== */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.module-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.module-card .icon {
  width: 38px; height: 38px;
  margin-bottom: 1rem;
  color: var(--point);
}
.module-card h3 { font-size: 1.05rem; margin-bottom: 0.85rem; }
.module-card ul { list-style: none; }
.module-card li {
  font-size: 0.9rem;
  color: var(--ink-70);
  padding: 0.3rem 0;
  border-top: 1px solid var(--line);
}
.module-card li:first-child { border-top: none; }

.check-list { list-style: none; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--ink-70);
}
.check-list li svg { flex: none; margin-top: 0.2rem; color: var(--point); width: 18px; height: 18px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* Dark CTA band */
.band-dark {
  background: var(--ink);
}
.band-dark .side-card {
  background: rgba(251,250,247,0.05);
  border-color: var(--line-dark);
}
.band-dark .steps li { color: rgba(251,250,247,0.72); border-color: var(--line-dark); }
.band-dark .steps .duration { background: rgba(251,250,247,0.08); color: var(--paper); }
.band-dark .chip { background: rgba(251,250,247,0.06); border-color: var(--line-dark); color: rgba(251,250,247,0.85); }
.band-dark .check-list li { color: rgba(251,250,247,0.78); }

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--ink);
  word-break: break-word;
}
.contact-email .point-mark { color: var(--point); }
.contact-meta { display: grid; gap: 0.9rem; }
.contact-meta .row { display: flex; gap: 0.75rem; font-size: 0.95rem; color: var(--ink-70); }
.contact-meta .row svg { flex: none; width: 18px; height: 18px; color: var(--point); margin-top: 0.15rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(251,250,247,0.75);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo { color: var(--paper); }
.footer-tagline {
  font-size: 0.92rem;
  color: rgba(251,250,247,0.6);
  margin-top: 0.9rem;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(251,250,247,0.55);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 0.65rem; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(251,250,247,0.82); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(251,250,247,0.5);
}
.footer-bottom a { color: rgba(251,250,247,0.6); }
.footer-bottom a:hover { color: var(--paper); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ==========================================================================
   Impressum / Datenschutz Seiten
   ========================================================================== */

.legal {
  padding: clamp(2.5rem, 6vw, 4rem) 0 5rem;
}
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1rem; }
.legal .lead { margin-bottom: 2.5rem; }
.legal-section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.legal-section:first-of-type { border-top: none; }
.legal-section h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.legal-section h3 { font-size: 1.05rem; margin: 1.3rem 0 0.5rem; }
.legal-section p { color: var(--ink-70); margin-bottom: 0.8rem; }
.legal-section ul { margin: 0.6rem 0 0.8rem 1.2rem; color: var(--ink-70); }
.legal-section li { margin-bottom: 0.3rem; }
.legal-meta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink-70);
  display: grid;
  gap: 0.35rem;
}
.legal-meta strong { color: var(--ink); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.92rem;
  color: var(--ink-70);
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--point); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

/* Die volle Desktop-Navigation (Logo + 5 Links + 2 Buttons) braucht real
   rund 1030px Breite. Darunter wird auf das Hamburger-Menü umgeschaltet,
   damit es auf Tablets nicht zu horizontalem Overflow kommt. */
@media (max-width: 1040px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  #nav-check:checked ~ .mobile-panel {
    max-height: 480px;
    opacity: 1;
    border-top: 1px solid var(--line);
  }
  .mobile-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    background: var(--paper);
  }
  .mobile-panel ul {
    list-style: none;
    display: grid;
    padding: 1rem 0;
  }
  .mobile-panel a {
    display: block;
    padding: 0.85rem 24px;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-panel .btn { margin: 0.5rem 24px 1rem; }
}

@media (min-width: 1041px) {
  .mobile-panel { display: none; }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .compare-body { padding: 1.4rem 1.2rem 1.6rem; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Seiten ohne Hamburger-Menü (z. B. impressum.html): auf sehr schmalen
   Geräten reicht ein einzelner Kontakt-Button im Header. */
@media (max-width: 480px) {
  .site-header .nav-cta .btn-ghost { display: none; }
}

/* Extremschmal (~280-340px, z. B. gefaltete Geräte): Logo + "Kontakt"-Text
   + Menü-Icon passen rechnerisch nicht mehr nebeneinander. Der Header-Button
   entfällt hier zugunsten des "Kontakt aufnehmen"-Buttons im Menü selbst. */
@media (max-width: 340px) {
  .site-header .nav-cta .btn-primary { display: none; }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .module-card { transition: none; }
}
