/* SATZ & DRUCK SERVICE GmbH · Info-Seite Zusammenschluss
   Ein Stylesheet für alle Seiten. Keine externen Ressourcen. */

/* Schriften nach dem CI von Layout · Satz & Druck (Vorgabe Silke Fabich, 18.11.2026):
   Überschriften Poetsen One (SIL Open Font License 1.1, siehe assets/fonts/OFL-Poetsen-One.txt),
   Fließtext Arial Narrow. Ist Arial Narrow auf dem Gerät installiert, wird sie direkt genutzt.
   Sonst lädt die maßgleiche freie Ersatzschrift „SD Sans Narrow“ (siehe assets/fonts/LIZENZ-sans-narrow.txt). */
@font-face {
  font-family: "Poetsen One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poetsen-one-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "SD Narrow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Arial Narrow"), local("ArialNarrow"),
       url("../fonts/sans-narrow-400.woff") format("woff");
}
@font-face {
  font-family: "SD Narrow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"),
       url("../fonts/sans-narrow-700.woff") format("woff");
}

:root {
  --rot: #e3001b;          /* Logorot, 4,9 : 1 auf Weiß */
  --rot-dunkel: #b80016;   /* 6,9 : 1 auf Weiß, für Textlinks und Hover */
  --blau: #0068b2;         /* Blau aus dem Logo Layout · Satz & Druck, 5,8 : 1 auf Weiß */
  --blau-dunkel: #005a96;  /* 7,2 : 1 auf Weiß */
  --tinte: #16181d;
  --text: #2b2e35;
  --grau: #5b606b;         /* 6,3 : 1 auf Weiß */
  --linie: #dfe2e7;
  --papier: #f5f5f2;
  --weiss: #ffffff;
  --schrift: "SD Narrow", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  --titel: "Poetsen One", "Arial Rounded MT Bold", "SD Narrow", Arial, sans-serif;
  --breite: 74rem;
  --rand: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--schrift);
  font-size: clamp(1.1875rem, 0.45vw + 1.08rem, 1.3125rem);   /* schmale Schrift: eine Stufe größer */
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3 {
  color: var(--tinte);
  margin: 0;
  hyphens: manual;
}

h1,
h2,
.firma,
.adresse-gross {
  font-family: var(--titel);
  font-weight: 400;          /* Poetsen One hat nur einen Schnitt, kein künstliches Fett */
  letter-spacing: 0;
}

a {
  color: var(--rot-dunkel);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.tel,
.nowrap {
  white-space: nowrap;
}

.mail {
  white-space: nowrap;
}

/* Sprunglink für Tastatur und Screenreader */
.sprunglink {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--tinte);
  color: var(--weiss);
  font-weight: 700;
  text-decoration: none;
}

.sprunglink:focus {
  top: 1rem;
  outline-color: var(--rot);
}

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* Farbband oben: Rot und Blau treffen sich, wie im Flyer */
.farbband {
  height: 6px;
  background: linear-gradient(90deg, var(--rot) 0 50%, var(--blau) 50% 100%);
}

/* Kopf */
.kopf {
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--linie);
}

.logo {
  display: inline-block;
  width: clamp(170px, 20vw, 236px);
}

.logo img {
  width: 100%;
}

