/* LRTV: Designsprache angelehnt an trinity-wardogs.
   Fast-schwarze Basis, Haarlinien, Oswald-Headlines, Mono-Labels, Türkis-Akzent. */

:root {
  color-scheme: dark;

  /* Basis mit leichtem Blaustich (passt zum Panda-Artwork) */
  --background: oklch(0.145 0.012 250);
  --foreground: oklch(0.93 0.01 230);

  --card: oklch(0.2 0.018 245);
  --secondary: oklch(0.245 0.02 245);
  --muted-foreground: oklch(0.67 0.02 240);

  /* Türkis-Akzent (LRTV) — für Trinity-Amber: oklch(0.667 0.163 58) */
  --primary: oklch(0.72 0.12 188);
  --primary-foreground: oklch(0.145 0.012 250);

  --border: oklch(0.93 0.01 230 / 12%);
  --ring: oklch(0.72 0.12 188);

  --radius: 3px;
  --max: 72rem;

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

::selection { background: var(--primary); color: var(--primary-foreground); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Bausteine ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--foreground) 1px, transparent 1px),
    linear-gradient(to bottom, var(--foreground) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.035;
}

.mono-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.lead {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  text-wrap: pretty;
}
.lead a { color: var(--foreground); text-underline-offset: 3px; text-decoration-color: var(--primary); }
.lead a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--foreground);
  background: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--secondary); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: oklch(0.72 0.12 188 / 85%); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.7rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: oklch(0.145 0.012 250 / 85%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.wordmark img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.nav { display: none; gap: 1.75rem; margin-left: auto; margin-right: 1.5rem; }
.nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--foreground); }
@media (min-width: 768px) { .nav { display: flex; } }

/* DE/EN-Umschalter */
.lang-toggle {
  display: flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: oklch(0.2 0.018 245 / 40%);
}
.lang-toggle button {
  appearance: none;
  border: 0;
  width: 2.4rem;
  padding: 0.3rem 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-toggle button:hover { color: var(--foreground); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 32rem;
  display: flex;
  align-items: center;
}
@media (min-width: 768px) { .hero { min-height: 40rem; } }

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/background.jpg") center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--background) 0%, oklch(0.145 0.012 250 / 25%) 50%, transparent 100%),
    linear-gradient(to right, oklch(0.145 0.012 250 / 80%) 0%, oklch(0.145 0.012 250 / 45%) 60%, oklch(0.145 0.012 250 / 20%) 100%),
    oklch(0.145 0.012 250 / 30%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-copy { min-width: 0; max-width: 38rem; }

.hero h1 {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
}
.hero h1 .accent { color: var(--primary); }

.hero p {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: oklch(0.85 0.012 235);
}
.hero .hero-tagline {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* Panda leicht schief, wie ein angeklebtes Foto */
.hero-avatar {
  display: none;
  flex-shrink: 0;
  width: 17rem;
  height: 17rem;
  object-fit: cover;
  border: 6px solid oklch(0.93 0.01 230 / 90%);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px oklch(0 0 0 / 50%);
  transform: rotate(3deg);
}
@media (min-width: 1024px) { .hero-avatar { display: block; } }
@media (min-width: 1280px) { .hero-avatar { width: 20rem; height: 20rem; } }

/* ---------- Sections ---------- */

.section {
  position: relative;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) { .section { padding-top: 5.5rem; padding-bottom: 5.5rem; } }

.grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Mod-Karten ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: oklch(0.2 0.018 245 / 30%);
  overflow: hidden;
}
.card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.card-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-media:hover .card-img img { transform: scale(1.03); }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Projektliste ---------- */

.project-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.project {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project-with-img > div { display: flex; flex-direction: column; gap: 0.6rem; }
.project-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.project h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.project p {
  margin: 0.2rem 0 0;
  max-width: 40rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.project .card-link { margin-top: 0.3rem; padding-top: 0; }

.project-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 720px) {
  .project-with-img {
    display: grid;
    grid-template-columns: 1fr 18rem;
    gap: 2.5rem;
    align-items: center;
  }
  .project-with-img .project-img { order: 2; }
}

/* ---------- Kontakt ---------- */

.grid-links { gap: 0.75rem; }
@media (min-width: 560px) { .grid-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-links { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-links { grid-template-columns: repeat(5, 1fr); } }

.link-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  background: oklch(0.2 0.018 245 / 30%);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.link-tile:hover {
  background: var(--secondary);
  border-color: oklch(0.72 0.12 188 / 50%);
}
.link-tile i.fa-brands {
  font-size: 1.35rem;
  width: 1.6rem;
  text-align: center;
  transition: color 0.15s ease;
}
.link-tile:hover i.fa-brands { color: var(--primary); }
.link-tile .label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.link-tile .name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.link-tile .handle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-foreground);
}
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--foreground); }
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- Rechtstexte ---------- */

.legal { max-width: 46rem; }
.legal h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}
.legal h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
  font-weight: 600;
}
.legal h3 {
  margin-top: 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.legal p, .legal address {
  margin: 0.75rem 0 0;
  font-style: normal;
  line-height: 1.75;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.legal a { color: var(--primary); text-underline-offset: 3px; }
