/*
Theme Name: WEBA Campus
Author: WEBA Project
Description: Eigenes Theme fuer das Webarchitektur-Projekt.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: weba-campus
*/

:root {
  --ink: #10171c;
  --ink-soft: #26343b;
  --paper: #f4f1e8;
  --paper-warm: #ded7c8;
  --mist: #b8c6bd;
  --line: rgba(244, 241, 232, 0.18);
  --line-dark: rgba(16, 23, 28, 0.14);
  --accent: #d8ff63;
  --accent-deep: #31524a;
  --teal: #0e3738;
  --night: #081113;
  --night-raised: #111f22;
  --max-width: 1180px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
}

body::selection {
  color: var(--night);
  background: var(--accent);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--paper);
  background: var(--night);
}

.home .site-header,
.front-page .site-header {
  position: absolute;
  background: transparent;
}

.site-header__inner,
.site-footer__inner {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.22);
}

.site-branding {
  display: grid;
  gap: 3px;
}

.site-title {
  color: currentColor;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: rgba(244, 241, 232, 0.68);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: rgba(244, 241, 232, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

.site-main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  color: var(--paper);
  background: var(--night);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.58;
  filter: saturate(0.92) contrast(1.08);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    radial-gradient(circle at 76% 18%, rgba(216, 255, 99, 0.24), transparent 24rem),
    linear-gradient(90deg, rgba(8, 17, 19, 0.96), rgba(8, 17, 19, 0.68) 44%, rgba(8, 17, 19, 0.18));
}

.hero::after {
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, black 22%, black 78%, transparent);
  opacity: 0.32;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  align-items: end;
  gap: clamp(72px, 8vw, 128px);
  width: min(100% - 64px, 1440px);
  margin: 0 auto;
  padding: 160px 0 112px;
}

.hero__copy {
  max-width: 960px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.entry-title {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7.2vw, 7.8rem);
  font-weight: 700;
  line-height: 0.9;
  text-wrap: balance;
}

.hero__lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(244, 241, 232, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  overflow-wrap: anywhere;
}

.hero__panel {
  display: grid;
  gap: 1px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(8, 17, 19, 0.56);
  backdrop-filter: blur(16px);
}

.panel-kicker,
.status-row {
  padding: 18px;
}

.panel-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
}

.status-row span {
  color: rgba(244, 241, 232, 0.56);
  font-size: 0.78rem;
}

.status-row strong {
  color: var(--paper);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.hero__bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(8, 17, 19, 0.72);
  backdrop-filter: blur(14px);
}

.hero__bottom span {
  min-height: 68px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
  color: rgba(244, 241, 232, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
}

.section--paper {
  color: var(--ink);
}

.section--dark {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(216, 255, 99, 0.08), transparent 36%),
    var(--night);
}

.section--dark > * {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.section__intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.54fr) minmax(0, 0.9fr);
  grid-template-areas:
    "meta title"
    "copy title";
  align-items: center;
  gap: 22px clamp(48px, 7vw, 104px);
  margin-bottom: 64px;
}

.section__intro .eyebrow {
  grid-area: meta;
  align-self: end;
  text-align: left;
}

.section__intro h2 {
  grid-area: title;
  max-width: 720px;
}

.section__intro > p:not(.eyebrow) {
  grid-area: copy;
  max-width: 560px;
  align-self: start;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 5.6rem);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

.section p {
  margin: 0;
  color: rgba(16, 23, 28, 0.68);
  font-size: 1.08rem;
}

.section--dark p {
  color: rgba(244, 241, 232, 0.7);
}

.flow-map {
  display: grid;
  grid-template-columns: 1fr 46px 1fr 46px 1fr 46px 1fr;
  align-items: stretch;
}

.flow-node {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.34);
}

.flow-node--edge {
  background: var(--paper-warm);
}

.flow-node--dark {
  color: var(--paper);
  background: var(--teal);
}

