/* ===========================================================================
   jferner.at — Hauptstylesheet
   Design-Tokens uebernommen aus der Originalseite (Navy #1B2A4A / Cyan #00B4D8,
   Fonts Inter + Space Grotesk). Modular gehalten.
   =========================================================================== */

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

:root {
  --navy:       #1B2A4A;
  --navy-deep:  #0D1B2E;
  --navy-mid:   #243656;
  --accent:     #00B4D8;
  --accent-dim: rgba(0,180,216,0.12);
  --accent-glow:rgba(0,180,216,0.25);
  --accent-lt:  #B8CFE4;
  --sidebar-bg: #E8F1FB;
  --bg:         #F4F8FD;
  --white:      #FFFFFF;
  --dark:       #1A1A2E;
  --gray:       #64748B;
  --gray-lt:    #94A3B8;
  --border:     rgba(0,180,216,0.18);
  --shadow:     0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg:  0 16px 48px rgba(27,42,74,0.16);
  --radius:     16px;
  --radius-sm:  8px;
  --font:       'Inter', system-ui, sans-serif;
  --font-d:     'Space Grotesk', system-ui, sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); line-height: 1.65; overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

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

/* ── HERO ─────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #1F3A6E 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.1) 0%, transparent 65%);
}
.blob-1 { width: 65vw; height: 65vw; max-width: 700px; max-height: 700px;
           top: -20%; right: -10%; animation: blob1 12s ease-in-out infinite; }
.blob-2 { width: 45vw; height: 45vw; max-width: 480px; max-height: 480px;
           bottom: -15%; left: -8%; animation: blob2 16s ease-in-out infinite; }
.blob-3 { width: 30vw; height: 30vw; max-width: 320px; max-height: 320px;
           top: 35%; left: 35%; animation: blob1 9s ease-in-out infinite reverse; opacity: 0.5; }

@keyframes blob1 {
  0%,100% { transform: scale(1) translate(0,0); }
  33%     { transform: scale(1.08) translate(2%,-3%); }
  66%     { transform: scale(0.95) translate(-2%,2%); }
}
@keyframes blob2 {
  0%,100% { transform: scale(1) translate(0,0); }
  50%     { transform: scale(1.12) translate(3%,-4%); }
}

#hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 920px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.75rem;
}
.hero-photo-wrap { position: relative; flex-shrink: 0; }
.hero-photo, .hero-initials {
  width: 140px; height: 140px; border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(0,180,216,0.10), 0 0 50px rgba(0,180,216,0.2);
  animation: float 7s ease-in-out infinite;
}
.hero-photo { object-fit: cover; object-position: top center; display: block; }
.hero-initials {
  background: var(--navy-mid); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-d); font-size: 2.8rem;
  font-weight: 700; color: var(--accent);
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

.hero-text { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hero-name {
  font-family: var(--font-d); font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -0.025em;
}
.hero-name em { color: var(--accent); font-style: normal; }
.hero-typed {
  font-size: clamp(0.88rem, 2vw, 1.05rem); color: var(--accent);
  letter-spacing: 0.04em; font-weight: 500; min-height: 1.65em;
}
.cursor {
  display: inline-block; width: 2px; height: 1.05em; background: var(--accent);
  margin-left: 1px; vertical-align: middle;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-contact {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center;
  font-size: 0.82rem; color: var(--accent-lt);
}
.hero-contact a { color: var(--accent-lt); text-decoration: none; transition: color 0.25s; }
.hero-contact a:hover { color: var(--accent); }
.hero-contact .sep { opacity: 0.35; }

/* Fakten-Block: Lead-Satz + strukturierte Liste */
.hero-text .hero-lead {
  max-width: 720px; text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #FFFFFF; line-height: 1.5; font-weight: 700;
  margin: 0.2rem auto 0;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-text .hero-lead strong { color: var(--accent); font-weight: 800; }
.hero-facts {
  list-style: none; margin: 0; padding: 1.3rem 1.7rem;
  max-width: 680px;
  display: flex; flex-direction: column; gap: 0.7rem;
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  color: var(--accent-lt); line-height: 1.45; text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,180,216,0.18);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.hero-facts li { position: relative; padding-left: 1.5rem; }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.5rem; height: 0.5rem; border-radius: 2px;
  background: var(--accent); transform: rotate(45deg);
}
.hero-facts strong { color: var(--white); font-weight: 600; }

