/* ==========================================================================
   BlackKonzept – Unternehmenswebsite
   Mobile first. Schwarz-Weiß, eine Schrift, viel Ruhe.
   ========================================================================== */

/* Schriften: BK Sans ist eine Teilmenge von Source Sans 3 (SIL OFL).
   Wegen des reservierten Namens „Source“ trägt sie einen eigenen Namen. */
@font-face {
  font-family: "BK Sans";
  src: url("../assets/fonts/bk-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BK Sans";
  src: url("../assets/fonts/bk-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BK Sans";
  src: url("../assets/fonts/bk-sans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #161616;
  --muted: #55554f;
  --line: #e2e1dc;
  --line-strong: #c9c8c2;
  --white: #ffffff;
  --alt: #f4f4f1;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --sans: "BK Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  --radius: 8px;
  --section: 72px;
  --focus: var(--black);
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
    --section: 112px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
table {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section {
  padding-block: var(--section);
}

.section-alt {
  background: var(--alt);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

h2 {
  color: var(--black);
  font-size: clamp(2.125rem, 7vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3 {
  color: var(--black);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 18px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.section-head p {
  max-width: 54ch;
  margin-top: 14px;
  color: var(--muted);
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #2b2b2b;
}

.btn-line {
  border-color: var(--black);
  color: var(--black);
}

.btn-line:hover {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: #e9e9e6;
}

.btn-line-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-line-light:hover {
  border-color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .btn {
  flex: 1 1 200px;
}

@media (min-width: 560px) {
  .actions .btn {
    flex: 0 0 auto;
  }
}

/* Häkchen-Liste */
.checks {
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: rotate(-45deg);
}

/* Logo ------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: auto;
  height: 32px;
}

/* Kopfzeile und Menü ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
}

.header-inner .logo {
  margin-right: auto;
  padding-block: 6px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--black);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.header-call:hover {
  background: var(--alt);
}

.header-call-label {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--black);
  color: var(--white);
}

.menu-toggle-icon {
  display: grid;
  gap: 5px;
  width: 18px;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Menü: ohne JavaScript als normale Linkleiste unter der Kopfzeile sichtbar */
.menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 8px var(--gutter) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.js .menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.js .menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.menu a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--black);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menu a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

.menu-cta {
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 379px) {
  .logo img {
    height: 26px;
  }

  .menu-toggle {
    min-width: 44px;
    padding: 0 12px;
  }

  /* Auf sehr kleinen Handys nur das Symbol, der Text bleibt für Screenreader */
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 560px) {
  .header-call-label {
    display: inline;
  }
}

@media (min-width: 900px) {
  .logo img {
    height: 36px;
  }

  .header-call {
    margin-right: 8px;
  }

  .menu {
    left: auto;
    right: var(--gutter);
    width: 340px;
    padding: 8px 24px 24px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding-block: 40px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}

.hero h1 {
  max-width: 13ch;
  color: var(--black);
  font-size: clamp(2.625rem, 11vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 44ch;
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.hero .actions {
  margin-top: 28px;
}

.hero-checks {
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Drei Handys mit den Beispielseiten, auf einer hellen Bühne. Jedes Handy ist ein Link. */
.hero-stage {
  margin: 0;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  height: clamp(280px, 78vw, 400px);
  padding-top: 36px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--alt);
}

.phone {
  position: relative;
  display: block;
  width: 34%;
  height: max-content;
  border: 5px solid var(--black);
  border-radius: 24px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease;
}

.phone img {
  width: 100%;
}

.phone:hover {
  transform: translateY(-8px);
}

.phone:focus-visible {
  outline-offset: 4px;
}

.phone-1,
.phone-3 {
  z-index: 1;
  margin-top: 40px;
}

.phone-1 {
  margin-right: -6%;
}

.phone-3 {
  margin-left: -6%;
}

.phone-2 {
  z-index: 2;
  width: 40%;
}

.hero-stage figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 72px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
  }

  .hero-phones {
    height: 480px;
    padding-top: 48px;
    border-radius: 20px;
  }

  .phone {
    border-width: 6px;
    border-radius: 30px;
  }

  .phone-1,
  .phone-3 {
    margin-top: 56px;
  }
}

/* Über uns ---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.about-text p + p {
  margin-top: 16px;
}

.about-text {
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 44px;
  border-top: 1.5px solid var(--black);
}

.values li {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.values p {
  margin-top: 6px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .about-text {
    padding-top: 74px;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    margin-top: 64px;
  }

  .values li {
    padding-block: 28px;
  }
}

/* Beispiele --------------------------------------------------------------- */
.examples {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.example a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.2s;
}

.example a:hover {
  border-color: var(--black);
}

.example img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.example-kind {
  margin: 18px 10px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.example h3 {
  margin: 2px 10px 0;
  font-size: 1.5rem;
}

.example p {
  margin: 8px 10px 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.example-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: auto 10px 0;
  padding-top: 18px;
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.examples-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
  }
}

/* Ablauf ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
}

.step-no {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.steps h3 {
  padding-top: 8px;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 56px;
  }

  .steps li {
    display: block;
  }

  .steps h3 {
    padding-top: 20px;
  }
}

/* Das brauchen wir / Den Rest erledigen wir */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.split-box {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

.split-box .checks {
  margin-top: 16px;
}

.split-box-dark {
  --focus: var(--white);
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.split-box-dark h3 {
  color: var(--white);
}

.split-box-dark .checks li::before {
  border-color: var(--white);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 64px;
  }

  .split-box {
    padding: 36px 40px;
  }
}

/* Preise ------------------------------------------------------------------ */
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--black);
  color: var(--white);
}

.price-label {
  font-weight: 600;
  color: var(--on-dark-muted);
}

.price {
  margin-top: 8px;
  font-size: clamp(3.5rem, 15vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.price-sub {
  margin-top: 10px;
  color: var(--on-dark-muted);
  font-size: 1rem;
}

.price-offer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.price-offer[hidden] {
  display: none;
}

.price-card .btn {
  margin-top: 26px;
  align-self: flex-start;
}

.price-included {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
}

.price-included .checks {
  margin-top: 18px;
}

.costs {
  margin-top: 48px;
}

.costs table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.costs th,
.costs td {
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  vertical-align: top;
  text-align: left;
}

.costs tr:last-child th,
.costs tr:last-child td {
  border-bottom: 1px solid var(--line-strong);
}

.costs th {
  padding-right: 16px;
  color: var(--black);
  font-weight: 600;
}

.costs th span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.costs td {
  color: var(--black);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.costs-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .price-card,
  .price-included {
    padding: 40px;
  }

  .costs {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    margin-top: 64px;
  }

  .costs table,
  .costs-note {
    grid-column: 2;
  }

  .costs table {
    margin-top: 0;
    grid-row: 1;
  }

  .costs-note {
    grid-row: 2;
  }
}

/* Häufige Fragen ---------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.faq {
  border-top: 1.5px solid var(--black);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  color: var(--black);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq details p {
  max-width: 60ch;
  padding: 0 0 22px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }

  .faq-grid .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* Kontakt ----------------------------------------------------------------- */
.contact {
  --focus: var(--white);
  padding-block: var(--section);
  background: var(--black);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact .lead {
  max-width: 40ch;
  color: var(--on-dark-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.contact-box {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-box .btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 60px;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.contact-person {
  font-weight: 700;
}

.contact-address {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: end;
  }
}

/* Fußzeile ---------------------------------------------------------------- */
.footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.logo-small img {
  height: 26px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  padding-block: 8px;
  color: var(--black);
  text-underline-offset: 4px;
}

.footer-copy {
  width: 100%;
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .footer-nav {
    margin-left: auto;
  }

  .footer-copy {
    width: auto;
  }
}

/* Unterseiten: Impressum und Datenschutz ---------------------------------- */
.legal {
  max-width: 760px;
  padding-block: 56px var(--section);
}

.legal h1 {
  color: var(--black);
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin-top: 40px;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal address {
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
}

.legal a {
  color: var(--black);
  text-underline-offset: 3px;
}

.placeholder {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--alt);
  color: var(--black);
  outline: 1px dashed var(--line-strong);
}

.back {
  display: inline-block;
  margin-top: 48px;
  padding-block: 10px;
  color: var(--black);
  font-weight: 700;
  text-underline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Ohne JavaScript: Menü-Knopf ausblenden, die Seite bleibt per Scrollen voll nutzbar */
html:not(.js) .menu-toggle,
html:not(.js) .menu {
  display: none;
}

.legal-logo img {
  width: auto;
  height: 34px;
}

/* Hinweis unter den Handys: „Antippen“ am Handy, „Anklicken“ mit Maus */
.hint-pointer {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .hint-touch {
    display: none;
  }

  .hint-pointer {
    display: inline;
  }
}

/* Fehlerseite 404 */
.not-found .btn {
  margin-top: 32px;
}

.legal .btn-dark {
  color: var(--white);
  text-decoration: none;
}
