/* tdPBX Marketing — Design System */
:root {
  --ink: #0e1520;
  --ink-soft: #243044;
  --muted: #5a6b7d;
  --line: #d5dde6;
  --paper: #f2f5f3;
  --paper-2: #e8eee9;
  --white: #ffffff;
  --brand: #5c9e32;
  --brand-dark: #3f7320;
  --brand-light: #8bc34a;
  --brand-wash: rgba(92, 158, 50, 0.12);
  --focus: #2a6f9e;
  --danger: #9b2c2c;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(14, 21, 32, 0.08);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*, *::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: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--brand); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3, .brand-word {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.15rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); margin: 0 0 0.65rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: 1.175rem; max-width: 38rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.brand-word {
  font-size: 1.35rem;
  font-weight: 700;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.site-nav.open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  min-height: 44px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--brand-wash);
  color: var(--brand-dark);
}

.nav-cta {
  margin-top: 0.35rem;
}

.nav-cta a {
  background: var(--brand);
  color: var(--white) !important;
  text-align: center;
}

.nav-cta a:hover { background: var(--brand-dark); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a { padding: 0.5rem 0.7rem; }
  .nav-cta { margin-top: 0; margin-left: 0.4rem; }
  .nav-cta a {
    padding-inline: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-wash);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(139, 195, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(92, 158, 50, 0.14), transparent 50%),
    linear-gradient(165deg, #e6efe3 0%, var(--paper) 45%, #dfe8e4 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 21, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 21, 32, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(63, 115, 32, 0.25);
}

.hero-brand .brand-word {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.hero-visual {
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    linear-gradient(145deg, var(--brand-light), var(--brand-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 24px 48px rgba(63, 115, 32, 0.28);
  position: relative;
}

.hero-visual img {
  width: 72%;
  height: auto;
  filter: drop-shadow(8px 12px 0 rgba(0, 0, 0, 0.12));
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  pointer-events: none;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

/* Feature lists — not heavy cards */
.feature-list {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .feature-list.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-list li {
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
}

.feature-list h3 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.feature-list h3::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
  transform: translateY(-0.1rem);
}

.feature-list p { margin: 0; font-size: 0.98rem; }

/* Split / callout */
.split {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.note {
  padding: 1.25rem 1.35rem;
  background: var(--ink);
  color: #d7e0ea;
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-light);
}

.note h3 { color: var(--white); margin-bottom: 0.5rem; }
.note p { color: #b8c5d4; margin: 0; }
.note strong { color: var(--white); }

/* Technique chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* CTA band */
.cta-band {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background:
    linear-gradient(120deg, var(--ink) 0%, #1a2838 55%, #243a28 100%);
  color: #e8eef4;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #b0bec9; max-width: 36rem; }
.cta-band .btn-primary { background: var(--brand-light); color: var(--ink); }
.cta-band .btn-primary:hover { background: #a3d45e; color: var(--ink); }
.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-light);
  color: var(--white);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.25rem 0 1.5rem;
  background:
    linear-gradient(180deg, #e4eee1 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead { margin-bottom: 0; }

/* Tables / definition lists */
.def-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.def-list > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .def-list > div {
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.def-list dt {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink);
}
.def-list dd { margin: 0; color: var(--ink-soft); }

/* Contact form */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

textarea { min-height: 140px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.form-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--brand-wash);
  color: var(--brand-dark);
  font-weight: 600;
}

.form-status.visible { display: block; }
.form-status.is-ok { background: var(--brand-wash); color: var(--brand-dark); }
.form-status.is-error { background: #fde8e8; color: var(--danger); }

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-panel { position: relative; }

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Pricing — interactive plan selection */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(5, 1fr); gap: 0.85rem; }
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s, background 0.15s;
}

.plan h2 {
  font-size: 1.15rem;
  margin: 0;
}

.plan-price {
  margin: 0;
  color: var(--ink);
}

.plan-price span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-price small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.plan .btn { width: 100%; margin-top: 0.5rem; }

.plan-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1;
}

.plan.is-selected {
  background: var(--paper-2);
  border-color: var(--line);
  box-shadow: none;
}

@media (max-width: 1023px) {
  .plan[data-plan="business"] { order: -1; }
}

/* TODO placeholders */
.todo-box {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 2px dashed #c47a1a;
  background: #fff8eb;
  border-radius: var(--radius);
  color: #6b4410;
}

.todo-box strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  color: #8a4f00;
}

/* Legal prose */
.prose { max-width: 42rem; }
.prose.prose-wide { max-width: 70rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8d4e0;
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer .brand-word { color: var(--white); }
.site-footer a { color: #c5d3e0; text-decoration: none; }
.site-footer a:hover { color: var(--brand-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.site-footer .footer-grid > div > p:not(.brand-word) {
  color: #c8d4e0;
  font-size: 0.75em; /* 25 % kleiner als Fließtext */
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #c8d4e0;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-brand,
  .hero h1,
  .hero .lead,
  .hero .btn-row {
    animation: rise 0.7s ease both;
  }
  .hero h1 { animation-delay: 0.08s; }
  .hero .lead { animation-delay: 0.16s; }
  .hero .btn-row { animation-delay: 0.24s; }
  .hero-visual {
    animation: float-in 0.9s ease both;
  }
  .feature-list li {
    transition: transform 0.2s ease, border-color 0.2s;
  }
  .feature-list li:hover {
    transform: translateX(4px);
    border-color: var(--brand);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
