/* Schriften lokal eingebunden – keine Verbindung zu Google */
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/spacegrotesk-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: rgb(0, 104, 180);
  --on-bg: #ffffff;
  --on-bg-muted: rgba(255, 255, 255, .78);
  --ink: #1f1d1a;
  --muted: #5d574c;
  --accent: rgb(0, 104, 180);
  --card: #cfe6f8;
  --field: rgb(0, 104, 180);
  --field-text: #ffffff;
  --field-line: #00508c;
  --line: #a9cbe6;
  --blob-1: #4fb3ff;
  --blob-2: #00345a;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Hintergrund-Blobs --- */
.blob {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: var(--blob-1); top: -120px; right: -100px; }
.blob-2 { width: 360px; height: 360px; background: var(--blob-2); bottom: -120px; left: -120px; animation-delay: -6s; }
@keyframes drift {
  to { transform: translate(-60px, 80px) scale(1.15); }
}

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: grid; place-items: center; align-content: center; gap: 28px; padding: 48px 0;
}
/* Instagram-Symbol unter dem Foto – nur das Symbol in Weiß, ohne Rahmen */
.social {
  display: grid; place-items: center; padding: 6px; color: #fff; border-radius: 10px;
  transition: transform .2s, opacity .2s;
  animation: popIn .6s 1.4s both;
}
.social svg, .social img { display: block; width: 34px; height: 34px; }
.social:hover { transform: scale(1.12); }
.social:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.portrait-wrap {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; justify-self: center;
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
/* Foto zum Umdrehen */
.flip {
  position: absolute; inset: 14%; padding: 0; border: 0; background: none;
  border-radius: 50%; cursor: pointer; perspective: 1000px; z-index: 1;
  -webkit-tap-highlight-color: transparent;
  container-type: inline-size;
  animation: popIn 1s cubic-bezier(.2,1.4,.4,1) both, float 6s ease-in-out 1s infinite;
}
.flip:focus-visible { outline: 3px solid #fff; outline-offset: 8px; }
.flip-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4,.2,.2,1);
}
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 6px #fff;
}
.portrait { display: block; width: 100%; height: 100%; object-fit: cover; }
.face.back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqw;
  padding: 15%; text-align: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, #1a86d6, #00467a);
}
.back-text { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; font-size: 6.6cqw; line-height: 1.35; }
.back-source { font-size: 3.8cqw; line-height: 1.4; color: rgba(255,255,255,.8); }
.back-source::before { content: "— "; }
.back-source:empty { display: none; }
.flip-hint {
  position: absolute; left: 13%; bottom: 14%; z-index: 2;
  width: clamp(30px, 6vw, 40px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: #fff; color: rgb(0,104,180); font-size: clamp(16px, 3vw, 22px); font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
  animation: popIn .6s 1.2s both, nudge 4s 2s ease-in-out infinite;
}
@keyframes nudge { 0%, 80%, 100% { transform: rotate(0); } 90% { transform: rotate(-200deg); } }
@keyframes popIn {
  from { transform: scale(.4) rotate(-12deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }

/* rotierender Farbring hinter dem Bild */
.glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, #ffffff, #7cc7ff, #00345a, #4fb3ff, #ffffff);
  animation: spin 6s linear infinite, fadeIn 1s .3s both;
  filter: blur(1px);
}
/* Wellen, die sich vom Bild ausbreiten */
.ripple {
  position: absolute; inset: 14%; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  animation: ripple 3.2s ease-out 1s infinite;
  opacity: 0;
}
.ripple.r2 { animation-delay: 2.6s; }
@keyframes ripple {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.45); opacity: 0; }
}


h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.05; }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font: 500 1rem "Inter", sans-serif; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -8px var(--accent); background: var(--accent); color: #fff; }

/* --- Reveal-Animation --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Kontakt --- */
.contact { max-width: 620px; margin: 0 auto; padding: 64px 0 96px; }
.contact h2 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; letter-spacing: -.01em; color: var(--on-bg); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; text-align: center; }
.form {
  color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 32px;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.35);
}
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 8px;
  background: var(--field); color: var(--field-text);
  border: 1.5px solid var(--field-line);
  caret-color: #fff; border-radius: 12px;
  font: 1rem "Inter", sans-serif; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #00345a; box-shadow: 0 0 0 3px rgba(0, 104, 180, .3); }
.field label {
  position: absolute; left: 17px; top: 15px; color: rgba(255, 255, 255, .8);
  pointer-events: none; transition: all .2s ease;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 5px; font-size: .75rem; color: #ffffff;
}
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }

.notice { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; animation: popIn .5s both; }
.notice.ok { background: #e3f1dd; color: #234a1b; }
.notice.error { background: #f8dfd8; color: #7a1f0e; }

footer { text-align: center; padding: 24px 16px 40px; color: var(--on-bg-muted); font-size: .9rem; }
footer a { color: inherit; }

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 40px 0 8px; gap: 20px; }
  .portrait-wrap { max-width: 300px; }
    .form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Browser-Autofill soll das Blau nicht überschreiben */
.field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgb(0, 104, 180) inset;
}