.flow-node span {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.flow-node--dark span {
  color: var(--accent);
}

.flow-node h3 {
  margin: auto 0 12px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.flow-node p {
  font-size: 0.96rem;
}

.flow-node--dark p {
  color: rgba(244, 241, 232, 0.72);
}

.flow-line {
  position: relative;
  min-height: 260px;
}

.flow-line::before,
.flow-line::after {
  position: absolute;
  content: "";
}

.flow-line::before {
  top: 50%;
  right: 8px;
  left: 8px;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}

.flow-line::after {
  top: calc(50% - 5px);
  right: 8px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0.5;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.proof-copy {
  position: sticky;
  top: 40px;
}

.header-stack {
  display: grid;
  border: 1px solid var(--line);
  background: var(--night-raised);
}

.header-stack div {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.header-stack div:last-child {
  border-bottom: 0;
}

.header-stack span {
  color: rgba(244, 241, 232, 0.52);
  font-size: 0.8rem;
}

.header-stack strong {
  color: var(--accent);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 72px;
  align-items: start;
}

.section--ledger {
  display: grid;
  gap: 54px;
}

.ledger-title {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}

.ledger-title__heading,
.ledger-title__copy {
  min-width: 0;
}

.ledger-title__heading h2 {
  max-width: 620px;
}

.ledger-title__copy {
  max-width: 620px;
  justify-self: end;
}

.ledger-title__copy p {
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.ledger-grid article {
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.26);
}

.ledger-grid span {
  display: inline-block;
  margin-bottom: 82px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ledger-grid h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.ledger-grid p {
  font-size: 0.96rem;
}

.split-copy {
  display: grid;
  gap: 28px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-weight: 800;
}

.section--about {
  display: grid;
  justify-items: center;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.about-copy {
  max-width: 900px;
  margin: 0 auto;
}

.about-copy h2 {
  margin-bottom: 34px;
}

.about-copy p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.about-copy p + p {
  margin-top: 22px;
}

.about-copy a {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.section--hosting {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.82fr);
  gap: 72px;
  align-items: start;
  border-top: 1px solid var(--line-dark);
}

.hosting-copy {
  max-width: 720px;
}

.hosting-stack {
  display: grid;
  border-top: 1px solid var(--line-dark);
}

.hosting-stack div {
  display: grid;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
}

.hosting-stack span {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hosting-stack strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.section--content {
  padding-top: 0;
}

.section--evidence {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--paper);
  background: var(--night);
}

.evidence-board {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
}

.evidence-board h2 {
  max-width: 760px;
  margin-bottom: 28px;
}

.evidence-board > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 48px;
  color: rgba(244, 241, 232, 0.7);
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.verification-grid article {
  display: grid;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.verification-grid span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verification-grid strong {
  align-self: end;
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.entry-content {
  max-width: 760px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  color: var(--paper);
  background: var(--night);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 120px;
  border-top: 1px solid var(--line);
  color: rgba(244, 241, 232, 0.68);
  font-size: 0.92rem;
}

@media (hover: hover) and (pointer: fine) {
  .flow-node,
  .header-stack div,
  .hero__panel {
    transition: transform 280ms var(--ease-out), border-color 280ms var(--ease-out);
  }

  .flow-node:hover,
  .hero__panel:hover {
    border-color: rgba(216, 255, 99, 0.7);
    transform: translateY(-4px);
  }

  .header-stack div:hover {
    transform: translateX(8px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .flow-node,
  .header-stack div {
    animation: rise-in 1ms both;
    animation-timeline: view();
    animation-range: entry 0% cover 32%;
  }
}

@keyframes rise-in {
  from {
    opacity: 0.18;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 960px) {
  .site-header {
    position: relative;
    color: var(--paper);
    background: var(--night);
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner,
  .section__intro,
  .proof-grid,
  .section--split,
  .section--hosting,
  .ledger-title {
    grid-template-columns: 1fr;
  }

  .section__intro {
    grid-template-areas:
      "meta"
      "title"
      "copy";
    gap: 24px;
  }

  .hero__inner {
    padding-top: 80px;
  }

  .ledger-title__copy {
    justify-self: start;
  }

  .hero__panel {
    max-width: 520px;
  }

  .hero__bottom {
    position: relative;
    grid-template-columns: 1fr;
  }

  .hero__bottom span {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-map {
    grid-template-columns: 1fr;
  }

  .ledger-grid,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .flow-line {
    min-height: 46px;
  }

  .flow-line::before {
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    height: auto;
  }

  .flow-line::after {
    top: auto;
    right: auto;
    bottom: 8px;
    left: calc(50% - 5px);
    transform: rotate(135deg);
  }

  .proof-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .hero__inner,
  .section,
  .section--dark > * {
    width: min(100% - 28px, var(--max-width));
  }

  .hero h1,
  .entry-title {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__inner,
  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero__copy,
  .hero__lead,
  .hero__panel {
    width: 100%;
    max-width: 100%;
  }

  .header-stack div {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
