:root {
  --bg-main: #17311e;          /* rgb(23,49,30) */
  --bg-secondary: #102616;     /* rgb(16,38,22) */
  --bg-black: #000000;         /* rgb(0,0,0) */
  --panel: rgba(23, 49, 30, 0.25);
  --card: var(--bg-main);
  --text: #e2e2e2;             /* rgb(226,226,226) */
  --muted: #919191;            /* rgb(145,145,145) */
  --accent: #daa520;           /* rgb(218,165,32) */
  --accent-strong: #f9bd26;    /* rgb(249,189,38) */
  --border: #777777;           /* rgb(119,119,119) */
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(16, 38, 22, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  height: 48px; /* keep logo height consistent even with hi-res source */
  width: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg-black);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: "Cabin", "Lato", sans-serif;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-black);
  font-weight: 700;
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
  background: var(--accent-strong);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  border-width: 2px;
}

.btn.ghost:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.btn.ghost:active {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-strong);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero {
  padding: 170px 0 130px;
  position: relative;
  background: var(--bg-secondary);
  min-height: 620px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* lighter overlay so mehr Foto im Titel sichtbar ist */
    linear-gradient(
      to bottom,
      rgba(16, 38, 22, 0.78) 0%,
      rgba(16, 38, 22, 0.56) 28%,
      rgba(16, 38, 22, 0.38) 55%,
      rgba(16, 38, 22, 0.26) 72%
    ),
    url("../img/high-res/herford-villa.jpg");
  background-size: 115%;
  background-position: center 45%;
  z-index: 0;
}

/* soften the top edge of the hero photo so it blends into the header */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-secondary) 0%,
    rgba(16, 38, 22, 0.72) 14%,
    rgba(16, 38, 22, 0.42) 32%,
    rgba(16, 38, 22, 0.2) 52%,
    transparent 72%
  );
  pointer-events: none;
}

/* fade the photo into the next section so the edge isn't abrupt */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-main) 0%,
    rgba(23, 49, 30, 0.75) 16%,
    rgba(23, 49, 30, 0.48) 36%,
    rgba(23, 49, 30, 0.24) 56%,
    transparent 82%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 720px);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 8px 0 12px;
  font-family: "Cabin", "Lato", sans-serif;
  color: var(--accent);
}

.hero-text .lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 18px;
}

.eyebrow {
  display: inline-flex;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero-panel {
  display: grid;
}

.panel-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-card h2 {
  margin: 0 0 10px;
  font-family: "Cabin", "Lato", sans-serif;
}

.panel-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  color: var(--muted);
}

.section {
  padding: 96px 0;
  background: var(--bg-main);
}

.impressum-section {
  background: var(--bg-black);
  padding: 96px 0;
}

.impressum-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.impressum-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.impressum-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Cabin", "Lato", sans-serif;
}

.impressum-card h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-family: "Cabin", "Lato", sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
}

.impressum-card h2:first-of-type {
  margin-top: 0;
}

.impressum-card h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-family: "Cabin", "Lato", sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}

.impressum-card ul {
  margin: 12px 0;
  padding-left: 24px;
  line-height: 1.8;
}

.impressum-card li {
  margin-bottom: 8px;
}

.impressum-card p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.impressum-card p:last-child {
  margin-bottom: 0;
}

.impressum-card a {
  color: var(--accent-strong);
}

.impressum-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  max-width: 520px;
}

.section.contact {
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.contact .container {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  margin: 10px 0;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-family: "Cabin", "Lato", sans-serif;
}

.section-lead {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section .container {
  width: min(1180px, 94vw);
}

.grid.two {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.grid.two.reverse {
  direction: ltr;
}

.card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-family: "Cabin", "Lato", sans-serif;
}

.card p {
  margin: 0 0 12px;
  color: var(--text);
}

.card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--text);
  display: grid;
  gap: 6px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
  direction: ltr;
}

.certs {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
}

.about-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.about-card ul {
  padding-left: 18px;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.cta {
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 14px 0 0;
  align-items: stretch;
}

.contact-form input,
.contact-form textarea {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  width: 100%;
  color: var(--text);
  font-family: inherit;
}

.contact-form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.25);
}

.card img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: center;
  direction: ltr;
}

.services-grid .image-card {
  order: 1;
}

.services-grid .text-card {
  order: 2;
}

.contact-info h2 {
  margin: 0 0 10px;
}

.contact-info h4 {
  margin: 14px 0 6px;
  font-weight: 700;
}

.contact-info p {
  line-height: 1.6;
  margin: 0 0 10px;
}

.contact-lead {
  margin: 0 0 12px;
  color: var(--muted);
}

.legal {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 10px;
}

