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

/* ========= Base ========= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}
a { color: #38bdf8; text-decoration: none; transition: .2s ease; }
a:hover { text-decoration: underline; }

/* ========= Header / Navbar ========= */
.header {
  background: #1e293b;
  padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px #00000022;
}
.logo { display: flex; align-items: center; }
.logo img {
  height: 70px; width: 70px; object-fit: cover; border-radius: 50%;
  border: 2px solid #38bdf8; box-shadow: 0 0 8px #00eaff55;
}
.navbar { display: flex; align-items: center; gap: 16px; }

/* CTA-Button (Text immer sichtbar) */
.cta-button {
  display: inline-block;
  background: #38bdf8;
  color: #0f172a !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  transition: background-color .2s ease, transform .05s ease;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}
.cta-button:visited,
.cta-button:hover,
.cta-button:active,
.cta-button:focus { color: #0f172a !important; }
.cta-button:hover { background: #0ea5e9; }
.cta-button:active { transform: translateY(1px); }
.cta-button.wide { width: 100%; text-align: center; margin-top: 8px; }

/* User-Circle & Dropdown */
.user-circle {
  background: #38bdf8; color: #0f172a;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 24px; cursor: pointer;
  box-shadow: 0 0 10px #38bdf855;
}
.dropdown {
  position: absolute; right: 24px; top: 84px; z-index: 1000;
  background: #1e293b; padding: 10px; border-radius: 8px; box-shadow: 0 0 10px #00000055;
}
.dropdown a { display: block; padding: 6px 10px; color: #e2e8f0; }
.dropdown a:hover { background: #334155; }
.hidden { display: none; }

/* ========= Hero Toggle & Links ========= */
/* Desktop: oben links */
.hero-toggle {
  position: absolute;
  top: 140px; left: 20px;
  z-index: 9999;
  background: #38bdf8; color: #0f172a; border: none;
  padding: 10px 14px; font-size: 22px; border-radius: 6px; cursor: pointer;
  box-shadow: 0 0 10px #38bdf855; transition: background-color .2s ease;
}
.hero-toggle:hover { background: #0ea5e9; }

.hero-links {
  position: absolute;
  top: 200px; left: 20px;
  background: #1e293b; padding: 20px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 0 12px #38bdf866; z-index: 9998; transition: all .3s ease;
}
.hero-links a {
  color: #38bdf8; font-weight: 700; font-size: 18px;
  padding: 10px 20px; border-radius: 6px; background: transparent;
  box-shadow: 0 0 10px #38bdf822; transition: .2s ease;
}
.hero-links a:hover {
  background: #1e293b; color: #fff; box-shadow: 0 0 16px #38bdf866; transform: scale(1.05);
}
.hero-links.hidden { display: none; }

/* ========= Content ========= */
.content {
  max-width: 1100px; margin: 40px auto; padding: 24px;
}
.content h1, .content h2 {
  text-align: center; margin-bottom: 12px;
  color: #38bdf8; text-shadow: 0 0 8px #38bdf866;
}
.intro { text-align: center; color: #94a3b8; margin-bottom: 22px; }

/* Alerts */
.alert { margin: 10px 0; padding: 10px 12px; border-radius: 10px; }
.alert.ok  { background: rgba(34,197,94,.12); border: 1px solid #14532d; color: #d1fae5; }
.alert.err { background: rgba(239,68,68,.12); border: 1px solid #7f1d1d; color: #fecaca; }

/* Kontakt-Layout */
.contact-grid {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: start;
}
.contact-form,
.contact-aside .card {
  background: #0f172a; border: 1px solid #1f2a44; border-radius: 16px; padding: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 6px; color: #cbd5e1; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #1f2a44; background: #0b1324; color: #e2e8f0;
}
.field textarea { min-height: 160px; resize: vertical; }
.tiny-hint { margin-top: 8px; color: #94a3b8; font-size: .9rem; }

.contact-aside { display: grid; gap: 12px; }
.card h3 { color: #60cdf6; margin-bottom: 6px; }

/* Honeypot */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* ========= Footer ========= */
.footer {
  text-align: center; padding: 30px 20px; background: #1e293b; color: #64748b;
  margin-top: 40px; border-top: 2px solid #334155;
}
.footer-links {
  margin-top: 12px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.footer-links a {
  color: #38bdf8; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: .2s ease;
}
.footer-links a:hover { background: #334155; color: #fff; box-shadow: 0 0 12px #38bdf855; transform: scale(1.04); }

/* ========= Responsive ========= */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header { flex-direction: column; align-items: flex-start; }
  .navbar { margin-top: 10px; }
  .navbar a { display: inline-block; margin: 4px 6px 0 0; }

  .content { padding: 16px; margin: 20px auto; }
  .content h1 { font-size: 1.8rem; }
  .intro { font-size: 1rem; }

  /* Mobile: Toggle unten links + Links darüber (Safe-Area) */
  .hero-toggle {
    position: fixed; top: auto;
    left: 16px; bottom: calc(24px + env(safe-area-inset-bottom));
    font-size: 20px; padding: 8px 12px; border-radius: 8px;
  }
  .hero-links {
    position: fixed; left: 16px; right: 16px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    padding: 14px; border-radius: 12px;
  }
  .hero-links a { font-size: 16px; padding: 8px 12px; }
}
