/* -------------------- */
/* Fonts         */
/* -------------------- */
.dancing-script-400 {
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}

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

/* -------------------- */
/* Hero Section         */
/* -------------------- */
.hero {
  width: 100%;
  height: 850px; /* Höhe anpassen */
  background-image: url("../images/fehmarn.jpg");
  background-size: cover; /* Bild füllt den Bereich */
  background-position: center; /* zentrieren */
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(30,30,30,0.8));*/
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-text h1 {
  font-size: 98px;
  font-weight: 900;
  margin-bottom: 10px;

  background: linear-gradient(
  90deg,
  #ff0000,  /* Rot */
  #ff4400,  
  #ff8800,  /* Orange */
  #ffbb00,  
  #ffee00,  /* Gelb */
  #88ff00,  
  #00ff00,  /* Grün */
  #00ff88,  
  #00ffff,  /* Cyan */
  #0088ff,  
  #0000ff,  /* Blau */
  #4400ff,  
  #8800ff,  /* Violett */
  #cc00ff,  
  #ff00cc,  /* Magenta */
  #ff0066,  
  #ff0000   /* Zurück zu Rot */
);
  background-size: 300% auto;

  -webkit-background-clip: text; /* Safari/Chrome */
  background-clip: text; /* Standard */
  -webkit-text-fill-color: transparent; /* Safari/Chrome */
  color: transparent; /* Standard fallback */

  animation: running-light 8s linear infinite;
}

.hero-text h2 {
  font-size: 36px;
  font-weight: bold;
}

/* -------------------- */
/* Body Styling         */
/* -------------------- */
body {
  font-family: "Poppins", sans-serif;
  color: white;
  background-color: #4c0640;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
}

/* -------------------- */
/* Header Styling       */
/* -------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #221122;
  padding: 20px;
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 1000;
}

/* Logo Hover & Active */
.header a.logo {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.header a.logo:hover,
.header a.logo:active {
  background-color: #4c0640; /* Hover Effekt */
  color: white;
}

/* Header Navigation */
.header-right {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1400;
}

/* -------------------- */
/* Links Styling         */
/* -------------------- */

/* Globale Links (Footer etc.) */
a:link,
a:visited {
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}

a:hover {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 5px;
}

a.active {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Header Navigation Links: keine Unterstreichung, farblich abgehoben */
.header-right a:link,
.header-right a:visited {
  color: white;
  text-decoration: none;
}

.header-right a {
  color: white;
  text-decoration: none;
  padding: 8px 12px; /* Padding fest setzen, nicht verändern beim Hover */
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.header-right a:hover,
.header-right a.active {
  background-color: #4c0640; /* nur Hintergrundfarbe ändern */
  color: white; /* Schriftfarbe bleibt weiß */
}

/* -------------------- */
/* Hamburger Menü Button */
/* -------------------- */
.menu-toggle {
  all: unset;
  display: none; /* Desktop unsichtbar */
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
}

.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: white;
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* X Animation */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* -------------------- */
/* Main Section         */
/* -------------------- */
/* Lauflicht Effekt für h1 */
.category_headline h1 {
  font-size: 98px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(
  90deg,
  #ff0000,  /* Rot */
  #ff4400,  
  #ff8800,  /* Orange */
  #ffbb00,  
  #ffee00,  /* Gelb */
  #88ff00,  
  #00ff00,  /* Grün */
  #00ff88,  
  #00ffff,  /* Cyan */
  #0088ff,  
  #0000ff,  /* Blau */
  #4400ff,  
  #8800ff,  /* Violett */
  #cc00ff,  
  #ff00cc,  /* Magenta */
  #ff0066,  
  #ff0000   /* Zurück zu Rot */
);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: running-light 8s linear infinite;
  word-break: break-word;
}

@keyframes running-light {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 300% center;
  }
}

.category_headline h2 {
  font-size: 48px;
  font-weight: bold;
  margin-top: 10px;
}

.main {
  flex: 1;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}

h1 {
  font-family: "Poppins", sans-serif;
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  color: white;
  margin-top: 50px;
}

/* -------------------- */
/* Search Section Styling */
/* -------------------- */
.search-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(240, 240, 240, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  margin-bottom: 40px !important;
  padding-left: 10px;
  padding-right: 10px;
}

.search-container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

#multiSearchForm input,
#multiSearchForm select,
#multiSearchForm button {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  transition:
    background 0.3s ease-in-out,
    transform 0.2s;
  cursor: pointer;
}

#multiSearchForm button {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1b;
}

#multiSearchForm button:hover {
  background-color: #4c0640;
  color: white;
}

