/*
 * max-web.de | Gestaltung
 * Idee: Die Seite ist ein Druckbogen auf dem gestreiften Tisch der alten Firmenseite.
 * Schnittmarken an den Ecken, Logoblau als einzige Farbe, eine Schriftfamilie (Verdana, wie auf der alten Firmenseite).
 * Keine externen Schriften, keine Skripte.
 */

:root {
  --tinte:   #0000d8;   /* Blau aus dem M@X-Logo */
  --text:    #1b1b2a;
  --leise:   #5a5a66;
  --linie:   #c9d3e0;
  --flaeche: #d6e6f5;   /* Hellblau aus dem Logo */
  --schrift: Verdana, Geneva, "DejaVu Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 56px 28px;
  font: 14px/1.7 var(--schrift);
  color: var(--text);
  background: #b9b9b9 repeating-linear-gradient(135deg, #b9b9b9 0 2px, #aaa 2px 3px);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Der Bogen mit Schnittmarken */
main {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 44px 36px 28px;
  background: #fff;
}
main::before {
  content: "";
  position: absolute;
  inset: -18px;
  pointer-events: none;
  background:
    linear-gradient(#000, #000) left 0 top 18px / 12px 1px no-repeat,
    linear-gradient(#000, #000) left 18px top 0 / 1px 12px no-repeat,
    linear-gradient(#000, #000) right 0 top 18px / 12px 1px no-repeat,
    linear-gradient(#000, #000) right 18px top 0 / 1px 12px no-repeat,
    linear-gradient(#000, #000) left 0 bottom 18px / 12px 1px no-repeat,
    linear-gradient(#000, #000) left 18px bottom 0 / 1px 12px no-repeat,
    linear-gradient(#000, #000) right 0 bottom 18px / 12px 1px no-repeat,
    linear-gradient(#000, #000) right 18px bottom 0 / 1px 12px no-repeat;
}

/* Kopf: Logo und Einordnung */
h1 { margin: 0; }
.name {
  font: 700 24px/1.3 var(--schrift);
  text-align: center;
  margin: 0 0 10px;
}
.logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
}
.schriftzug {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto 24px;
}
.tagline {
  max-width: 40ch;
  margin: 0 auto 36px;
  text-align: center;
  text-wrap: balance;
  font-size: 15px;
  line-height: 1.55;
  color: var(--leise);
}

/* Historie */
details {
  border-top: 1px solid var(--linie);
  padding-top: 18px;
}
summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font: 700 16px/1.3 var(--schrift);
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--tinte);
  border-bottom: 2px solid var(--tinte);
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
details[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }

details[open] > :not(summary) { animation: auf .22s ease-out; }
@keyframes auf {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

ul { list-style: none; margin: 18px 0 0; padding: 0; }
li { display: flex; gap: 16px; margin: 0 0 14px; }
.jahr {
  flex: 0 0 3.2em;
  font-weight: 700;
  color: var(--tinte);
}

h2 {
  margin: 22px 0 0 calc(3.2em + 16px);
  font: 700 13px/1.3 var(--schrift);
}
ul.projekte {
  margin: 12px 0 22px calc(3.2em + 16px);
  padding-left: 18px;
  border-left: 1px solid var(--linie);
}
ul.projekte li { gap: 14px; }
ul.projekte .jahr { flex-basis: 3em; font-weight: 400; color: var(--leise); }

.pname, .pbesch { display: block; }
.pname { font-weight: 700; line-height: 1.4; }
.pbesch { font-size: 12px; line-height: 1.5; color: var(--leise); }
.stern { margin-left: 2px; color: var(--tinte); }
.archivhinweis {
  margin: -8px 0 22px calc(3.2em + 16px + 19px);
  font-size: 12px;
  color: var(--leise);
}

/* Links */
a {
  color: var(--tinte);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--tinte);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Fuß */
.inhaber {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--linie);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--leise);
}
.fuss {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  body { padding: 40px 24px; }
  main { padding: 32px 22px 22px; }
  li { gap: 12px; }
  h2 { margin-left: 0; }
  ul.projekte { margin-left: 0; padding-left: 14px; }
  ul.projekte .jahr { flex-basis: 2.6em; }
  .archivhinweis { margin-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  details[open] > :not(summary) { animation: none; }
  summary::before { transition: none; }
}
