/* ================================================
   FairFlip — Stylesheet
   Palette: Creme / Navy / Gold
   Fonts: Caveat (handwritten) + Inter (body)
   ================================================ */


:root {
  --cream:      #EFE7CB;
  --navy:       #0E1D33;
  --navy-btn:   #0E1D33;
  --navy-hover: #1A3050;
  --gold:       #DD963A;
  --gold-dark:  #C2832A;
  --text:       #0E1D33;
  --text-light: #EFE7CB;
  --border:     rgba(14, 29, 51, 0.14);
}

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

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

main { flex: 1; }

img { display: block; max-width: 100%; }

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

/* ---- HEADER ---- */
header {
  background: var(--cream);
  text-align: center;
  padding: 28px 20px 0;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-wrap img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.2s;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
}

.logo-wrap img:hover { transform: scale(1.04); }

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 0;
  margin-bottom: 0;
}

nav a {
  display: inline-block;
  background: var(--navy-btn);
  color: var(--text-light);
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.1s;
}

nav a:hover {
  background: var(--navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

nav a.active { background: var(--gold); }

/* ---- CHECKERBOARD DIVIDER ---- */
.divider {
  height: 24px;
  background-image: repeating-conic-gradient(var(--navy) 0% 25%, var(--cream) 0% 50%);
  background-size: 24px 24px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  padding: 22px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

/* ---- HERO (Homepage) — responsive viewport Layout ---- */
.hero {
  position: relative;
  overflow: hidden;
  height: 85vh;
  height: 85dvh;
  min-height: 400px;
}

/* Separierte Figuren — jede unabhängig positioniert, bottom-aligned */
.hero-figur {
  position: absolute;
  bottom: 0;
  height: 66%;
  width: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.hero-figur-mann { left: 5%; }
.hero-figur-frau  { right: 3%; }

/* Logo — absolut zentriert oben */
.hero-logo-wrap {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  z-index: 2;
}

.hero-logo-wrap img {
  width: 230px;
  height: 230px;
  object-fit: contain;
  transition: transform 0.2s;
}

.hero-logo-wrap img:hover { transform: scale(1.04); }

/* Nav-Buttons — absolut, text-align center (kein flex) */
/* display:block überschreibt das globale nav { display:flex } */
.hero-nav {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  z-index: 2;
}

.hero-nav a {
  display: inline-block;
  margin: 0 clamp(6px, 1vw, 16px);
  background: var(--navy-btn);
  color: var(--text-light);
  padding: clamp(12px, 2vh, 20px) clamp(28px, 3.6vw, 56px);
  border-radius: 50px;
  font-size: clamp(0.78rem, 1.1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.1s;
}

.hero-nav a:hover {
  background: var(--navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hero-nav a.active { background: var(--gold); }

/* Slogan — absolut, zentriert */
.hero-center {
  position: absolute;
  top: 80%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 20%;
  z-index: 2;
}

/* Slogan row — Pfeil links, Text zentriert, Pfeil rechts */
.hero-slogan-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-slogan {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* Orange Bogenpfeile (PNG) */
.deco-arrow {
  width: clamp(40px, 5vw, 70px);
  height: auto;
  flex-shrink: 0;
}

.deco-left  { margin-right: -25px; align-self: flex-start; margin-top: -18px; position: relative; z-index: 0; }
.deco-right { margin-left: -22px; align-self: flex-end; margin-top: -22px; position: relative; z-index: 0; }

/* ---- SEITENINHALT ---- */
.page-section {
  padding: 52px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.page-section h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--text);
}

.page-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--text);
  text-align: justify;
}

.page-section strong { font-weight: 600; }

/* ---- GOLD BUTTON ---- */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* ---- ÜBER UNS: Plattform-Links ---- */
.platform-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  justify-content: center;
}

/* ---- ANGEBOT: Leistungen ---- */
.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.leistungen-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.leistungen-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 0.93rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.leistungen-list li:last-child { border-bottom: none; }

.leistungen-list li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 6px;
  top: 8px;
  font-size: 1.1rem;
}

/* ---- ANGEBOT: Kommission Box ---- */
.kommission-box {
  background: var(--navy);
  color: var(--text-light);
  border-radius: 18px;
  padding: 32px 28px;
  margin: 36px 0;
  text-align: center;
}

.kommission-split {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  margin: 10px 0 6px;
  line-height: 1.1;
}

.kommission-box p {
  font-size: 0.88rem;
  opacity: 0.82;
  margin: 0;
  line-height: 1.55;
  color: var(--text-light);
}

/* ---- ANGEBOT: Kategorien ---- */
.kategorien-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 36px;
}

.kategorie-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(14, 29, 51, 0.06);
  border-radius: 14px;
}

.kategorie-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  line-height: 1;
}

