/* Variablen */
:root {
  --color-bg: #e0f7fa;
  --color-accent: #112a46;
  --color-button: #007bff;
  --color-button-hover: #0056b3;
  --color-text: #382633;
  --color-muted: #7a6c6f;

  --font-main: 'Poppins', sans-serif;
  --radius: 0.5rem;
  --spacing-section: 4rem;
  --font-size-header: 1.5rem;
  --font-size-hero: 5rem;
  --font-size-h2: 2.5rem;
  --font-size-text: 1.1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #e0f7fa, #80deea);
  color: var(--color-text);
}

main {
  flex: 1;
}

/* Header/Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

header h1 {
  font-size: var(--font-size-header);
  font-weight: 600;
  color: var(--color-accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--color-accent);
}

.hero {
  flex: 1;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-section) 1rem;
  padding-top: 8rem;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 900;
  background: linear-gradient(to right, #112a46, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.welcome, .intro {
  margin-bottom: 1.5rem;
  font-size: var(--font-size-text);
  color: var(--color-muted);
}

/* Buttons*/
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pallettesButton, .trendingButton {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(45deg, #007bff, #00d4ff);
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.2);
}

.pallettesButton:hover, .trendingButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0.375rem 1.25rem rgba(0,123,255,0.4);
}

/* mini Palette */
.palette-preview {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.palette-preview article {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 0.25rem;
  transition: transform 0.3s ease;
}

.palette-preview article:hover {
  transform: scale(1.1);
}

/* Kontakt/Newsletter */
.contact-form fieldset.form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.contact-form fieldset.form-group > label {
  width: 30%;
  font-weight: 600;
  color: var(--color-accent);
}

.contact-form fieldset.form-group > input {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius);
  font-size: 1rem;
}

.contact-form fieldset.form-group > input:focus {
  outline: none;
  border-color: var(--color-button);
  box-shadow: 0 0 0.5rem rgba(0,123,255,0.3);
}

/* Button Abonnieren */
.contact-form {
  padding: 0.5rem;
}

.contact-form button {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(45deg, #007bff, #00d4ff);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0.375rem 1.25rem rgba(0,123,255,0.4);
}

/* Trending Paletten */
.palette-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem 4rem 2rem;
}

/* Jede Palette */
.palette-card {
  display: flex;
  flex-direction: column;
  width: 23%;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: rgba(255,255,255,0.85);
  box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.palette-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);
}

/* Farben */
.color {
  position: relative;
  height: 3.5rem;
}

.color:hover {
  transform: scale(1.05);
}

/* zeigt den Hex Code */
.color::after {
  content: attr(data-hex);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0;
}

.color:hover::after {
  opacity: 1;
}

/* Palette Name */
.palette-title {
  padding: 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* Neue Palette*/
.new-palette-grid {
  display: flex;
  width: 100%;
  height: 100vh;
}

.new-palette-card {
  display: flex;
  flex: 1;
  flex-direction: row;
}

.new-palette-color {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
}

/* Hex-Code immer sichtbar */
.new-palette-color::after {
  content: attr(data-hex);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  font-size: 1.5rem;
}

/* Impressum */
.about-content {
  max-width: 40rem;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  padding: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.about-content h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: 1.5rem;
}

.about-content a {
  color: var(--color-button);
  text-decoration: none;
}

.about-content a:hover {
  color: var(--color-button-hover);
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 -0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--color-button-hover);
  text-decoration: underline;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 25px;
  height: 20px;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-accent);
  border-radius: 2px;
}

#burger-menu {
  display: none;
}

/* MEDIA QUERIES */

/* Geräte bis 768px */
@media (max-width: 768px) {
  
  nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1rem;
    background-color: rgba(255,255,255,0.97);
    width: 220px;
    padding: 1rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15);

    /* Animation */
    max-height: 0;
    opacity: 0;
    transition: 
      max-height 0.4s ease,
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  nav ul.show {
    max-height: 500px;
    opacity: 1;
  }

  nav ul li {
    margin-bottom: 0.75rem;
  }

  nav ul a {
    padding: 0.75rem 0.5rem;
    display: block;
    border-radius: 0.5rem;
    font-size: 1.1rem;

    transition: background 0.2s ease,
                transform 0.2s ease;
  }

  nav ul a:hover {
    background: rgba(0,0,0,0.06);
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 25px;
    height: 20px;
    margin-left: auto;
  }

  /* Hero */
  .hero-title {
    font-size: 3rem;
  }

  .intro {
    font-size: 1rem;
  }

  /* Trending Paletten */
  .palette-card {
    width: 90%;
  }

  /* Neue Palette Balken */
  .new-palette-grid {
    flex-direction: column;
    height: 100vh;
    padding-top: 69px;
  }

  .new-palette-color {
    height: 100px;
    width: 100%;
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Geräte 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Hero-Bereich */
  .hero {
    padding-top: 6rem;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .intro {
    font-size: 1.05rem;
  }

  /* Trending Paletten */
  .palette-card {
    width: 45%;
    margin: 0 auto;
  }

  /* Neue Palette Balken */
  .new-palette-grid {
    flex-direction: column;
    height: auto;
    padding-top: 70px;
  }

  .new-palette-color {
    height: 130px;
    font-size: 1.6rem;
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Burger */
  .burger {
    display: none;
  }
}