/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

* {
  box-sizing: border-box;
  cursor:
    url("https://cdn.cursors-4u.net/previews/paper-airplane-19477b19-32.webp")
      32 32,
    auto !important;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  background-image: url("pictures/Homepage/1.JPG");
  font-family: "Inconsolata", monospace;
  color: #2a3340;
  line-height: 1.5;

  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
date,
button {
  font-family: "Inconsolata", monospace;
}

main {
  flex: 1;
  width: 100%;
}

section {
  background-color: rgba(248, 251, 255, 0.94);
  border-width: 2px;
  color: #2a3340;
  margin: 20px;
  padding: 10px;
  border-radius: 1rem;
  font-size: 15px;
}

p {
  word-break: normal;
}

a {
  color: #2a3340;
  text-decoration: none;
}

button,
a,
select {
  cursor: pointer;
}

/* =========================================================
   HEADER
   ========================================================= */

.homepage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1rem 0;
  position: relative;

  border-color: #b7c5ff;
  border-radius: 1rem;

  text-align: center;
}

.site-header {
  flex-grow: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.container {
  display: flex;
  flex-direction: column;
}

.title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  padding: 0.35rem 0.8rem;

  /* background-color: rgba(245, 250, 255, 0.75);

  border: 2px dotted #b8b5ff;
  border-radius: 1rem;

  box-shadow:
    2px 2px 0 #6f91d8,
    -1px -1px 0 #ffffff; */
}

.homepage-title {
  margin: 0;

  color: #b8b5ff;

  font-size: clamp(2rem, 4vw, 2.3rem);
  font-weight: 700;

  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 0 #6f91d8;
}

.homepage-icons {
  font-size: 1.5rem;
  filter: drop-shadow(1px 1px 0 #ffffff);
  animation: twinkle 1.8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.5;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.menu-button-open {
  align-self: center;

  background: none;
  color: #b7c5ff;

  border: none;

  font-size: 1.5rem;

  margin-right: 0.5rem;

  z-index: 2000;
  flex-shrink: 0;
}

/* =========================================================
   HAUPTLAYOUT – MOBILE FIRST
   ========================================================= */

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
}

.homepage-layout {
  display: flex;
  flex-direction: column;
}

/* =========================================================
   GEMEINSAME BOXEN
   ========================================================= */

.glow-box {
  border: 2px solid #b7c5ff;

  box-shadow:
    inset 0 0 10px rgba(183, 197, 255, 0.7),
    inset 0 0 2px white,
    inset 0 0 20px rgba(170, 205, 255, 0.35);

  border-radius: 1rem;
}

.title-box {
  background-color: rgba(245, 250, 255, 0.94);

  border-color: #b7c5ff;
  border-style: dotted;
  border-width: 2px;
  border-radius: 1rem;
}

/* =========================================================
   BUTTONS / BUTTON-LINKS
   ========================================================= */

button,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;

  padding: 0.5rem 0.75rem;

  font: inherit;
  line-height: 1;

  color: #2a3340;
  background-color: #b8b5ff;

  border: none;
  border-radius: 1rem;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

button:hover,
.read-more:hover {
  background-color: #9faeff;

  box-shadow: 0 4px 12px rgba(159, 174, 255, 0.35);

  transform: translateY(-2px);
}

button:active,
.read-more:active {
  transform: translateY(0);
}

/* =========================================================
   REISEN – ÜBERSICHT
   ========================================================= */

.travels-featured {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding: 1rem;

  border-style: solid;
  border-color: #b7c5ff;
}

/* ---------- einzelne Reisekarte ---------- */

.travel-post {
  background-color: rgba(244, 251, 255, 0.92);

  border: 1px solid rgba(183, 197, 255, 0.45);
  border-radius: 1rem;

  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.travel-post:hover {
  transform: translateY(-2px);

  box-shadow: 0 5px 15px rgba(76, 119, 180, 0.15);
}

/* ---------- Inhalt der Reisekarte ---------- */

.travel-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;

  padding: 1rem;
}

.travel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.travel-text date {
  margin-bottom: 0.15rem;
}

.travel-text p {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  max-width: 60ch;
}

.travel-title {
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
}

/* ---------- Bild-Link ---------- */

.travel-content > a:not(.read-more) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Bilder auf der Homepage ---------- */

.travel-image-hp {
  display: block;

  width: 100%;
  max-width: 220px;
  height: 220px;

  object-fit: cover;
  object-position: center;

  border-radius: 1rem;
}

/* =========================================================
   DIA-SHOW
   ========================================================= */

.dia-show-box {
  overflow: hidden;
}

.dia-show-pictures {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 220px;
}

/*
   Wichtig:
   Das Dia-Show-Bild bekommt hier eigene Regeln.
   Dadurch wird es nicht von den verschiedenen Formaten
   der Bilder hin und her geschoben.
*/

#diaShowImage {
  display: block;

  width: auto;
  max-width: 100%;

  height: auto;
  max-height: 350px;

  margin: 0 auto;

  object-fit: contain;
  object-position: center;
}

