/* =========================================
   Basisvariablen
   ========================================= */
:root {
  --bg: #0a1a2f;
  --fg: #fff;
  --muted: #6b7280;
  --brand: #06b6d4;
  --brand-2: #6d28d9;
  --maxw: 72rem;
  --space: clamp(1rem, 2vw, 2rem);
}
/* =========================================
   Reset & Basistypografie
   ========================================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.btn{
  display: inline-flex; /* Wichtig, damit die Buttons im Hero-Bereich nebeneinander stehen */
  justify-content: left;
  gap: 2px;
  margin: 4px;
  padding: 0.5rem 0.75rem; /* Abstand hinzufügen */
  border-radius: 0.5rem;
  font-weight: 600;

  /* Farben und Rand */
  background: white;
  color: #111827;
  border: 1px solid #111827; 

  /* Übergänge erweitern */
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.4s ease, color 0.4s ease;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* =========================================
   Layout-Container
   ========================================= */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space);
}
/* =========================================
   Skip-Link (Accessibility)
   ========================================= */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip:focus {
  left: var(--space);
  top: var(--space);
  background: #fff;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 0 0 2px var(--brand);
}
/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--space);
}
.brand {
  font-weight: 700;
}
.navlist {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.btn:hover{
  transform: translateY(-3px);
  opacity: 0.8; /* Korrigiert: Punkt statt Komma */

  /* Farbverlauf von Weiß nach Navy-Blau (--bg) */
  background: linear-gradient(
    to right, 
    white, 
    var(--bg)
  );
  
  color: white; /* Textfarbe für bessere Lesbarkeit auf dem dunklen Verlauf */
  border-color: white;
}

/* =========================================
   Hero-Section
   ========================================= */
.hero {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding-block: clamp(2.5rem, 8vw, 5rem);
}
.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: center;
}
.portrait {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
}
.hero-text .btn {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #111827;
  border-radius: 0.5rem;
  font-weight: 600;
}
/* =========================================
   Allgemeine Abschnittsgestaltung
   ========================================= */
.section {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}
/* =========================================
   Footer
   ========================================= */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}
/* =========================================
   Responsive (ab 768px)
   ========================================= */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 128px 1fr;
  }
}
/* =========================================
   Druckansicht
   ========================================= */
@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
  a {
    color: inherit;
    text-decoration: underline;
  }
}
/* Kontaktformular */
#contact .container {
  text-align: center;
}
/* Korrigiert die Ausrichtung für Links/E-Mail */
#contact .container p {
  text-align: center;
}
/* Formular selbst muss linksbündig bleiben */
.contact-form {
  margin: 2rem auto; /* Behält die horizontale Zentrierung des Blocks bei */

}
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin: 2rem auto;

  padding: 1.5rem;
  border: 1px solid var(--muted); 
  border-radius: 0.5rem;
  background-color: #112540; 
  
 
  color: var(--fg); 
} 



.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--muted); 
  border-radius: 0.3rem;
  font-size: 1rem;
  
  
  background-color: var(--bg);
  
  color: var(--fg); 
}

.contact-form button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background-color: #007bff;
  /* HIER BLEIBT DIE SCHRIFT WEISS, damit sie auf dem blauen Button sichtbar ist */
  color: white; 
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  font-weight: bold;
}

.contact-form button[type="submit"]:hover {
  background-color: #0056b3;
}
 /* Projekte */
 .cards {
  display: grid;
  gap: 1rem;
}
.card {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #112540;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
/* Download-Button in Projekt-Karten */
.download-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: bold;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}


/* "Nach oben"-Link */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--brand);
  border-radius: 999px; 

  margin-top: 1.5rem; 
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-to-top::before {
  content: '↑'; 
  font-size: 1.1rem;
  line-height: 1;
}

.back-to-top:hover {
  color: var(--fg);
  background: var(--brand);
  transform: translateY(-2px); 
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}

