/* =========================================================
   Wetter Theme – Next Refresh (kompatibel zu deinem Markup)
   - behält deine Klassen/Struktur
   - modernisiert Typo, Abstände, Cards, Shadows
   - Light/Dark via :root + .dark
========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --canvas-color: #f6f7fb;
  --background-color: #ffffff;

  --primary-color: #8b5cf6;       /* modern violet */
  --secondary-color: #7c3aed;

  --neutral-color: #9ca3af;
  --text-color: #111827;
  --muted-text: #6b7280;

  --alt-bg-color: #f3f4f6;
  --alt-bg-color-h: #eef0f3;
  --alt-bg-color-a: #e5e7eb;
  --alt-color: #374151;

  --divider-bg-color: rgba(17, 24, 39, 0.08);

  --url-color: #1f2937;
  --url-color-a: #111827;
  --url-color-h: #111827;

  /* icon filter tuning */
  --icon-bg-color: 15%;
  --icon-bg-color-h: 0%;
  --icon-bg-color-a: 0%;

  --button-text-color: #ffffff;
  --button-neu-bg-color: #6b7280;
  --button-neu-bg-color-h: #4b5563;
  --button-del-bg-color: #ef4444;
  --button-del-bg-color-h: #dc2626;
  --button-dis-bg-color: #cbd5e1;

  --input-color: #111827;
  --input-bg-color: #ffffff;
  --input-bg-color-alt: #ffffff;
  --input-border-color: rgba(17, 24, 39, 0.12);
  --input-border-color-alt: rgba(17, 24, 39, 0.10);
  --input-border-color-h: rgba(17, 24, 39, 0.22);

  --notifications-color: #ffffff;
  --notifications-success: #22c55e;
  --notifications-error: #ef4444;
  --notifications-info: #3b82f6;

  --selection-background: #111827;
  --selection-color: #ffffff;

  --button-clear-invert: invert(25%);
  --button-clear-invert-h: invert(0%);
  --button-remove-invert: invert(25%);
  --button-remove-invert-h: invert(0%);

  --wn-color: #ffffff;
  --wn-img: invert(100%);
  --wf-img: invert(18%);
  --wf-list-h: rgba(17, 24, 39, 0.06);
  --min-temp: #6b7280;

  --graph-min-color: #2563eb;
  --graph-max-color: #ef4444;

  --button-round: invert(100%);
  --button-round-h: invert(0%);

  /* modern UI tokens */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-2: 0 18px 55px rgba(17, 24, 39, 0.12);

  --ring: 0 0 0 4px rgba(139, 92, 246, 0.18);

  --cover-top: rgba(139, 92, 246, 0.15);
  --cover-bottom: rgba(17, 24, 39, 0.65);

  /* spacing scale */
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 14px;
  --sp-4: 18px;
  --sp-5: 24px;
  --sp-6: 32px;
}

/* ---------- Dark Theme (kompatibel mit deinem .dark) ---------- */
.dark {
  --canvas-color: #0b1020;
  --background-color: #0e162b;

  --primary-color: #a78bfa;
  --secondary-color: #c4b5fd;

  --neutral-color: #9ca3af;
  --text-color: #e5e7eb;
  --muted-text: #9ca3af;

  --alt-bg-color: rgba(255, 255, 255, 0.06);
  --alt-bg-color-h: rgba(255, 255, 255, 0.09);
  --alt-bg-color-a: rgba(255, 255, 255, 0.12);
  --alt-color: #e5e7eb;

  --divider-bg-color: rgba(255, 255, 255, 0.10);

  --url-color: #e5e7eb;
  --url-color-a: #ffffff;
  --url-color-h: #ffffff;

  --icon-bg-color: 85%;
  --icon-bg-color-h: 100%;
  --icon-bg-color-a: 100%;

  --button-neu-bg-color: rgba(255,255,255,0.14);
  --button-neu-bg-color-h: rgba(255,255,255,0.20);
  --button-dis-bg-color: rgba(255,255,255,0.18);

  --input-color: #e5e7eb;
  --input-bg-color: rgba(255, 255, 255, 0.06);
  --input-bg-color-alt: rgba(255, 255, 255, 0.06);
  --input-border-color: rgba(255, 255, 255, 0.14);
  --input-border-color-alt: rgba(255, 255, 255, 0.12);
  --input-border-color-h: rgba(255, 255, 255, 0.22);

  --button-clear-invert: invert(70%);
  --button-clear-invert-h: invert(100%);
  --button-remove-invert: invert(70%);
  --button-remove-invert-h: invert(100%);

  --wn-color: #ffffff;
  --wn-img: invert(100%);
  --wf-img: invert(80%);
  --wf-list-h: rgba(255, 255, 255, 0.06);
  --min-temp: rgba(229,231,235,0.70);

  --shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 22px 70px rgba(0, 0, 0, 0.60);

  --cover-top: rgba(167, 139, 250, 0.16);
  --cover-bottom: rgba(2, 6, 23, 0.75);
}

