/* ============================================================
   Gianni Gelateria – Landingpage
   Statisch (kein Build) · Hosting: hosttech/Plesk
   ============================================================ */

:root {
  --pink:  #ff0096;
  --dark:  #1e1e1e;
  --white: #ffffff;

  --font-display: "Josefin Sans", system-ui, sans-serif;
  --font-body:    "Josefin Sans", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--dark);
}

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

img { display: block; }

/* ------------------------------------------------------------
   HERO – Grundlayout (mobile / Hochformat zuerst)
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vh, 2.5rem);
  padding: clamp(1.75rem, 4.5vh, 4rem) clamp(1.5rem, 6vw, 4rem);
  background: var(--dark) url("assets/bg-mobile.svg") center / cover no-repeat;
  text-align: center;
}

/* ---- Logo ---- */
.brand { width: 100%; }

.brand__logo {
  width: clamp(180px, 46vw, 320px);
  height: auto;
  margin: 0 auto;
}

/* ---- Headline + Badge ---- */
.headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 3vh, 2.5rem);
}

.headline__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-size: clamp(2.25rem, 14vw, 7rem);
}

/* ---- Bestell-Badge ---- */
.badge {
  position: relative;
  display: block;
  width: clamp(150px, 34vw, 240px);
  aspect-ratio: 1 / 1;
  transition: transform 0.4s ease;
}

.badge:hover { transform: scale(1.05); }

.badge__disc,
.badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Nur der Kreistext "Order online · Online bestellen" dreht langsam,
   das Scallop mit "FAST LANE" bleibt stehen. */
.badge__ring {
  animation: badge-spin 20s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes badge-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .badge__ring { animation: none; }
}

/* ------------------------------------------------------------
   FOOTER-INFOS
   ------------------------------------------------------------ */
.info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vh, 2rem);
  text-align: left;
  font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  line-height: 1.5;
}

.info__main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

.info p { margin: 0; }

.info a:hover { color: var(--pink); }

.info__name,
.info__label {
  font-weight: 700;
}

.info__contact,
.info__hours { width: 100%; max-width: 360px; }

.info__hours .info__label:first-child { margin-bottom: 0.4em; }

/* Sommer / Winter nebeneinander */
.hours {
  display: flex;
  gap: clamp(1.5rem, 6vw, 3rem);
}

.hours__col { min-width: 0; }

.hours__period {
  font-size: 0.82em;
  opacity: 0.7;
  margin-bottom: 0.35em;
}

.hours__row {
  display: flex;
  gap: 0.75em;
  white-space: nowrap;
}

.hours__row span:first-child { min-width: 3.4em; }

/* Social-Icons */
.info__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 2.5rem);
}

/* Icons als CSS-Mask: Form aus dem SVG, Farbe aus CSS.
   Standard weiss, nur im Hover pink. */
.info__social .ico {
  display: inline-block;
  height: clamp(30px, 7vw, 40px);
  background-color: var(--white);
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ico--map   { aspect-ratio: 84.18 / 107.05; --ico: url("assets/icon-map.svg"); }
.ico--insta { aspect-ratio: 1 / 1;          --ico: url("assets/icon-instagram.svg"); }
.ico--trip  { aspect-ratio: 117.85 / 75.24; --ico: url("assets/icon-tripadvisor.svg"); }

.info__social a:hover .ico {
  background-color: var(--pink);
  transform: translateY(-3px);
}

/* Diskrete Rechtslinks (Impressum / Datenschutz) */
.legal {
  display: flex;
  gap: clamp(1rem, 4vw, 1.75rem);
  font-size: clamp(0.72rem, 2.6vw, 0.82rem);
  letter-spacing: 0.03em;
}

.legal a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.legal a:hover { color: var(--pink); }

/* ============================================================
   DESKTOP / QUERFORMAT
   ============================================================ */
@media (min-width: 820px) {

  .hero {
    background-image: url("assets/bg-desktop.svg");
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(2.5rem, 5vh, 4.5rem) clamp(3rem, 6vw, 7rem);
    text-align: left;
  }

  /* Logo zentriert oben */
  .brand__logo { width: clamp(220px, 20vw, 320px); }

  /* Headline zentriert (3 Zeilen), Badge rechts neben "Seit 2023" */
  .headline {
    align-self: center;
    align-items: center;
    width: fit-content;
  }

  .headline__title {
    font-size: clamp(3rem, 6.5vw, 8rem);
    line-height: 0.95;
  }

  .badge {
    position: absolute;
    left: 100%;
    bottom: clamp(-2rem, -2vw, -0.5rem);
    margin-left: clamp(-2.5rem, -2.5vw, -1rem);
    width: clamp(135px, 12vw, 190px);
  }

  /* Footer als 3 Spalten unten */
  .info {
    font-size: clamp(0.85rem, 1.05vw, 1rem);
    gap: clamp(0.6rem, 1vw, 1rem);
  }

  .info__main {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .info__contact,
  .info__hours { width: auto; max-width: none; }

  .info__contact { flex: 1; }

  .info__hours { flex: 1; text-align: left; }

  .info__social { flex: 1; justify-content: flex-end; }

  .info__social .ico { height: clamp(26px, 2vw, 34px); }

  .legal { align-self: flex-start; }
}

/* Sehr breite Screens nicht überdehnen */
@media (min-width: 1700px) {
  .hero {
    padding-left: max(7rem, (100vw - 1600px) / 2);
    padding-right: max(7rem, (100vw - 1600px) / 2);
  }
}