/* =========================================================
   SIDEBAR – MOBILE
   ========================================================= */

aside {
  position: fixed;

  top: 0;
  left: -300px;

  width: 250px;
  height: 100vh;

  z-index: 1000;

  transition: left 0.3s ease;

  background: rgba(245, 250, 255, 0.55);
  border: 1px solid rgba(183, 197, 255, 0.5);

  margin-top: 1.25rem;
  margin-right: 1.25rem;

  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
}

aside.open {
  left: 0;
}

/* =========================================================
   GÄSTEBUCH
   ========================================================= */

.guestbook {
  display: flex;
  flex-direction: column;
}

.guestbook-form {
  display: flex;
  flex-direction: column;

  gap: 0.5rem;

  flex-wrap: wrap;

  width: 100%;
}

/*
   Die Gestaltung kommt bereits von der allgemeinen
   button-Regel. Hier wird nur die Position festgelegt.
*/

.guestbook-input {
  align-self: center;
}

.guestbook-text-area {
  resize: none;

  border-radius: 1.5rem;

  padding: 0.5rem;
}

.name-warning {
  display: none;

  color: red;

  font-size: 0.75rem;

  margin: 0;
}

#guestbook-status {
  color: #2a3340;

  text-align: center;

  font-size: 0.9rem;
}

.guestbook-all-entries {
  display: flex;
  flex-direction: column;
}
.guestbook-all-entries,
.guestbook {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(183, 197, 255, 0.85);

  box-shadow:
    0 4px 12px rgba(45, 75, 120, 0.08),
    inset 0 0 10px rgba(183, 197, 255, 0.12);
}
.guestbook-entries-header-box {
  display: flex;
}

.guestbook-entries {
  border-radius: 1.5rem;
}

.guestbook-header {
  color: #b8b5ff;
  margin: 0;
  align-items: center;
  gap: 0.4rem;

  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;

  border-bottom: dotted 2px #b8b5ff;
}

.guestbook-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 0.75rem;

  color: #b8b5ff;
  font-weight: bolder;

  border-bottom: 1px solid rgba(183, 197, 255, 0.5);

  padding-bottom: 0.5rem;
}

.guestbook-entry {
  border-left: 3px solid #b8b5ff;
}

.guestbook-entry {
  .guestbook-entry {
    padding: 0.75rem;
    margin: 0 0 0.75rem;

    border: 1px solid #b7c5ff;
    border-radius: 0.75rem;

    box-shadow:
      inset 0 0 8px rgba(183, 197, 255, 0.2),
      0 2px 6px rgba(30, 70, 120, 0.08);
  }
}

.guestbook-entry:hover {
  transform: translateY(-2px);

  box-shadow:
    inset 0 0 5px white,
    inset 0 0 16px rgba(170, 205, 255, 0.45),
    0 6px 18px rgba(110, 203, 245, 0.25);
}

.guestbook-date {
  font-size: 0.75rem;

  color: #67c6ef;

  opacity: 0.8;
}

.guestbook-name {
  color: #2a3340;

  font-size: 1rem;
  font-weight: 700;
}

.guestbook-message {
  line-height: 1.6;

  color: #2a3340;

  font-size: 0.95rem;
}

/* =========================================================
   BLOG
   ========================================================= */

.journey-title {
  margin: 1.25rem;

  color: #b8b5ff;

  padding: 10px;
}

.journey-navigation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  margin: 20px;

  padding: 1rem;
}

.journey-navigation button {
  margin: 0.25rem 0.5rem;
}

