@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg: #08080a;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --text: #e8e8ed;
  --text-muted: #6b6b76;
  --accent: #ff6b00;
  --accent-dim: rgba(255, 107, 0, 0.08);
  --accent-glow: rgba(255, 107, 0, 0.25);
  --border: #222228;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', 'Fira Code', monospace;
  --display: 'Syne', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 107, 0, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ============ NAV ============ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeDown 0.6s ease-out both;
}

nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav .logo img {
  height: 28px;
  width: auto;
  display: block;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
}

nav .nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  position: relative;
}

nav .nav-links a::before {
  content: '>';
  margin-right: 0.35rem;
  color: var(--border);
  transition: color 0.3s ease;
}

nav .nav-links a:hover {
  color: var(--accent);
}

nav .nav-links a:hover::before {
  color: var(--accent);
}

/* ============ HERO (index) ============ */

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  min-height: 90vh;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite alternate;
}

.hero {
  text-align: left;
  max-width: 720px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 0, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.6s ease-out 0.35s both;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero .suffix {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out 0.5s both;
}

.hero .suffix::before {
  content: '// ';
  color: var(--border);
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out 0.6s both;
}

.hero .address {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  animation: fadeUp 0.6s ease-out 0.85s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out 0.7s both;
}

.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.hero .btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero .btn-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero .btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ============ CONTENT BLOCKS (Services / Member / Projekte) ============ */

.block {
  padding: 4rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  scroll-margin-top: 5rem;
}

.block-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.block-header .marker {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.block-header h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

.block-header .line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 0.5rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (min-width: 601px) and (max-width: 880px) {
  .grid.cols-2,
  .grid.cols-3 { grid-template-columns: 1fr; }
}

/* ============ CARDS ============ */

.card {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.15rem 0 0.15rem 1.2rem;
  position: relative;
}

.card ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.stack span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  letter-spacing: 0.03em;
}

/* ============ MEMBER ============ */

.card {
  display: flex;
  flex-direction: column;
}

.card > .stack {
  margin-top: auto;
}

.member {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.member-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-meta { min-width: 0; }

.member > p { flex: 1; }

.avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.member .role {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.member h3 { margin: 0; }

/* ============ PROJECTS ============ */

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.project-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.project-status.archived::before { background: var(--text-muted); box-shadow: none; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.project-link:hover { opacity: 0.7; }
.project-link::after { content: '->'; }

/* ============ CONTACT / CTA ============ */

.contact {
  padding: 4rem 2rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  scroll-margin-top: 5rem;
}

.contact-card {
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

.contact-card .marker {
  position: relative;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.contact-card h2 {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-card a.email {
  position: relative;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-card a.email:hover { border-color: var(--accent); }

/* ============ CONTENT PAGES (Impressum / Datenschutz) ============ */

.page-wrapper {
  flex: 1;
  padding: 7rem 2rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.3s ease;
  animation: fadeUp 0.5s ease-out 0.1s both;
}

.page-back:hover { color: var(--accent); }

.page-back::before {
  content: '<-';
  font-family: var(--mono);
}

.page-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
  animation: fadeUp 0.5s ease-out 0.2s both;
}

.page-title-line {
  width: 3rem;
  height: 3px;
  background: var(--accent);
  border: none;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.5s ease-out 0.3s both;
}

.section {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  animation: fadeUp 0.5s ease-out both;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section:hover::before { opacity: 1; }

.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.section h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.section a:hover {
  border-color: var(--accent);
}

.section ul { list-style: none; padding: 0; margin-bottom: 0.5rem; }

.section ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0 0.2rem 1.2rem;
  position: relative;
}

.section ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* ============ FOOTER ============ */

footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
  letter-spacing: 0.04em;
}

footer a:hover { color: var(--accent); }
footer .separator { color: var(--border); }

/* ============ ANIMATIONS ============ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink { 50% { opacity: 0; } }

@keyframes pulse {
  from { opacity: 0.2; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 0.4; transform: translate(-50%, -50%) scale(1.05); }
}

/* Scroll-triggered reveal — only when JS is enabled, otherwise content stays visible */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 600px) {
  nav { padding: 0.75rem 1.25rem; }
  nav .nav-links { gap: 1rem; }

  .hero-wrapper { padding: 5.5rem 1.25rem 3rem; min-height: auto; }
  .block { padding: 3rem 1.25rem; }
  .block-header { flex-wrap: wrap; gap: 0.5rem; }
  .block-header .line { display: none; }

  .card { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
  .member { gap: 1rem; }

  .contact { padding: 3rem 1.25rem 2rem; }
  .contact-card { padding: 2rem 1.25rem; }

  .page-wrapper { padding: 5.5rem 1.25rem 3rem; }
  .section { padding: 1rem 1.25rem; }
  footer { padding: 1.25rem 1rem; }
  footer a { margin: 0 0.5rem; }
}
