/* Hussain Mahdi Reinigung – HMR
   Steril, modern, Hamburg-inspiriert (Elbe / Hafen / Klarheit) */

:root {
  --ink: #0b1f2a;
  --ink-soft: #1a3a4a;
  --sea: #0d6e8c;
  --sea-deep: #0a5570;
  --foam: #e8f4f8;
  --mist: #f4fafc;
  --white: #ffffff;
  --line: #c5dce6;
  --muted: #5a7a88;
  --accent: #c45c26;
  --ok: #1f7a4d;
  --err: #a33b2d;
  --radius: 2px;
  --shadow: 0 12px 40px rgba(11, 31, 42, 0.08);
  --font-display: "DM Sans", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1100px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sea-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Atmosphere: subtle Elbe-wave pattern */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 110, 140, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(196, 92, 38, 0.06), transparent 50%),
    linear-gradient(180deg, var(--foam) 0%, var(--mist) 45%, #eef6f9 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath fill='none' stroke='%230d6e8c' stroke-opacity='0.12' stroke-width='1' d='M0 12c20-8 40-8 60 0s40 8 60 0'/%3E%3C/svg%3E");
  background-size: 120px 24px;
  background-repeat: repeat;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(244, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--sea);
}

/* Hero – one composition, brand first */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 42, 0.82) 0%, rgba(10, 85, 112, 0.55) 48%, rgba(11, 31, 42, 0.35) 100%),
    url("../img/hero-hamburg.svg") center / cover no-repeat;
  animation: heroFade 1.2s ease-out both;
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
  animation: riseIn 0.9s ease-out 0.15s both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--foam);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-submit {
  background: var(--sea);
  color: var(--white);
  border: none;
  width: 100%;
  max-width: 16rem;
}

.btn-submit:hover {
  background: var(--sea-deep);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.services {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.service-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 960px) {
  .service-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.service-list li {
  padding-top: 1rem;
  border-top: 2px solid var(--sea);
}

.service-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.about-panel {
  background: var(--ink);
  color: var(--foam);
  padding: 2rem;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  animation: panelIn 1s ease-out both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(0.75rem); }
  to { opacity: 1; transform: translateX(0); }
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, transparent 40%, rgba(13, 110, 140, 0.35)),
    url("../img/hero-hamburg.svg") 60% 40% / 180% no-repeat;
  opacity: 0.45;
}

.about-panel p {
  position: relative;
  margin: 0;
  font-size: 1.05rem;
  max-width: 22ch;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* Contact */
.contact {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }
}

.contact-meta {
  color: var(--muted);
}

.contact-meta dl {
  margin: 1.5rem 0 0;
}

.contact-meta dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1rem;
}

.contact-meta dd {
  margin: 0.25rem 0 0;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--accent);
}

.field input:not([type="checkbox"]),
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.field input:not([type="checkbox"]):hover,
.field textarea:hover,
.field select:hover {
  border-color: #a8c8d4;
}

.field input:not([type="checkbox"]):focus,
.field textarea:focus,
.field select:focus {
  background: var(--white);
  border-color: var(--sea);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
  margin-bottom: 0;
}

.privacy-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--sea);
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.hint-inline {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.multi-select {
  position: relative;
}

.multi-select-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.multi-select-toggle:hover {
  border-color: #a8c8d4;
}

.multi-select.is-open .multi-select-toggle {
  background: var(--white);
  border-color: var(--sea);
}

.multi-select-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}

.multi-select.is-open .multi-select-chevron {
  transform: rotate(-135deg);
  margin-bottom: -0.1rem;
}

.multi-select-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.multi-select-panel[hidden] {
  display: none;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.check-option:hover {
  border-color: #a8c8d4;
  background: var(--foam);
}

.check-option:has(input:checked) {
  border-color: var(--sea);
  background: var(--foam);
}

.check-option:has(input:focus-visible) {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.check-option input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--sea);
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-ok {
  background: #e8f6ee;
  border-color: #b7dfc6;
  color: var(--ok);
}

.alert-err {
  background: #fceeed;
  border-color: #e8c0ba;
  color: var(--err);
}

.alert ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

/* Legal pages */
.legal {
  padding: 3rem 0 5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.legal .lede {
  color: var(--muted);
  margin: 0 0 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.placeholder-note {
  background: #fff8e8;
  border: 1px solid #ebd7a0;
  color: #6a5310;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--foam);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: riseIn 0.25s ease-out;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0.25rem;
  }

  .brand-text .brand-name {
    font-size: 0.85rem;
  }

  .hero-content {
    padding-bottom: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual,
  .hero-content,
  .about-panel,
  .site-nav.is-open {
    animation: none !important;
  }
}