/* ── SHARED SECTION ───────────────────────────────────────────── */
section { padding: 4rem 1.5rem; }
.wrap { max-width: 720px; margin: 0 auto; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.35rem;
}
.sec-title {
  font-family: var(--font-d); font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 2rem;
}
.sec-title em { color: var(--accent); font-style: normal; }

/* ── CONTACT FORM ────────────────────────────────────────────── */
#contact { background: var(--bg); }
.contact-form { max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.form-group label { font-size: 0.78rem; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; }
.form-group input,
.form-group textarea {
  padding: 0.72rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white);
  font-family: var(--font); font-size: 0.9rem; color: var(--dark);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none; resize: vertical; line-height: 1.55;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-lt); }

/* Honeypot — visuell und fuer Screenreader versteckt */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.82rem 2rem; border-radius: 100px;
  background: linear-gradient(135deg, var(--navy) 0%, #1F6BA0 50%, var(--accent) 100%);
  color: var(--white); font-family: var(--font-d); font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; letter-spacing: 0.03em; margin-top: 0.4rem;
  transition: opacity 0.25s, transform 0.25s;
}
.submit-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.spinner { animation: spin 0.75s linear infinite; display: none; }
.form-feedback { margin-top: 1rem; font-size: 0.88rem; font-weight: 500; min-height: 1.4em; }
.form-feedback.ok  { color: #16a34a; }
.form-feedback.err { color: #dc2626; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOGIN (dezent) ──────────────────────────────────────────── */
#login { background: var(--navy-deep); }
#login .wrap { max-width: 480px; }
.login-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,180,216,0.18);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.login-eyebrow {
  font-size: 0.68rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.9rem;
}
.login-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.login-form input[type=password] {
  flex: 1 1 200px; min-width: 0;
  padding: 0.72rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,180,216,0.25); background: rgba(255,255,255,0.06);
  color: var(--white); font-family: var(--font); font-size: 0.9rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.login-form input[type=password]::placeholder { color: var(--gray-lt); }
.login-form input[type=password]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.login-btn {
  padding: 0.72rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--navy-deep);
  font-family: var(--font-d); font-weight: 600; font-size: 0.88rem;
  border: none; cursor: pointer; transition: opacity 0.25s;
}
.login-btn:hover { opacity: 0.88; }
.login-msg { margin-top: 0.8rem; font-size: 0.83rem; min-height: 1.2em; color: #fca5a5; }
.login-msg.ok { color: #86efac; }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep); color: var(--accent-lt);
  padding: 3rem 1.5rem 2.5rem; text-align: center;
}
.footer-inner { max-width: 640px; margin: 0 auto; }
.footer-motto {
  font-family: var(--font-d); font-size: 1.25rem;
  font-style: italic; color: var(--accent);
  margin-bottom: 1.6rem; font-weight: 600;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; margin-bottom: 1.6rem; }
.footer-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent-lt); text-decoration: none; font-size: 0.83rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0,180,216,0.18); border-radius: 100px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.footer-copy { font-size: 0.72rem; color: rgba(184,207,228,0.35); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (min-width: 1024px) {
  section { padding: 5rem 2rem; }
  .hero-photo, .hero-initials { width: 160px; height: 160px; }
}

/* ── PRINT ────────────────────────────────────────────────────── */
@media print {
  .scroll-hint, .hero-blobs, #login { display: none; }
  section { padding: 1.5rem 0; }
}
