/* Entwurf 3 – Werkstatt-Ratgeber. System: design/3.md. Every value is a :root token. */
@font-face {
  font-family: "Brygada 1918";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/brygada-1918-normal-400-700.woff2") format("woff2");
}
@font-face {
  font-family: "Brygada 1918";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/brygada-1918-italic-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-normal-400-700.woff2") format("woff2");
}

:root {
  --c-paper: #ffffff;
  --c-tint: #f1efeb;
  --c-ink: #1f1c1a;
  --c-grey: #625e59;
  --c-rule: #d9d5ce;
  --c-red: #c70204;
  color-scheme: light;

  --font-serif: "Brygada 1918", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;

  --fs--1: .75rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.502rem;
  --fs-2: 2.125rem;
  --fs-3: clamp(1.75rem, 4.2vw, 3.005rem);
  --fs-4: clamp(2.6rem, 6vw, 4.25rem);

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;

  --gutter: 1.5rem;
  --margin: clamp(1rem, 4vw, 3.5rem);
  --max: 78rem;
  --radius: 0;
  --radius-btn: 4px;
  --track-head: -.01em;
  --focus: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-0);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: var(--focus) solid var(--c-ink); outline-offset: var(--focus); }
h1, h2, h3, p, dl, dd, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; letter-spacing: var(--track-head); text-wrap: balance; }

.wrap { width: min(var(--max), 100% - 2 * var(--margin)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: var(--s-3); top: calc(var(--s-8) * -1);
  padding: var(--s-2) var(--s-3); background: var(--c-ink); color: var(--c-paper);
}
.skip:focus { top: var(--s-3); }

/* Masthead */
.mast { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--c-ink); }
.logo { display: grid; font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-1); line-height: .95; letter-spacing: var(--track-head); text-decoration: none; }
.logo__red { color: var(--c-red); }
.mast ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-1) var(--s-4); }
.mast a { text-decoration: none; }
.mast li a { display: inline-block; padding-block: var(--s-2); }
.mast ul a:hover { text-decoration: underline; }
.mast__tel { font-weight: 600; }
@media (max-width: 44rem) {
  .mast li:not(:last-child) { display: none; }
}

/* Topic word */
.topic { font-weight: 600; color: var(--c-red); margin-bottom: var(--s-2); }

/* Cover */
.cover { display: grid; gap: var(--s-5) var(--gutter); padding-block: var(--s-6) var(--s-7); }
.cover h1 { font-size: var(--fs-4); max-width: 12ch; margin-bottom: var(--s-4); }
.cover__lede { max-width: 50ch; font-size: var(--fs-0); color: var(--c-grey); margin-bottom: var(--s-4); }
.cover__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { margin-top: var(--s-2); font-size: var(--fs--1); color: var(--c-grey); }
.cover__fig { order: -1; }
@media (min-width: 68rem) {
  .cover { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .cover__text { grid-column: 1 / span 7; padding-bottom: var(--s-5); }
  .cover__fig { grid-column: 8 / span 5; order: 0; }
  .cover__fig img { aspect-ratio: 3 / 4; }
  .cover__lede { font-size: var(--fs-0); }
}

.status { display: flex; align-items: baseline; gap: var(--s-2); font-weight: 600; }
.status__dot { flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--c-grey); }
[data-state="open"] .status__dot { background: var(--c-red); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.btn {
  display: inline-flex; align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 2px solid var(--c-red); border-radius: var(--radius-btn);
  font-weight: 600; line-height: 1.2; text-decoration: none;
}
.btn--red { background: var(--c-red); color: var(--c-paper); }
.btn--red:hover { background: var(--c-ink); border-color: var(--c-ink); }
.btn--line { border-color: var(--c-ink); }
.btn--line:hover { background: var(--c-ink); color: var(--c-paper); }

/* Issue */
.issue { padding-block: var(--s-6) var(--s-7); border-top: 1px solid var(--c-rule); }
.issue__title { font-size: var(--fs-2); margin-bottom: var(--s-6); }

.feature { display: grid; gap: var(--s-4) var(--gutter); padding-bottom: var(--s-7); }
.feature h3 { font-size: var(--fs-2); max-width: 18ch; margin-bottom: var(--s-4); }
.feature__text { display: grid; align-content: start; gap: var(--s-3); }
.feature__text > p:not(.topic) { max-width: 62ch; }
.feature__text .topic { margin-bottom: 0; }
.feature__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 68rem) {
  .feature { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .feature__fig { grid-column: 1 / span 4; }
  .feature__fig img { aspect-ratio: 3 / 4; }
  .feature__text { grid-column: 6 / span 7; padding-top: var(--s-5); }
  .feature--wide .feature__fig { grid-column: 7 / span 6; grid-row: 1; }
  .feature--wide .feature__fig img { aspect-ratio: 3 / 2; }
  .feature--wide .feature__text { grid-column: 1 / span 5; grid-row: 1; }
}

.grid { display: grid; gap: 0 var(--gutter); }
.short { padding-block: var(--s-4) var(--s-6); border-top: 1px solid var(--c-ink); }
.short h3 { font-size: var(--fs-1); margin-bottom: var(--s-3); }
.short p:not(.topic) { color: var(--c-grey); }
@media (min-width: 44rem) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* About */
.about { display: grid; gap: var(--s-5) var(--gutter); padding-block: var(--s-7); border-top: 1px solid var(--c-rule); }
.quote p { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-3); line-height: 1.25; max-width: 22ch; }
.about__text { display: grid; gap: var(--s-3); max-width: 52ch; align-content: end; }
@media (min-width: 68rem) {
  .about { grid-template-columns: repeat(12, 1fr); }
  .quote { grid-column: 1 / span 7; }
  .about__text { grid-column: 9 / span 4; }
}

/* Service-Seite */
.box { background: var(--c-tint); padding: var(--s-5) var(--s-4); margin-bottom: var(--s-7); }
.box__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--c-ink); }
.box h2 { font-size: var(--fs-2); }
.box h3 { font-size: var(--fs-1); margin-bottom: var(--s-3); }
.box__cols { display: grid; gap: var(--s-5) var(--gutter); }
.box__cols > div { display: grid; align-content: start; gap: var(--s-3); }
.box dl { display: grid; gap: var(--s-1); font-variant-numeric: tabular-nums; }
.box dt { font-weight: 600; }
.box dd { color: var(--c-grey); margin-bottom: var(--s-2); }
.box address { font-style: normal; }
.box__tel a { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-2); line-height: 1.1; text-decoration: none; color: var(--c-red); }
.box__tel a:hover { text-decoration: underline; }
.small { font-size: var(--fs--1); }
@media (min-width: 44rem) { .box { padding: var(--s-6); } }
@media (min-width: 68rem) { .box__cols { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
.foot { background: var(--c-tint); padding-block: var(--s-6); }
.foot h2 { font-size: var(--fs-1); margin-bottom: var(--s-4); }
.imp { display: grid; gap: var(--s-1) var(--s-4); font-size: var(--fs--1); }
.imp dt { font-weight: 600; }
.imp dd { color: var(--c-grey); margin-bottom: var(--s-2); overflow-wrap: anywhere; }
@media (min-width: 44rem) {
  .imp { grid-template-columns: max-content 1fr; max-width: 60rem; }
  .imp dd { margin-bottom: 0; }
}
.foot__note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-rule); font-size: var(--fs--1); color: var(--c-grey); max-width: 80ch; }

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