/* ==========================================================================
   Bridges Environmental Services Company L.L.C. — Abu Dhabi
   Rekonstruktion der Website bridges.ae (Stand 2014–2017)
   Farbwerte und Layout stammen aus dem Original-Stylesheet der Seite.
   ========================================================================== */

:root {
  --green:        #97b214;
  --green-light:  #bee019;
  --green-lighter:#cdea42;
  --green-pale:   #d9ef70;
  --green-dark:   #7c9210;

  --text:         #474747;
  --text-soft:    #616161;
  --text-muted:   #949494;

  --line:         #d5d5d4;
  --line-soft:    #e4e4e1;
  --bg:           #f5f5f4;
  --bg-box:       #ececeb;
  --white:        #ffffff;

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --wrap: 1100px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); }
a:hover { color: var(--green); }

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

/* --------------------------------------------------------------- Topbar */

#topbar {
  background: var(--text);
  color: #d8d8d8;
  font-size: 12px;
  letter-spacing: .04em;
}

#topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
}

#topbar .group-label {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-light);
  letter-spacing: .1em;
  white-space: nowrap;
}

#topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

#topbar a {
  color: #d8d8d8;
  text-decoration: none;
  white-space: nowrap;
}

#topbar a:hover,
#topbar a.active { color: var(--white); }

#topbar a.active {
  font-weight: 600;
  border-bottom: 2px solid var(--green);
}

/* ------------------------------------------------------- Grundgerüst */

#main > .wrap {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  padding-top: 34px;
  padding-bottom: 46px;
}

/* --------------------------------------------------------- Seitenleiste */

.sidebar {
  flex: 0 0 218px;
  position: sticky;
  top: 18px;
}

.sidebar .logo {
  display: block;
  margin-bottom: 22px;
}

.sidebar .logo img { width: 190px; }

.nav-toggle { display: none; }

.nav-list,
.nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li > a {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.nav-list > li > a:hover { color: var(--green-dark); }

.nav-list > li > a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-list ul {
  margin: 2px 0 8px;
  border-left: 2px solid var(--line-soft);
}

.nav-list ul a {
  display: block;
  padding: 5px 10px 5px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
}

.nav-list ul a:hover { color: var(--green-dark); }

.nav-list ul a.active {
  color: var(--green-dark);
  border-left-color: var(--green);
  font-weight: 600;
}

.sidebar .meta {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-muted);
}

.sidebar .meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.sidebar .meta a:hover { color: var(--green-dark); }

/* -------------------------------------------------------------- Inhalt */

.content { flex: 1 1 auto; min-width: 0; }

.box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin-bottom: 18px;
}

.box > *:first-child { margin-top: 0; }
.box > *:last-child  { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--text);
  line-height: 1.22;
  margin: 0 0 .5em;
}

h1 { font-size: 30px; }
h2 { font-size: 23px; margin-top: 1.5em; }
h3 { font-size: 18px; margin-top: 1.5em; font-family: var(--sans); font-weight: 600; }

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 .7em;
}

p { margin: 0 0 1.1em; }

ul.plain { list-style: none; padding: 0; }

.content ul { padding-left: 20px; }
.content li { margin-bottom: .3em; }

.lead { font-size: 16.5px; color: var(--text-soft); }

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 26px 0;
}

/* -------------------------------------------------------------- Button */

.button {
  display: inline-block;
  padding: 7px 17px;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, var(--green-lighter), var(--green));
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.button:hover {
  background: linear-gradient(to bottom, var(--green-pale), var(--green-light));
  color: var(--white);
}

/* ----------------------------------------------------- Teaser-Kacheln */

.tiles {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.tile-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tile:hover {
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .09);
  color: var(--text);
}

.tile .img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 165px;
}

.tile.tall .img { height: 330px; }

/* Logos und Siegel vollständig zeigen statt formatfüllend beschneiden */
.tile .img.contain {
  background-size: contain;
  background-color: var(--white);
  border-bottom: 1px solid var(--line-soft);
}

.tile .body { padding: 20px 22px 22px; }

.tile .kicker { margin-bottom: .5em; }

.tile h2 {
  margin: 0 0 .45em;
  font-size: 21px;
}

.tile p {
  margin: 0 0 1em;
  font-size: 14px;
  color: var(--text-soft);
}

.tile .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
}

.tile .more::after { content: " \203A"; }

/* --------------------------------------------------------- Seitenbild */

.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-box);
}

.hero img { width: 100%; }

.figure {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.figure img { width: 100%; }

.figure figcaption {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------- Personen */

.person {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.person:last-child { margin-bottom: 0; }

.person .portrait {
  flex: 0 0 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.person .about { flex: 1 1 auto; min-width: 0; }

.person h2 { margin-top: 0; }

.person .role {
  font-size: 13px;
  color: var(--text-muted);
  margin: -.4em 0 1em;
}

/* -------------------------------------------------------- Kontaktdaten */

.contact-data {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  font-size: 16px;
}

.contact-data li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-data li:last-child { border-bottom: 0; }

.contact-data .label {
  display: inline-block;
  min-width: 78px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

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

.form-row { margin-bottom: 14px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

.form-row textarea { min-height: 150px; resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green-light);
  outline-offset: 1px;
  border-color: var(--green);
}

.form-cols {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-cols > .form-row { flex: 1 1 220px; margin-bottom: 14px; }

.required { color: var(--green-dark); }

.form-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1em;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
}

fieldset legend {
  padding: 0;
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: .7em;
}

.radio-row label {
  display: inline-block;
  font-weight: normal;
  margin-right: 18px;
  font-size: 15px;
}

/* -------------------------------------------------------------- Footer */

#footer {
  background: var(--text);
  color: #b9b9b9;
  font-size: 13px;
  padding: 26px 0;
}

#footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
}

#footer a {
  color: #d8d8d8;
  text-decoration: none;
}

#footer a:hover { color: var(--white); }

#footer .sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

#footer .company { color: var(--text-muted); }

/* ---------------------------------------------------------- Responsive */

@media (max-width: 860px) {

  #main > .wrap {
    display: block;
    padding-top: 16px;
  }

  .sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .sidebar .logo { margin-bottom: 14px; }
  .sidebar .logo img { width: 160px; }

  /* Navigation klappt auf kleinen Displays zusammen — ohne JavaScript */
  .nav-toggle {
    display: block;
    padding: 9px 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }

  .nav-toggle::-webkit-details-marker { display: none; }

  .nav-toggle::after {
    content: "+";
    float: right;
    color: var(--green-dark);
    font-size: 18px;
    line-height: 1.2;
  }

  details[open] .nav-toggle::after { content: "\2013"; }

  .nav-box .nav-list {
    margin-top: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 10px;
  }

  .tiles { display: block; }
  .tile-col + .tile-col { margin-top: 18px; }
  .tile-col { gap: 0; }
  .tile { margin-bottom: 18px; }
  .tile.tall .img { height: 220px; }

  .box { padding: 22px 20px; }

  h1 { font-size: 25px; }

  .person { display: block; }
  .person .portrait { max-width: 220px; margin-bottom: 14px; }
}

@media (min-width: 861px) {
  /* Auf großen Displays ist die Navigation immer offen */
  .nav-box .nav-list { display: block !important; }
}

@media print {
  #topbar, #footer, .sidebar { display: none; }
  body { background: #fff; }
  .box { border: 0; padding: 0; }
}