.form-actions {
  margin-top: 12px;
}

.contact-media {
  display: grid;
  gap: 12px;
  height: 100%;
}

.map-frame {
  position: relative;
  width: 100%;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.grid.two.reverse .image-card {
  order: 2;
  align-self: stretch;
}

.grid.two.reverse .text-card {
  order: 1;
}

.image-card {
  align-self: stretch;
}

.image-card.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  /* gentle vignette so the portrait blends into the dark background */
  background: radial-gradient(
    circle at 50% 50%,
    rgba(23, 49, 30, 0.16) 0%,
    rgba(23, 49, 30, 0.36) 68%,
    rgba(23, 49, 30, 0.55) 100%
  );
}

.image-card.portrait-frame img {
  height: 100%;
  object-fit: cover;
  /* fade the edges softly into the surrounding background */
  mask-image: radial-gradient(120% 120% at 50% 50%, #000 56%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 56%, transparent 100%);
}

.image-card a {
  display: block;
  height: 100%;
}

.image-card img {
  height: 100%;
  object-fit: cover;
}

.impressum-logo {
  justify-self: center;
}

.impressum-logo img {
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 420px;
}

.services-grid .image-card img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.section > .container > .grid.two {
  padding: 10px 0;
}

.map-frame {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-break {
  height: 18px;
  background: var(--bg-black);
}

.cta-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.site-footer {
  padding: 32px 0 40px;
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.foot-left {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-links,
.foot-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.footer-links a,
.foot-links a {
  color: var(--text);
  font-weight: 600;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.linkedin-link:hover {
  transform: translateY(-1px);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.linkedin-link svg {
  height: 42px;
  width: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.linkedin-link:hover svg {
  transform: scale(1.03);
  filter: drop-shadow(0 0 6px rgba(10, 102, 194, 0.35));
}

.linkedin-link span {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.floating-contact-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-black);
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  opacity: 0.95;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: float-in 0.35s ease-out both;
}

.floating-contact-btn:hover,
.floating-contact-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.floating-contact-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.floating-contact-btn svg {
  flex-shrink: 0;
}

@keyframes float-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.95;
  }
}

@media (max-width: 760px) {
  .floating-contact-btn {
    right: 16px;
    bottom: 20px;
    padding: 12px 14px;
    gap: 8px;
  }

  .floating-contact-btn span {
    display: none;
  }

  /* Hero: show text above the fold and downsize image on mobile */
  .hero {
    padding: 80px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content {
    order: 1;
  }

  .hero .image-card {
    order: 2;
    max-height: 35vh;
  }

  .hero-content img,
  .hero .image-card img {
    max-height: 40vh;
    width: auto;
    object-fit: contain;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
.contact .card {
  width: 100%;
}

@media (max-width: 900px) {
  .about-grid,
  .cta-inner,
  .grid.two {
    grid-template-columns: 1fr;
  }

  /* Mobile: show portrait first so image sits above the bio */
  .grid.two.reverse {
    display: grid;
    grid-template-columns: 1fr !important;
    direction: ltr; /* cancel RTL trick on mobile */
  }

  .grid.two.reverse .image-card {
    grid-row: 1;
  }

  .grid.two.reverse .text-card {
    grid-row: 2;
  }

  /* Mobile: services grid should also show text before image */
  .grid.two.services-grid {
    display: flex;
    flex-direction: column;
  }

  .grid.two.services-grid .image-card {
    order: 1; /* put the visual hook (image) first on narrow screens */
  }

  .grid.two.services-grid .text-card {
    order: 2;
  }

  /* Mobile: contact grid stacks with map first */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-media {
    order: 1;
  }

  .contact-info {
    order: 2;
  }

  .contact-grid .card {
    margin-bottom: 20px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    inset: 70px 16px auto 16px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 16px 0;
  }

  .about-grid {
    gap: 18px;
  }
}

/* Force button colors to work everywhere */
.btn,
.floating-contact-btn {
  background-color: #daa520 !important;
  color: #000000 !important;
}

.btn:hover,
.btn:active,
.floating-contact-btn:hover,
.floating-contact-btn:active {
  background-color: #f9bd26 !important;
  color: #000000 !important;
}

/* Google Maps 2-Click Placeholder (DSGVO-konform) */
.map-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3a24 0%, #0d1f14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay {
  text-align: center;
  color: var(--text);
  padding: 2rem;
  max-width: 400px;
}

.map-overlay p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.map-overlay .btn {
  margin-top: 1rem;
}

.map-privacy-link {
  font-size: 0.85rem;
  margin-top: 1rem !important;
  color: var(--muted);
}

.map-privacy-link a {
  color: var(--accent);
}
