/* ============================================================
   cimpliT – Styles
   ============================================================ */

/* ── FONTS ──────────────────────────────────────────────── */

@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 300;
  src: local('Muli Light'),
       url('../fonts/muli-v12-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 400;
  src: local('Muli Regular'),
       url('../fonts/muli-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 600;
  src: local('Muli SemiBold'),
       url('../fonts/muli-v12-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 700;
  src: local('Muli Bold'),
       url('../fonts/muli-v12-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 800;
  src: local('Muli ExtraBold'),
       url('../fonts/muli-v12-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: local('Oswald Regular'),
       url('../fonts/oswald-v16-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: local('Oswald Medium'),
       url('../fonts/oswald-v16-latin-500.woff2') format('woff2');
}

/* ── RESET / BASE ───────────────────────────────────────── */

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

:root {
  --green:    #8cb63c;
  --dark:     #222222;
  --navy:     #0b0f29;
  --muted-bg: #f0f5e6;
  --text:     #444444;
  --white:    #ffffff;
}

html {
  font-family: 'Muli', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  scroll-behavior: smooth;
}

body { margin: 0; }

a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
a:hover { color: #6a8c2a; text-decoration: underline; }

p { line-height: 24px; margin-bottom: 18px; }
* + p { margin-top: 18px; }

h1, h2, h3, h4, h5 {
  font-family: 'Muli', Helvetica, Arial, sans-serif;
  color: var(--dark);
  margin: 0 0 20px 0;
}

h2 {
  font-size: 25px;
  line-height: 33px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  padding-bottom: 25px;
  color: var(--white);
  text-align: center;
}

h3 { margin-bottom: 15px; }
td { line-height: 18px; }

img { max-width: 100%; height: auto; display: block; border: 0; }
ul  { list-style: none; }

/* ── LAYOUT ─────────────────────────────────────────────── */

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAVBAR ─────────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#navbar .logo-dark  { display: none; }
#navbar .logo-white { display: block; }
#navbar.scrolled .logo-dark  { display: block; }
#navbar.scrolled .logo-white { display: none; }

#navbar.scrolled .nav-links a       { color: var(--text); }
#navbar.scrolled .nav-links a:hover { color: var(--green); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-brand img { width: 180px; }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  font-family: 'Oswald', Helvetica, Arial, sans-serif;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }

/* ── HERO ───────────────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background: url('../images/rathaus.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 41, 0.42);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 20px;
  max-width: 700px;
}

.hero-content .welcome {
  font-size: 32px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin: 0;
}

/* ── ÜBER UNS ───────────────────────────────────────────── */

#section-ueberuns {
  background: var(--white);
  padding: 70px 0;
}

/* ── PORTFOLIO ──────────────────────────────────────────── */

#section-portfolio {
  padding: 70px 0;
  background-color: var(--muted-bg);
  background-image: url('../images/buero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240, 245, 230, 0.88);
}

.portfolio-inner { position: relative; z-index: 1; }

.portfolio-inner h2 {
  color: var(--green);
  text-align: left;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.portfolio-card {
  background: var(--green);
  box-shadow: 0 3px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.portfolio-card:hover h3 { text-decoration: underline; }

.portfolio-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.portfolio-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 20px;
  padding: 10px 10px 14px;
  margin: 0;
}

/* ── PORTFOLIO MODAL ────────────────────────────────────── */

#portfolio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#portfolio-modal.is-open { display: flex; }

.modal-box {
  background: var(--white);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: var(--green);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

#modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
#modal-close:hover { opacity: 1; }

.modal-body {
  padding: 28px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.modal-body p { margin-bottom: 12px; }

/* ── REFERENZEN ─────────────────────────────────────────── */

#section-referenzen {
  padding: 70px 0;
  background: var(--white);
}

#section-referenzen h2 {
  color: var(--green);
  text-align: left;
}

/* Scrolling band */
.ref-slider {
  width: 100%;
  overflow: hidden;
  margin-top: 35px;
  cursor: default;
}

.ref-track {
  display: flex;
  will-change: transform;
}

.ref-slide {
  flex: 0 0 235px;
  height: 170px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.ref-slide-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.52);
  padding: 8px 10px;
}

.ref-slide-label h3 {
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* ── KARRIERE ───────────────────────────────────────────── */

#section-karriere {
  position: relative;
  padding: 80px 0;
  background: url('../images/karriere.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  text-align: center;
}

.karriere-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 41, 0.52);
}

.karriere-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.karriere-content h2 {
  color: var(--white);
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}

.karriere-content p {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  margin-bottom: 28px;
  color: var(--white);
}

.karriere-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  border-radius: 2px;
  background: rgba(0,0,0,0.1);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.karriere-btn:hover {
  background: var(--white);
  color: var(--text);
  text-decoration: none;
}

/* ── PARTNER ────────────────────────────────────────────── */

#section-partner {
  padding: 70px 0;
  background: var(--white);
}

#section-partner h2 {
  color: var(--green);
  text-align: left;
}

.partner-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 10px;
}

.partner-text { flex: 1; }

.partner-text h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 14px;
}

