/* UHRENSOHN – style.css */
/* gemeinsames design fuer alle seiten */

:root {
  --gold: #c8a448;
  --gold-dark: #b8892d;
  --bg: #f7f4ef;
  --white: #ffffff;
  --text: #2a2a2a;
  --muted: #6f6f6f;
  --border: #e7dfd2;
  --placeholder: #ece6de;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

a {
  text-decoration: none;
}

img {
  display: block;
}

/* kleine animation auf der startseite */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* navigation */
nav {
  height: 90px;
  background: var(--white);
  padding: 0 4rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.nav-left a:hover .logo {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.nav-link::after {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gold);
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* suche, warenkorb und mobile-menue */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.icon img {
  width: 19px;
  height: 19px;
}

.icon:hover {
  background: var(--gold);
}

.icon:hover img {
  filter: brightness(0) invert(1);
}

/* hamburger auf desktop verstecken */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* startbereich */
.hero {
  background: linear-gradient(135deg, #f4efea 0%, #eae3db 100%);
  padding: 5rem 4rem;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 0.9;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s ease-out both;
}

.hero-left p {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.7s ease-out 0.4s both;
}


/* buttons */
.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-block;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--white);
}


/* bild-slider */
.slider {
  position: relative;
  height: 460px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--placeholder);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--placeholder);
  color: #b0a89d;
}

.slide.active {
  display: flex;
}

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

.slider-buttons {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 0.5rem;
}

.slider-buttons button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
}

.slider-buttons button:hover {
  background: var(--gold);
  color: var(--white);
}


/* produkte */
.products {
  padding: 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 2.5rem;
  white-space: nowrap;
}

