/* it-beratung heiss — design system */

@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* primitive — abgeleitet aus dem Logo (Rot/Schwarz/Grau/Weiß) */
  --onyx-950: #19191b;
  --onyx-900: #1f1f22;
  --paper: #ffffff;
  --fog: #f2f2f4;
  --fog-2: #e7e7ea;
  --ink: #1c1c1e;
  --ink-soft: #66666b;
  --red-700: #8f1c21;
  --red-600: #c1272d;
  --red-500: #d43c3f;
  --steel-600: #6f747c;
  --steel-400: #a8adb4;
  --line: #e2e2e5;

  /* semantic */
  --bg: var(--paper);
  --bg-alt: var(--fog);
  --bg-deep: var(--onyx-950);
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --text-on-dark: #f5f5f6;
  --text-on-dark-muted: rgba(245, 245, 246, 0.68);
  --accent: var(--steel-600);
  --accent-strong: var(--red-600);
  --cta: var(--red-600);
  --cta-strong: var(--red-700);
  --border: var(--line);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-strong);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

h2 {
  font-size: 2.35rem;
}

.section-intro {
  color: var(--text-muted);
  margin: 14px 0 2.75rem;
  max-width: 620px;
  font-size: 1.12rem;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cta);
  display: inline-block;
}

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

/* clip-path entfernt alles außerhalb der gefasten Fläche, auch den Outline-Ring —
   daher hier nach innen gezogen statt nach außen versetzt */
.btn:focus-visible,
.header-phone:focus-visible {
  outline-offset: -4px;
}

/* Header */

.site-header {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 58px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-on-dark);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  text-decoration: none;
  background: var(--cta);
  padding: 10px 22px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.header-phone svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.header-phone:hover {
  background: var(--cta-strong);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  position: relative;
  background: var(--bg-deep);
  color: var(--text-on-dark);
  padding: 88px 0 84px;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--cta);
  margin-bottom: 18px;
}

.hero-copy .eyebrow::before {
  background: var(--steel-400);
}

.hero h1 {
  color: #fff;
  font-size: 3.15rem;
  margin: 0 0 22px;
  letter-spacing: -0.025em;
  max-width: 640px;
}

.hero p {
  font-size: 1.22rem;
  color: var(--text-on-dark-muted);
  max-width: 540px;
  margin: 0 0 36px;
  font-weight: 400;
}

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

.hero .hero-note {
  margin: 44px 0 0;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 340px;
  justify-self: center;
  border-radius: 24px;
  border-color: rgba(245, 245, 246, 0.3);
  color: rgba(245, 245, 246, 0.7);
  background: repeating-linear-gradient(
    135deg,
    rgba(245, 245, 246, 0.06),
    rgba(245, 245, 246, 0.06) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  font-size: 1.03rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Sections */

section {
  padding: 92px 0;
}

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

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 440px));
}

.sub-block + .sub-block {
  margin-top: 44px;
}

.sub-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 700;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.section-soft .card {
  background: var(--paper);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 32, 27, 0.08);
  border-color: transparent;
}

/* Unternehmen: schlichte Faktenliste statt Karten-Raster */

.fact-list {
  border-top: 1px solid var(--border);
}

.fact-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}

.fact-row h3 {
  font-size: 1.15rem;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.fact-row h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--accent-strong);
}

.fact-row p {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
}

@media (max-width: 720px) {
  .fact-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Privat: Karten ohne Icon-Kachel, Icon direkt in der Überschrift */

.card-plain h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-plain h3 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-strong);
}

.card h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* Section header with icon/photo */

.section-header,
.why-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  flex-shrink: 0;
  background: var(--bg-deep);
  color: var(--cta);
}

.section-icon svg {
  width: 56px;
  height: 56px;
}

.why-photo {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(16, 32, 27, 0.14);
}

/* Foto-Platzhalter (nur zur Layout-Vorschau, durch echte Fotos ersetzen) */

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: repeating-linear-gradient(
    135deg,
    var(--fog-2),
    var(--fog-2) 10px,
    var(--fog) 10px,
    var(--fog) 20px
  );
  border: 2px dashed var(--steel-400);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

.photo-placeholder span {
  font-size: 1.6rem;
}

.photo-band-img {
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  margin: 40px 0;
  width: 100%;
}

.photo-fill {
  object-fit: cover;
  display: block;
}

.hero-photo.photo-fill {
  object-position: center 15%;
}

#unternehmen .photo-band-img {
  object-position: center 68%;
}

#privat .photo-band-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-position: center 25%;
}

.privat-photo-figure {
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
}

.privat-photo-figure .photo-band-img {
  margin: 0;
}

.privat-photo-figure figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

@media (max-width: 720px) {
  .photo-band-img {
    aspect-ratio: 16 / 10;
  }

  #privat .photo-band-img {
    aspect-ratio: 1 / 1;
  }

  .privat-photo-figure {
    max-width: 320px;
  }

  .why-photo {
    width: 108px;
    height: 108px;
  }
}

.why-header .section-intro,
.section-header .section-intro {
  margin-bottom: 0;
}

/* Ablauf */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  background: var(--bg-deep);
  color: var(--cta);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-muted);
  margin: 0;
}

/* Warum ich: Zitat als Signatur-Element */

.voice-quote {
  margin: 0 0 56px;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent-strong);
  max-width: 620px;
}

.voice-quote p {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
}

.voice-quote p::before {
  content: "\201E";
}

.voice-quote p::after {
  content: "\201C";
}

.voice-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Warum ich list */

.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.why-item h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--accent-strong);
}

.why-item p {
  color: var(--text-muted);
  margin: 0;
}

/* Kontakt */

.contact-box {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.contact-box h2 {
  color: #fff;
  margin-bottom: 10px;
}

.contact-box p {
  color: var(--text-on-dark-muted);
  margin: 0 0 24px;
  max-width: 460px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-details a svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--cta);
}

.contact-details a:hover {
  opacity: 0.85;
}

.contact-details span {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  background: var(--onyx-900);
  color: rgba(245, 245, 246, 0.55);
  padding: 32px 0;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: rgba(245, 245, 246, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Legal pages */

.legal-page main {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

.legal-page h1 {
  margin-top: 0;
  font-size: 2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
}

.legal-page p {
  color: var(--text-muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 600;
}

.legal-stand {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--steel-400);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 260px;
    aspect-ratio: 1;
    order: -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1.08rem;
  }

  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 1.85rem;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    gap: 16px;
  }

  .why-header,
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .why-header .section-intro,
  .section-header .section-intro {
    margin: 0 auto;
  }

  .contact-box {
    padding: 36px 24px;
    text-align: center;
    justify-content: center;
  }

  .contact-box > div:first-child {
    width: 100%;
  }

  .contact-box p {
    margin-left: auto;
    margin-right: auto;
  }
}
