/* ============================================================
   ABC · Gemeinsame Flächen („helle Apple-Ebene")
   Ergänzt assets/style.css.

   Diese Datei enthält die Sektions-Bausteine, die Webdesign- und
   Consulting-Seite gemeinsam nutzen: Shell, Kopf, Kacheln, Ablauf,
   dunkler Abschluss, Fragen, Brücke.

   Herkunft: Die Werte stammen unverändert aus assets/wd3.css, wo sie für
   die Webdesign-Seite entstanden sind. Beim Zusammenführen der beiden
   Seiten kann wd3.css seinen Block streichen und stattdessen diese Datei
   laden. Bis dahin bleibt wd3.css unangetastet, damit die bestehende
   Seite sich nicht verändert.
   ============================================================ */

:root {
  --x-ink: #1d1d1f;
  --x-ink-2: #6e6e73;
  --x-bg: #ffffff;
  --x-grey: #f5f3f0;
  --x-line: #e4e0da;
  --x-radius: 28px;
  --x-maxw: 1120px;
}

.x-shell {
  max-width: var(--x-maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.x-section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

/* ---------- Sektionskopf ---------- */

.x-head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.x-head h2 {
  font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.8rem);
  line-height: 1.06;
  margin-bottom: .45em;
}
.x-head p {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  line-height: 1.5;
  color: var(--x-ink-2);
  margin: 0;
}

/* ---------- Links und Knöpfe ---------- */

.x-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--red-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.x-link:hover { text-decoration: underline; color: var(--red); }
.x-link-light, .x-link-light:hover { color: #fff; }

.btn-lg { font-size: 1.06rem; padding: 1em 1.9em; }
.btn-paper {
  background: #fff;
  color: var(--red-deep);
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 12px 24px -12px rgba(0,0,0,.45);
}
.btn-paper:hover { background: #fff; color: var(--red); }

/* ---------- Kachelraster ---------- */

.x-features { background: var(--x-grey); }
.x-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.x-tile {
  position: relative;
  background: var(--x-bg);
  border-radius: var(--x-radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  overflow: hidden;
  min-height: 380px;
}
.x-tile-wide { grid-column: span 2; }
.x-tile h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.12;
  margin: 0 0 .5em;
}
.x-tile p { color: var(--x-ink-2); margin: 0; font-size: 1.02rem; line-height: 1.5; }

/* ---------- Ablauf ---------- */

.x-steps-section { background: var(--x-bg); }
.x-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.x-steps li { border-top: 1px solid var(--x-line); padding-top: 1.4rem; }
.x-steps span {
  display: block;
  font-family: var(--font-brand);
  font-weight: 700; font-size: 2.8rem; line-height: 1;
  color: var(--red); margin-bottom: 1rem;
}
.x-steps h3 { font-size: 1.3rem; margin: 0 0 .4rem; }
.x-steps p { margin: 0; color: var(--x-ink-2); font-size: 1rem; line-height: 1.5; }

/* ---------- Dunkler Abschluss ---------- */

.x-cta { background: var(--x-bg); }
.x-cta-block {
  border-radius: clamp(28px, 3vw, 40px);
  background: radial-gradient(80% 90% at 50% 0%, #2b1417 0%, #1d1d1f 62%);
  color: #f5f5f7;
  text-align: center;
  padding: clamp(3.4rem, 8vw, 6rem) clamp(1.6rem, 6vw, 5rem);
  display: flex; flex-direction: column; align-items: center;
}
.x-cta-block h2 {
  color: #f5f5f7;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: .4em;
}
.x-cta-block > p {
  color: #a1a1a6;
  font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem);
  line-height: 1.5; max-width: 34em; margin: 0 0 2rem;
}
.x-cta-alt { margin: 1.4rem 0 0 !important; font-size: .95rem !important; }
.x-cta-alt a { color: #ff7b72; }

/* ---------- Fragen ---------- */

.x-faq-section { background: var(--x-bg); padding-top: 0; }
.x-faq-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.x-faq-grid h2 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.8rem); line-height: 1.06; }
.x-faq { margin: 0; border-top: 1px solid var(--x-line); }
.x-faq > div { padding: 1.4rem 0; border-bottom: 1px solid var(--x-line); }
.x-faq dt { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; margin-bottom: .45rem; }
.x-faq dd { margin: 0; color: var(--x-ink-2); line-height: 1.55; }

/* ---------- Brücke zur Schwesterseite ---------- */

.x-bridge { background: var(--x-grey); padding: 1.6rem 0; }
.x-bridge p {
  margin: 0 auto; text-align: center;
  font-size: .98rem; color: var(--x-ink-2); max-width: none;
}
.x-bridge a {
  color: var(--red-deep); font-weight: 500; text-decoration: none;
  margin-left: .3em; white-space: nowrap;
}
.x-bridge a:hover { text-decoration: underline; }

/* ---------- Umbrüche ---------- */

@media (max-width: 1000px) {
  .x-bento { grid-template-columns: 1fr 1fr; }
  .x-tile-wide { grid-column: span 2; }
  .x-steps { grid-template-columns: 1fr 1fr; }
  .x-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .x-bento { grid-template-columns: 1fr; }
  .x-tile-wide { grid-column: auto; }
  .x-tile { min-height: 0; }
}
