:root {
  /* Farbspektrum: Weiß & Blau */
  --color-bg: #030712;
  --color-bg-elevated: #050b1a;
  --color-primary: #2563eb;
  --color-primary-soft: #1d4ed8;
  --color-primary-alt: #38bdf8;
  --color-accent: #e5f0ff;
  --color-text-main: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --container-width: 1100px;
  --nav-height: 70px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(
    circle at top left,
    #0b1120 0%,
    #020617 45%,
    #020617 100%
  );
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Utility */

.container {
  width: 100%;
  max-width: var(--container-width);
  padding-inline: 1.25rem;
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 650px;
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

.section-header-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-container {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-main);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.9rem;
  background: radial-gradient(
    circle at 20% 0%,
    #60a5fa 0%,
    #1d4ed8 40%,
    #020617 100%
  );
  color: #eff6ff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 16px 45px rgba(37, 99, 235, 0.6);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.93rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text-main);
  background-color: rgba(30, 64, 175, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 0.21rem;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text-main);
}

/* Hero */

.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.1rem);
  line-height: 1.12;
  margin: 0.5rem 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.13),
    rgba(15, 23, 42, 0.9)
  );
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #93c5fd;
  margin: 0;
}

/* Hero Visual */

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #1e3a8a 0%, #020617 70%);
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(30, 64, 175, 0.65)
  );
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red {
  background-color: #fb7185;
}

.dot-yellow {
  background-color: #facc15;
}

.dot-green {
  background-color: #4ade80;
}

.hero-card-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.hero-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

.hero-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfdbfe;
  margin-bottom: 0.4rem;
}

.hero-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.hero-card p {
  margin: 0 0 1.3rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

.hero-device-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.device {
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.35),
    rgba(148, 163, 184, 0.5)
  );
  position: relative;
  overflow: hidden;
}

.device::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 8px;
  background: radial-gradient(
    circle at 0% 0%,
    #60a5fa,
    #1d4ed8 40%,
    #020617 100%
  );
}

.device-mobile {
  width: 52px;
  height: 88px;
}

.device-tablet {
  width: 78px;
  height: 110px;
}

.device-desktop {
  width: 128px;
  height: 86px;
  border-radius: 0.9rem;
}

/* Buttons */

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0.65rem 1.35rem;
  font-size: 0.93rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.08s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 22px 35px rgba(37, 99, 235, 0.65);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text-main);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(96, 165, 250, 0.9);
}

.btn-full {
  width: 100%;
}

/* Über mich */

.about {
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 0,
    rgba(96, 165, 250, 0.08),
    transparent 55%
  );
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
  margin-top: 0;
}

.about-text p + p {
  margin-top: 0.75rem;
}

.about-highlight {
  color: var(--color-text-main) !important;
  margin-top: 1.2rem !important;
}

.about-list {
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  color: var(--color-text-main);
}

.about-list li + li {
  margin-top: 0.3rem;
}

.about-image-wrapper {
  position: relative;
}

.ratio-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.85);
}

.ratio-box::before {
  content: "";
  display: block;
  padding-bottom: 125%;
}

.about-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.7rem;
}

/* Fähigkeiten */

.skills {
  border-top: 1px solid rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
  background: radial-gradient(
    circle at top,
    rgba(30, 64, 175, 0.12),
    rgba(2, 6, 23, 1) 60%
  );
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.skill-card {
  padding: 1.4rem 1.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.18),
    rgba(15, 23, 42, 0.98)
  );
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

.skill-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.skill-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
}

.skill-card li + li {
  margin-top: 0.35rem;
}

/* Projekte - Galerie Stil */

.projects {
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(59, 130, 246, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-item {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-main);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
}

.project-image {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%;
  overflow: hidden;
}

.project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.95) 0%,
    rgba(2, 6, 23, 0.7) 40%,
    rgba(2, 6, 23, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.project-overlay p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.project-link-text {
  font-size: 0.85rem;
  color: var(--color-primary-alt);
  font-weight: 500;
}

/* Kontakt - Formular */

.contact {
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.22),
    rgba(15, 23, 42, 0.97)
  );
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.98);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-muted);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.7rem 0.85rem;
  background-color: rgba(15, 23, 42, 0.93);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(96, 165, 250, 0.95);
  background-color: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* Text-Label für Gruppen (z.B. Bereich der Webseite) */

.field-group-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

/* Bereich der Webseite: Radio-Buttons im Checkbox-Stil */

.field-inline {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  cursor: pointer;
}

/* Preisvorschlag: Einzeilig, nicht resize-bar */

#price {
  resize: none;
  height: 2.5rem;
}

/* Nachricht: Optional, nicht resize-bar */

#message {
  resize: none;
}

/* Hinweistext */

.form-hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 1);
  padding: 1.7rem 0 2.2rem;
  background: radial-gradient(
    circle at bottom,
    rgba(15, 23, 42, 0.9),
    #020617 65%
  );
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Responsiveness */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.7rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 768px) {
  /* Hamburger sichtbar */
  .nav-toggle {
    display: flex;
  }

  /* Vollflächiges, mittig zentriertes Menü */
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    height: 400px;
    background: rgba(2, 6, 23, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    transform-origin: top;
    transform: scaleY(0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    text-align: center;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  .nav-links.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-image-wrapper {
    order: -1;
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  /* Mehr Abstand zu den Rändern & Zentrierung der Inhalte auf kleineren Geräten */
  .container {
    padding-inline: 1.75rem;
  }

  .section,
  .hero,
  .about,
  .skills,
  .projects,
  .contact {
    text-align: center;
  }

  .hero-content,
  .about-text,
  .skills-grid,
  .projects-gallery,
  .contact-form-container {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .logo-text {
    font-size: 0.96rem;
  }

  .section {
    padding: 4rem 0;
  }

  /* Noch etwas mehr Innenabstand auf sehr kleinen Screens */
  .container {
    padding-inline: 2rem;
  }
}
