:root {
  --blue: #0d8fe8;
  --blue-deep: #0875cf;
  --navy: #071d43;
  --muted: #5e6f89;
  --yellow: #ffd43b;
  --pale: #eaf6ff;
  --white: #ffffff;
  --line: #dce8f2;
  --shadow: 0 18px 50px rgba(7, 39, 86, .16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--navy); background: var(--white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.hero-shell { position: relative; min-height: 690px; color: white; background: #158fe4 url('../img/hero-germany.png') center bottom / cover no-repeat; overflow: hidden; }
.hero-shell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,115,206,.55) 0%, rgba(8,115,206,.1) 47%, transparent 72%); pointer-events: none; }
.site-header { position: relative; z-index: 10; height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 850; letter-spacing: -.8px; }
.brand strong { color: var(--yellow); }
.brand-icon { position: relative; width: 34px; height: 24px; }
.brand-icon::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); left: 3px; top: 0; box-shadow: 0 0 0 4px rgba(255,212,59,.2); }
.brand-icon::after { content: ""; position: absolute; width: 27px; height: 13px; border-radius: 12px 12px 7px 7px; background: white; left: 6px; bottom: 0; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { position: relative; font-size: 14px; font-weight: 700; opacity: .92; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--yellow); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.header-cta { padding: 11px 18px; border-radius: 10px; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 800; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: currentColor; }

.hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0 130px; }
.hero > * { min-width: 0; }
.hero-copy h1 { max-width: 620px; margin: 0 0 22px; font-size: clamp(54px, 6vw, 82px); line-height: .98; letter-spacing: -4px; }
.hero-copy p { max-width: 560px; margin: 0 0 30px; font-size: 19px; line-height: 1.55; }
.search-form { max-width: 590px; display: flex; gap: 8px; padding: 7px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 14px; color: var(--navy); }
.primary-btn { border: 0; border-radius: 10px; background: var(--yellow); color: var(--navy); padding: 15px 20px; font-weight: 850; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(110,84,0,.2); }

.weather-panel { align-self: center; margin-left: auto; width: min(100%, 470px); padding: 28px; border-radius: var(--radius); color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(3,41,89,.25); backdrop-filter: blur(10px); }
.panel-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.panel-top h2 { margin: 0; font-size: 28px; }
.current-row { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: center; margin: 26px 0; }
.weather-symbol { font-size: 50px; line-height: 1; }
.current-temp { font-size: 58px; font-weight: 850; letter-spacing: -3px; }
.current-meta { color: var(--muted); line-height: 1.5; }
.metrics { display: grid; gap: 7px; font-size: 13px; }
.metrics span { display: flex; justify-content: space-between; gap: 20px; }
.metrics b { color: var(--navy); }
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.day-tab { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 17px 8px; color: var(--navy); cursor: pointer; }
.day-tab { min-width: 0; }
.day-tab:last-child { border-right: 0; }
.day-tab.active { background: var(--pale); border-radius: 10px; }
.day-tab span, .day-tab b, .day-tab small { display: block; }
.day-tab span { font-size: 25px; margin: 6px 0; }
.day-tab small { font-size: 17px; font-weight: 850; }