/* ---------- Base ---------- */
html {
  background: var(--canvas-color);
  height: 100%;
}

body {
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background: var(--background-color);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;

  /* modern default typography */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

h1, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.4px;
}

h1 { font-size: 44px; margin: 0; padding: 10px 15px; }
h3 { font-size: 22px; margin: 0; }
h4 { font-size: 18px; margin: 10px 0 0 0; }

a {
  color: var(--url-color);
  text-decoration: none;
}
a:hover { color: var(--url-color-h); }

code, pre { word-wrap: break-word; }

table { border-collapse: collapse; }
table, td, th { padding: 10px; }

label { display: inline-block; margin-bottom: 10px; }

img { border: 0; }

::selection {
  background: var(--selection-background);
  color: var(--selection-color);
}

/* ---------- Form Controls ---------- */
input, button, textarea, select { font-family: inherit; font-size: inherit; }

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
  background: var(--input-bg-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border-color);
  outline: 0;
  color: var(--input-color);
  display: block;
  margin-bottom: 10px;
  max-width: 460px;
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="file"]:hover,
textarea:hover,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
textarea:focus {
  border-color: var(--input-border-color-h);
  box-shadow: var(--ring);
}

input[type="checkbox"] { margin: 0 10px 10px 0; }
input[type="text"], input[type="password"] { -webkit-appearance: none; }

select {
  background: var(--input-bg-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border-color);
  outline: 0;
  color: var(--input-color);
  display: block;
  margin-bottom: 10px;
  max-width: 480px;
  width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
select:hover { border-color: var(--input-border-color-h); }

/* ---------- Buttons ---------- */
button, .button {
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-color);
  color: var(--button-text-color);
  cursor: pointer;
  border: none;
  outline: 0;
  display: inline-block;
  line-height: 40px;
  height: 40px;
  font-weight: 650;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

button:hover, .button:hover { background-color: var(--secondary-color); transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); box-shadow: var(--shadow-2); }

button:disabled, .button-disabled, .button-disabled:hover {
  background-color: var(--button-dis-bg-color);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  opacity: 0.9;
}

.button-delete { background-color: var(--button-del-bg-color); }
.button-delete:hover { background-color: var(--button-del-bg-color-h); }

.button-margin-left { margin-left: 10px; }
.button-margin-right { margin-right: 10px; }

.button-neutral { background-color: var(--button-neu-bg-color); }
.button-neutral:hover { background-color: var(--button-neu-bg-color-h); }

/* ---------- Layout Grid (dein altes Grid bleibt) ---------- */
.row {
  width: 100%;
  margin: 0 auto;
  max-width: 1020px;
  box-sizing: border-box;
  padding: 0 14px;
  overflow: auto;
}

.one, .row .one { width: 8.33333%; }
.two, .row .two { width: 16.66667%; }
.three, .row .three { width: 25%; }
.four, .row .four { width: 33.33333%; }
.five, .row .five { width: 41.66667%; }
.six, .row .six { width: 50%; }
.seven, .row .seven { width: 58.33333%; }
.eight, .row .eight { width: 66.66667%; }
.nine, .row .nine { width: 75%; }
.ten, .row .ten { width: 83.33333%; }
.eleven, .row .eleven { width: 91.66667%; }
.twelve, .row .twelve { width: 100%; }

