:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.55),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
}

.logo {
  font-weight: 650;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  color: var(--text-muted);
  padding-bottom: 0.1rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), #a855f7);
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr);
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.btn-primary {
  margin-top: 1.7rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(129, 140, 248, 0.22),
      transparent 55%
    ),
    linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.8);
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out,
    border-color 0.14s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.8);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.section {
  padding: 2.5rem 0 0.5rem;
}

.section-alt {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 2.5rem;
}

.section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.post-card {
  position: relative;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      circle at top,
      rgba(56, 189, 248, 0.06),
      transparent 55%
    ),
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.9)
    );
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.post-card-link {
  display: block;
  color: inherit;
}

.post-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.post-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-meta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: var(--accent-soft);
  color: #bae6fd;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #020617 0, #000 55%);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.scroll-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.scroll-top-btn--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.article-main {
  padding-top: 4.5rem;
}

.article-container {
  max-width: 720px;
}

.article-meta-bar {
  margin-bottom: 1rem;
}

.article-back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.article-body {
  padding: 1.6rem 1.4rem 1.6rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(
      circle at top,
      rgba(56, 189, 248, 0.06),
      transparent 55%
    ),
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.95),
      rgba(15, 23, 42, 0.9)
    );
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.article-header {
  margin-bottom: 1.2rem;
}

.article-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.article-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.article-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-content p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.kontakt-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.8);
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out,
    border-color 0.14s ease-out, background 0.14s ease-out;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.98);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.9);
}

.kontakt-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 0;
  }

  .logo {
    font-size: 0.8rem;
  }

  .main-nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .kontakt-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-body {
    padding-inline: 1.1rem;
  }
}
