/* SPD Pfalzel Nachbau — inspired by Daisho portfolio theme */
:root {
  --accent-color: #d13832;
  --accent-hot: #dd3333;
  --text: #222;
  --muted: #787878;
  --line: #ddd;
  --max: 1120px;
  --gap: 5px;
  --cell: 220px;
  --cell-h: 150px;
  --h2: 305px;
  --w2: 445px;
  --w3: 670px;
}

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

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

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
}

.site-header-inner {
  position: relative;
  width: calc(100% - 30px);
  max-width: var(--max);
  min-height: 150px;
  border-bottom: 3px solid var(--line);
  margin: 0 auto;
}

.logo {
  position: relative;
  margin: 30px 0;
  text-align: center;
}

.home-link:hover {
  text-decoration: none;
}

.site-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #d13832;
  margin: 0 0 5px 0;
  line-height: 1.15;
}

.home-link:hover .site-title {
  color: var(--accent-color);
}

.site-description {
  font-size: 13px;
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

.site-navigation {
  position: relative;
  margin: 25px auto;
}

.menu-toggle {
  display: block;
  margin: 0;
  padding: 15px;
  background: #eee;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.menu-toggle::before {
  content: "☰";
  margin-right: 10px;
}

.nav-menu {
  display: none;
  margin-top: 3px;
}

.site-navigation.is-open .nav-menu {
  display: block;
}

.nav-menu li a {
  display: block;
  padding: 15px;
  color: #000;
  font-family: Dosis, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-menu li a:hover {
  background-color: #eee;
  text-decoration: none;
}

@media (min-width: 640px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .nav-menu li {
    display: inline-block;
    position: relative;
  }

  .nav-menu > li {
    margin-left: 25px;
    padding-bottom: 3px;
  }

  .nav-menu > li:first-child {
    margin-left: 0;
  }

  .nav-menu li a {
    padding: 0;
    line-height: 1.25;
  }

  .nav-menu li a:hover {
    background: transparent;
    color: var(--accent-color);
  }
}

/* ---------- Page header ---------- */
.page-header {
  margin-bottom: 30px;
}

.page-title {
  width: calc(100% - 30px);
  max-width: var(--max);
  padding: 15px 0 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0 auto;
  color: #000;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.site-content {
  width: 100%;
}

.content-inner {
  width: calc(100% - 30px);
  max-width: var(--max);
  margin: 0 auto;
}

.page-description {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--text);
}

@media (min-width: 640px) {
  .page-description {
    font-size: 32px;
  }

  .page-header {
    margin-bottom: 50px;
  }
}

/* ---------- Portfolio grid (3 tiles) ---------- */
.portfolio-block {
  padding-top: 18px;
  margin: 0 auto 2em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

a.item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #888;
  color: #222;
  min-height: 240px;
  cursor: pointer;
  word-wrap: break-word;
  text-decoration: none;
  outline: none;
}

a.item:hover,
a.item:focus-visible {
  text-decoration: none;
}

a.item:focus-visible {
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--accent-color);
}

.item--solid-red {
  background: var(--accent-hot);
}

.item .project-img {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s, transform 0.45s ease;
}

a.item:hover .project-img,
a.item:focus-visible .project-img {
  transform: scale(1.03);
}

.item .project-thumbnail-background {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.item .thumbnail-meta-data-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  padding: 9px 15px 0 13px;
  width: 100%;
  z-index: 40;
  overflow: hidden;
}

.item .symbol {
  color: #fff;
  overflow: hidden;
  height: auto;
  max-height: 4.5em;
  font: 300 175%/1 Lato, sans-serif;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 40;
}

.item--large .symbol {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
}

.item .categories {
  position: absolute;
  left: 0;
  bottom: 10px;
  z-index: 40;
  width: 100%;
  padding: 0 15px;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  font-size: 75%;
  font-family: Dosis, sans-serif;
  text-transform: uppercase;
}

.item .thumbnail-hover {
  position: absolute;
  inset: 0;
  z-index: 30;
  opacity: 0.35;
  transition: opacity 0.25s ease-in-out;
}

a.item:hover .thumbnail-hover,
a.item:focus-visible .thumbnail-hover {
  opacity: 0.55;
}

.item.tn-display-meta .symbol,
.item.tn-display-meta .categories {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
  }

  a.item {
    min-height: 0;
  }

  .item--gemeinsam {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 320px;
  }

  .item--machmit {
    grid-column: span 4;
    grid-row: span 1;
    min-height: 157.5px;
  }

  .item--wir {
    grid-column: span 4;
    grid-row: span 1;
    min-height: 157.5px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  color: var(--muted);
  padding: 40px 0 80px;
}

.site-footer .inner {
  width: calc(100% - 30px);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer-fa {
  text-align: center;
}

.footer-fa a {
  display: inline-block;
  margin: 0 18px 24px;
  color: #c6cacb;
  font-size: 18px;
  font-family: Dosis, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-fa a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-fa .fa-facebook {
  font-size: 32px;
  vertical-align: middle;
  line-height: 0;
}

.footer-fa .fa-facebook svg {
  display: block;
}

.footer-links {
  display: block;
  margin-top: 8px;
  line-height: 1.8;
}

/* ---------- Side info box (desktop) ---------- */
.info-box {
  display: none;
  background: rgba(18, 18, 23, 0.96);
  position: fixed;
  top: 0;
  left: 0;
  width: min(360px, 90vw);
  z-index: 160;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.info-box.is-open {
  transform: translateX(0);
}

.info-box-inner {
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}

.info-box img {
  max-width: 160px;
  margin: 0 auto 1.25em;
  display: block;
}

.info-box p {
  font-size: 125%;
  margin: 0;
  line-height: 1.125;
  font-weight: 400;
  color: #fff;
}

.info-toggle {
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 170;
  transform: translateY(-50%);
  background: rgba(18, 18, 23, 0.96);
  color: #fff;
  border: 0;
  padding: 12px 8px;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: Dosis, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1025px) {
  .info-box,
  .info-toggle {
    display: block;
  }
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #333;
  color: #fff;
  padding: 14px 16px;
}

.cookie-notice.is-hidden {
  display: none;
}

.cookie-notice-container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.cookie-notice-container .cn-text {
  flex: 1 1 240px;
}

.cookie-notice .button {
  display: inline-block;
  padding: 8px 14px;
  background: #f3f3f3;
  color: #333;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  font-family: inherit;
}

.cookie-notice .button:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ---------- Placeholder tiles ---------- */
.placeholder-note {
  margin: 0 0 1.5em;
  padding: 10px 14px;
  background: #f8f8f8;
  border-left: 3px solid var(--accent-color);
  font-size: 13px;
  color: #555;
}
