@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --color-bg: #f5f5f5;
  --color-text: #2c2c2c;
  --color-text-light: #666;
  --color-white: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.55);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: var(--color-white);
  z-index: 200;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
}

/* Navigation */
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(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

nav .logo img {
  height: 40px;
  width: auto;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav .nav-links a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #2c3e50, #4a6741);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content .tagline {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
}

.hero-content .tagline::before {
  content: "\ab\2009";
}

.hero-content .tagline::after {
  content: "\2009\bb";
}

.egg {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.egg:hover {
  color: #c9a227;
}

.egg-coin {
  display: inline-block;
  color: #c9a227;
  text-decoration: none;
  animation: spin-coin 3s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes spin-coin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .egg-coin { animation: none; }
}

/* Parallax Sections */
.parallax-section {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

/* Content Sections */
.content-section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.content-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.content-section p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 650px;
  margin: 0 auto;
}

/* Über uns */
.ueber-uns-bg {
  background: linear-gradient(135deg, #3a3a3a, #5a5a5a);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Testimonials */
.testimonials {
  padding: 6rem 2rem;
  background: var(--color-bg);
}

.testimonials h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.testimonial-card .role {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* Kunden Parallax */
.kunden-bg {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Kontakt */
.kontakt {
  padding: 6rem 2rem;
  background: var(--color-white);
  text-align: center;
}

.kontakt h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.kontakt p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--color-text);
}

.kontakt-info a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text-light);
  transition: border-color 0.2s;
}

.kontakt-info a:hover {
  border-color: var(--color-text);
}

/* Impressum */
.impressum {
  padding-top: 8rem;
}

.impressum-content {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.impressum-content h3 {
  margin-top: 2rem;
}

.impressum-content h4 {
  margin-top: 1rem;
}

.impressum-content ul {
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

/* 404 */
.not-found {
  padding-top: 8rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found .back-link {
  margin-top: 2rem;
}

.not-found .back-link a {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text-light);
  text-decoration: none;
}

/* Snake Game */
.snake-game {
  padding: 2rem 0;
  text-align: center;
}

.snake-game-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

.snake-score {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

#snake-canvas {
  display: block;
  margin: 0 auto;
  border: 2px solid var(--color-text);
  background: var(--color-white);
  image-rendering: pixelated;
  touch-action: none;
}

.snake-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.snake-controls-row {
  display: flex;
  gap: 0.5rem;
}

.snake-btn {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
  border: 2px solid var(--color-text);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.snake-btn:active {
  background: var(--color-text);
  color: var(--color-white);
}

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .snake-controls {
    display: flex;
  }
}

@media (max-width: 480px) {
  .snake-game-wrapper {
    max-width: 100%;
  }
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  background: var(--color-text);
  color: var(--color-text-light);
  font-size: 0.85rem;
}

footer a {
  color: var(--color-bg);
  text-decoration: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snake-game {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .tagline {
    font-size: 1rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  nav .nav-links a {
    font-size: 0.8rem;
  }

  .content-section {
    padding: 4rem 1.5rem;
  }

  .testimonials {
    padding: 4rem 1.5rem;
  }

  .parallax-section {
    background-attachment: scroll;
  }

  .hero {
    background-attachment: scroll;
  }
}

/* Easter eggs */
.egg-spin {
  animation: egg-logo-spin 1.2s ease-in-out;
  filter: drop-shadow(0 0 8px #c9a227);
}

@keyframes egg-logo-spin {
  0% { transform: rotateY(0deg); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: rotateY(360deg); filter: drop-shadow(0 0 12px #c9a227); }
  100% { transform: rotateY(720deg); filter: drop-shadow(0 0 0 transparent); }
}

.egg-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: #2c2c2c;
  color: #c9a227;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}

.egg-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.egg-shield {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  font-size: 8rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}

.egg-shield-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .egg-spin { animation: none; }
  .egg-shield { display: none; }
}

/* Print */
@media print {
  nav,
  .hero,
  .parallax-section,
  .skip-link,
  .snake-game {
    display: none;
  }

  .content-section,
  .testimonials,
  .kontakt,
  .impressum {
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  footer {
    background: none;
    color: #000;
  }
}
