:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f0ede7;
  --text: #313842;          /* Navy aus dem Logo */
  --muted: #667176;
  --line: #d8d6cf;
  --accent: #a22f28;        /* Rot aus dem Logo */
  --accent-dark: #82231d;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(23, 28, 31, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ===== HEADER MIT LOGO ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Logo-Block: Bild + Zusatzzeile */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  height: 54px;          /* HIER Logo-Größe ändern */
  width: auto;
  display: block;
}

.brand-claim {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

nav.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.98rem;
}

nav.main-nav a:hover { color: var(--accent); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.cta-primary {
  background: var(--accent);
  color: #fff;
}

.cta-primary:hover { background: var(--accent-dark); }

.cta-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;   /* Bildausschnitt verschieben */
  filter: brightness(0.45);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 96px 0;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-copy p { color: rgba(255,255,255,0.9); }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero-copy .eyebrow { color: #f0b7b2; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 18px; color: inherit; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 18px; color: var(--muted); max-width: 65ch; }

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

section { padding: 64px 0; }
section.alt { background: var(--surface-2); }

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.grid-2,
.grid-4,
.references,
.contact-grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.references { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 1fr 0.95fr; align-items: start; }

.service-card,
.card,
.reference,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card img,
.reference img {
  width: 100%;
  height: 220px;                    /* Höhe des Bildausschnitts */
  object-fit: cover;
  object-position: center center;    /* sichtbarer Bildbereich */
}

.service-card .body,
.reference .body { padding: 26px; }

.card { padding: 26px; }

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.reference .tag { background: var(--bg); }

/* Referenzkarte ohne Foto: Platzhalterfläche im Corporate-Look */
.reference.no-photo .photo-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      135deg,
      #eceae4 0 14px,
      #f4f2ee 14px 28px
    );
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
}

.reference.no-photo .photo-placeholder svg {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  flex-shrink: 0;
  stroke: var(--accent);
  opacity: 0.8;
}

ul { margin: 0; padding-left: 18px; color: var(--muted); }
li { margin-bottom: 10px; }

.reference-title {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Über uns */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center center;
}

.contact-box { padding: 32px; }

.contact-box strong {
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.contact-box p a { color: var(--accent); }
.contact-box .cta-primary { color: #fff; }

footer {
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-nav { display: flex; gap: 18px; }
.footer-nav a:hover { color: var(--accent); }

@media (max-width: 1080px) {
  nav.main-nav { gap: 16px; font-size: 0.92rem; }
}

@media (max-width: 820px) {
  .brand-claim { display: none; }
}

@media (max-width: 980px) {
  .grid-2,
  .grid-4,
  .references,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav { flex-wrap: wrap; }
  nav.main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 14px 18px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .brand-logo { height: 42px; }
  .hero { min-height: 480px; }
  .hero-overlay { padding: 64px 0; }
  .service-card img, .reference img { height: 200px; }
}

@media (max-width: 520px) {
  .brand-logo { height: 36px; }
  .cta { padding: 0 14px; font-size: 0.95rem; }
}

/* ===== RECHTSSEITEN (Impressum / Datenschutz) ===== */
.legal {
  padding: 56px 0 72px;
}

.legal-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: 860px;
}

.legal-inner h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 10px;
}

.legal-inner h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-inner h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-inner h3 {
  font-size: 1.05rem;
  margin-top: 26px;
  margin-bottom: 10px;
}

.legal-inner p,
.legal-inner li { max-width: 68ch; }

.legal-inner a { color: var(--accent); }
.legal-inner a:hover { text-decoration: underline; }

.legal-lead {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.legal-data {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 10px 24px;
  margin: 0 0 24px;
  padding: 22px;
  background: var(--bg);
  border-radius: 12px;
}

.legal-data dt {
  font-weight: 700;
  color: var(--text);
}

.legal-data dd {
  margin: 0;
  color: var(--muted);
}

.legal-note {
  margin-top: 40px;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
}

.legal-note p:last-child { margin-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-weight: 700;
  color: var(--accent);
}

.back-link:hover { text-decoration: underline; }

.legal-updated {
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .legal-inner { padding: 28px 22px; }
  .legal-data { grid-template-columns: 1fr; gap: 4px; padding: 18px; }
  .legal-data dd { margin-bottom: 12px; }
}

/* ===== AKTUELLES ===== */
.page-head {
  padding: 56px 0 8px;
}

.page-head .eyebrow { margin-bottom: 10px; }

.page-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
}

.page-head p {
  max-width: 68ch;
  font-size: 1.05rem;
}

.news {
  padding: 32px 0 72px;
}

/* Ein einzelner Beitrag */
.news-item {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

/* Beitrag ohne Foto: Text nimmt die volle Breite ein */
.news-item.no-photo {
  grid-template-columns: 1fr;
}

.news-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.news-body {
  padding: 30px 32px;
}

.news-date {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.news-body h2 {
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.news-body p {
  max-width: 62ch;
  margin-bottom: 12px;
}

.news-body p:last-child { margin-bottom: 0; }

.news-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

@media (max-width: 860px) {
  .news-item,
  .news-item.no-photo { grid-template-columns: 1fr; }
  .news-item img { min-height: 200px; max-height: 260px; height: auto; }
  .news-body { padding: 24px 22px; }
}