.line {
  flex: 1;
  height: 1px;
  background: var(--gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
  height: 220px;
  background: var(--placeholder);
  color: #b3aa9e;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-content {
  padding: 1.5rem;
  text-align: center;
}

.product-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.price {
  color: var(--muted);
  margin-bottom: 1.5rem;
}


/* ueber uns kachel auf der startseite */
.about-box {
  background: var(--white);
  margin: 0 4rem 4rem;
  padding: 2rem;
  border: 1px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(200, 164, 72, 0.1);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-content h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-content p {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
}


/* kontaktseite */
.kontakt-section,
.ueber-uns-section {
  padding: 5rem 4rem;
}

.kontakt-container,
.ueber-uns-container {
  max-width: 900px;
  margin: 0 auto;
}

.kontakt-container {
  max-width: 700px;
}

.kontakt-container h2,
.ueber-uns-container h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.kontakt-container > p {
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.6;
}

#kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.form-group--checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.form-group--checkbox label {
  flex: 1;
  font-weight: 400;
}

.form-group--checkbox label a {
  color: var(--gold);
}

.error-msg {
  color: #c0392b;
  font-size: 0.8rem;
  min-height: 1rem;
}

.form-group--checkbox .error-msg {
  width: 100%;
}

.success-msg {
  color: #27ae60;
  background: #f0fff4;
  border: 1px solid #27ae60;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
}

.success-msg:empty {
  display: none;
}

/* lade-spinner fuers kontaktformular (dreht sich beim speichern) */
.spinner {
  width: 28px;
  height: 28px;
  margin: 1rem 0;
  border: 3px solid var(--border);      /* heller ring rundherum */
  border-top-color: var(--gold);        /* ein farbiges stueck oben */
  border-radius: 50%;                   /* macht aus dem quadrat einen kreis */
  animation: spin 0.8s linear infinite; /* dreht sich endlos im kreis */
}

/* dreht den spinner einmal komplett um 360 grad */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ueber uns seite */
.ueber-uns-container h2 {
  margin-bottom: 2rem;
}

.ueber-uns-image {
  height: 350px;
  background: var(--placeholder);
  border-radius: 16px;
  color: #b3aa9e;
  margin-bottom: 2.5rem;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.ueber-uns-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ueber-uns-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}


/* footer */
footer {
  background: linear-gradient(180deg, #efe9e2 0%, #e8e1d9 100%);
  padding: 4rem;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col p {
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* insta und facebook */
.footer-col a.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.social-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon-circle img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.footer-legal {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  color: var(--muted);
  font-size: 0.82rem;
}


/* tablet */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .product-grid,
  footer {
    grid-template-columns: 1fr 1fr;
  }
}


/* mobile */
@media (max-width: 700px) {
  nav {
    height: 75px;
    padding: 0 1.2rem;
  }

  .logo {
    height: 40px;
  }

  .icon {
    width: 34px;
    height: 34px;
  }

  .icon img {
    width: 16px;
    height: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-link {
    display: block;
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 2rem 1.2rem;
    gap: 2rem;
  }

  .hero-left h1 {
    font-size: 3.4rem;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1rem;
  }

  .slider {
    height: 240px;
  }

  .products,
  .kontakt-section,
  .ueber-uns-section {
    padding: 3rem 1.2rem;
  }

  .section-title {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-image {
    height: 120px;
  }

  .product-content {
    padding: 1rem;
  }

  .about-box {
    margin: 0 1.2rem 2rem;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .ueber-uns-image {
    height: 200px;
  }

  footer {
    padding: 2rem 1.2rem;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* sehr kleine bildschirme */
@media (max-width: 480px) {
  .hero-left h1 {
    font-size: 2.8rem;
  }

  .product-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .slider {
    height: 200px;
  }
}
/* verbesserung der bildqualitaet */
.product-image {
  height: 220px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  max-width: 75%;
  max-height: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* game bereich */
.game-section {
  margin-top: 5rem;
  text-align: left;
}

.game-section h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.game-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.game-placeholder {
  min-height: 260px;
  border: 1px dashed var(--gold);
  border-radius: 16px;
  background: var(--placeholder);
  margin-top: 1rem;
}

/* handy startseite */
@media (max-width: 700px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
  }

  .hero-left {
    display: contents;
  }

  .hero-left h1 {
    order: 1;
  }

  .hero-left p {
    order: 2;
    margin-bottom: 2rem;
  }

  .hero-right {
    order: 3;
    width: 100%;
    display: block !important;
    margin-bottom: 2rem;
  }

  .slider {
    width: 100%;
    height: 220px !important;
    display: block !important;
  }

  .slide.active {
    display: flex !important;
  }

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

  .hero-buttons {
    order: 4;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}


/* ============================================================ */
/* uhren-runner – styles fuer das lauf-spiel (ueber-uns-seite)   */
/* eigene styles, keine bestehende klasse wird ueberschrieben    */
/* ============================================================ */

/* das spielfeld: hintergrundbild, feste hoehe, fuellt den platzhalter */
.uhr-game {
  position: relative;            /* basis fuer die absolut platzierten kinder */
  width: 100%;
  height: 300px;
  overflow: hidden;              /* hindernisse ausserhalb werden abgeschnitten */
  border-radius: 16px;
  /* hintergrundbild: pfad relativ zum css-ordner (assets/css -> ../images) */
  background: url("../images/T-Rex_Game/hintergrund.png") center / cover no-repeat;
  user-select: none;             /* kein text markieren beim schnellen klicken */
  cursor: pointer;
  touch-action: manipulation;    /* schnellere reaktion auf tap (mobile) */
}

/* duenne boden-linie als optische orientierung.                    */
/* liegt auf hoehe der sichtbaren fuesse, weil die PNGs unten einen  */
/* durchsichtigen rand haben (die grafik sitzt also etwas hoeher).   */
.uhr-game::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

/* die spielfigur unten links */
.uhr-game-player {
  position: absolute;
  left: 48px;
  bottom: 14px;                  /* boden-abstand, wird per js beim sprung erhoeht */
  width: 200px;
  height: auto;
  z-index: 2;
}

/* ein hindernis (uhr) – wird per js erzeugt und nach links bewegt.  */
/* sitzt etwas tiefer als die figur, weil die uhr-grafik unten mehr  */
/* durchsichtigen rand hat – so steht sie auf derselben bodenlinie.  */
.uhr-game-obstacle {
  position: absolute;
  bottom: 6px;
  width: 150px;
  height: auto;
  z-index: 2;
}

/* punkte-anzeige oben rechts (live-punkte + highscore) */
.uhr-game-scores {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

#uhr-game-score {
  font-size: 1.6rem;
  font-weight: 600;
}

.uhr-game-best {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* overlays fuer start und game over (liegen mittig ueber dem feld) */
.uhr-game-overlay {
  position: absolute;
  inset: 0;                      /* deckt das ganze spielfeld ab */
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
}

.uhr-game-overlay p {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.uhr-game-hint {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* versteckte overlays werden komplett ausgeblendet */
.uhr-game-hidden {
  display: none;
}

/* auf kleinen bildschirmen alles etwas kompakter */
@media (max-width: 700px) {
  .uhr-game {
    height: 230px;
  }

  /* bodenlinie tiefer, passend zu den kleineren sprites */
  .uhr-game::after {
    bottom: 24px;
  }

  .uhr-game-player {
    width: 130px;
    left: 28px;
  }

  .uhr-game-obstacle {
    width: 98px;
  }

  .uhr-game-overlay p {
    font-size: 1.8rem;
  }
}