/* Web business card F.W. Breithaupt & Sohn - colours from the former theme (dg) */
:root {
  --navy: #001e4f;
  --orange: #ff6700;
  --text: #333333;
  --muted: #6b6b6b;
  --bg: #f0f0f0;
  --card: #ffffff;
  --rule: #c8c8c8;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

.card {
  width: 100%;
  /* container width of the former site (.dg .container in dg-mod.css) */
  max-width: 1070px;
  margin: 48px 16px 24px;
  background: var(--card);
  border-top: 6px solid var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ruler ticks like the section borders of the former site */
.card::after {
  content: "";
  display: block;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 30px) bottom / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 6px) bottom / 100% 6px no-repeat;
  border-top: 1px solid var(--rule);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px 0;
}

.card__logo img {
  display: block;
  width: 150px;
  height: auto;
}

.card__body {
  padding: 24px 40px 36px;
}

h1 {
  margin: 8px 0 20px;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  margin: 0 0 14px;
}

/* Bilingual notice: the full website is coming back */
.notice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 16px 20px;
  background: #f5f7fa;
  border-left: 4px solid var(--navy);
}

.notice p {
  margin: 0;
}

.notice__title {
  margin-bottom: 4px !important;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice__lang:first-child {
  padding-right: 24px;
}

.notice__lang + .notice__lang {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

/* Sections taken from the former start page (below the slider) */
.feature,
.intro {
  display: grid;
  margin: 0 0 28px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* natural aspect ratio (600 x 300): never squashed, never cropped */
.feature__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  align-self: center;
}

.feature__claim {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: var(--card);
  text-align: center;
}

.feature__claim h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.5rem);
  letter-spacing: 0.03em;
}

.intro {
  grid-template-columns: 1fr 3fr;
}

.intro__label {
  padding: 16px;
  background: var(--orange);
}

.intro__label h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.25;
  hyphens: manual;
}

.intro__text {
  padding: 16px 20px;
  background: #fbfbfb;
}

.intro__text p {
  margin: 0;
}

.lead {
  font-size: 1.08rem;
}

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

a {
  color: var(--navy);
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--orange);
}

.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}

.contact dt {
  font-weight: 700;
}

.contact dd {
  margin: 0;
}

address {
  font-style: normal;
}

.nav-link {
  font-size: 0.95rem;
  white-space: nowrap;
}

.legal p {
  margin-bottom: 16px;
}

.site-foot {
  margin: 0 16px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-foot a {
  color: var(--muted);
}

@media (max-width: 560px) {
  .card {
    margin-top: 16px;
  }

  .card__head,
  .card__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card__logo img {
    width: 120px;
  }

  .feature,
  .intro,
  .notice {
    grid-template-columns: 1fr;
  }

  .notice__lang:first-child {
    padding-right: 0;
  }

  .notice__lang + .notice__lang {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }


  .contact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact dd {
    margin-bottom: 10px;
  }
}

@media print {
  body {
    background: none;
  }

  .card {
    box-shadow: none;
    margin: 0;
  }
}
