/* dr-brueggmann.de -- business card page.
   Colours from the old site (2010 TYPO3 template "SHIRA"): the mint page
   background, the slate bars, the sage green of its headings -- darkened
   where it carries text, so that every text colour reaches WCAG AA.
   System fonts only, as the old stack ('Trebuchet MS', 'Lucida Grande',
   Arial): nothing is loaded from anywhere. */

:root {
  --mint: #9fc8ba;
  --mint-light: #e3f0eb;
  --sage: #85a99b;        /* decorative only: 2.6:1 on white */
  --sage-dark: #3f6b5c;   /* text and links: 6.1:1 on white */
  --slate: #465159;       /* bars; white on it 8.1:1 */
  --slate-light: #5e6b74;
  --text: #3a4248;        /* 10.6:1 on white */
  --on-slate: #d9ebe4;    /* 6.6:1 on --slate */
  --radius: 6px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #f1f7f4 linear-gradient(180deg, var(--mint) 0, var(--mint-light) 26rem, #f1f7f4 40rem) no-repeat;
}

a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--slate);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--slate);
  z-index: 10;
}

.skip:focus {
  top: 0.5rem;
}

.card {
  width: min(52rem, calc(100% - 2rem));
  margin: 2.5rem auto 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 2rem rgb(40 60 52 / 18%);
  overflow: hidden;
}

/* The bar -- the slate gradient of the old menu bars, with the old
   wordmark "DR. HELMUT BRÜGGMANN / BERATUNG - TRAINING - COACHING" as text. */
.band {
  position: relative;
  padding: 1.75rem 9rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--slate-light), var(--slate));
  border-bottom: 4px solid var(--sage);
  color: #fff;
}

.band a {
  color: inherit;
  text-decoration: none;
}

.band a:focus-visible {
  outline-color: #fff;
}

.wordmark {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.4rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.48em;
  letter-spacing: 0.12em;
  color: var(--on-slate);
}

.band svg {
  position: absolute;
  right: 1.5rem;
  bottom: 0.75rem;
  width: 6.5rem;
  height: auto;
  opacity: 0.55;
}

main {
  padding: 2rem;
}

h1,
h2,
h3 {
  color: var(--sage-dark);
  font-weight: normal;
  line-height: 1.25;
}

main h1 {
  margin: 0 0 1rem;
  font-size: 1.9rem;
}

main h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.3rem;
}

main h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.1rem;
}

p,
ul,
address {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

/* Home: portrait beside the contact block, stacked on narrow screens. */
.home {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid #d5e2dc;
}

.slogan {
  margin-top: 0;
  font-size: 1.6rem;
}

.contact {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--mint-light);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.contact address {
  margin-bottom: 0.75rem;
}

.contact dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  margin: 0;
}

.contact dt {
  font-weight: bold;
}

.contact dd {
  margin: 0;
}

.prose {
  max-width: 42rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.stand {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.site-foot {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}

.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot p {
  margin: 0;
}

.site-foot a[aria-current="page"] {
  font-weight: bold;
  text-decoration: none;
}

@media (max-width: 40rem) {
  .card {
    margin-top: 1rem;
  }

  .band {
    padding: 1.25rem 4.75rem 1.1rem 1.25rem;
  }

  .wordmark span {
    letter-spacing: 0.04em;
  }

  .band svg {
    width: 3.25rem;
    right: 1rem;
    bottom: 0.6rem;
  }

  main {
    padding: 1.5rem 1.25rem;
  }

  .home {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .portrait {
    max-width: 12rem;
  }

  .contact {
    padding: 0.9rem 1rem;
  }
}

@media print {
  body {
    background: none;
  }

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

  .skip,
  .band svg {
    display: none;
  }
}
