@import url('fonts.css');

:root {
  --oliv: #727557;
  --oliv-dark: #5d6046;
  --ocker: #d0ac68;
  --gold: #775b25;
  --hell: #f7f7f7;
  --dark: #242323;
  --text: #2f2e2c;
  --muted: #6b6a67;
  --line: #e2e0dc;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopf ---------- */

.topbar { height: 26px; background: var(--dark); }

.masthead { text-align: center; padding: 34px 24px 0; position: relative; }

/* ---------- Sprachwahl ---------- */

.langbar {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  gap: 2px;
  font-size: 13px;
  letter-spacing: .08em;
}

.langbar a {
  text-decoration: none;
  color: var(--muted);
  padding: 7px 9px;
  border: 1px solid transparent;
  transition: color .18s, border-color .18s;
}

.langbar a:hover { color: var(--gold); }

.langbar a.lang-active {
  color: var(--gold);
  border-color: var(--line);
  cursor: default;
}

.logo { display: inline-block; text-decoration: none; }

.logo-line1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: 0.17em;
  color: var(--dark);
  line-height: 1.1;
}

.logo-line2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 4.2vw, 34px);
  letter-spacing: 0.36em;
  color: var(--gold);
  line-height: 1.5;
  padding-left: 0.36em;
}

/* ---------- Navigation ---------- */

.nav { border-bottom: 1px solid var(--line); background: #fff; }

.nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 14px 24px 16px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text);
  padding-top: 10px;
  transition: color .18s;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
  transition: background .18s;
}

.nav a:hover { color: var(--gold); }
.nav a:hover::before { background: var(--gold); }
.nav a.active { color: var(--oliv); }
.nav a.active::before { background: var(--gold); height: 2px; }

.nav-toggle {
  display: none;
  margin: 12px auto 16px;
  background: none;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .12em;
  padding: 9px 20px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Typografie ---------- */

h1, h2, h3 { font-weight: 300; letter-spacing: .02em; margin: 0 0 .6em; }

h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; }
h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; }
h3 { font-size: 21px; line-height: 1.35; }

.page-title {
  text-align: center;
  padding: 66px 24px 10px;
  color: var(--oliv);
  font-size: clamp(26px, 3.6vw, 38px);
}

.lead { font-size: 19px; color: var(--muted); }

p { margin: 0 0 1.15em; }

.section { padding: 60px 0; }
.section-hell { background: var(--hell); }

/* ---------- Hero ---------- */

.hero-band { background: var(--oliv); color: #fff; }

.hero-band-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 46px;
  align-items: start;
}

.hero-band h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  padding-bottom: 6px;
  margin: 0;
  font-weight: 300;
}

.hero-band .kicker {
  font-size: 16px;
  letter-spacing: .1em;
  margin-bottom: .9em;
  color: rgba(255, 255, 255, .92);
}

.hero-band p { color: rgba(255, 255, 255, .95); }

.hero-img img { width: 100%; height: clamp(320px, 44vw, 620px); object-fit: cover; }

/* ---------- Leistungs-Raster ---------- */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); }

.tile { display: flex; flex-direction: column; }
.tile-img { aspect-ratio: 3 / 2; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }

.tile-body { flex: 1; padding: 34px 30px 44px; text-align: center; }
.tile-body h3 { font-size: 22px; margin-bottom: .35em; }
.tile-sub { font-size: 15px; letter-spacing: .04em; margin-bottom: 1.6em; }
.tile-body p { font-size: 15.5px; line-height: 1.7; }

