:root {
  --ink: #17211f;
  --muted: #65716f;
  --paper: #f5f7f4;
  --panel: #ffffff;
  --soft: #e8efec;
  --line: #d8e1de;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --orange: #f06b3a;
  --orange-dark: #c94e22;
  --blue: #244c6d;
  --green: #6bae75;
  --red-soft: #f2ddd7;
  --shadow: 0 18px 52px rgba(23, 33, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(216, 225, 222, 0.9);
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  border-radius: 7px;
  color: var(--muted);
  padding: 9px 11px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.page-section {
  scroll-margin-top: 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(54px, 8vw, 98px) clamp(18px, 5vw, 72px) 28px;
  background:
    linear-gradient(130deg, rgba(9, 42, 40, 0.94), rgba(15, 118, 110, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(240, 107, 58, 0.22), transparent 34%),
    #0b3330;
  color: #fff;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb28f;
}

h1,
h2,
h3,
p,
li,
strong,
span {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6.1rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.lead {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.hero-text {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  padding: 13px 18px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 15px 34px rgba(240, 107, 58, 0.34);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--orange-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.button.download-button {
  border: 1px solid var(--line);
  color: var(--teal-dark);
  background: var(--paper);
  box-shadow: none;
}

.button.download-button:hover,
.button.download-button:focus-visible {
  background: var(--soft);
}

.hero-media {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(5, 29, 27, 0.23);
  font-weight: 800;
  text-align: center;
}

.content-band,
.process-band,
.contact-band {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.content-band {
  background: var(--paper);
}

.content-band.muted,
.process-band {
  background: var(--soft);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 6vw, 88px);
  max-width: 1200px;
  margin: 0 auto 44px;
}

.copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.copy p {
  margin: 0 0 15px;
}

.impact-grid,
.module-grid,
.kpi-grid,
.timeline,
.principles,
.comparison {
  max-width: 1200px;
  margin: 0 auto;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.impact-grid article,
.module-grid article,
.kpi-grid article,
.comparison article,
.principles article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(23, 33, 31, 0.06);
}

.impact-grid article {
  padding: 24px;
}

.impact-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.impact-grid p,
.module-grid p,
.kpi-grid span,
.comparison li,
.principles p,
.contact-band p {
  color: var(--muted);
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison article {
  padding: 24px;
}

.comparison ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.comparison li + li {
  margin-top: 10px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.module-grid article {
  grid-column: span 2;
  min-height: 250px;
  padding: 22px;
}

.module-grid article:nth-child(4),
.module-grid article:nth-child(5) {
  grid-column: span 3;
}

.module-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  margin-bottom: 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-grid article {
  min-height: 132px;
  padding: 18px;
}

.kpi-grid strong,
.kpi-grid span {
  display: block;
}

.kpi-grid strong {
  margin-bottom: 8px;
}

.timeline {
  list-style: none;
  counter-reset: steps;
  padding: 0;
}

.timeline li {
  counter-increment: steps;
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline li::before {
  content: counter(steps, decimal-leading-zero);
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#warum .section-grid {
  grid-template-columns: 1fr;
}

#warum h2 {
  max-width: 920px;
  overflow-wrap: normal;
  hyphens: none;
}

.principles article {
  padding: 24px;
}

.section-cta {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-cta .button {
  min-width: min(100%, 330px);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(26px, 6vw, 90px);
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #092a28, #0f766e);
}

.contact-band > div:first-child {
  max-width: 760px;
}

.contact-band .eyebrow {
  color: #ffb28f;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: start;
  padding: 28px;
  color: var(--ink);
}

.contact-panel span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-panel strong {
  font-size: 1.5rem;
}

.contact-panel p {
  margin: 0;
}

.contact-panel a {
  display: block;
  color: var(--teal-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.vcard-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vcard-qr img {
  display: block;
  width: 108px;
  height: 108px;
}

.vcard-qr span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions .button {
  flex: 1 1 210px;
}

.contact-panel .button {
  grid-column: 1 / -1;
}

.calendar-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calendar-dialog::backdrop {
  background: rgba(23, 33, 31, 0.62);
}

.dialog-shell {
  padding: clamp(18px, 4vw, 30px);
  background: var(--panel);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.icon-button {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.5rem;
}

.calendar-note {
  color: var(--muted);
  margin: 14px 0 18px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend.blocked {
  background: #e2a59a;
}

.legend.free {
  background: #83c8a2;
}

.legend.weekend {
  background: #d8d8d8;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.day-heading {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.day-cell {
  position: relative;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 9px;
  text-align: left;
}

.day-cell strong,
.day-cell span {
  display: block;
}

.day-cell span {
  color: var(--muted);
  font-size: 0.74rem;
}

.day-cell.blocked,
.day-cell.weekend,
.day-cell.past {
  color: #7d706e;
  background: var(--red-soft);
}

.day-cell.blocked::after,
.day-cell.past::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  transform: rotate(-18deg);
  background: rgba(151, 58, 42, 0.68);
}

.day-cell.weekend {
  background: #ececea;
}

.day-cell.free {
  cursor: pointer;
  border-color: #77b992;
  background: #eef8f1;
}

.day-cell.free:hover,
.day-cell.free:focus-visible,
.day-cell.free.selected {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.slot-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.slot-panel span {
  color: var(--muted);
}

.slot-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 14px;
}

.slot-button:hover,
.slot-button:focus-visible {
  background: var(--teal-dark);
}

@media (max-width: 1020px) {
  .hero,
  .section-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .hero-strip,
  .impact-grid,
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid article,
  .module-grid article:nth-child(4),
  .module-grid article:nth-child(5) {
    grid-column: span 1;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-strip,
  .impact-grid,
  .comparison,
  .module-grid,
  .kpi-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .timeline span {
    grid-column: 2;
  }

  .calendar-grid {
    gap: 4px;
  }

  .day-cell {
    min-height: 64px;
    padding: 7px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .vcard-qr {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero-actions .button {
    width: 100%;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-heading {
    display: none;
  }
}