.column, .columns {
  float: left;
  min-height: 1px;
  position: relative;
}
[class*="column"] + [class*="column"]:last-child { float: right; }
[class*="column"] + [class*="column"].end { float: left; }

.float-left { float: left; }
.float-right { float: right; }

.center-text { text-align: center; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: color-mix(in srgb, var(--alt-bg-color) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider-bg-color);
}

.header-content {
  margin: 0 auto;
  max-width: 1020px;
  width: 100%;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  gap: 10px;
}

.header-col-content { flex: 1; }
.header-col-menu { margin-left: 10px; position: relative; }

.header-menu-el {
  float: right;
  margin-left: 14px;
  position: relative;
}
.header-menu-el:last-child { margin-left: 0; }

.logo {
  height: 34px;
  width: auto;
  margin: 10px 0;
  opacity: 0.92;
  overflow: auto;
}
.logo:hover { opacity: 1; }
.logo img {
  border: 0;
  height: 100%;
  max-width: 120px;
  max-height: 34px;
  float: right;
  margin-right: 10px;
  object-fit: contain;
}

/* icons */
.header-icon,
.menu-icon {
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center center;
  width: 22px;
  height: 52px;
  line-height: 52px;
  margin: 0;
  cursor: pointer;
  display: block;
}

.icon-menu { background-image: url(../images/icons/menu.svg); }
.icon-language { background-image: url(../images/icons/language.svg); }
.icon-theme { background-image: url(../images/icons/theme.svg); }

.icon { filter: invert(var(--icon-bg-color)); transition: filter 120ms ease, opacity 120ms ease; opacity: 0.95; }
.icon:hover { filter: invert(var(--icon-bg-color-h)); opacity: 1; }
.icon-active { filter: invert(var(--icon-bg-color-a)); }
.icon-active:hover { filter: invert(var(--icon-bg-color-a)); }

.header-button {
  margin: 10px 0;
  height: 34px;
  line-height: 34px;
}

/* ---------- Menu (Dropdown) ---------- */
.menu {
  display: none;
  box-sizing: border-box;
  position: absolute;
  right: 0;
  width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  border: 1px solid var(--divider-bg-color);
  background: var(--background-color);
}

.menu-content {
  max-width: 220px;
  width: 100%;
  float: right;
  font-weight: 650;
}

.menu a, .fav-list-item, .search-list-item {
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
  background: var(--alt-bg-color);
  line-height: 52px;
  word-wrap: break-word;
  display: inline-block;
}
.menu a:hover, .fav-list-item:hover, .search-list-item:hover { background: var(--alt-bg-color-a); }

.menu-collapsed { display: block; }

.menu-title {
  background: var(--alt-bg-color-h);
  padding: 12px;
  cursor: default;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--divider-bg-color);
}

.fav-list-title, .search-list-title {
  background: var(--alt-bg-color-h);
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid var(--divider-bg-color);
  cursor: default;
}

a.menu-active { color: var(--url-color-a); }

/* ---------- Footer ---------- */
.footer {
  background: var(--alt-bg-color);
  padding: 14px 0;
  color: var(--muted-text);
  border-top: 1px solid var(--divider-bg-color);
}
.footer-content {
  max-width: 1020px;
  width: 100%;
  padding: 0 14px;
  box-sizing: border-box;
  margin: 0 auto;
}
.footer-menu { width: 100%; display: inline-block; }
.footer-element {
  line-height: 24px;
  float: left;
  margin-right: 15px;
}

/* ---------- Content ---------- */
.content { overflow: auto; background: var(--background-color); box-sizing: border-box; }

.page-menu { min-height: 52px; line-height: 52px; }
.page-menu a { margin: 0 10px; }
.page-menu-left a { margin: 0 20px 0 0; float: left; }