.partner-logo {
  flex-shrink: 0;
  width: 240px;
  padding-top: 6px;
}

/* ── FOOTER ─────────────────────────────────────────────── */

#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col td {
  font-size: 13px;
  line-height: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-col table  { border-collapse: collapse; margin-top: -12px; }
.footer-col td     { padding-right: 12px; line-height: 18px; }

.footer-logo img { width: 160px; margin-bottom: 16px; }

.footer-nav { line-height: 2; }
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--green); text-decoration: none; }

/* Team cards inside footer */
.team-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.team-card {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.team-card img,
.team-card .team-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
  display: block;
}

.team-card .team-photo-placeholder {
  background: rgba(140,182,60,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--green);
}

.team-card .team-name {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  display: block;
}

.team-card .team-title {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}

.team-card .vcard-btn {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.team-card .vcard-btn:hover {
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom ul {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-bottom li { display: flex; align-items: center; }

.footer-bottom li + li::before {
  content: '|';
  margin: 0 12px;
  color: rgba(255,255,255,0.2);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--green); }

/* ── HAMBURGER BUTTON ────────────────────────────────────── */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.2s, transform 0.3s, opacity 0.3s;
}

#navbar.scrolled .nav-burger span { background: var(--text); }

/* Burger → X when open */
.nav-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── MOBILE DRAWER ───────────────────────────────────────── */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(280px, 80vw);
  height: 100vh;
  background: var(--dark);
  z-index: 1100;
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav ul { list-style: none; }

.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--green); text-decoration: none; }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet: ≤ 960px */
@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .partner-inner  { flex-direction: column; }
  .partner-logo   { width: 200px; }
}

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet: ≤ 768px */
@media (max-width: 768px) {
  .nav-links              { display: none; }
  .nav-burger             { display: flex; }
  .mobile-nav,
  .mobile-nav-backdrop    { display: block; }

  .nav-inner { height: 70px; }
  .nav-brand img { width: 150px; }

  .hero-content h1     { font-size: 34px; }
  .hero-content .welcome { font-size: 26px; }

  /* Disable fixed bg on mobile — iOS ignores it anyway */
  #section-portfolio { background-attachment: scroll; }
  #section-karriere  { background-attachment: scroll; }

  .footer-col p,
  .footer-col td { font-size: 13px; line-height: 18px; }

  .ref-slide { flex: 0 0 200px; height: 150px; }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid    { grid-template-columns: 1fr; gap: 28px; }
  .team-cards     { gap: 12px; }

  .hero-content h1     { font-size: 26px; line-height: 1.25; }
  .hero-content .welcome { font-size: 20px; }

  #section-ueberuns { padding: 48px 0; }
  #section-portfolio,
  #section-referenzen,
  #section-partner  { padding: 48px 0; }
  #section-karriere { padding: 60px 0; }

  .partner-logo { width: 160px; }

  .ref-slide { flex: 0 0 160px; height: 130px; }
  .ref-slide-label h3 { font-size: 11px; }
}

/* Small mobile: ≤ 400px */
@media (max-width: 400px) {
  .hero-content h1     { font-size: 22px; }
  .hero-content .welcome { font-size: 17px; }
  .nav-brand img { width: 130px; }
  .team-card .team-photo-placeholder,
  .team-card img { width: 70px; height: 70px; }
}
