/* =========================================================
   Bräutigam – Ihr Mediendienstleister GmbH
   Webseite – Basis-Stylesheet
   Referenz: BM409990_Webseite (Design 1440 px)
   ========================================================= */

:root {
  /* Farben */
  --red:        #992938;
  --red-dark:   #7f2130;
  --gray:       #636b6c;
  --gray-soft:  #7d8485;
  --bg:         #efeff0;
  --card:       #ffffff;
  --white:      #ffffff;

  /* Raster */
  --container:  1200px;
  --gutter:     clamp(20px, 4vw, 60px);
  --radius:     5px;

  /* Typo (Referenzbreite 1440 px) */
  --fs-display: clamp(38px, 6.1vw, 88px);
  --fs-lead:    clamp(19px, 2.08vw, 30px);
  --fs-card-h:  clamp(22px, 2.29vw, 33px);
  --fs-card-b:  clamp(15px, 1.2vw, 17px);
  --fs-kicker:  clamp(14px, 1.6vw, 23px);

  /* Abstände */
  --section:    clamp(40px, 4.6vw, 66px);
  --shadow:     0 1px 2px rgba(38, 33, 31, .04), 0 6px 18px -8px rgba(38, 33, 31, .10);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--gray);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-card-b);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--red); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

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

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(28px, 3.2vw, 46px); }
.section--fazit { padding-block: clamp(28px, 3.1vw, 45px) clamp(30px, 4.2vw, 60px); }
.section--flush-bottom { padding-bottom: 0; }
.section--kontakt { padding-block: clamp(34px, 4vw, 58px) clamp(56px, 11.5vw, 166px); }

/* ---------- Typografie ---------- */

.kicker {
  margin: 0;
  color: var(--red);
  font-size: var(--fs-kicker);
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  line-height: 1.3;
}

.display {
  margin: 0;
  color: var(--red);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray);
}
.lead strong { font-weight: 600; color: var(--gray); }
.lead + .lead { margin-top: 0; }

/* ---------- Karten ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(13px, 1.25vw, 18px);
}

.card__title {
  margin: 0 0 .34em;
  color: var(--red);
  font-size: var(--fs-card-h);
  font-weight: 500;
  line-height: 1.06;
}
.card__title small {
  display: block;
  font-size: .53em;
  font-weight: 700;
  line-height: 1.2;
  margin-top: .12em;
}
.card__text { margin: 0; }
.card__text + .card__text { margin-top: .8em; }

/* ---------- Kopfbereich ---------- */

.site-header { padding-top: clamp(24px, 4.65vw, 67px); }

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

.logo { display: inline-block; flex: 0 0 auto; }
.logo img { width: clamp(180px, 23.5vw, 339px); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(36px, 5.2vw, 75px); padding-bottom: clamp(12px, 1.25vw, 18px); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 379px);
  column-gap: 0;
  row-gap: clamp(20px, 3vw, 40px);
  align-items: end;
}

.hero__text > * + * { margin-top: clamp(10px, .9vw, 13px); }

.hero__claim { margin-top: clamp(16px, 2.5vw, 36px) !important; }

.hero__bar {
  display: block;
  margin-top: clamp(26px, 3.6vw, 52px) !important;
  width: min(100%, 700px);
}

.hero__illu { justify-self: start; align-self: end; width: min(100%, 330px); margin-bottom: clamp(0px, 2.7vw, 39px); }

/* ---------- Raster ---------- */

.grid { display: grid; }

/* vier Leistungen – enges Raster wie in der Vorlage */
.grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

/* drei Spalten – weites Raster */
.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 4.2vw, 60px);
  row-gap: clamp(24px, 4.3vw, 62px);
}

/* ---------- Textblock mit Illustration ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 402px);
  column-gap: clamp(24px, 6.5vw, 94px);
  row-gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.split__illu { justify-self: end; width: min(100%, 402px); }

/* ---------- Kernkompetenzen ---------- */

.stack {
  display: grid;
  gap: clamp(24px, 4.3vw, 62px);
  max-width: 1012px;
}

/* ---------- Fazit ---------- */

.fazit {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  column-gap: clamp(20px, 2.1vw, 30px);
  row-gap: clamp(24px, 3vw, 40px);
  align-items: end;
}

.fazit__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
  aspect-ratio: 390 / 583;
}
.fazit__kreis { position: absolute; top: 0; left: 41%; width: 59%; }
.fazit__illu  { position: absolute; top: 23.7%; left: 0; width: 85.4%; }

