/* ============================================================
   autengruber.com – statische Startseite (OE5RNL)
   Nachbau der autengruber.net-Startseite.
   Freie Schriften: systemeigener Serif-/Sans-Stack (kein externer
   Request, keine Lizenz-/DSGVO-Probleme).
   Fuer exakt die Original-Optik liesse sich "Playfair Display"
   (OFL, frei) self-hosted per @font-face ergaenzen.
   ============================================================ */

:root {
  --bg:          #000000;
  --text:        #ffffff;
  --muted:       #b9bcc2;
  --footer-bg:   #2f363e;
  --footer-text: #cfd3d9;
  --container:   1180px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
           Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header / Navigation ---------- */
.site-header {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.6rem 10%;
}

.brand {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.nav a {
  color: var(--text);
  font-size: 1rem;
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}

.nav a:hover { opacity: 0.7; }

.nav a[aria-current="page"] {
  border-bottom: 2px solid var(--text);
}

/* ---------- Hero ---------- */
.hero {
  width: min(100%, 1380px);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(18rem, 32rem) minmax(20rem, 36rem);
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  background: var(--bg);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(2rem, 5vw, 4.5rem) clamp(3rem, 8vw, 5rem);
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text);
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.14;
  max-width: 12em;
}

.subtitle {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--muted);
}

/* schlichter Textlink wie im Original ("Learn more") */
.btn {
  display: inline-block;
  margin-top: 2.4rem;
  font-size: 1rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.7; }

/* ---------- Mond (Foto rechts, angeschnitten) ---------- */
.moon {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(100%, clamp(280px, 40vw, 620px));
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #0a0a0a;
  background-image: url("assets/StockSnap_PQXYMRLH8S-1.jpg");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 1.6rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Responsive: Mond hinter den Text, dezenter ---------- */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 2rem;
  }

  .hero-content {
    grid-column: auto;
    grid-row: auto;
    order: 1;
  }

  .moon {
    grid-column: auto;
    grid-row: auto;
    order: 2;
    justify-self: center;
    width: min(78vw, 360px);
    margin-right: 0;
    margin-top: 1.5rem;
    opacity: 0.9;
  }

  .hero h1 { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
