/* ============================================================
   preusser.it — style.css
   Mobile-first, Dark Mode, Akzent #31737e
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --accent:        #31737e;
  --accent-dark:   #255a63;
  --accent-glow:   rgba(49, 115, 126, 0.18);

  --bg:            #121212;
  --bg-header:     rgba(18, 18, 18, 0.92);
  --card:          #1e1e1e;
  --card-hover:    #252525;
  --footer-bg:     #0d0d0d;
  --border:        rgba(255,255,255,0.07);

  --text:          #f0f0f0;
  --text-secondary: #999;
  --text-muted:    #555;

  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  --pad:           16px;
  --pad-sm:        8px;
  --pad-lg:        24px;

  --max-w:         960px;
  --max-w-prose:   720px;

  --shadow:        0 2px 12px rgba(0,0,0,0.4);
  --shadow-accent: 0 4px 24px rgba(49,115,126,0.25);

  --transition:    0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 72px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--pad);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 580px;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: var(--bg-header);
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.header-brand:hover { color: var(--text); }

.header-brand-lama {
  width: 28px;
  height: auto;
  color: var(--text);
  flex-shrink: 0;
}

.header-brand span {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}


/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(49,115,126,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(49,115,126,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(16px, 3vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}


/* Hero lama */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-lama {
  width: 120px;
  height: auto;
  color: var(--accent);
  opacity: 0.4;
}

/* ── Features / Projects ────────────────────────────────────── */
.features {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-lg);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: rgba(49,115,126,0.25);
  transform: translateY(-2px);
}

a.feature-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

a.feature-card:hover { color: var(--text); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg { width: 22px; height: 22px; }

.project-icon {
  background: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
}

.project-icon img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.project-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.scoresheet-card { --card-accent: #f99f16; }
.danke-card      { --card-accent: #F6A9A2; }

.project-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 35%, transparent);
}

.project-card .project-url {
  color: var(--card-accent);
}

.project-card:hover .project-arrow {
  color: var(--card-accent);
}

.project-url {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.footer-brand:hover { color: var(--text); }

.footer-brand-lama {
  width: 32px;
  height: auto;
  color: var(--text);
  flex-shrink: 0;
}

.footer-brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-lama {
  width: 24px;
  height: auto;
  color: var(--text-muted);
  opacity: 0.3;
}

/* ── Legal Pages ────────────────────────────────────────────── */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page .container {
  max-width: var(--max-w-prose);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition);
}

.legal-back:hover { color: var(--accent); }
.legal-back svg { width: 16px; height: 16px; }

.legal-page h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 20px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ── Responsive: 640px ──────────────────────────────────────── */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: 768px ──────────────────────────────────────── */
@media (min-width: 768px) {
  .hero {
    padding: 140px 0 100px;
  }

  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .hero-content {
    text-align: left;
    flex: 1;
  }

  .hero-badges {
    align-items: flex-start;
  }

  .hero-visual {
    flex-shrink: 0;
  }

  .hero-lama {
    width: 150px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Responsive: 1024px ─────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-lama {
    width: 180px;
  }
}