/* -------------------- */
/* Blog Seite       */
/* -------------------- */
.blog {
  max-width: 980px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(240, 240, 240, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
  word-wrap: break-word;
}

.blog-list {
  width: 100%;
  max-width: 980px;
  margin: 20px auto 40px auto;
  padding: 20px;
  background: rgba(240, 240, 240, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-preview {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
   border-bottom: 1px solid #fff;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.blog-thumbnail {
  width: 300px;
  min-width: 300px;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-preview-content {
  flex: 1;
}

.blog-preview h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #fff;
}

.blog-preview .date {
  font-size: 0.9rem;
  color: #aaa; /* Helles Grau für Datum */
}

.blog-preview p {
  color: #ddd; /* Heller Text für Excerpt */
}

.blog-preview .read-more {
  text-decoration: none;
  color: #4da6ff;
}

.blog-preview .read-more:hover {
  color: #80bfff;
}

.blog-post {
  color: #fff; /* Weißer Text */
  margin: auto 20px auto 20px;
  text-align: left;
}

.blog-post img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
}

.blog-post h1 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 0.5rem;
  color: #fff;
}

.blog-post .date {
  font-size: 0.9rem;
  text-align: left;
  color: #aaa;
  margin-bottom: 1rem;
}

.blog-post p {
  color: #ddd;
  text-align: left;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  color: #4da6ff;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.back-link:hover {
  color: #80bfff;
  font-weight: bold;
  text-decoration: none;
}

/* Mobile: Bild oben, Text unten */
@media (max-width: 768px) {
  .blog-preview {
    flex-direction: column;
  }

  .blog-thumbnail {
    width: 100%;
    min-width: unset;
    height: auto;
    aspect-ratio: 4/3;
  }
}

/* -------------------- */
/* Raumklima Seite       */
/* -------------------- */
.klima-page .klima-section {
  background-color: #4c0640;
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  color: #fff;
}

body.klima-page {
  font-family: "Poppins", sans-serif;
  background-color: #4c0640;
  color: #ecf0f1;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.klima-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.klima-page main .dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
  padding: 20px;
  justify-items: center; /* Karten mittig ausrichten */
}

body.klima-page .card {
  background: rgba(240, 240, 240, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  text-align: center;
  width: 100%;
  max-width: 350px;
  margin: 0 auto; /* Karten mittig */
}

body.klima-page .card-value {
  font-size: 3rem;
  font-weight: 600;
  margin: 15px 0;
}

body.klima-page h1 {
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 30px;
}

body.klima-page .network-info {
  margin-top: 40px;
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
}

/* -------------------- */
/* Wetter Forecast Cards */
/* -------------------- */
.klima-page .weather-section {
  background-color: #4c0640;
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  color: #fff;
}

.klima-page .weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  justify-items: center; /* Karten mittig ausrichten */
}

.klima-page .weather-card {
  background: rgba(240, 240, 240, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  text-align: center;
  width: 100%;
  max-width: 350px;
  margin: 0 auto; /* Karten mittig */
}

.klima-page .weather-card h3 {
  margin: 0 0 10px;
}

.klima-page .weather-temp {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 10px 0;
}

.klima-page .weather-desc {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.klima-page .weather-extra span {
  display: block;
  font-size: 0.95rem;
  margin: 2px 0;
}

/* -------------------- */
/* Wetter-Widget Container */
/* -------------------- */
.weather-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
  background-color: #221122;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

.wetter-widget {
  width: 480px;
  height: auto;
  aspect-ratio: 480 / 365;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border: none;
  max-width: 100%;
}

/* -------------------- */
/* Impressum & Datenschutz */
/* -------------------- */
.impressum,
.datenschutz {
  max-width: 980px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(240, 240, 240, 0.1);
  border-radius: 12px;
  text-align: left;
  word-wrap: break-word;
}

.impressum h1,
.datenschutz h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
  word-break: break-word;
}

.impressum p,
.datenschutz p,
.datenschutz ul {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.datenschutz ul {
  list-style: disc;
  padding-left: 20px;
}

.datenschutz ul li {
  margin-bottom: 6px;
}

.button1 {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1b;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 50%;
  max-width: 300px;
  text-align: center;
  transition:
    background 0.3s ease-in-out,
    transform 0.2s;
  cursor: pointer;
}

.button1:hover {
  background-color: #4c0640;
  color: white;
}

.btn-center {
  text-align: center;
  margin-top: 20px;
}

/* -------------------- */
/* Footer Styling       */
/* -------------------- */
.footer {
  background-color: #221122;
  text-align: center;
  padding: 15px;
  margin-top: auto;
  border-radius: 20px 20px 0 0;
}

/* -------------------- */
/* Responsive Layouts   */
/* -------------------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header {
    flex-wrap: wrap;
  }

  .header-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #4c0640;
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1500;
  }

  .header-right.active {
    display: flex;
  }

  .header-right a {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #555;
  }

  .header-right a:last-child {
    border-bottom: none;
  }

.category_headline h1 {
  font-size: 48px;
  }
  
  .hero-text h1 {
  font-size: 48px;
  }

  .impressum,
  .datenschutz {
    max-width: 90%;
    padding: 15px;
    margin: 30px auto;
  }
  .impressum h1,
  .datenschutz h2 {
    font-size: 28px;
  }
  .impressum p,
  .datenschutz p,
  .datenschutz ul {
    font-size: 16px;
  }

  .search-container {
    padding: 20px;
  }
  .search-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .search-container select,
  .search-container input,
  .search-container button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 14px;
  }

  .wetter-widget {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 480 / 365;
  }

  .klima-page main .dashboard,
  .klima-page .weather-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .klima-page .card,
  .klima-page .weather-card {
    width: 90%;
  }

  .weather-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .footer {
    font-size: 14px;
  }
}

/* ---------- IPhone SE und kleine Smartphones (bis 375px) ---------- */
@media (max-width: 375px) {
  body {
    font-size: 14px;
  }

  .header {
    flex-direction: row;
    padding: 10px 15px;
  }

  .header-right {
    width: 100%;
    flex-direction: column;
    display: none;
  }
  .header-right.active {
    display: flex;
  }

  .header-right a {
    padding: 10px;
    font-size: 16px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    width: 45px;
    height: 35px;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

.category_headline h1 {
  font-size: 48px;
  }
  
   .hero-text h1 {
  font-size: 48px;
  }

  .search-container {
    padding: 15px;
  }
  .search-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .wetter-widget {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 480 / 365;
  }

  .klima-page main .dashboard,
  .klima-page .weather-grid {
    display: block !important; /* ✅ Grid komplett deaktivieren */
    grid-template-columns: none !important;
  }

  .klima-page .card,
  .klima-page .weather-card {
    width: 90% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .klima-page .klima-section,
  .klima-page .weather-section {
    padding: 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .klima-page h1 {
    font-size: 1.4rem;
  }

  .klima-page .card-value {
    font-size: 2.2rem;
  }

  .weather-container {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .impressum,
  .datenschutz {
    max-width: 95%;
    padding: 12px;
    margin: 20px auto;
  }

  .impressum h1,
  .datenschutz h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .impressum p,
  .datenschutz p,
  .datenschutz ul {
    font-size: 14px;
  }

  .footer {
    font-size: 14px;
  }
}

/* ---------- Smartphones normal (bis 480px) ---------- */
@media (max-width: 480px) {
  .klima-page main .dashboard,
  .klima-page .weather-grid {
    display: block !important; /* ✅ Grid komplett deaktivieren */
    grid-template-columns: none !important;
  }

  .klima-page .card,
  .klima-page .weather-card {
    width: 90% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .klima-page h1 {
    font-size: 1.6rem;
  }

  .hero {
    height: 300px;
  }
  
   .hero-text h1 {
  font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hero {
    width: 100%;
    height: 850px; /* Default Höhe */
    background-image: url("../images/fehmarn.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-text h1 {
    font-size: 72px;
  }
  .hero-text h2 {
    font-size: 36px;
  }

  .klima-page main .dashboard,
  .klima-page .weather-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
  }

  .klima-page .card,
  .klima-page .weather-card {
    width: 95%;
  }
}

/* ---------- FORCED single-column for very small screens (<= 400px) ---------- */
@media (max-width: 400px) {
  /* Grid-Container: komplett neu definieren */
  .klima-page main .dashboard,
  .klima-page .weather-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* nur 1 Spalte */
    grid-auto-flow: row !important; /* zwinge Zeilenfluss */
    grid-auto-columns: 1fr !important;
    justify-items: center !important;
    align-items: start !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }

  /* Jedes direkte Kind des Grids soll die volle Spaltenbreite belegen */
  .klima-page main .dashboard > *,
  .klima-page .weather-grid > * {
    grid-column: 1 / -1 !important; /* spanning row */
    width: 100% !important;
    max-width: 360px !important; /* begrenze Breite */
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Karten-Feintuning: weniger Padding, damit sie nicht überlaufen */
  .klima-page .card,
  .klima-page .weather-card {
    padding: 18px !important;
  }
}
