/* ==========================================================================
   Firmenmanufaktur GmbH – Stylesheet
   Palette: #FFFFFF und #333333 (Abstufungen sind Transparenzstufen von #333)
   ========================================================================== */

:root {
  --white: #fff;
  --ink: #333;
  --ink-soft: rgba(51, 51, 51, 0.58);
  --hairline: rgba(51, 51, 51, 0.16);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}

a:focus-visible,
.flag:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* --------------------------------------------------------- Grundgerüst -- */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.box {
  width: 100%;
  background: var(--white);
  border: 0;
  padding: 0;
}

.connector {
  width: 1px;
  height: 96px;
  background: var(--hairline);
  flex: 0 0 auto;
}

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

h1,
h2,
h3 {
  font-weight: normal;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h1.h1--legal {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 44px;
}

h1 .bracket {
  color: var(--ink-soft);
}

h1 .bracket--close {
  margin-left: 0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
}

h3 {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: 34px 0 6px;
}

p {
  margin: 0 0 20px;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

p:last-child {
  margin-bottom: 0;
}

.tagline {
  margin: -6px auto 40px;
  max-width: 46ch;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
}

.intro-heading {
  margin-bottom: 26px;
}

/* ---------------------------------------------------------------- Flaggen - */

.box--flags {
  padding: 0;
}

.flags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.flag {
  display: block;
  line-height: 0;
  box-shadow: 0 0 0 1px var(--hairline);
  filter: grayscale(1);
  opacity: 0.4;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.flag svg {
  display: block;
  height: 22px;
  width: auto;
}

.flag:hover,
.flag:focus-visible {
  filter: none;
  opacity: 1;
}

.flag.is-active {
  filter: none;
  opacity: 1;
  cursor: default;
}

/* ------------------------------------------------------------- Leitidee -- */

.principles {
  list-style: none;
  margin: 0;
  padding: 44px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 52px;
  text-align: left;
}

.principles li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.principles b {
  display: block;
  font-weight: bold;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ------------------------------------------------------- Sprungmarken --- */

.jump {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 48px 0 0;
  padding: 0;
}

.jump a {
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.jump a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* --------------------------------------------------------- Beteiligungen - */

.company {
  scroll-margin-top: 32px;
}

.company-grid {
  display: grid;
  grid-template-columns: 38% 62%;
  align-items: stretch;
}

.logo-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px 24px 0;
  border-right: 1px solid var(--hairline);
}

.logo-pane img {
  display: block;
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 82px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.logo-pane:hover img {
  filter: none;
  opacity: 1;
}

/* Wortmarken ohne Bildmarke brauchen etwas mehr Breite */
.logo-pane img.logo--wordmark {
  max-width: 260px;
}

.company-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 16px 56px;
  text-align: left;
}

.company-body p {
  margin-left: 0;
  margin-right: 0;
  max-width: 54ch;
  color: var(--ink-soft);
}

.btn {
  align-self: flex-start;
  margin-top: 30px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--white);
  color: var(--ink);
}

/* ------------------------------------------------------- Rechtliche Seiten */

.prose {
  max-width: 62ch;
  margin: 0 auto;
  text-align: left;
}

.prose p,
.prose address {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  color: var(--ink-soft);
}

.prose address {
  font-style: normal;
  margin-bottom: 20px;
}

.prose h3:first-of-type {
  margin-top: 0;
}

.mail {
  unicode-bidi: bidi-override;
  direction: rtl;
  white-space: nowrap;
}

.back {
  display: inline-block;
  margin-top: 48px;
  font-size: 16px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 6px;
}

.back:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

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

.footer {
  margin-top: 112px;
  font-size: 15px;
  color: var(--ink-soft);
}

.footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 5px;
}

.footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* ----------------------------------------------------------- Responsive -- */

@media (max-width: 860px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }

  .company-grid {
    grid-template-columns: 34% 66%;
  }

  .logo-pane {
    padding-right: 36px;
  }

  .company-body {
    padding-left: 40px;
  }
}

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

  .page {
    padding: 36px 20px 64px;
  }

  .connector {
    height: 64px;
  }

  .tagline {
    font-size: 19px;
    margin-bottom: 32px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 32px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .logo-pane {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 0 0 28px;
  }

  .logo-pane img {
    max-width: 180px;
    max-height: 66px;
  }

  .logo-pane img.logo--wordmark {
    max-width: 220px;
  }

  .company-body {
    padding: 28px 0 0;
  }

  .footer {
    margin-top: 72px;
  }
}

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

  * {
    transition: none !important;
  }
}