.fazit__list { display: grid; gap: clamp(20px, 3.2vw, 46px); }

/* ---------- Arbeiten / Mock-ups ---------- */

.work {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
}
.work__figure {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.work__figure img { width: 100%; }
.work__caption {
  margin: clamp(14px, 1.5vw, 22px) 0 0;
  text-align: center;
  color: var(--gray);
}
.work__figure_schatten {
  flex: 1;
  display: flex;
  padding-left: 35px;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.work--wide { margin-top: clamp(24px, 4.3vw, 62px); }
.work--wide .work__figure img { width: min(100%, 950px); }

/* Bild randlos in der Karte (Visitenkarte) */
.card--bleed { overflow: hidden; }
.card--bleed .work__figure { margin-inline: calc(-1 * clamp(13px, 1.25vw, 18px)); }
.card--bleed .work__figure img { width: 100%; margin-left: -40px;}

/* zentrierte Einzelkarten (Visitenkarte / Kontakt) */
.centered-card {
  width: min(100%, 360px);
  margin-inline: auto;
}
.centered-card + .centered-card { margin-top: clamp(28px, 4vw, 58px); }

.contact-card { text-align: center; padding: clamp(14px, 1.25vw, 18px) 20px; }
.contact-card__link {
  display: inline-block;
  color: var(--red);
  font-size: clamp(22px, 2.15vw, 31px);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.contact-card__link .arrow {
  display: inline-block;
  margin-right: .3em;
  transition: transform .25s ease;
}
.contact-card__link:hover, .contact-card__link:focus-visible { text-decoration: none; color: var(--red-dark); }
.contact-card__link:hover .arrow, .contact-card__link:focus-visible .arrow { transform: translateX(5px); }
.contact-card__mail { margin: .5em 0 0; color: var(--gray); }

/* ---------- Fußbereich ---------- */

.site-footer {
  background: var(--gray);
  color: var(--white);
  padding-block: clamp(24px, 2.6vw, 37px);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}

.site-footer address {
  font-style: normal;
  line-height: 1.45;
  font-size: clamp(14px, 1.11vw, 16px);
}
.site-footer address strong { font-weight: 600; }
.site-footer a { color: var(--white); }

.legal-links {
  display: flex;
  align-items: baseline;
  gap: .5em;
  margin: 0;
  flex-wrap: wrap;
}

.legal-link {
  color: var(--white);
  font-size: clamp(15px, 1.53vw, 22px);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.legal-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-sep {
  color: rgba(255, 255, 255, .55);
  font-size: clamp(15px, 1.53vw, 22px);
}

/* ---------- Rechtstexte (Unterseite) ---------- */

.legal-header { padding-block: clamp(28px, 4vw, 56px) 0; }

.legal-body { max-width: 900px; }
.legal-body > * + * { margin-top: clamp(20px, 2.4vw, 34px); }

.legal-title {
  margin: 0;
  color: var(--red);
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.08;
}
.legal-body h3 {
  margin: 0;
  color: var(--red);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}
.legal-body p { margin: 0; font-size: clamp(15px, 1.18vw, 17px); line-height: 1.6; }
.legal-body h3 + p { margin-top: .6em; }
.legal-body .card { padding: clamp(18px, 2vw, 28px); }
.legal-body .card > * + * { margin-top: clamp(14px, 1.6vw, 22px); }
.legal-body .meta { line-height: 1.7; }

.back-link {
  display: inline-block;
  margin-top: clamp(30px, 4vw, 56px);
  color: var(--red);
  font-size: var(--fs-card-b);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.back-link .arrow { display: inline-block; margin-right: .35em; transition: transform .25s ease; }
.back-link:hover .arrow { transform: translateX(-4px); }

/* ---------- Einblenden beim Scrollen ---------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

@media (max-width: 1000px) {
  .grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fazit { grid-template-columns: minmax(0, 1fr); }
  .fazit__visual { max-width: 340px; }
}

@media (max-width: 900px) {
  /* harte Umbrüche der Vorlage auf schmalen Displays aufheben */
  .lead br, .card__text br { display: none; }
}

@media (max-width: 860px) {
  .hero__inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero__illu, .split__illu { justify-self: center; max-width: 340px; margin-bottom: 0; }
  .hero__bar { margin-top: clamp(20px, 4vw, 36px) !important; }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid--services, .grid--three { grid-template-columns: minmax(0, 1fr); }
  .hero__illu, .split__illu { max-width: 250px; }
  .grid--three { row-gap: 18px; }
  .site-header__inner { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
}