.navigation-box {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.navigation-box-header {
  display: flex;

  background-color: #f4fbff;

  margin: 0;
}

.travel-stop {
  padding: 20px;

  text-align: left;
}

.stop-title {
  color: #59b7e8;
}

.travel-image {
  width: 100%;
  height: auto;

  max-height: 800px;

  border-radius: 1rem;

  margin: 1rem 0;
}

/* =========================================================
   TYPOGRAFIE
   ========================================================= */

h1 {
  color: #59b7e8;
}

h2 {
  color: #59b7e8;

  margin-top: 5px;
  margin-bottom: 5px;
}

h3 {
  color: #7edfd4;
}

.header-box-h2 {
  color: #b8b5ff;

  font-size: 1.5rem;

  text-decoration: underline dotted 3px;
}

h2.travel-title {
  color: #b8b5ff;
}

.blog-header {
  color: #b8b5ff;
}

.italic-name {
  font-style: italic;
}

date {
  color: #67c6ef;

  font-size: 1rem;
}

/* =========================================================
   DEKORATION / BILDER
   ========================================================= */

.clouds {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  pointer-events: none;

  z-index: -1;
}

.cloud-big {
  position: absolute;

  top: 50px;
  left: -100px;

  width: 400px;
  height: 250px;

  background-image: url("pictures/Homepage/bigCloud.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.cloud-mid {
  position: absolute;

  top: 30px;
  left: -250px;

  width: 350px;
  height: 150px;

  background-image: url("pictures/Homepage/mid-cloud1.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.blackground-clouds {
  animation: cloudMove 30s linear infinite;

  background-repeat: repeat;
}

.mini-icon {
  max-width: 1.75rem;
  max-height: 1.75rem;

  margin-top: 5px;
  margin-right: 0.5rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 1.25rem;

  background-color: #59b7e8;

  border-top: 2px solid #b7c5ff;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  color: #f4fbff;

  line-height: normal;
}

.footer-column a {
  color: #2a3340;

  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 900px) {
  /*
     Äußeres Layout:
     Gästebuch links, Hauptinhalt rechts.
  */

  .layout {
    grid-template-columns: 2fr 10fr;
    align-items: stretch;
  }

  main {
    width: 100%;
    margin: 0;
  }

  .title-link {
    gap: 0.75rem;
  }

  p {
    font-size: 1rem;
  }

  /* ---------------------------------------------------------
     Homepage:
     Inhalt links, Dia-Show rechts
     --------------------------------------------------------- */

  .homepage-layout {
    display: grid;

    grid-template-columns: 3fr 1fr;

    grid-template-areas:
      "about slideshow"
      "travels slideshow";

    gap: 20px;

    align-items: stretch;
  }

  .title-box {
    grid-area: about;
  }

  .travels-featured {
    grid-area: travels;
  }

  .dia-show-box {
    grid-area: slideshow;
  }

  /* ---------------------------------------------------------
     Sidebar
     --------------------------------------------------------- */

  .menu-button-open {
    display: none;
  }

  #sidebar,
  .dia-show-box {
    position: static;

    width: auto;
    height: auto;

    margin: 1.25rem;

    border-radius: 1rem;

    overflow: visible;

    display: flex;
    flex-direction: column;

    align-self: stretch;

    background: rgba(245, 250, 255, 0.55);
    border: 1px solid rgba(183, 197, 255, 0.5);
  }

  .guestbook-all-entries {
    flex: 1;
  }

  /* ---------------------------------------------------------
     Reisekarten Desktop
     --------------------------------------------------------- */

  .travel-content {
    grid-template-columns: minmax(0, 1fr) 220px;

    align-items: center;

    gap: 1.5rem;
  }

  .travel-content > a:not(.read-more) {
    width: 220px;
  }

  .travel-image-hp {
    width: 220px;
    height: 220px;
  }

  /* ---------------------------------------------------------
     Dia-Show Desktop
     --------------------------------------------------------- */

  .dia-show-pictures {
    width: 100%;

    justify-content: center;
    align-items: center;
  }

  #diaShowImage {
    margin-left: auto;
    margin-right: auto;

    max-width: 100%;
  }

  /* ---------------------------------------------------------
     Blog Desktop
     --------------------------------------------------------- */

  .travel-image {
    align-self: center;

    width: 50%;
    height: auto;

    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .travel-stop {
    display: flex;
    flex-direction: column;
  }

  .stop-title {
    font-size: 2rem;

    margin-top: 0.5rem;
  }
}
