/* PL Produkte – Design 2a */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/fonts/dm-sans-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink-strong: #2E2D29;
  --ink: #3D3C36;
  --ink-muted: #5A5952;
  --accent: #1F6FA8;
  --accent-hover: #164F78;
  --logo-blue: #86C1E6;
  --bg-page: #F3F8FC;
  --bg-tint: #E3F0F9;
  --line: #E3ECF3;
  --surface: #FFFFFF;

  /* Inhalt bleibt max. 1200px breit; auf großen Monitoren wird links/rechts aufgefüllt */
  --container: 1200px;
  --gutter: max(0px, (100% - var(--container)) / 2);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--ink-strong);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, p { margin: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px calc(var(--gutter) + 64px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo svg { width: 40px; height: 40px; flex: none; display: block; }
.logo-word {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 16px;
}
.site-nav a { color: var(--ink); font-weight: 400; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px calc(var(--gutter) + 48px);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--accent-hover); }

/* Startseite */

.hero {
  padding: 120px 64px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.badge {
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.hero h1 {
  font-size: 80px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
  max-width: 900px;
  text-wrap: balance;
  color: var(--ink-strong);
}
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 580px;
  text-wrap: pretty;
}

.button {
  display: inline-block;
  margin-top: 8px;
  background: var(--ink-strong);
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 150ms ease;
}
.button:hover { background: #000; color: #fff; }

/* Unterseiten */

.page-head {
  padding: 80px calc(var(--gutter) + 48px) 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.page-head p {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 560px;
  line-height: 1.55;
}

/* Projekte */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 calc(var(--gutter) + 24px);
}

.project-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 150ms ease;
}
.project-card:hover { transform: translateY(-2px); }

.project-image {
  height: 200px;
  border-radius: 12px;
  background: var(--bg-tint);
  overflow: hidden;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.project-image--logo { display: grid; place-items: center; padding: 24px; }
.project-image--logo img { width: auto; height: auto; max-width: 70%; max-height: 96px; object-fit: contain; }

.project-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
}
.project-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.project-body p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.project-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

/* Impressum & Datenschutz */

.content-card {
  margin: 0 calc(var(--gutter) + 24px);
  background: var(--surface);
  border-radius: 20px;
  padding: 48px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.imprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.prose { max-width: 760px; }
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 40px 0 10px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }

/* Responsive */

@media (max-width: 767px) {
  .site-header { padding: 20px 24px; }
  .site-nav { gap: 20px; }
  .site-footer { padding: 32px 24px; }

  .hero { padding: 80px 24px 72px; }
  .hero h1 { font-size: 46px; }
  .hero p { font-size: 18px; }

  .page-head { padding: 56px 24px 32px; }
  .page-head h1 { font-size: 40px; }

  .project-grid { grid-template-columns: 1fr; }
  .imprint-grid { grid-template-columns: 1fr; gap: 28px; }
  .content-card { padding: 32px 24px; }
}

@media (max-width: 420px) {
  .site-header { padding: 16px 20px; }
  .logo { gap: 8px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-word { font-size: 19px; }
  .site-nav { gap: 14px; font-size: 15px; }
  .content-card { margin: 0 16px; }
  .project-grid { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .button { transition: none; }
  .project-card:hover { transform: none; }
}
