/* ============================================================
   Tux Embedded – Theme
   Markenfarben aus dem Logo: Orange, Schwarz, Platinen-Grau
   ============================================================ */

:root {
  --orange: #f7941e;
  --orange-600: #e07d0a;
  --orange-100: #fff2e0;

  --ink: #14161a;
  --ink-800: #1e2229;
  --ink-700: #2b313b;

  --slate: #5b6472;
  --slate-300: #aab2be;

  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eceff4;

  --line: #e2e6ec;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 22, 26, 0.16);

  --wrap: 1120px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--orange-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}
.site-nav a:hover {
  text-decoration: none;
  background: var(--paper-3);
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  color: var(--orange-600);
  background: var(--orange-100);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #f4f6fa;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(247, 148, 30, 0.22), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-800) 55%, #10131a 100%);
}

/* Platinen-Linien im Hintergrund */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(247, 148, 30, 0.12);
  border: 1px solid rgba(247, 148, 30, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.hero h1 {
  color: #fff;
}
.hero h1 .accent {
  color: var(--orange);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--slate-300);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual .logo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: min(320px, 60vw);
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual {
    order: -1;
  }
  .hero-visual img {
    width: min(240px, 55vw);
  }
}

/* ---------- Under construction ---------- */
.uc-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 56vh;
  justify-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.uc-inner h1 {
  color: #fff;
}
.uc-inner .hero-lead {
  margin-inline: auto;
}
.uc-inner .hero-actions {
  justify-content: center;
}
.uc-icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.4rem;
  border-radius: 20px;
  color: var(--orange);
  background: rgba(247, 148, 30, 0.12);
  border: 1px solid rgba(247, 148, 30, 0.35);
}
.uc-icon svg {
  width: 42px;
  height: 42px;
  animation: uc-spin 8s linear infinite;
}
@keyframes uc-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc-icon svg {
    animation: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--orange);
  color: #1a1205;
  box-shadow: 0 8px 22px rgba(247, 148, 30, 0.35);
}
.btn-primary:hover {
  background: var(--orange-600);
  color: #1a1205;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--ink-700);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head .kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 0.6rem;
  display: block;
}
.section-head p {
  color: var(--slate);
  font-size: 1.08rem;
}

/* ---------- Karten-Grid (Leistungen) ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(247, 148, 30, 0.5);
}
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-100);
  color: var(--orange-600);
  margin-bottom: 1rem;
}
.card .icon svg {
  width: 24px;
  height: 24px;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p {
  color: var(--slate);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: center;
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat {
  padding: 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--orange-600);
  line-height: 1;
}
.stat .label {
  color: var(--slate);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ---------- Prose (Textseiten) ---------- */
.page-header {
  background:
    radial-gradient(900px 360px at 85% -30%, rgba(247, 148, 30, 0.18), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--ink-800));
  color: #fff;
  padding-block: clamp(2.8rem, 6vw, 4.2rem);
}
.page-header .kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 0.6rem;
}
.page-header h1 {
  color: #fff;
  margin: 0;
}
.page-header p {
  color: var(--slate-300);
  max-width: 60ch;
  margin: 0.8rem 0 0;
  font-size: 1.1rem;
}

.prose {
  max-width: 72ch;
}
.prose h2 {
  margin-top: 2.4rem;
}
.prose h3 {
  margin-top: 1.8rem;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose strong {
  color: var(--ink);
}

.lead {
  font-size: 1.2rem;
  color: var(--slate);
}

/* Tabellen in Prose (z. B. Impressum, Über – „Auf einen Blick") */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
}
.prose table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--slate);
}
.prose table td:first-child {
  white-space: nowrap;
  width: 1%;
}
.prose table strong {
  color: var(--ink);
}
.prose thead {
  display: none;
}

/* Hinweis-/Zitat-Box */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: var(--orange-100);
  border: 1px solid rgba(247, 148, 30, 0.4);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  color: var(--ink-700);
}
.prose blockquote p {
  margin: 0;
}

/* Projekt-Detailseite: Hero-Bild */
.project-hero {
  margin: -1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.project-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.project-hero figcaption,
.gallery figcaption {
  font-size: 0.85rem;
  color: var(--slate);
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  margin: 0;
}

/* Projekt-Detailseite: Galerie (Masonry) */
.gallery {
  columns: 2;
  column-gap: 1rem;
  margin-bottom: 0.5rem;
}
.gallery figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.gallery img {
  width: 100%;
  display: block;
}
@media (max-width: 640px) {
  .gallery {
    columns: 1;
  }
}

/* ---------- Projektkarten (Übersicht) ---------- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pcard--link {
  color: inherit;
  text-decoration: none;
}
.pcard--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(247, 148, 30, 0.55);
  text-decoration: none;
}
.pcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink-800);
  overflow: hidden;
}
.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.pcard--link:hover .pcard__media img {
  transform: scale(1.04);
}
.pcard__flag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1205;
  background: var(--orange);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.3rem;
  flex: 1;
}
.pcard__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot--laufend {
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}
.dot--abgeschlossen {
  background: var(--slate-300);
}
.pcard__body h3 {
  margin: 0.1rem 0 0;
  font-size: 1.18rem;
}
.pcard__sub {
  margin: 0;
  color: var(--orange-600);
  font-weight: 600;
  font-size: 0.9rem;
}
.pcard__teaser {
  margin: 0.3rem 0 0.2rem;
  color: var(--slate);
  font-size: 0.95rem;
}
.pcard .meta {
  margin-top: auto;
  padding-top: 0.7rem;
}
.pcard .more {
  margin-top: 0.7rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--orange-600);
}
.pcard--link:hover .more {
  text-decoration: underline;
}

/* ---------- Projekte ---------- */
.project {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.project .badge {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 700;
}
.project .badge svg {
  width: 28px;
  height: 28px;
}
.project h3 {
  margin: 0 0 0.35rem;
}
.project .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
}
.project p {
  color: var(--slate);
  margin: 0;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
@media (max-width: 520px) {
  .project {
    grid-template-columns: 1fr;
  }
}

/* Verlinkte Projektkarte (führt zur Detailseite) */
a.project-link {
  text-decoration: none;
  color: inherit;
}
a.project-link:hover {
  text-decoration: none;
  border-color: rgba(247, 148, 30, 0.55);
}
.project .year {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--slate);
}
.project .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--orange-600);
}
a.project-link:hover .more {
  text-decoration: underline;
}

/* ---------- CTA-Band ---------- */
.cta {
  background:
    radial-gradient(700px 300px at 20% 120%, rgba(247, 148, 30, 0.22), transparent 60%),
    linear-gradient(160deg, var(--ink-800), var(--ink));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: var(--slate-300);
  max-width: 52ch;
  margin-inline: auto;
}
.cta .hero-actions {
  justify-content: center;
}

/* ---------- Definition list (Impressum) ---------- */
.dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
}
.dl dt {
  font-weight: 600;
  color: var(--ink);
}
.dl dd {
  margin: 0;
  color: var(--slate);
}
@media (max-width: 520px) {
  .dl {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .dl dd {
    margin-bottom: 0.7rem;
  }
}

.note {
  background: var(--orange-100);
  border: 1px solid rgba(247, 148, 30, 0.4);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-700);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--slate-300);
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
.footer-brand img {
  height: 54px;
  width: auto;
  margin-bottom: 0.8rem;
}
.footer-brand p {
  color: var(--slate);
  max-width: 34ch;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a,
.footer-meta a {
  color: var(--slate-300);
}
.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--orange);
  text-decoration: none;
}
.footer-meta p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.2rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate);
}
@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }

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