/* ====== Global Fix ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ====== Grunddesign ====== */
:root {
  --bg: #0f172a;
  --bg-light: #1e293b;
  --text: #e2e8f0;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --radius: 12px;

  --fade-duration: 0.8s;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ====== Navigation ====== */
.header {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.2rem 2rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.links {
  display: flex;
  gap: 1.5rem;
}

.links a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
  transition: 0.2s;
}

.links a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Mobile Navigation */
@media (max-width: 600px) {
  .links {
    width: 100%;
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.8rem;
  }
}

.logo img {
  max-width: 120px; /* maximale Breite */
  height: auto;
  display: block;
  opacity: 0.9;
  transition: 0.25s ease;
}

@media (max-width: 600px) {
  .logo img {
    max-width: 120px; /* kleiner auf Handy */
  }
}


.logo img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.error {
  color: #ff6b6b;
  margin-top: 0.5rem;
}

/* ====== Inhalt ====== */
.content {
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  padding-bottom: 180px;
}

/* ====== Hero Section (Startseite) ====== */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  animation: slideUp 0.9s ease-out;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.accent {
  color: var(--accent);
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

/* ====== Buttons ====== */
button,
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  width: 100%;
}

button:hover,
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

@media (min-width: 600px) {
  button,
  .btn {
    width: auto;
  }
}

/* ====== Inputs ====== */
input,
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  margin-bottom: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

/* ====== Karten ====== */
.card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  transition: 0.3s ease;
  /* Animation entfernt, damit Footer nicht verzögert */
}

/* ====== Footer ====== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  text-align: center;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo img {
  height: 40px;
  opacity: 0.85;
  transition: 0.25s ease;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.footer-btn {
  padding: 0.3rem 0.7rem;
  background: var(--bg-light);
  color: var(--text);
  border-radius: var(--radius);
  text-decoration: none;
  transition: 0.25s ease;
  font-size: 0.85rem;
}

.footer-btn:hover {
  background: var(--accent);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* ====== Animationen ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Seiten-Inhalt Animation (Lebenslauf etc.) ====== */
.page-animate {
  opacity: 0;
  animation: fadeInContent 0.8s ease-out forwards;
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
