:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #020914;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #f4f8ff;
  background: url("../images/hp-hintergrund.png") center/cover fixed no-repeat;
  font-size: 1rem;
  line-height: 1.6;
}

body.blog-page {
  background: url("../images/blog-hintergrund.png") center/cover fixed no-repeat;
}

body,
button,
a {
  font-family: inherit;
}

a {
  color: inherit;
}

.landing .overlay {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.2rem;
  background: linear-gradient(180deg, rgba(2, 8, 28, 0.65), rgba(2, 8, 28, 0.9));
}

.hero {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a9c6ff;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

.subtitle {
  margin: 1rem auto 0;
  max-width: 720px;
  color: #dfe8ff;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.posts {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.posts h2 {
  margin: 0 0 1.5rem;
  color: #e6efff;
  font-size: 1.2rem;
}

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(173, 216, 255, 0.18), transparent 40%);
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.tile-image {
  flex: 1;
  background: url("../images/hp-hintergrund.png") center/cover no-repeat;
  transition: transform 0.5s ease;
}

.tile:hover .tile-image {
  transform: scale(1.08);
}

.tile-content {
  position: relative;
  padding: 1.6rem 1.6rem 2rem;
  z-index: 1;
}

.tile-label {
  margin: 0 0 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b7d2ff;
  font-size: 0.85rem;
}

.tile h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.tile p {
  margin: 0;
  color: #edf3ff;
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .hero {
    padding-top: 1rem;
  }
}

.blog-page main {
  min-height: 100vh;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(12, 23, 48, 0.1);
  animation: floatIn 0.9s ease-out both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: #1c2a46;
  text-decoration: none;
  font-weight: 600;
}

.back-link::before {
  content: "←";
  font-size: 1.1rem;
}

.paper h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.02;
  color: #08102a;
}

.meta {
  margin: 0.85rem 0 2rem;
  color: #5a637a;
  font-size: 0.95rem;
}

.paper p {
  margin: 1.3rem 0;
  color: #1f2841;
  font-size: 1rem;
  line-height: 1.85;
  text-align: justify;
}

.paper p strong {
  color: #0f1731;
}

.paper ol,
.paper ul {
  margin: 1.3rem 0;
  padding-left: 1.6rem;
  color: #1f2841;
  line-height: 1.85;
}

.paper li {
  margin: 0.4rem 0;
}

.sources {
  margin-top: 2.5rem;
  padding: 1.6rem;
  background: #f5f8ff;
  border-radius: 18px;
  border: 1px solid #d3deed;
}

.sources h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
  color: #142448;
}

.sources p {
  margin: 0;
  color: #354161;
}

.sources ul {
  margin: 0;
  padding-left: 1.4rem;
  color: #354161;
  line-height: 1.7;
}

.sources li {
  margin: 0.3rem 0;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .paper {
    padding: 2rem 1.5rem;
  }

  .paper h1 {
    font-size: 2.2rem;
  }
}
