/* freenet.de portal — visual clone */

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

:root {
  --navy:        #0d2a4d;
  --navy-2:      #11305a;
  --green:       #7fc242;
  --green-dark:  #6cac32;
  --bg:          #e9edf2;
  --card:        #ffffff;
  --text:        #1c1c1c;
  --muted:       #6a7280;
  --line:        #d8dde3;

  --cat-news:        #16b3e0;
  --cat-sport:       #e63946;
  --cat-finanzen:    #2eb872;
  --cat-auto:        #f4c531;
  --cat-unterhaltung:#ea4c89;
  --cat-lifestyle:   #4dd2c2;
  --cat-digital:     #7e57c2;
  --cat-spielen:     #f08a3e;
  --cat-mail:        #d4a942;
  --cat-domain:      #d4c842;
}

html, body {
  font-family: "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================ TOP BAR ============================ */
.topbar {
  background: var(--navy);
  color: #ffffff;
  border-bottom: 0;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 28px;
}
.brand-logo { height: 30px; }
.topnav {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.topnav a {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: #ffffff;
  padding: 6px 2px;
  position: relative;
}
.topnav a + a::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255,255,255,0.18);
}
.topnav a:hover { color: var(--green); }

.cta-offers {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
  padding: 10px 18px;
  border-radius: 3px;
  letter-spacing: 0.2px;
  transition: background .15s;
}
.cta-offers:hover { background: var(--green-dark); }
.cta-grid {
  display: inline-block;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#fff,#fff) 0    0    / 6px 6px no-repeat,
    linear-gradient(#fff,#fff) 10px 0    / 6px 6px no-repeat,
    linear-gradient(#fff,#fff) 0    10px / 6px 6px no-repeat,
    linear-gradient(#fff,#fff) 10px 10px / 6px 6px no-repeat;
}

/* ============================ SUB-NAV ============================ */
.subnav-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.subnav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  height: 48px;
}
.categories {
  display: flex;
  gap: 22px;
  align-items: stretch;
  height: 100%;
}
.cat {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #1c1c1c;
  border-bottom: 3px solid transparent;
  padding: 0 1px;
}
.cat-news       { border-bottom-color: var(--cat-news); }
.cat-sport      { border-bottom-color: var(--cat-sport); }
.cat-finanzen   { border-bottom-color: var(--cat-finanzen); }
.cat-auto       { border-bottom-color: var(--cat-auto); }
.cat-unterhaltung{border-bottom-color: var(--cat-unterhaltung); }
.cat-lifestyle  { border-bottom-color: var(--cat-lifestyle); }
.cat-digital    { border-bottom-color: var(--cat-digital); }
.cat-spielen    { border-bottom-color: var(--cat-spielen); }
.cat-mail       { border-bottom-color: var(--cat-mail); }
.cat-domain     { border-bottom-color: var(--cat-domain); }
.cat:hover      { color: #555; }

.cat-heart {
  display: inline-flex;
  align-items: center;
  color: #ea4c89;
  font-size: 18px;
}

.weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1c1c1c;
  margin-left: auto;
}
.wx-icon { font-size: 16px; }

.search {
  position: relative;
}
.search input {
  width: 240px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 36px 0 12px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.search input:focus { border-color: var(--navy); }
.search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #4285f4;
  display: flex;
  padding: 4px;
}

.help-btn {
  width: 22px;
  height: 22px;
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.help-btn:hover { background: var(--green-dark); }

/* ============================ MAIN GRID ============================ */
.page {
  max-width: 1280px;
  margin: 18px auto;
  padding: 0 28px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 320px 320px;
  gap: 18px;
}

/* HERO CARD */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #1c1c1c;
}
.hero-tags span {
  padding: 8px 12px;
  letter-spacing: 1px;
  color: #ddd;
}
.hero-tags .hero-tag-active {
  background: var(--navy);
  color: #fff;
}
.hero-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #aebcc6;
}
.hero-img svg { width: 100%; height: 100%; display: block; }
.hero-photo-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.hero-body { padding: 16px 18px 20px; }
.hero-body h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1c1c1c;
}
.hero-body p {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.5;
}

/* NEWS LIST */
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-list ul { display: flex; flex-direction: column; gap: 14px; }
.news-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
.news-list .bullet {
  width: 8px;
  height: 8px;
  background: var(--green);
  margin-top: 6px;
  flex-shrink: 0;
}
.news-list a { color: #1c1c1c; font-weight: 500; }
.news-list a:hover { color: var(--navy); text-decoration: underline; }

.promo-card { position: relative; }
.promo-img {
  position: relative;
  aspect-ratio: 5 / 3;
  background: #c9a88a;
  overflow: hidden;
}
.promo-img svg { width: 100%; height: 100%; }
.promo-cat {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cat-finanzen);
  letter-spacing: 1px;
}
.promo-card p {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1c;
  margin-top: 4px;
  line-height: 1.35;
}

/* ============================ LOGIN COL ============================ */
.login-col { display: flex; flex-direction: column; gap: 14px; }

.login-box {
  background: var(--navy);
  color: #ffffff;
  padding: 20px 20px 18px;
  border-radius: 0;
}
.login-box h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}
.login-input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 20px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  color: #1c1c1c;
  margin-bottom: 10px;
  outline: none;
  transition: box-shadow .15s;
}
.login-input:focus { box-shadow: 0 0 0 2px var(--green); }

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.forgot {
  color: #ffffff;
  font-size: 13px;
}
.forgot:hover { text-decoration: underline; }
.btn-anmelden {
  background: var(--green);
  color: #ffffff;
  border: 0;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  border-radius: 2px;
  transition: background .15s;
}
.btn-anmelden:hover { background: var(--green-dark); }
.btn-anmelden:disabled { opacity: 0.6; cursor: default; }

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.passkey-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.passkey-help {
  width: 36px;
  height: 36px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.btn-passkey {
  flex: 1;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  border-radius: 2px;
  transition: background .15s, color .15s;
}
.btn-passkey:hover { background: #fff; color: var(--navy); }

/* features below login */
.features {
  background: #fff;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
}
.features li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #1c1c1c;
  font-weight: 500;
}
.f-ico { width: 22px; height: 22px; color: var(--navy); flex-shrink: 0; }

.btn-register {
  background: var(--green);
  color: #fff !important;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  padding: 12px;
  border-radius: 2px;
  transition: background .15s;
}
.btn-register:hover { background: var(--green-dark); }

/* ============================ FOOTER ============================ */
.site-footer {
  margin-top: 32px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 32px 0 16px;
}
.footer-cols {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer-cols h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 5px; }
.footer-cols a {
  font-size: 13px;
  color: #4a4a4a;
}
.footer-cols a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 16px 28px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr 320px; }
  .login-col { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .login-box { flex: 1 1 320px; }
  .features, .btn-register { flex: 1 1 260px; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar-inner { gap: 16px; padding: 14px 16px; }
  .subnav { flex-wrap: wrap; height: auto; padding: 8px 16px; gap: 14px; }
  .categories { flex-wrap: wrap; gap: 12px; }
  .grid { grid-template-columns: 1fr; }
  .login-col { flex-direction: column; }
  .page { padding: 0 14px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
