@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: #0f0f14;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(145deg, #0f0f14 0%, #1a1a24 40%, #12121a 100%) fixed;
  overflow-x: hidden;
}

/* Hintergrund-Animation (seitlich scharf) */
#code-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Content: Wrapper mit Abstand zwischen den Panels */
.content {
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Einzelne Glaspanels – iOS-style frosted glass */
.content > .panel {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.5rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.content > .name-panel {
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
}

/* Sprachumschaltung */
.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.35rem;
  border-radius: 8px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lang-flag img {
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Profilbild */
.profile-photo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Name – klar als oberste Ebene */
.content h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: var(--leading-tight);
  margin: 0;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

/* Subtitle unter dem Namen */
.content .subtitle {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0;
}

/* Sektions-Labels – klein, ruhig, eindeutig */
.content h2 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: var(--leading-tight);
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Stellen-/Eintragstitel */
.content h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.98);
}

/* Fließtext */
.content p {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.9);
}

.content p.meta {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}

.content article {
  margin-bottom: 1.5rem;
}

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

.content a {
  color: rgba(147, 197, 253, 0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.content a:hover {
  color: rgba(191, 219, 254, 1);
  text-decoration: underline;
}

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

/* Listen – kleiner Outline-Kreis (Ring), passt zum Glasy-Design */
.content ul.bullets {
  margin: 0.25rem 0 0.5rem;
  padding-left: 0;
  list-style: none;
}

.content ul.bullets li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
}

.content ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35em;
  height: 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
}

.content ul.bullets li:last-child {
  margin-bottom: 0;
}

/* E-Mail: Copy-Button, keine Adresse im Quelltext */
.contact-row {
  margin: 0;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(147, 197, 253, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.email-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(191, 219, 254, 1);
}

.email-copy:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.4);
}

.email-copy-done {
  display: none;
}

.email-copy.is-copied .email-copy-label {
  display: none;
}

.email-copy.is-copied .email-copy-done {
  display: inline;
  color: rgba(183, 255, 183, 0.95);
}

@media (min-width: 600px) {
  .content {
    padding: 2.5rem 1.5rem 5rem;
    gap: 1.5rem;
  }

  .content > .panel {
    padding: 1.75rem 2rem;
    border-radius: 24px;
  }

  .content > .name-panel {
    padding: 2rem 2rem;
  }

  .content h1 {
    font-size: var(--text-2xl);
  }

  .content h3 {
    font-size: 1.1875rem;
  }
}
