/* Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f5f5f5;
  --color-text: #000000;
  --color-text-muted: #333;
  --color-pink: #ff0066;
  --color-blue: #0033ff;
  --color-yellow: #ffe600;
}

/* Base Styles */
body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  background-image: 
    linear-gradient(to bottom, rgba(255, 230, 0, 0.04) 0%, rgba(255, 230, 0, 0.015) 10%, transparent 30%),
    linear-gradient(to top, rgba(93, 217, 209, 0.12) 0%, rgba(93, 217, 209, 0.04) 30%, transparent 70%),
    url('/bg.png');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, auto;
  background-attachment: fixed, fixed, scroll;
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .logo,
  .content a,
  footer a {
    animation: none;
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

main.align-top {
  justify-content: flex-start;
}

/* Logo / Headlines */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  line-height: 1;
  color: var(--color-pink);
  text-shadow: 4px 4px 0 var(--color-yellow), 8px 8px 0 var(--color-blue);
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translate(-4px, -4px);
  text-shadow: 8px 8px 0 var(--color-yellow), 12px 12px 0 var(--color-blue);
}

.logo-small {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
}

.subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--color-text);
}

/* Error Code (404) */
.error-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 15vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1;
  color: var(--color-pink);
  text-shadow: 4px 4px 0 var(--color-yellow), 8px 8px 0 var(--color-blue);
  transition: transform 0.2s ease;
}

.error-code:hover {
  transform: translate(-4px, -4px);
  text-shadow: 8px 8px 0 var(--color-yellow), 12px 12px 0 var(--color-blue);
}

/* Content */
.content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.content h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content p {
  font-size: 1.35rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

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

.content a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 2px 2px 0 var(--color-yellow);
  transition: all 0.15s ease;
}

.content a:hover {
  text-shadow: 2px 2px 0 var(--color-pink);
}

/* Content sections (for multi-section pages) */
.content section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 2px solid #ddd;
}

.content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Content lists */
.content ul {
  list-style: none;
  margin: 1.5rem 0;
}

.content ul li {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-pink);
  font-weight: 700;
}

/* Impressum-specific content adjustments */
.content-legal h2 {
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-legal h2:first-child {
  margin-top: 0;
}

.content-legal p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Skills / Tags */
.skills {
  margin-top: 2.5rem;
}

.skills h2 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: white;
  border: 2px solid var(--color-text);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.15s ease;
}

.tag:hover {
  background-color: var(--color-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--color-text);
}

.tag-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-yellow);
  border: 3px solid var(--color-text);
  border-radius: 4px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.15s ease;
  text-shadow: none;
}

.btn:hover {
  background-color: var(--color-pink);
  color: white;
  text-shadow: none;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--color-text);
}

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

.app-link {
  margin: 1rem 0;
}

/* Utilities */
.desktop-break {
  display: none;
}

@media (min-width: 768px) {
  .desktop-break {
    display: block;
  }
}

/* Footer */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 3px solid var(--color-text);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.15s ease;
  padding: 0.5rem 1rem;
  border: 3px solid transparent;
  border-radius: 4px;
}

footer a:hover {
  background-color: var(--color-yellow);
  border-color: var(--color-text);
}

@media (max-width: 768px) {
  footer nav {
    gap: 0.5rem;
  }
  footer a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}
