/* ==========================================================
   3D-Achterbahn Modelle – Stylesheet
   Responsive, mobile first
   ========================================================== */

:root {
  --blau: #1e90e6;
  --blau-dunkel: #0b1b2e;
  --blau-tiefer: #07111d;
  --orange: #ff6a1a;
  --gelb: #ffb81f;
  --weiss: #ffffff;
  --grau: #b4c3d4;
  --radius: 18px;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--weiss);
  background: var(--blau-tiefer);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.78) 0%, rgba(7, 17, 29, 0.15) 38%, rgba(7, 17, 29, 0.85) 100%),
    url("img/achterbahn-looping.jpg") center 40% / cover no-repeat;
  isolation: isolate;
}

.logo {
  width: min(420px, 70vw);
  margin-top: 1rem;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5));
}

.hero-text {
  max-width: 640px;
}

.hero-text h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: #e6eef7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- BUTTONS ---------- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn svg {
  width: 1.3em;
  height: 1.3em;
  fill: currentColor;
  flex: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-insta {
  background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4);
}

.btn-print {
  background: linear-gradient(45deg, #ff6a1a, #fa4a1a);
}

/* ---------- GALERIE ---------- */

.galerie {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.kachel {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blau-dunkel);
  min-height: 260px;
}

.kachel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kachel-foto img {
  transition: transform 0.6s ease;
}

.kachel-foto:hover img {
  transform: scale(1.04);
}

/* Zeichnung auf "Blaupause" */
.kachel-zeichnung {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 30% 20%, #17508a 0%, #0c2c4d 70%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kachel-zeichnung img {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

/* ---------- STREIFEN ---------- */

.streifen {
  position: relative;
  padding: 4.5rem 1.25rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.85), rgba(7, 17, 29, 0.55)),
    url("img/achterbahn-lift.jpg") center 30% / cover no-repeat fixed;
}

.streifen h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

/* ---------- FOOTER ---------- */

footer {
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--grau);
  font-size: 0.95rem;
  background: #050c15;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}

footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer a:hover,
footer a:focus-visible {
  color: #fff;
  border-bottom-color: var(--orange);
}

/* ---------- RECHTLICHE SEITEN ---------- */

.rechtlich-kopf {
  position: relative;
  padding: 1.5rem 1.25rem;
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.9), rgba(7, 17, 29, 0.6)),
    url("img/achterbahn-looping.jpg") center 35% / cover no-repeat;
  text-align: center;
}

.rechtlich-kopf img {
  width: min(220px, 55vw);
  margin: 0 auto;
}

.rechtlich {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.rechtlich h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-top: 0;
}

.rechtlich h2 {
  margin-top: 2.2rem;
  font-size: 1.35rem;
  color: var(--gelb);
}

.rechtlich h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.rechtlich p,
.rechtlich li {
  color: #dbe6f1;
}

.rechtlich a {
  color: var(--blau);
}

.zurueck {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--grau);
  text-decoration: none;
}

.zurueck:hover {
  color: #fff;
}

/* ---------- TABLET ---------- */

@media (min-width: 700px) {
  .galerie {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    padding: 4rem 1.5rem;
  }

  .kachel {
    min-height: 0;
  }

  /* Hochformat-Foto links, hoch */
  .k-lift {
    grid-column: span 2;
    grid-row: span 3;
  }

  /* Zeichnung groß rechts oben */
  .k-zeichnung {
    grid-column: span 4;
    grid-row: span 2;
  }

  /* Foto unten rechts */
  .k-looping {
    grid-column: span 4;
    grid-row: span 1;
  }

  .kachel-zeichnung img {
    height: 100%;
  }
}

/* ---------- DESKTOP ---------- */

@media (min-width: 1100px) {
  .galerie {
    grid-auto-rows: 240px;
    gap: 1.5rem;
  }
}

/* iOS: fixed backgrounds sind dort fehlerhaft */
@media (hover: none) {
  .streifen {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .kachel-foto img {
    transition: none;
  }
}
