/* Rebuild of the 2023 WordPress look (theme mrwriter + Gutenverse blocks) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v18-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-v18-latin-700.woff2") format("woff2");
}

:root {
  --bg: #010101;
  --fg: #f8f8f8;
  --red: #cf2e2e;
  --amber: #fcb900;
  --white: #ffffff;
  --medium: clamp(17.6px, calc(16.6px + 0.362vw), 22.4px);
  --small: clamp(13.6px, calc(13.1px + 0.181vw), 16px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, sans-serif;
  font-size: var(--medium);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 1em 0; }
.medium { font-size: var(--medium); }
.small { font-size: var(--small); }

/* Gutenverse section / boxed container / columns with 10px padding */
.container {
  display: flex;
  max-width: 1140px;
  margin: 0 auto;
}
.col {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

/* Header: three equal columns */
.head { padding-top: 19px; }
.head .col { flex-basis: 33.3%; display: block; }
.head .contact {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 37px;
}
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--small);
}
.contact svg {
  width: 1.3em;
  height: 1.3em;
  fill: currentColor;
  flex: none;
}

/* Logo row */
.logos { padding-top: 60px; }

.box {
  border: 3px solid;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.box-red { border-color: var(--red); }
.box-amber { border-color: var(--amber); }
.box-white { background: var(--white); }

.box img {
  display: block;
  width: 500px;
  max-width: 100%;
  height: auto;
}

/* Single Werkstatt column, centered at the old half width */
.logos .container, .services .container { justify-content: center; }
.logos .col, .services .col { flex: 0 1 570px; }

/* Service row */
.services { padding-top: 9px; }
.text {
  align-self: stretch;
  text-align: center;
  font-size: var(--small);
  line-height: 1.6;
  padding: 18px 10px;
}
.text p { margin: 0; }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }

/* Footer: one third with text, rest empty */
.foot .col-third { flex: 0 0 33.33%; }
.foot .col-rest { flex: 1; align-items: flex-end; justify-content: flex-end; }
.foot a { color: var(--fg); opacity: 0.6; }

/* Slide-in like animate.css slideInLeft/Right with duration "slow" (2s) */
.slide { visibility: hidden; }
.slide.in { visibility: visible; animation: 2s ease both; }
.slide-left.in { animation-name: slideInLeft; }
.slide-right.in { animation-name: slideInRight; }

@keyframes slideInLeft {
  from { transform: translate3d(-100%, 0, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes slideInRight {
  from { transform: translate3d(100%, 0, 0); visibility: visible; }
  to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .slide { visibility: visible; }
  .slide.in { animation: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .logos { padding-top: 60px; }
  .head .container { padding: 0 10px; }
}

/* Phone: columns stack */
@media (max-width: 767px) {
  .container { flex-direction: column; padding: 0 6px; }
  .head .col, .foot .col-third { flex-basis: auto; }
  .contact { padding-top: 10px; }
  .foot .col-rest { align-items: flex-start; }
}

/* Legal page */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  font-size: var(--small);
}
.legal h1 { font-size: 1.8rem; margin-top: 0; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.legal a { text-decoration: underline; }
.back { display: inline-block; margin-bottom: 24px; opacity: 0.7; }