.t-hell { background: var(--hell); color: var(--text); }
.t-hell .tile-sub { color: var(--muted); }
.t-oliv { background: var(--oliv); color: #fff; }
.t-ocker { background: var(--ocker); color: #fff; }
.t-oliv .tile-sub, .t-ocker .tile-sub { color: rgba(255, 255, 255, .9); }

/* ---------- Referenzen ---------- */

.ref { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.ref + .ref { margin-top: 0; }
.ref-img { min-height: 340px; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; }
.ref-text { padding: 52px 46px; display: flex; flex-direction: column; justify-content: center; }
.ref-text h3 { color: var(--gold); font-size: 23px; }
.ref:nth-child(even) .ref-img { order: 2; }
.ref-alt { background: var(--hell); }

/* ---------- Text-/Bild-Blöcke ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.split-img img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }

.band-oliv { background: var(--oliv); color: #fff; }
.band-ocker { background: var(--ocker); color: #fff; }
.band-oliv h2, .band-ocker h2 { color: #fff; }

/* ---------- FAQ / Akkordeon ---------- */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 300;
  color: var(--text);
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  transition: transform .25s;
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { display: none; padding: 0 0 24px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- Stellen ---------- */

.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.job { border: 1px solid var(--line); padding: 32px 28px; background: #fff; }
.job h3 { color: var(--gold); font-size: 20px; }
.job .pensum { font-size: 14px; letter-spacing: .08em; color: var(--muted); margin-bottom: 1.2em; }
.job ul { padding-left: 18px; margin: 0 0 1em; font-size: 15.5px; }
.job li { margin-bottom: .35em; }

/* ---------- Branchen-Newsfeed ---------- */

.feed { margin-top: 34px; }

.feed-item { border-top: 1px solid var(--line); padding: 24px 0 20px; }
.feed-item:last-child { border-bottom: 1px solid var(--line); }
.feed-item h3 { font-size: 20px; margin-bottom: .3em; }
.feed-item h3 a { text-decoration: none; transition: color .18s; }
.feed-item h3 a:hover { color: var(--gold); text-decoration: underline; }
.feed-meta { font-size: 13.5px; color: var(--muted); margin-bottom: .7em; letter-spacing: .02em; }
.feed-item p { font-size: 15.5px; margin: 0; color: var(--text); }

.leer-hinweis { color: var(--muted); text-align: center; padding: 26px 0; }

/* ---------- Formular ---------- */

.form { max-width: 700px; margin: 0 auto; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #c9c7c2;
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  padding: 9px 2px;
  color: var(--text);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-bottom-color: var(--gold); }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-block;
  width: 100%;
  background: var(--dark);
  color: #fff;
  border: 0;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .06em;
  padding: 15px 24px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--oliv); }

.btn-inline { width: auto; padding: 14px 40px; }

/* Link auf farbigem Grund (Oliv/Ocker) */
.link-light { color: #fff; text-decoration: underline; }

.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.msg { padding: 14px 18px; margin-bottom: 22px; font-size: 15.5px; }
.msg-ok { background: #eef0e8; border-left: 3px solid var(--oliv); }
.msg-err { background: #f7ecec; border-left: 3px solid #a8443a; }

/* ---------- Fußbereich ---------- */

.footer { background: #fff; border-top: 1px solid var(--line); text-align: center; padding: 52px 24px 40px; }
.footer .company { font-size: 19px; color: var(--text); margin-bottom: .2em; }
.footer .addr { font-size: 17px; color: var(--text); margin-bottom: 1em; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer .legal { font-size: 14px; margin: 12px 0 6px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Trefferflaeche fuer Finger: Inline-Links im Fuss/Kontakt vergroessern, Optik bleibt */
.footer .legal a,
.footer a[href^="mailto:"],
.footer a[href^="tel:"] { display: inline-block; padding: 9px 8px; }
.narrow a[href^="mailto:"],
.narrow a[href^="tel:"] { display: inline-block; padding: 7px 2px; }
.footer .copy { font-size: 13px; color: var(--muted); }

/* ---------- Rechtstexte ---------- */

.legal-page { padding: 20px 0 70px; }
.legal-page h2 { font-size: 24px; margin-top: 1.8em; color: var(--gold); }
.legal-page h3 { font-size: 19px; margin-top: 1.5em; }
.legal-page p, .legal-page li { font-size: 15.5px; line-height: 1.75; }
.legal-page ul { padding-left: 20px; }

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  .grid3, .jobs { grid-template-columns: 1fr; }
  .ref { grid-template-columns: 1fr; }
  .ref:nth-child(even) .ref-img { order: 0; }
  .ref-img { min-height: 260px; }
  .ref-text { padding: 36px 26px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .hero-band-inner { grid-template-columns: 1fr; gap: 22px; padding: 40px 24px; }
  .hero-band h1 { display: inline-block; }

  .nav-toggle { display: block; }
  .nav-inner { display: none; flex-direction: column; align-items: center; gap: 0; padding: 0 24px 18px; }
  .nav-inner.open { display: flex; }
  .nav-inner a { padding: 13px 0; width: 100%; text-align: center; }
  .nav a::before { display: none; }
  .nav-inner a + a { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  /* Sprachwahl unter das Logo statt daneben, sonst ueberlappt sie den Schriftzug */
  .masthead { padding-top: 18px; }
  .langbar { position: static; justify-content: center; margin-top: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .tile-body { padding: 28px 22px 34px; }
}
