/* Blankenese: Marineblau, Weiß und warmes Sandgrau, klassische Schrift.
   Große Schrift und starker Kontrast, damit alles gut lesbar ist. */
:root {
  --navy: #1b2b44;
  --navy-soft: #34465f;
  --paper: #fbfaf7;
  --tint: #eef0ee;
  --line: #cfd4d6;
  --red: #a3302b;
  /* Nur drei Rundungen auf der ganzen Seite */
  --rund-klein: 6px;     /* kleine Dinge: Fokusrahmen, Sprunglink */
  --rund-mittel: 14px;   /* Flächen: Kacheln, Kästen, Fotorahmen */
  --rund-voll: 999px;    /* Knöpfe */   /* wie der Leuchtturm, sparsam eingesetzt */
  --text: #1a1a1a;
  --muted: #444;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 125%; scroll-behavior: smooth; } /* 20px */

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: var(--rund-klein); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { border-radius: var(--rund-klein); left: 16px; top: 16px; background: #fff; padding: 10px 14px; z-index: 10; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); }

/* Kopfzeile */
.site-header { background: var(--navy); color: #fff; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.header-ship { width: 72px; height: auto; display: block; }
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav a:hover { border-bottom-color: #fff; }

/* Begrüßung */
.intro { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.intro-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 24px;
}
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.intro-call { margin: 0; color: var(--muted); }
.phone {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}

.portrait { margin: 0; }
.portrait-frame {
  border-radius: var(--rund-mittel);
  aspect-ratio: 4 / 5;
  background: var(--tint);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--serif);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait figcaption {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}

/* Zusagen */
.promises { padding: 28px 0; border-bottom: 1px solid var(--line); }
.promises ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 36px;
}
.promises li { color: var(--muted); padding-left: 16px; border-left: 2px solid var(--navy); }
.promises strong { color: var(--navy); }

/* Abschnitte */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
h2 { font-size: 1.8rem; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 40px; }

/* Hilfe: kompakte Kacheln, damit man wenig scrollen muss */
.services {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.services > li {
  border-radius: var(--rund-mittel);
  overflow: hidden;
  counter-increment: s;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 22px 22px 24px;
}
.services > li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--red);
  margin-bottom: 4px;
}
.services h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.service-emoji { display: inline-block; margin-left: 10px; font-size: 1.4rem; vertical-align: -0.1em; }
.services p { margin: 0; color: var(--muted); }

/* Große Knöpfe */
.actions, .reveal { display: flex; flex-wrap: wrap; gap: 14px; }
.reveal { margin: 0 0 32px; }
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--rund-voll);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-shadow: none;
  line-height: 1.3;
}
.btn-primary { background: #f3b57a; color: #1b2b44 !important; border-color: #f3b57a; }
.btn-primary:hover { background: #f7c999; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-light, .has-photo a.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #eef0ee; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
a.btn.revealed { font-size: 1.2rem; overflow-wrap: anywhere; max-width: 100%; }

/* Über mich */
.section-tint p { margin: 0 0 18px; }
blockquote {
  margin: 32px 0 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
}

/* Kontakt */
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { font-weight: 600; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Fußzeile */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 28px 0;
  font-size: 0.85rem;
  text-align: center;
}
.site-footer p { margin: 0; opacity: 0.85; }

/* Handy */
@media (max-width: 760px) {
  html { font-size: 112.5%; } /* 18px */
  .intro { padding: 40px 0; }
  .intro-inner { grid-template-columns: 1fr; gap: 36px; }
  .promises ul { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  /* Auf dem Handy zwei Kacheln nebeneinander statt langer Liste */
  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .services > li { padding: 14px 12px 16px; }
  .services > li:last-child { grid-column: 1 / -1; }
  .services h3 { font-size: 1.05rem; }
  .services h3 .service-emoji { display: block; margin: 0 0 4px; order: -1; }
  .services p { font-size: 0.9rem; line-height: 1.45; }
  .btn { width: 100%; text-align: center; }
  a.btn.revealed { font-size: 0.95rem; padding: 14px 10px; }
  .portrait { max-width: 180px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 2px; }
  .header-ship { position: absolute; top: 14px; right: 16px; width: 56px; }
  .site-header { position: relative; }
  nav { margin-left: 0; }
}

/* Fotos als Hintergrund: Elbufer oben, Maler am Elbstrand beim Kontakt.
   Eine dunkle Schicht darüber hält den Text gut lesbar. */
.has-photo { background-size: cover; background-repeat: no-repeat; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.has-photo h1, .has-photo h2 { color: #fff; }
.has-photo .lead, .has-photo .intro-call, .has-photo .section-lead { color: rgba(255,255,255,0.92); }
.has-photo a { color: #fff; }
.has-photo a:focus-visible { outline-color: #f3b57a; }

.intro.has-photo {
  border-bottom: 0;
  padding: 96px 0 88px;
  background-image:
    linear-gradient(90deg, rgba(20,32,52,0.88) 0%, rgba(20,32,52,0.6) 45%, rgba(20,32,52,0.05) 100%),
    url("bilder/elbufer.jpg");
  background-position: center 60%;
}
.has-photo .kicker { color: #f3b57a; }
.has-photo .phone { color: #fff; border-bottom-color: #f3b57a; }
.has-photo .portrait-frame {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  outline-color: rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(2px);
}
.has-photo .portrait figcaption { color: rgba(255,255,255,0.85); }

.contact.has-photo {
  padding: 96px 0;
  background-image:
    linear-gradient(rgba(16,22,34,0.45), rgba(16,22,34,0.7)),
    url("bilder/maler.jpg");
  background-position: center 45%;
}
.has-photo .contact-list { border-top-color: rgba(255,255,255,0.35); }
.has-photo .contact-list > div { border-bottom-color: rgba(255,255,255,0.35); }
.has-photo .contact-list dt { color: #f3b57a; }

@media (max-width: 760px) {
  .intro.has-photo {
    padding: 56px 0;
    background-image:
      linear-gradient(rgba(20,32,52,0.62), rgba(20,32,52,0.82)),
      url("bilder/elbufer-klein.jpg");
    background-position: 70% center;
  }
  .contact.has-photo {
    padding: 64px 0;
    background-image:
      linear-gradient(rgba(16,22,34,0.55), rgba(16,22,34,0.78)),
      url("bilder/maler-klein.jpg");
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 981px) {
  /* 3 oben, 2 breite unten */
  .services { grid-template-columns: repeat(6, 1fr); }
  .services > li { grid-column: span 2; }
  .services > li:nth-child(4), .services > li:nth-child(5) { grid-column: span 3; }
}

/* Überschrift aus Sicht der Besucher, persönliche Begrüßung darunter */
.hello { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 14px; color: #fff; }
.cta-line { margin: 0 0 18px; font-weight: 600; color: #f3b57a; }
.cta-box {
  border-radius: var(--rund-mittel);
  margin-top: 28px;
  padding: 24px 26px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.cta-box p { margin: 0; flex: 1 1 320px; }

/* Große Blickfang-Überschrift über die ganze Breite */
.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.45);
  hyphens: manual;
}
.hero-title span { display: block; color: #f3b57a; }
@media (max-width: 760px) {
  .hero-title { font-size: 2.2rem; margin-bottom: 24px; }
}
.intro.has-photo .intro-inner { align-items: start; }
.intro.has-photo .portrait { max-width: 300px; justify-self: end; }

/* Sanftes Schimmern der Lichter im Elbufer-Foto (Hanghäuser, Anleger, Spiegelungen).
   Eine zweite Ebene mit nur den Lichtern wird langsam heller und wieder dunkler. */
.intro.has-photo { position: relative; isolation: isolate; }
.intro.has-photo > .container { position: relative; z-index: 1; }
.intro.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bilder/elbufer-lichter.jpg") center 60% / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.15;
  pointer-events: none;
  animation: lichter 7s ease-in-out infinite alternate;
}
@keyframes lichter {
  from { opacity: 0.12; }
  to   { opacity: 0.6; }
}
@media (max-width: 760px) {
  .intro.has-photo::before {
    background-image: url("bilder/elbufer-lichter-klein.jpg");
    background-position: 70% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro.has-photo::before { animation: none; opacity: 0.3; }
}
