@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Regular.ttf') format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/DMSans-Black.ttf') format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --bg-dark: #09090b;
  --accent-primary: #71b848; /* CrefyMedia Green */
  --accent-secondary: #85c560; /* CrefyMedia Light Green */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}

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

html {
  background-color: var(--bg-dark);
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  background: radial-gradient(circle at center, #1a1a20 0%, #09090b 100%);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Coming Soon Specific Body */
.coming-soon-body {
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none; /* Let clicks pass through to buttons */
}

.coming-soon-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Logo */
.logo-wrapper {
  margin-bottom: -2rem;
}
.floating-logo {
  width: 600px;
  max-width: 90vw;
  height: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(113, 184, 72, 0.4));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Typography */
.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.main-heading {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  background: linear-gradient(to right, var(--text-primary), var(--accent-primary) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

.description {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
  line-height: 1.6;
}

/* Header & Nav */
header {
  padding: 2rem 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent-primary);
}

/* Common Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Button with Cool Hover Animations */
.glass-btn {
  position: relative;
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(113, 184, 72, 0.3);
  border-radius: 50px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-btn span {
  position: relative;
  z-index: 2;
}

.glass-btn .glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(113,184,72,0.4) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease-out;
  border-radius: 50%;
  z-index: 1;
}

.glass-btn:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 25px rgba(113, 184, 72, 0.3);
}

.glass-btn:hover .glow-effect {
  transform: translate(-50%, -50%) scale(1);
}

/* Entrance Animations */
.animate-drop-in {
  opacity: 0;
  animation: dropIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

@keyframes dropIn {
  0% { opacity: 0; transform: translateY(-50px) scale(0.9); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- Modern Showcase Section --- */
.about-showcase {
  width: 100%;
  margin-top: -2rem;
  margin-bottom: 4rem;
}

.showcase-card {
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: visible;
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: rgba(113, 184, 72, 0.2);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: center;
}

/* 3D Visual - Clean Integration */
.showcase-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  aspect-ratio: 1/1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(113,184,72,0.15) 0%, transparent 60%);
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

.ben-3d-avatar {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.5));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
  transform-origin: center center;
  transform: scale(1.5);
}

.ben-3d-avatar:hover {
  transform: scale(1.6) translateY(-5px) rotate(-2deg);
  filter: drop-shadow(0 25px 30px rgba(113, 184, 72, 0.6));
  cursor: pointer;
}

.animate-float {
  animation: float-avatar 6s ease-in-out infinite;
}

@keyframes float-avatar {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Content Styles */
.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-primary {
  background: rgba(113, 184, 72, 0.2);
  color: var(--accent-primary);
  border: 1px solid rgba(113, 184, 72, 0.4);
}

.tag-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-outline {
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
}

.showcase-greeting {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase-bio {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.showcase-bio strong {
  color: var(--text-primary);
}

/* Modern LinkedIn Button */
.showcase-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap; /* Ensure buttons wrap on really small screens */
}

/* Modern Website Button */
.btn-website-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: rgba(113, 184, 72, 0.1);
  border: 1px solid rgba(113, 184, 72, 0.3);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-website-modern svg {
  color: var(--accent-primary);
  transition: color 0.3s ease;
  z-index: 2;
  position: relative;
}

.btn-website-modern span {
  z-index: 2;
  position: relative;
}

.btn-website-modern .btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(60deg, transparent, rgba(113, 184, 72, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
}

.btn-website-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(113, 184, 72, 0.3);
  border-color: rgba(113, 184, 72, 0.8);
  background: rgba(113, 184, 72, 0.2);
}

.btn-website-modern:hover .btn-glow {
  transform: translateX(100%);
}

.btn-linkedin-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: rgba(0, 119, 181, 0.1);
  border: 1px solid rgba(0, 119, 181, 0.3);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-linkedin-modern svg {
  color: #0077b5;
  transition: color 0.3s ease;
  z-index: 2;
  position: relative;
}

.btn-linkedin-modern span {
  z-index: 2;
  position: relative;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(60deg, transparent, rgba(0, 119, 181, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 1;
}

.btn-linkedin-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
  border-color: rgba(0, 119, 181, 0.8);
  background: rgba(0, 119, 181, 0.2);
}

.btn-linkedin-modern:hover .btn-glow {
  transform: translateX(100%);
}

.card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  margin: 3rem 0;
}

/* Responsive adjustments for Showcase */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .showcase-content {
    text-align: center;
  }
  
  .expertise-tags {
    justify-content: center;
  }

  .showcase-actions {
    justify-content: center;
  }

  .ben-3d-avatar {
    width: 80%;
    max-width: 280px; /* Kleinere Größe auf dem iPhone, verhindert riesige Überschneidungen */
    margin: 0 auto;
    transform: scale(1); /* Kein künstliches Vergrößern auf Mobile! */
  }
  
  .showcase-card {
    padding: 2rem 1.5rem;
  }
}

/* YouTube Consent Wrapper */
.youtube-consent-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.youtube-placeholder .yt-icon {
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.youtube-placeholder h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.youtube-placeholder p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.consent-btn {
  background: linear-gradient(135deg, #cc0000, #ff0000);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.consent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.responsive-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 12px;
}
.responsive-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Typewriter Cursor */
.typewriter {
  border-right: 4px solid var(--accent-primary);
  padding-right: 5px;
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-primary); }
}

/* Standard pages */
.page-content {
  padding: 5rem 0;
}

.page-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  text-align: center;
}

.page-content h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.page-content h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.page-content p {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-content ul {
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--accent-primary);
    text-decoration: none;
    overflow-wrap: break-word;
    word-break: break-all;
}

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

hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 4rem 0;
}

/* Footer layout */
footer {
  background: #000;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 900;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 600px) {
  .floating-logo { width: 280px; }
  .main-heading { font-size: 2.5rem; }
  .subtitle { font-size: 0.9rem; }
  .description { font-size: 1.1rem; }
  .page-content h1 { font-size: 2.5rem; }
  .page-content h2 { font-size: 1.8rem; }
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 0;
  font-size: 1.5rem;
}

.modal-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Modal Button Types */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(113, 184, 72, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .modal-buttons {
    flex-direction: column;
  }
}

/* Back Link für Impressum & andere Nebenseiten */
.back-link {
  position: absolute;
  top: 2rem;
  left: 5%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  z-index: 20;
  transition: color 0.3s;
  font-weight: bold;
}

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

@media (max-width: 768px) {
  .back-link {
    font-size: 1rem;
    top: 1.5rem;
  }
}
