:root {
  --bg: #0a0a0a;
  --card: rgba(20, 20, 20, 0.85);
  --card-border: rgba(255, 165, 0, 0.2);
  --accent: #ff8533;
  --accent-soft: rgba(255, 133, 51, 0.15);
  --text: #e0e0e0;
  --text-dim: #999999;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 133, 51, 0.05), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.linktree {
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

/* Logo */
.logo-container {
  width: clamp(70px, 12vw, 100px);
  height: clamp(70px, 12vw, 100px);
  margin-bottom: 0.25rem;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255, 133, 51, 0.3));
}

/* Title */
.site-title {
  font-family: "Staatliches", "Impact", "Arial Black", sans-serif;
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* Subtitle */
.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-dim);
  margin: 0 0 0.75rem;
  max-width: 500px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.social-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--accent-soft);
}

/* Links Container */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.25rem;
}

/* Link Cards */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--accent-soft);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:active {
  transform: translateY(-2px);
}

/* Link Icon */
.link-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.link-card:hover .link-icon {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
}

/* Link Content */
.link-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 1;
}

.link-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
  display: block;
}

.link-subtitle {
  font-size: 0.925rem;
  color: var(--text-dim);
  display: block;
}

/* Footer */
.footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.impressum-link {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: "Jost", sans-serif;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.impressum-link:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.3s ease;
  padding: 0;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(90deg);
}

.modal-content h2 {
  font-family: "Staatliches", "Impact", "Arial Black", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  color: var(--accent);
}

.impressum-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.impressum-content h3:first-child {
  margin-top: 0;
}

.impressum-content h4 {
  font-size: 1rem;
  color: var(--text-dim);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.impressum-content p {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.impressum-content a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 600px) {
  .site-title {
    letter-spacing: 0.15em;
    font-size: 2.5rem;
  }

  .linktree {
    gap: 1rem;
    padding: 1.5rem 0 1.5rem;
  }

  .link-card {
    padding: 1rem 1.25rem;
  }

  .link-icon {
    width: 42px;
    height: 42px;
  }

  .link-title {
    font-size: 1rem;
  }

  .link-subtitle {
    font-size: 0.8rem;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }
  
  .footer {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 400px) {
  .page {
    padding: 0 1rem;
  }

  .linktree {
    padding: 1.5rem 0 1.5rem;
    gap: 0.875rem;
  }

  .site-title {
    letter-spacing: 0.12em;
  }
  
  .links-container {
    gap: 0.75rem;
  }
  
  .modal-content {
    padding: 2rem 1.5rem;
  }
  
  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
  
  .modal-content h2 {
    font-size: 1.5rem;
    margin-right: 2.5rem;
  }
}

