/*
Theme Name: Werft Malz
Theme URI: https://www.werft-malz.de/
Author: Werft Malz GmbH
Description: Maßgeschneidertes, responsives WordPress-Theme für die Werft Malz GmbH mit Referenzprojekten, Leistungen, Ausstattung und Karrierebereich.
Version: 1.0.0
Requires at least: 6.1
Requires PHP: 7.4
Text Domain: werft-malz
*/

:root {
  --wm-blue: #1766b1;
  --wm-blue-dark: #0b3156;
  --wm-orange: #f47b20;
  --wm-ink: #101820;
  --wm-steel: #5d6b77;
  --wm-fog: #eef2f4;
  --wm-white: #fff;
  --wm-max: 1240px;
  --wm-shadow: 0 18px 50px rgba(10, 31, 49, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wm-ink);
  background: var(--wm-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wm-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--wm-blue-dark); }
.wm-shell { width: min(calc(100% - 40px), var(--wm-max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(16,24,32,.1); backdrop-filter: blur(12px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding img { width: 78px; max-height: 72px; object-fit: contain; }
.site-branding a { display: flex; align-items: center; gap: 14px; color: var(--wm-ink); text-decoration: none; }
.site-branding strong { max-width: 155px; font-size: 15px; line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; }
.main-navigation ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: var(--wm-ink); font-weight: 750; font-size: 14px; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--wm-blue); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; font-weight: 800; }

.wm-hero { position: relative; min-height: min(810px, calc(100vh - 88px)); display: grid; align-items: end; color: #fff; background: #112b43 center/cover no-repeat; overflow: hidden; }
.wm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,21,34,.91) 0%, rgba(5,21,34,.62) 44%, rgba(5,21,34,.16) 76%), linear-gradient(0deg, rgba(5,21,34,.7), transparent 55%); }
.wm-hero-content { position: relative; z-index: 1; padding: clamp(90px, 12vw, 165px) 0 clamp(65px, 8vw, 105px); }
.wm-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 14px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.wm-kicker::before { content: ""; width: 42px; height: 4px; background: var(--wm-orange); }
.wm-hero h1 { max-width: 920px; margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(54px, 8.4vw, 120px); line-height: .86; letter-spacing: -.035em; text-transform: uppercase; }
.wm-hero-lead { max-width: 670px; margin: 28px 0 0; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.45; }
.wm-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.wm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 23px; color: #fff; background: var(--wm-blue); border: 2px solid var(--wm-blue); font-weight: 850; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.wm-button:hover { color: #fff; background: var(--wm-blue-dark); border-color: var(--wm-blue-dark); transform: translateY(-2px); }
.wm-button--light { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.wm-button--light:hover { color: var(--wm-ink); background: #fff; border-color: #fff; }
.wm-button--orange { background: var(--wm-orange); border-color: var(--wm-orange); }

.wm-facts { position: relative; z-index: 2; margin-top: -1px; color: #fff; background: var(--wm-blue); }
.wm-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.wm-fact { min-height: 138px; padding: 30px clamp(18px, 3vw, 42px); border-left: 1px solid rgba(255,255,255,.2); }
.wm-fact:last-child { border-right: 1px solid rgba(255,255,255,.2); }
.wm-fact strong { display: block; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(30px, 3.3vw, 48px); line-height: 1; text-transform: uppercase; }
.wm-fact span { display: block; margin-top: 8px; font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.wm-section { padding: clamp(76px, 9vw, 132px) 0; }
.wm-section--fog { background: var(--wm-fog); }
.wm-section--dark { color: #fff; background: var(--wm-ink); }
.wm-section-head { display: grid; grid-template-columns: minmax(0, .85fr) minmax(280px, 1fr); gap: clamp(32px, 7vw, 100px); align-items: end; margin-bottom: 55px; }
.wm-eyebrow { margin: 0 0 14px; color: var(--wm-blue); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.wm-section--dark .wm-eyebrow { color: #77b8ee; }
.wm-title { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-size: clamp(42px, 5.7vw, 78px); line-height: .96; letter-spacing: -.025em; text-transform: uppercase; }
.wm-intro { margin: 0; color: #4b5a66; font-size: clamp(18px, 1.8vw, 23px); }
.wm-section--dark .wm-intro { color: #cbd4db; }

.wm-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cfd8de; border-left: 1px solid #cfd8de; }
.wm-service { min-height: 275px; padding: clamp(28px, 3.2vw, 44px); background: #fff; border-right: 1px solid #cfd8de; border-bottom: 1px solid #cfd8de; }
.wm-service-number { color: var(--wm-blue); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.wm-service h3 { margin: 58px 0 12px; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.wm-service p { margin: 0; color: #5b6974; font-size: 16px; }

.wm-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 640px; background: var(--wm-ink); }
.wm-feature-images { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3px; min-height: 620px; }
.wm-feature-images img { width: 100%; height: 100%; object-fit: cover; }
.wm-feature-images img:last-child { filter: saturate(.88) contrast(1.04); }
.wm-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 105px); color: #fff; }
.wm-feature-copy h2 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(44px, 5vw, 76px); line-height: .94; text-transform: uppercase; }
.wm-feature-copy p { color: #c8d1d8; font-size: 19px; }
.wm-checks { display: grid; gap: 12px; margin: 23px 0 0; padding: 0; list-style: none; }
.wm-checks li { position: relative; padding-left: 29px; font-weight: 700; }
.wm-checks li::before { content: ""; position: absolute; left: 0; top: .58em; width: 11px; height: 11px; background: var(--wm-orange); }

.wm-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wm-project-card { background: #fff; box-shadow: var(--wm-shadow); }
.wm-project-card > a { color: inherit; text-decoration: none; }
.wm-project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.wm-project-body { padding: 28px; }
.wm-project-meta { color: var(--wm-blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.wm-project-card h3 { margin: 10px 0 8px; font-size: 25px; line-height: 1.1; text-transform: uppercase; }
.wm-project-card p { margin: 0; color: #5d6b77; font-size: 15px; }
.wm-project-card--lead { grid-column: span 2; }
.wm-project-card--lead img { aspect-ratio: 2/1; }

.wm-equipment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.16); }
.wm-equipment { min-height: 230px; padding: clamp(30px, 4vw, 52px); background: var(--wm-ink); }
.wm-equipment strong { display: block; color: #70b3eb; font-family: "Arial Narrow", Impact, sans-serif; font-size: 43px; line-height: 1; text-transform: uppercase; }
.wm-equipment h3 { margin: 17px 0 8px; font-size: 22px; text-transform: uppercase; }
.wm-equipment p { margin: 0; color: #bac5cd; }

.wm-career { position: relative; color: #fff; background: var(--wm-blue); overflow: hidden; }
.wm-career::after { content: "WM"; position: absolute; right: -4vw; bottom: -13vw; color: rgba(255,255,255,.07); font-family: Impact, sans-serif; font-size: 36vw; line-height: 1; }
.wm-career-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.wm-career .wm-title { max-width: 830px; }
.wm-career p { max-width: 680px; font-size: 20px; }

.site-footer { color: #d2d9df; background: #07131c; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding: 72px 0 55px; }
.footer-logo { width: 105px; margin-bottom: 22px; }
.site-footer h2, .site-footer h3 { color: #fff; text-transform: uppercase; }
.site-footer h3 { margin-top: 0; font-size: 15px; letter-spacing: .1em; }
.site-footer a { color: #fff; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }

.wm-page-hero { padding: 105px 0 70px; color: #fff; background: linear-gradient(120deg, #07131c, #124b78); }
.wm-page-hero h1 { max-width: 980px; margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(48px, 7vw, 92px); line-height: .95; text-transform: uppercase; }
.wm-content { width: min(calc(100% - 40px), 880px); margin-inline: auto; padding: 72px 0 100px; }
.wm-content h2, .wm-content h3 { line-height: 1.15; text-transform: uppercase; }
.wm-content h2 { margin-top: 2em; font-size: 34px; }
.wm-content figure { margin: 2.2em 0; }
.wm-content .wp-block-gallery { width: min(1100px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.wm-project-hero img { width: 100%; max-height: 700px; object-fit: cover; }
.wm-project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: -42px auto 0; position: relative; width: min(calc(100% - 40px), 1000px); background: #d5dde2; box-shadow: var(--wm-shadow); }
.wm-project-fact { padding: 26px; background: #fff; }
.wm-project-fact span { display: block; color: var(--wm-blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.wm-project-fact strong { display: block; margin-top: 5px; font-size: 18px; }
.navigation.pagination { margin-top: 45px; }
.nav-links { display: flex; gap: 10px; }
.page-numbers { padding: 9px 14px; background: #fff; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--wm-blue); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 18px 20px 28px; background: #fff; box-shadow: var(--wm-shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 17px; }
  .wm-fact-grid, .wm-service-grid { grid-template-columns: repeat(2, 1fr); }
  .wm-section-head, .wm-feature, .wm-career-inner { grid-template-columns: 1fr; }
  .wm-feature-images { min-height: 500px; }
  .wm-project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wm-shell { width: min(calc(100% - 28px), var(--wm-max)); }
  .header-inner { min-height: 72px; }
  .site-branding img { width: 58px; max-height: 56px; }
  .site-branding strong { font-size: 12px; }
  .wm-hero { min-height: 660px; background-position: 58% center; }
  .wm-hero h1 { font-size: clamp(51px, 16vw, 76px); }
  .wm-fact-grid, .wm-service-grid, .wm-project-grid, .wm-equipment-grid, .wm-project-facts, .footer-main { grid-template-columns: 1fr; }
  .wm-fact { min-height: 105px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .wm-section-head { margin-bottom: 36px; }
  .wm-service { min-height: 230px; }
  .wm-service h3 { margin-top: 35px; }
  .wm-feature-images { grid-template-columns: 1fr; min-height: auto; }
  .wm-feature-images img { height: 330px; }
  .wm-project-card--lead { grid-column: auto; }
  .wm-project-card--lead img { aspect-ratio: 4/3; }
  .wm-project-facts { margin-top: 0; width: 100%; }
}

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