/* PixelGarage – statische Version, angelehnt an das Centum-Theme (gray, boxed) */
@font-face { font-family: Relay; font-weight: 300; font-display: swap; src: url(fonts/relay-light.woff2) format("woff2"), url(fonts/relay-light.woff) format("woff"); }
@font-face { font-family: Relay; font-weight: 400; font-display: swap; src: url(fonts/relay-regular.woff2) format("woff2"), url(fonts/relay-regular.woff) format("woff"); }
@font-face { font-family: Relay; font-weight: 700; font-display: swap; src: url(fonts/relay-bold.woff2) format("woff2"), url(fonts/relay-bold.woff) format("woff"); }

:root {
  --dark: #303030;
  --text: #555;
  --muted: #888;
  --line: #e4e4e4;
  --accent: #6a7b67;
  --accent-soft: rgba(106, 123, 103, .85);
  --magenta: #ab2b76;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0 16px 40px;
  font: 300 16px/1.5 Relay, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff url(grid.png) repeat;
  background-size: 750px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--dark); }
h1, h2, h3, h4 { font-weight: 400; color: var(--dark); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }

.box { max-width: 1040px; margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 30px rgba(0,0,0,.08); }

/* Header */
.site-header { background: var(--dark); color: #fff; padding: 28px 40px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo img { width: 280px; }
.header-contact { display: flex; gap: 20px; font-size: 14px; }
.header-contact a { color: #bbb; }
.header-contact a:hover { color: #fff; }
.site-header nav { flex-basis: 100%; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-header nav a { display: block; padding: 16px 22px; color: #fff; font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.site-header nav li:first-child a { padding-left: 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom-color: #fff; }
.nav-toggle { display: none; }

main { padding: 0 40px 40px; }
.page-title { padding: 36px 0 14px; margin-bottom: 30px; border-bottom: 1px solid var(--line); position: relative; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 90px; height: 3px; background: var(--dark); }
.page-title h1 { margin: 0; text-transform: uppercase; letter-spacing: .04em; }

/* Hero */
.hero { position: relative; margin: 0 -40px 40px; }
.hero img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; }
.hero-caption { position: absolute; left: 40px; bottom: 30px; max-width: 520px; background: var(--accent-soft); color: #fff; padding: 18px 22px; }
.hero-caption h2 { color: #fff; margin-bottom: .3em; }
.hero-caption p { margin: 0; font-size: 14px; }

/* Raster aus den Drupal-Inhalten (Skeleton-Klassen) */
.container, .services > .container { display: flex; flex-wrap: wrap; gap: 0 30px; }
.column, .columns { flex: 1 1 100%; min-width: 0; }
.eight.columns { flex-basis: calc(50% - 15px); }
.one-third.column { flex-basis: calc(33.333% - 20px); }
.two-thirds.column { flex-basis: calc(66.666% - 10px); }
.sixteen.columns { flex-basis: 100%; }
.content { display: flex; flex-wrap: wrap; gap: 0 30px; }
.content > p, .content > h2, .content > h3, .content > ul { flex-basis: 100%; }
.headline { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.headline h3 { margin: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
.headline img { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--accent); }
.headline .more { margin-left: auto; font-size: 14px; }
.headline.no-margin { display: block; border: 0; padding: 0; }
.services { margin-bottom: 20px; }
.services .container > div:first-child { flex-basis: 100%; font-size: 18px; margin-bottom: 20px; }
.large-notice { background: #f4f4f2; padding: 24px; border-left: 3px solid var(--accent); }
.team-name h4 { margin-bottom: 0; }
.team-name span { color: var(--muted); font-size: 14px; }
.button, a.button { display: inline-block; background: var(--dark); color: #fff; padding: 9px 18px; font-size: 14px; font-weight: 400; margin: 4px 6px 4px 0; }
.button:hover { background: var(--accent); color: #fff; }
.button.light { background: #eee; color: var(--dark); }
.body ul { padding-left: 1.2em; }
.body iframe { max-width: 100%; }

.section { margin-top: 30px; }
.clients .headline { border: 0; }
.client-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.client-list li { border: 1px solid var(--line); padding: 8px; }
.client-list img { width: 100%; filter: grayscale(1); opacity: .75; transition: .2s; }
.client-list a:hover img { filter: none; opacity: 1; }

/* Portfolio */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.card { display: block; color: var(--text); }
.card[hidden] { display: none; }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; margin-bottom: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover img { transform: scale(1.04); }
.card-title { display: block; color: var(--dark); font-weight: 400; }
.cats { display: block; font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 6px 14px; cursor: pointer; }
.filters button:hover, .filters button.active { background: #666; border-color: #666; color: #fff; }

.project { display: grid; grid-template-columns: 1fr 260px; gap: 30px 40px; }
.gallery { grid-row: span 2; display: grid; gap: 16px; }
.project-meta dl { margin: 0; border-top: 3px solid var(--dark); padding-top: 14px; }
.project-meta dt { font-weight: 400; color: var(--dark); text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.project-meta dd { margin: 0 0 14px; font-size: 15px; }
.project .body h2 { font-size: 18px; margin-top: 1.2em; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* Blog */
.lead { font-size: 18px; margin-bottom: 30px; }
.post-teaser { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.post-teaser:not(:has(.post-img)) { grid-template-columns: 1fr; }
.post-teaser h2 { margin-bottom: .3em; }
.date { color: var(--muted); font-size: 14px; margin-bottom: .3em; }
.post { max-width: 720px; }
.post-images img { margin-bottom: 16px; }

.contact { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
#social ul { list-style: none; padding: 0; margin: 0; }
#social li { border-bottom: 1px solid var(--line); }
#social a { display: block; padding: 8px 0; }

/* Footer */
.site-footer { background: var(--dark); color: var(--muted); font-size: 14px; }
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 36px 40px 20px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: 2px 0; }
.footer-bottom { background: #262626; padding: 16px 40px; font-size: 13px; }

/* Mobile */
@media (max-width: 780px) {
  body { padding: 0; }
  .site-header { padding: 18px 16px; }
  .logo img { width: 200px; }
  .header-contact { display: none; }
  .nav-toggle { display: block; font: inherit; font-size: 14px; color: #fff; background: none; border: 1px solid #666; padding: 6px 12px; text-transform: uppercase; letter-spacing: .06em; }
  .site-header nav { display: none; }
  .nav-open .site-header nav { display: block; }
  .site-header nav ul { flex-direction: column; }
  .site-header nav a { padding: 10px 0; border: 0; }
  main { padding: 0 16px 30px; }
  .hero { margin: 0 -16px 30px; }
  .hero-caption { position: static; max-width: none; background: var(--accent); }
  .eight.columns, .one-third.column, .two-thirds.column { flex-basis: 100%; }
  .project, .contact, .post-teaser { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-cols { grid-template-columns: 1fr; padding: 28px 16px 10px; }
  .footer-bottom { padding: 14px 16px; }
  .pager { flex-wrap: wrap; }
}

/* Archiv-Startseite */
.hero img { aspect-ratio: 3 / 1; }
.intro { max-width: 760px; font-size: 18px; margin-bottom: 20px; }
.intro p:last-child { color: var(--muted); }
#alle { scroll-margin-top: 20px; }
.hero { aspect-ratio: 3 / 1; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero img.active { opacity: 1; }
.intro { max-width: 820px; font-size: 16px; }
.intro .intro-lead { font-size: 20px; color: var(--dark); }
.intro p:last-child { color: inherit; }
.intro-links a { font-weight: 400; }
@media (max-width: 780px) { .hero { aspect-ratio: 16 / 9; } .intro .intro-lead { font-size: 18px; } }
.hero img { object-position: center 40%; }

/* Header ohne Menü: Logo links, Blog-Link rechts */
.site-header { padding: 28px 40px; flex-wrap: nowrap; }
.header-link { color: #aaa; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid transparent; }
.header-link:hover, .header-link[aria-current] { color: #fff; border-bottom-color: currentColor; }
@media (max-width: 780px) {
  .site-header { padding: 18px 16px; }
  .header-link { font-size: 13px; }
}

/* Header-Pfeile */
.hero img { transition: opacity .8s ease; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font: 400 28px/1 Relay, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; opacity: .8; transition: opacity .2s, background .2s; }
.hero-nav:hover { opacity: 1; background: rgba(0,0,0,.7); }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-nav[hidden] { display: none; }

.footer-mail { color: #fff !important; border-bottom: 1px solid #666; }
.footer-mail:hover { border-bottom-color: #fff; }