.kategorie-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.kategorie-item p {
  font-size: 0.78rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

/* ---- ANGEBOT: Prozess-Grafik ---- */
.prozess-wrap {
  text-align: center;
  margin: 8px 0 20px;
}

.prozess-img {
  width: 260px;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

/* ---- ANGEBOT: Auszahlung ---- */
.auszahlung-box {
  background: rgba(221, 150, 58, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 24px 0 36px;
  font-size: 0.93rem;
}

/* ---- KONTAKT ---- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 150, 58, 0.18);
}

.form-group textarea {
  min-height: 148px;
  resize: vertical;
}

.form-success {
  display: none;
  background: rgba(221, 150, 58, 0.15);
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-error {
  display: none;
  background: rgba(200, 40, 40, 0.08);
  color: #8b1a1a;
  border: 1px solid rgba(200, 40, 40, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.9rem;
  margin-top: 16px;
}

.kontakt-info {
  padding-top: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kontakt-info .or-label {
  margin-top: 20px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
}

.kontakt-info .contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.93rem;
}

.kontakt-info .contact-item a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.15s;
}

.kontakt-info .contact-item a:hover { color: var(--gold); }

.handschlag-img {
  width: 200px;
  margin: 28px auto 0;
  mix-blend-mode: multiply;
}

/* ---- LEGAL (AGB / Datenschutz) ---- */
.legal h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 8px;
  color: var(--navy);
}

.legal p {
  font-size: 0.88rem;
  line-height: 1.72;
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal ul li {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 4px;
}

/* ---- RESPONSIVE ---- */

/* Portrait orientation: max-height aufheben */
@media (orientation: portrait) {
  .hero {
    max-height: none;
    height: clamp(380px, 78dvh, 900px);
  }
}

/* Tablet portrait (681–1024px breit) */
@media (min-width: 681px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-logo-wrap { top: 5%; }
  .hero-nav { top: 40%; }
  .hero-center { top: auto; bottom: 4%; transform: none; padding: 0 15%; }
  .hero-figur { height: 56%; }
}

/* Mobile portrait (<680px) */
@media (max-width: 680px) {
  .hero {
    height: calc(100dvh - 114px);
    min-height: 360px;
    max-height: none;
  }
  .hero-figur        { height: 50%; }
  .hero-figur-mann   { left: 0; }
  .hero-figur-frau   { right: 0; }
  .hero-logo-wrap { top: 5%; }
  .hero-logo-wrap img { width: 150px; height: 150px; }
  .hero-nav { top: 36%; }
  .hero-nav a { padding: 10px 20px; font-size: 0.78rem; margin: 0 4px 6px; }
  .hero-center { padding: 0 10%; top: 44%; bottom: auto; transform: translateY(-50%); }

  /* Innenseiten: Header-Logo + Nav kompakter */
  .logo-wrap img { width: 120px; height: 120px; }
  header { padding: 18px 20px 0; }
  nav { gap: 8px; }
  nav a { padding: 9px 14px; font-size: 0.76rem; }

  .kategorien-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .page-section h1 { font-size: 2.2rem; }
  .platform-links { flex-direction: column; }
  .platform-links .btn-gold { text-align: center; }
}

/* Sehr kleine portrait Phones (<420px) */
@media (max-width: 420px) {
  .hero { height: calc(100dvh - 114px); min-height: 300px; }
  .hero-logo-wrap { top: 5%; }
  .hero-nav { top: 33%; }
  .hero-slogan-row { margin-top: -20px; }
  .hero-center { padding: 0 8%; top: 48%; bottom: auto; transform: translateY(-50%); }
  .hero-figur { height: 44%; }
  .hero-logo-wrap img { width: 130px; height: 130px; }
  .hero-nav a { padding: 9px 16px; font-size: 0.73rem; margin: 0 3px 5px; }
  .deco-arrow { width: clamp(28px, 6vw, 40px); }
  .kommission-split { font-size: 2.2rem; }
}

/* Landscape kleine Geräte (Phones quer): alles in 100dvh ohne Scrollen */
/* WICHTIG: muss NACH max-width-Queries stehen — sonst überschreiben sie die Landscape-Werte */
@media (orientation: landscape) and (max-height: 550px) {
  .hero {
    min-height: 0;
    height: calc(100dvh - 114px);
    max-height: none;
  }
  .hero-figur { height: 80%; }
  .hero-logo-wrap { top: 2%; }
  .hero-logo-wrap img { width: 80px; height: 80px; }
  .hero-nav { top: 56%; }
  .hero-nav a {
    padding: 8px 20px;
    font-size: 0.72rem;
  }
  .hero-center { top: 78%; padding: 0 25%; }
  .hero-slogan { font-size: clamp(0.9rem, 2.5vw, 1.4rem); }
  .deco-arrow { width: 20px; height: 20px; }
}

/* ---- FOCUS VISIBLE (Accessibility) ---- */
nav a:focus-visible,
.hero-nav a:focus-visible,
.btn-gold:focus-visible,
.footer-links a:focus-visible,
.hero-logo-wrap:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 150, 58, 0.18);
  outline: none;
}