/* ===== Startseite: Mitteilung ===== */
.mitteilung {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.mitteilung .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

.brief {
  max-width: 44rem;
}

.mitteilung h1 {
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 1.05;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.mitteilung h1 .ausruf {
  color: var(--rot);
}

.anrede {
  font-weight: 700;
  color: var(--tinte);
  font-size: 1.15em;
  margin-bottom: 0.35em;
}

.firma {
  display: block;
  margin: 0.6em 0 0;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  border-left: 5px solid var(--blau);
  color: var(--blau);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.12;
}

.firma span,
.adresse-gross span {
  display: block;
}

.handlung {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 3.75rem);
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 1.35em;
  background: var(--rot);
  color: var(--weiss);
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.45s ease;
}

.knopf:hover {
  background: var(--blau);
}

.knopf:focus-visible {
  outline-color: var(--tinte);
}

.knopf svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.knopf-hinweis {
  display: block;
  margin-top: 0.6rem;
  color: var(--grau);
  font-size: 0.9em;
}

.standort {
  margin-bottom: clamp(2.25rem, 5vw, 3rem);
}

.standort p {
  margin: 0;
}

.adresse-gross {
  display: block;
  margin-top: 0.45em;
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  border-left: 5px solid var(--rot);
  color: var(--tinte);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-style: normal;
  line-height: 1.2;
}

.kartenlink {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
}

.hinweis {
  margin: 0 0 2.25rem;
  padding: 1.15rem 1.35rem;
  background: var(--papier);
  border-radius: 2px;
}

.gruss p {
  margin: 0;
}

.gruss .namen {
  margin-top: 0.4em;
  color: var(--tinte);
  font-weight: 700;
}

.gruss .firmenzeile {
  color: var(--grau);
}

/* Druckmotiv: Rot und Blau übereinander gedruckt, mit Schnitt- und Passermarken */
.druckmotiv {
  display: none;
}

/* Überdrucken wie beim Offsetdruck: beide Farben leicht lasierend */
.druckmotiv circle.farbe {
  mix-blend-mode: multiply;
  fill-opacity: 0.82;
}

@media (min-width: 60em) {
  .mitteilung .wrap {
    grid-template-columns: minmax(0, 44rem) minmax(14rem, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .druckmotiv {
    display: block;
    position: sticky;
    top: 3rem;
    align-self: start;
    width: 100%;
    max-width: 22rem;
    margin-top: 0.75rem;
    justify-self: end;
  }
}

/* ===== Kontaktblock ===== */
.kontakt {
  background: var(--papier);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.dachzeile {
  margin: 0 0 0.75rem;
  color: var(--rot-dunkel);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Überschrift ist das Originallogo von Layout · Satz & Druck (SVG, Text im alt-Attribut) */
.kontakt h2 {
  max-width: 34rem;
  margin-top: 0.5rem;
}

.kontakt h2 img {
  width: 100%;
}

.kontakt-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
  margin: clamp(2rem, 5vw, 3rem) 0;
  font-style: normal;
}

.kontakt-feld {
  padding-top: 1rem;
  border-top: 2px solid var(--tinte);
}

.kontakt-feld h3 {
  margin-bottom: 0.6rem;
  color: var(--grau);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kontakt-feld p,
.kontakt-feld address {
  margin: 0;
  font-style: normal;
}

.liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste li + li {
  margin-top: 0.2rem;
}

.kontakt-feld a {
  color: var(--tinte);
  text-decoration: none;        /* Unterstreichung erst bei Hover oder Tastaturfokus */
}

.kontakt-feld a:hover,
.kontakt-feld a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.kontakt-feld .kartenlink {
  color: var(--rot-dunkel);
  font-size: 0.95em;
}

.zahlen {
  font-variant-numeric: tabular-nums;
}

.zeiten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  margin: 0;
}

.zeiten dt {
  white-space: nowrap;
  color: var(--tinte);
  font-weight: 700;
}

.zeiten dd {
  margin: 0;
  white-space: nowrap;
}

@media (min-width: 64em) {
  .kontakt-raster {
    grid-template-columns: 1fr 1fr 1.25fr 1.2fr;
  }
}

/* ===== Rechtstexte (Impressum, Datenschutz) ===== */
.recht {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.recht .wrap {
  max-width: calc(46rem + 2 * var(--rand));
}

.zurueck {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.95em;
}

.recht h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.35rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.recht h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 1.4rem;
  line-height: 1.3;
}

.recht h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.recht address {
  font-style: normal;
  margin-bottom: 1.1em;
}

.recht ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

.recht li + li {
  margin-top: 0.3em;
}

.stand {
  margin-top: 2.5rem;
  color: var(--grau);
  font-size: 0.9em;
}

/* ===== Fuß ===== */
.fuss {
  background: var(--tinte);
  color: #c9cdd4;               /* 11,9 : 1 auf --tinte */
  padding: 2.25rem 0;
  font-size: 0.9375rem;
}

.fuss .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

.fuss p {
  margin: 0;
}

.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fuss a {
  color: var(--weiss);
  text-decoration: none;        /* Unterstreichung erst bei Hover oder Tastaturfokus */
}

.fuss a:hover,
.fuss a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--weiss);
}

.fuss :focus-visible {
  outline-color: var(--weiss);
}

.fuss .klein {
  color: #9aa0aa;               /* 6,8 : 1 auf --tinte */
  font-size: 0.85em;
}

/* ===== Druckansicht ===== */
@media print {
  .farbband,
  .druckmotiv,
  .sprunglink,
  .knopf svg {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .kopf,
  .kontakt,
  .fuss {
    background: none;
    color: #000;
    border: 0;
  }

  .fuss a,
  .kontakt-feld a,
  a {
    color: #000;
  }

  .knopf {
    padding: 0;
    background: none;
    color: #000;
  }

  .knopf::after {
    content: " (layoutsatzunddruck.de)";
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ===== Sanfte Bewegung (rein CSS, kein JavaScript) ===== */
/* Wer im System „Bewegung reduzieren“ eingestellt hat, sieht keine Animation. */
@media screen and (prefers-reduced-motion: no-preference) {

  /* Seitenwechsel: weiches Überblenden zwischen Start, Impressum und Datenschutz
     (Browser ohne Unterstützung wechseln wie bisher). */
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.8s;
    animation-timing-function: ease-in-out;
  }

  /* Der Inhalt blendet beim Laden sacht ein, Kopf und Fuß bleiben ruhig stehen. */
  main {
    animation: einblenden 1s ease-out both;
  }

  @keyframes einblenden {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