.section { padding: 78px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -2px; }
.section-head p { margin: 0; color: var(--muted); }
.text-link { color: #086bc1; font-weight: 800; }
.city-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.city-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; transition: transform .2s, box-shadow .2s; }
.city-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(8,53,102,.1); }
.city-card h3 { margin: 0 0 18px; font-size: 15px; }
.city-card .city-temp { display: flex; gap: 10px; align-items: center; font-size: 27px; font-weight: 850; }
.city-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.climate-section { background: #f8fbfe; }
.editorial-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 18px; }
.feature-story { min-height: 420px; display: flex; align-items: end; padding: 34px; border-radius: var(--radius); overflow: hidden; color: white; background: linear-gradient(0deg, rgba(4,25,54,.82), transparent 70%), url('../img/hero-germany.png') center 70% / cover; }
.feature-story h3 { margin: 0 0 8px; font-size: 34px; }
.feature-story p { max-width: 580px; margin: 0 0 22px; line-height: 1.55; }
.white-btn { display: inline-block; padding: 12px 18px; border-radius: 10px; background: white; color: var(--navy); font-weight: 800; }
.story-stack { display: grid; gap: 18px; }
.story-card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.story-card .thumb { min-height: 150px; border-radius: 12px; background: url('../img/storm-germany.png') center / cover; }
.story-card.hot .thumb { background: linear-gradient(135deg,#ffe36c,#ff9c3d); }
.story-card h3 { margin: 0 0 8px; font-size: 20px; }
.story-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; font-size: 14px; }

.newsletter { margin: 70px auto; padding: 34px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; border-radius: var(--radius); background: var(--pale); }
.newsletter h2 { margin: 0 0 8px; font-size: 28px; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter form { display: flex; background: white; padding: 6px; border-radius: 12px; }
.newsletter input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; }
.form-message { display: block; min-height: 22px; margin-top: 8px; color: #0875cf; font-weight: 700; }

.site-footer { padding: 52px 0 30px; color: #dbe9f7; background: #082448; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { color: white; }
.footer-grid p { color: #a9bdd2; line-height: 1.55; }
.footer-links { display: grid; gap: 12px; font-size: 14px; }
.copyright { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #92abc4; font-size: 13px; }

.inner-header { color: var(--navy); background: white; border-bottom: 1px solid var(--line); }
.inner-header .brand-icon::after { background: #bfe1f8; }
.inner-header .main-nav a.active { color: #0875cf; }
.page-hero { padding: 82px 0; background: linear-gradient(120deg,#e6f5ff,#f8fcff); }
.page-hero h1 { max-width: 760px; margin: 0 0 16px; font-size: clamp(48px,7vw,76px); letter-spacing: -4px; line-height: 1; }
.page-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.forecast-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.forecast-card { padding: 24px 14px; border: 1px solid var(--line); border-radius: 14px; text-align: center; background: white; }
.forecast-card.active { border-color: #8fd0fa; background: var(--pale); }
.forecast-card .icon { display: block; margin: 18px 0; font-size: 42px; }
.forecast-card strong { display: block; font-size: 25px; }
.forecast-card small { color: var(--muted); }
.details-band { margin-top: 28px; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; border-radius: 14px; background: var(--line); }
.detail { padding: 24px; background: white; }
.detail span { display: block; color: var(--muted); font-size: 13px; }
.detail b { display: block; margin-top: 7px; font-size: 20px; }

.map-shell { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; background: #dff1e5; border: 1px solid var(--line); }
.map-canvas { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%,rgba(91,180,250,.3),transparent 30%), linear-gradient(135deg,#d5f0d9,#f2edcb); }
.map-canvas::before { content: ""; position: absolute; inset: 9% 24%; background: #b8d89d; border: 3px solid rgba(56,111,57,.25); clip-path: polygon(42% 0,60% 8%,69% 21%,84% 31%,75% 47%,83% 61%,68% 71%,57% 94%,40% 100%,25% 82%,19% 64%,6% 49%,21% 34%,27% 14%); }
.map-pin { position: absolute; border: 0; border-radius: 99px; padding: 9px 12px; background: white; color: var(--navy); box-shadow: 0 8px 20px rgba(7,29,67,.18); font-weight: 800; cursor: pointer; }
.map-pin.active { background: var(--yellow); }
.map-pin[data-city="Hamburg"] { left: 45%; top: 22%; }
.map-pin[data-city="Berlin"] { left: 61%; top: 34%; }
.map-pin[data-city="Köln"] { left: 32%; top: 48%; }
.map-pin[data-city="München"] { left: 52%; top: 72%; }
.map-info { position: absolute; left: 22px; bottom: 22px; width: 260px; padding: 20px; border-radius: 14px; background: white; box-shadow: var(--shadow); }
.map-info h2 { margin: 0 0 6px; }

.article-hero { min-height: 480px; display: flex; align-items: end; padding: 48px; border-radius: var(--radius); color: white; background: linear-gradient(0deg,rgba(4,20,44,.86),transparent 80%), url('../img/storm-germany.png') center / cover; }
.article-hero h2 { max-width: 720px; margin: 0 0 12px; font-size: clamp(34px,5vw,58px); line-height: 1.05; }
.article-hero p { max-width: 650px; font-size: 18px; line-height: 1.55; }
.article-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
.article-item { padding: 26px; border: 1px solid var(--line); border-radius: 14px; }
.article-item h3 { margin-top: 0; }
.article-item p { color: var(--muted); line-height: 1.55; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 54px; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbdce9; border-radius: 10px; padding: 14px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #0d8fe8; box-shadow: 0 0 0 3px rgba(13,143,232,.12); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-note { padding: 34px; border-radius: var(--radius); background: var(--navy); color: white; }
.contact-note h2 { font-size: 32px; }
.contact-note p { color: #bfd2e5; line-height: 1.7; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; opacity: 0; transform: translateY(15px); padding: 14px 18px; border-radius: 10px; background: var(--navy); color: white; box-shadow: var(--shadow); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; color: white; }
  .inner-header .menu-toggle { color: var(--navy); }
  .main-nav { position: absolute; top: 72px; left: 20px; right: 20px; display: none; padding: 20px; border-radius: 14px; color: var(--navy); background: white; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; gap: 20px; }
  .header-cta { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 45px; }
  .weather-panel { margin: 0; }
  .city-rail { grid-template-columns: repeat(3,1fr); }
  .editorial-grid, .contact-grid { grid-template-columns: 1fr; }
  .forecast-grid { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 650px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero-shell { min-height: auto; }
  .site-header { height: 70px; }
  .brand { font-size: 22px; }
  .hero { padding: 50px 0 80px; gap: 38px; }
  .hero-copy h1 { font-size: 50px; letter-spacing: -3px; }
  .hero-copy p { font-size: 16px; }
  .search-form { flex-direction: column; padding: 8px; }
  .search-form input { min-height: 48px; }
  .weather-panel { padding: 20px; }
  .weather-panel { width: 100%; max-width: 100%; }
  .panel-top { flex-wrap: wrap; }
  .panel-top b { font-size: 13px; }
  .current-row { grid-template-columns: auto auto; }
  .metrics { grid-column: 1 / -1; }
  .city-rail { grid-template-columns: repeat(2,1fr); }
  .section { padding: 58px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .story-card { grid-template-columns: 110px 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 26px 20px; }
  .newsletter form { flex-direction: column; gap: 8px; background: transparent; padding: 0; }
  .newsletter input { min-height: 48px; background: white; border: 0; border-radius: 10px; padding: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .forecast-grid { grid-template-columns: repeat(2,1fr); }
  .details-band { grid-template-columns: repeat(2,1fr); }
  .page-hero { padding: 58px 0; }
  .page-hero h1 { font-size: 46px; letter-spacing: -2px; }
  .article-hero { min-height: 430px; padding: 25px; }
  .article-list { grid-template-columns: 1fr; }
  .map-pin[data-city="Hamburg"] { left: 24%; }
  .map-pin[data-city="Berlin"] { left: 54%; }
  .map-info { left: 14px; right: 14px; bottom: 14px; width: auto; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