.page-menu a.menu-active, .footer a.menu-active { color: var(--primary-color); }
.page-menu a.menu-active:hover, .footer a.menu-active:hover { color: var(--secondary-color); }

.page-header {
  background: var(--alt-bg-color);
  color: var(--alt-color);
  padding: 22px 0;
  border-bottom: 1px solid var(--divider-bg-color);
}

.page-title { font-size: 20px; font-weight: 700; }
.page-description { font-size: 15px; font-weight: 500; padding-top: 8px; color: var(--muted-text); }

.page-content { background: var(--background-color); padding: 22px 0; }

/* ---------- Notifications ---------- */
.notification-box {
  padding: 12px 12px;
  position: relative;
  color: var(--notifications-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.notification-box-modal { margin: 10px 10px 0 10px; }
.notification-box-error { background: var(--notifications-error); }
.notification-box-success { background: var(--notifications-success); }
.notification-box-info { background: var(--notifications-info); }

.notification-box > p { padding-right: 30px; margin: 0; font-weight: 650; }

.notification-close {
  position: absolute;
  top: 0;
  background: url('../images/icons/clear.svg') no-repeat center center;
  background-size: 14px;
  width: 14px;
  height: 24px;
  cursor: pointer;
  filter: invert(100);
  opacity: 0.78;
  padding: 10px 12px;
  right: 0;
}
.notification-close:hover { filter: invert(100%); opacity: 1; }

/* ---------- Lists ---------- */
.list-container { overflow: auto; }

.list-row {
  padding: 12px;
  margin-bottom: 10px;
  background: var(--alt-bg-color);
  border-radius: var(--radius);
  overflow: auto;
  border: 1px solid var(--divider-bg-color);
  box-shadow: var(--shadow);
}

.list-col-image {
  float: left;
  width: 38px;
  display: table-cell;
}
.list-col-image img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}
.list-col-content {
  float: none;
  word-break: break-word;
  display: table-cell;
  padding: 0 12px;
}
.list-col-content-full { padding: 0 12px 0 0; }
.list-col-button { float: right; display: table-cell; }

.button-create { margin-bottom: 10px; }

.content-admin .section { line-height: 26px; }
.content-admin .section a { color: var(--primary-color); }
.content-admin .section a:hover { color: var(--secondary-color); }

.content-home { padding: 10px 0; }
.content-home form { display: none; }

.divider { height: 1px; background: var(--divider-bg-color); }
.content-admin .divider { margin: 10px 0; }

/* ---------- Search ---------- */
.search-container { position: relative; }

.search-content {
  box-sizing: border-box;
  position: relative;
  margin: 8px 0;
  float: left;
  max-width: 460px;
  width: 100%;
  padding: 0;
}

input.search-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  max-width: none;
  padding: 10px 90px 10px 12px;
  margin-bottom: 0;
  height: 40px;
  background: var(--input-bg-color-alt);
  border-color: var(--input-border-color-alt);
  border-radius: var(--radius-sm);
}

.search-button {
  background-image: url('../images/icons/search.svg');
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--primary-color);
  background-size: 20px;
  padding: 8px 6px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  height: 24px;
  width: 34px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}
.search-button:hover { background-color: var(--secondary-color); }

.clear-button {
  background: url('../images/icons/clear.svg') no-repeat center center;
  background-size: 14px;
  padding: 8px 6px;
  width: 34px;
  height: 24px;
  cursor: pointer;
  position: absolute;
  right: 44px;
  top: 0;
  filter: var(--button-clear-invert);
}
.clear-button:hover { filter: var(--button-clear-invert-h); }

/* favorites / format buttons */
.button-round-container {
  margin-left: 10px;
  float: right;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  border: 2px solid var(--wn-color);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.button-round-container:hover, .button-round-active { background: var(--wn-color); }
.button-round-container:hover > .favorite,
.button-round-container:hover > .format-c,
.button-round-container:hover > .format-f,
.button-round-active .favorite { filter: var(--button-round-h); }

.button-round { width: 28px; height: 28px; filter: var(--button-round); }

.favorite { background: url('../images/icons/favorite.svg') no-repeat center center; background-size: 18px; }
.format-c { background: url('../images/icons/format_c.svg') no-repeat center center; background-size: 18px; }
.format-f { background: url('../images/icons/format_f.svg') no-repeat center center; background-size: 18px; }

/* ---------- Weather “Now” ---------- */
.weather-now {
  position: relative;
  padding: 22px;
  background-color: var(--primary-color);
  color: var(--wn-color);
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

/* subtle gradient overlay for better readability on background images */
.weather-now::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--cover-top), var(--cover-bottom));
  pointer-events: none;
}
.weather-now > * { position: relative; z-index: 1; }

.wn-title, .wf-title, .ls-title, .we-title, .wi-title, .error-title { font-size: 20px; }

.error-header {
  background: var(--primary-color);
  padding: 20px;
  color: var(--wn-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

.error-description { padding: 10px 0; font-size: 14px; color: var(--muted-text); }

.wn-location { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; }
.wn-location a { color: var(--wn-color); }

.wn-box { margin-top: 16px; width: 33.33333%; float: left; }

.wn-temperature { font-size: 56px; font-weight: 900; letter-spacing: -1px; }
.wn-conditions { font-size: 15px; padding-top: 10px; line-height: 28px; }

.weather-now img { filter: var(--wn-img); }
.weather-forecast img { filter: var(--wf-img); }

.wn-icon { width: 46px; height: 46px; }

.wn-box-condition-row, .wf-condition-row { width: 100%; overflow: auto; padding-top: 2px; }
.wf-condition-row { padding: 4px 0; }

.wn-conditions img, .wf-conditions img {
  float: left;
  width: 18px;
  height: 18px;
  margin: 5px 10px 0 0;
  vertical-align: middle;
  display: table-cell;
}
.wf-conditions img { margin: 0 10px 0 0; }

.wn-conditions-text, .wf-conditions-text {
  vertical-align: middle;
  display: table-cell;
}

/* ---------- Forecast / Info Sections (Cards) ---------- */
.weather-forecast,
.latest-searches,
.weather-evolution,
.weather-info {
  background: var(--alt-bg-color);
  padding: 14px 18px;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider-bg-color);
  box-shadow: var(--shadow);
}

.wf-title { padding-top: 10px; }

a.wf-list { color: var(--text-color); }
a.wf-list:hover { color: var(--url-color); background-color: var(--wf-list-h); }

.wf-list {
  background: var(--background-color);
  border-radius: var(--radius);
  width: 100%;
  padding: 12px;
  margin: 14px 0 0 0;
  box-sizing: border-box;
  float: left;
  font-size: 14px;
  border: 1px solid var(--divider-bg-color);
  box-shadow: var(--shadow);
  transition: transform 120ms ease, background 120ms ease;
}
.wf-list:first-child { margin-top: 10px; }
.wf-list:hover { transform: translateY(-1px); }

.wf-list-col { width: 33.33333%; float: left; }

.wf-day { font-size: 18px; padding: 0 0 5px 0; font-weight: 750; }
.wf-date { padding: 0 0 2px 0; color: var(--muted-text); }

.wf-icon, .wf-temp { width: 50%; display: flex; float: left; }
.wf-temp { min-height: 50px; flex-direction: row-reverse; }

.wf-icon img { width: 44px; height: 44px; margin: 3px auto; }
.wf-temp-min, .wf-temp-max { align-self: flex-end; display: inline-block; }
.wf-temp-min { font-size: 20px; margin: 0 10px 6px 0; color: var(--min-temp); }
.wf-temp-max { font-size: 34px; font-weight: 850; letter-spacing: -0.6px; }

.wi-title { margin-bottom: 10px; }
.wi-content {
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 12px;
  grid-row-gap: 12px;
}

.wi-item {
  background: var(--background-color);
  border-radius: var(--radius);
  font-size: 14px;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid var(--divider-bg-color);
  box-shadow: var(--shadow);
}

.wi-icon { float: left; }
.wi-icon img {
  width: 44px;
  height: 44px;
  margin: 3px auto;
  filter: var(--wf-img);
}
.wi-description { margin-left: 54px; }
.wi-name { padding: 0 0 5px 0; color: var(--muted-text); font-weight: 650; }
.wi-value { font-size: 18px; padding: 0 0 2px 0; font-weight: 800; letter-spacing: -0.4px; }

.ls-title { margin-bottom: 10px; }
.latest-searches .button {
  margin-bottom: 10px;
  text-transform: capitalize;
  word-break: break-word;
  overflow: hidden;
  font-size: 14px;
}

/* ---------- Charts ---------- */
.chart-container {
  margin-top: 10px;
  background: var(--background-color);
  border-radius: var(--radius);
  overflow: auto;
  font-size: 14px;
  border: 1px solid var(--divider-bg-color);
  box-shadow: var(--shadow);
}

.chart-title {
  font-size: 14px;
  text-align: center;
  padding-top: 15px;
  color: var(--muted-text);
  font-weight: 650;
}

.chart-legends {
  width: 100%;
  padding: 0 10px 5px 50px;
  box-sizing: border-box;
  overflow: auto;
}
.chart-legend { float: left; margin: 0 20px 10px 0; }
.legend-color { width: 14px; height: 14px; border-radius: 4px; float: left; }
.legend-neutral { background: var(--primary-color); }
.legend-min { background: var(--graph-min-color); }
.legend-max { background: var(--graph-max-color); }
.legend-name { vertical-align: middle; display: table-cell; padding-left: 6px; line-height: 14px; color: var(--muted-text); }

.timezone { margin-top: 5px; color: var(--muted-text); }

/* Chartist */
.ct-series-a .ct-point, .ct-series-a .ct-line, .ct-series-a .ct-bar, .ct-series-a .ct-slice-donut { stroke: var(--graph-max-color); }
.hourly .ct-series-a .ct-point, .hourly .ct-series-a .ct-line, .hourly .ct-series-a .ct-bar, .hourly .ct-series-a .ct-slice-donut { stroke: var(--primary-color); }
.ct-series-b .ct-point, .ct-series-b .ct-line, .ct-series-b .ct-bar, .ct-series-b .ct-slice-donut { stroke: var(--graph-min-color); }
.ct-grid { stroke: var(--divider-bg-color); stroke-dasharray: none; }
.ct-label { color: var(--muted-text); }
.ct-chart-line .ct-label, .ct-chart-bar .ct-label { font-size: 13px; }

/* ---------- Fav/Search Lists ---------- */
.fav-list, .search-list {
  max-width: 460px;
  background-color: var(--alt-bg-color-h);
  width: 100%;
  box-sizing: border-box;
  font-weight: 650;
  margin-top: 8px;
  overflow: hidden;
  z-index: 10;
  display: none;
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid var(--divider-bg-color);
  box-shadow: var(--shadow-2);
}

.fav-list-container, .search-list-container { max-height: 520px; overflow: auto; }

.fav-list-title, .fav-list-item, .search-list-title, .search-list-item { text-align: left; }

.fav-list-title, .search-list-title { padding: 12px 36px 12px 12px; }

.fav-list-item, .search-list-item {
  line-height: 54px;
  width: 100%;
  padding: 0 0 0 12px;
  box-sizing: border-box;
}

.fav-list-name, .search-list-name { margin-right: 34px; }

.fav-list-icon, .search-list-icon {
  background: url('../images/icons/clear.svg') no-repeat center center;
  background-size: 14px;
  padding: 0 12px;
  cursor: pointer;
  height: 54px;
  width: 14px;
  float: right;
  filter: var(--button-remove-invert);
  opacity: 0.9;
}
.fav-list-icon:hover, .search-list-icon:hover { filter: var(--button-remove-invert-h); opacity: 1; }

.fav-list-close, .search-list-close { height: 40px; }

/* ---------- RTL (dein Support bleibt) ---------- */
.rtl body { direction: rtl; }
.rtl .logo img { margin: 0 0 0 10px; }
.rtl .search-content { float: right; }
.rtl input.search-input { padding: 10px 12px 10px 90px; }
.rtl input[type="checkbox"] { margin: 0 0 10px 10px; }
.rtl .clear-button { right: unset; left: 44px; }
.rtl .search-button { right: unset; left: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.rtl .header-col-menu { margin: 0 10px 0 0; }
.rtl .fav-list-title, .rtl .search-list-title { padding: 12px 12px 12px 36px; }
.rtl .fav-list-icon, .rtl .search-list-icon { float: left; }
.rtl .fav-list-title, .rtl .fav-list-item, .rtl .search-list-title, .rtl .search-list-item { text-align: right; }
.rtl .fav-list-item, .rtl .search-list-item { padding: 0 12px 0 0; }
.rtl .fav-list-name, .rtl .search-list-name { margin: 0 0 0 34px; }
.rtl .menu { left: 0; right: unset; }
.rtl .menu-icon { margin: 0 0 0 10px; float: right; }
.rtl .page-menu-left a { float: right; margin: 0 0 0 20px; }
.rtl .notification-box > p { padding: 0 0 0 24px; }
.rtl .notification-close { right: unset; left: 0; }
.rtl .list-col-button { float: left; }
.rtl .list-col-image { float: right; }
.rtl .float-left { float: right; }
.rtl .float-right { float: left; }
.rtl .button-margin-right { margin: 0 0 0 10px; }
.rtl .button-margin-left { margin: 0 10px 0 0; }
.rtl .button-round-container { float: left; margin: 0 10px 0 0; }
.rtl .wn-box { float: right; }
.rtl .wn-conditions img { margin: 5px 0 0 10px; float: right; }
.rtl .wf-conditions img { margin: 0 0 0 10px; float: right; }
.rtl .wf-list-col { float: right; }
.rtl .wf-icon, .rtl .wf-temp { float: right; }
.rtl .wf-temp-min { margin: 0 0 6px 10px; }
.rtl .wi-icon { float: right; }
.rtl .wi-description { margin-right: 54px; margin-left: 0; }
.rtl .chart-legend { float: right; }
.rtl .legend-name { padding: 0 6px 0 0; }
.rtl .legend-color { float: right; }
.rtl .ct-label.ct-horizontal.ct-end { align-items: flex-end; justify-content: flex-end; }
.rtl .footer-element { float: right; margin: 0 0 0 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  input[type="text"], input[type="password"], input[type="file"], textarea, select {
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  .row .four, .row .six { width: 100%; }

  .content-home, .content-home .row { padding: 0; }

  .weather-forecast, .latest-searches, .weather-evolution, .weather-info { padding: 12px; }
  .weather-now { padding: 18px 12px; }
  .wn-box { width: 100%; }

  .wf-date { width: 50%; }
  .wf-conditions { width: 50%; }

  .wf-temp-icon { margin-top: 10px; width: 100%; }
  .wf-icon img { margin: 3px 0; }
  .wf-temp { flex-direction: initial; }
  .wf-temp-min { margin-right: 0; }
  .wf-temp-max { margin-right: 10px; }

  .wi-content { grid-template-columns: auto; grid-row-gap: 12px; }

  .fav-list, .search-list {
    position: fixed;
    left: 10px;
    right: 10px;
    margin: 0;
    top: 64px;
    max-width: none;
  }
  .fav-list-icon, .search-list-icon { padding: 0 8px; margin-right: 10px; }
  .rtl .fav-list-icon, .rtl .search-list-icon { margin: 0 0 0 10px; }
}

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .wn-location { font-size: 30px; }
  .wn-temperature { font-size: 52px; }

  .fav-list-container, .search-list-container { max-height: 420px; }

  .menu {
    top: 62px;
    padding: 0;
    left: 10px;
    right: 10px;
    width: auto;
    position: fixed;
  }
}

/* ---------- Loading Bar ---------- */
#loading-bar {
  position: fixed;
  z-index: 2147483647;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 500ms ease-out, opacity 400ms linear;
}