/* sim-messebau.de — lean hand-written stylesheet.
   Reproduces the original "Agency" look (brand blue #265695) without
   Bootstrap, jQuery, Font Awesome or the theme JS. */

:root {
  --blue: #265695;
  --blue-dark: #1f4778;
  --steel: #36648b;
  --ink: #333;
  --muted: #777;
  --light: #f7f7f7;
  --nav-h: 64px;
}

/* ---- self-hosted fonts ---- */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap;
  src: url(/fonts/Montserrat_400.woff2) format("woff2"), url(/fonts/Montserrat_400.woff) format("woff"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap;
  src: url(/fonts/Montserrat_700.woff2) format("woff2"), url(/fonts/Montserrat_700.woff) format("woff"); }
@font-face { font-family: "Droid Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/fonts/Droid_Serif_400.woff2) format("woff2"), url(/fonts/Droid_Serif_400.woff) format("woff"); }
@font-face { font-family: "Droid Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url(/fonts/Droid_Serif_400italic.woff2) format("woff2"), url(/fonts/Droid_Serif_400italic.woff) format("woff"); }
@font-face { font-family: "Droid Serif"; font-weight: 700; font-display: swap;
  src: url(/fonts/Droid_Serif_700.woff2) format("woff2"), url(/fonts/Droid_Serif_700.woff) format("woff"); }

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Droid Serif", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4, h5 { font-family: "Montserrat", Helvetica, Arial, sans-serif; font-weight: 700; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
section a:hover { text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ---- top navigation ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--blue);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; min-height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #fff; text-decoration: none; text-transform: uppercase;
  font-family: "Montserrat", Helvetica, Arial, sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .04em;
  padding: 10px 12px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a:focus { color: #cfe0ff; }
.nav-links a[aria-current="page"] { border-bottom-color: #fff; }
.nav-links .lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.nav-links .lang-switch img { height: 14px; width: auto; }

/* burger (mobile) */
.nav-toggle, .nav-burger { display: none; }
.nav-burger { margin-left: auto; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 24px; height: 3px; margin: 4px 0; background: #fff; border-radius: 2px; }

main { padding-top: var(--nav-h); }

/* ---- carousel ---- */
.carousel { position: relative; overflow: hidden; background: #000; }
.carousel-inner { position: relative; }
.carousel .item { display: none; }
.carousel .item.active { display: block; }
.carousel .item img { width: 100%; display: block; object-fit: cover; max-height: 70vh; margin: 0 auto; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 24px; text-align: center;
  padding: 0 12px;
}
.carousel-caption a { text-decoration: none; }
.will, .carousel-caption p.will {
  display: inline-block; margin: 0;
  font-family: "Montserrat", Helvetica, Arial, sans-serif; font-weight: 700;
  color: var(--blue); background: rgba(255, 255, 255, .82);
  padding: 8px 16px; border-radius: 2px; font-size: 1.05rem;
}
.carousel-control {
  position: absolute; top: 0; bottom: 0; width: 56px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.4rem; text-decoration: none;
  background: none; border: 0; cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.carousel-control.left { left: 0; }
.carousel-control.right { right: 0; }
.carousel-control:hover { color: #cfe0ff; }
.carousel-control .sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.carousel-indicators {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.carousel-indicators li {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid #fff; background: transparent; cursor: pointer;
}
.carousel-indicators li.active { background: #fff; }

/* ---- sections ---- */
section { padding: 36px 0 50px; }
section .container > .row:first-child { margin-top: 0; }
h2.section-heading {
  text-align: center; text-transform: uppercase; color: var(--ink);
  font-size: 1.7rem; margin: 0 0 .4em;
}
h2.section-heading a { color: inherit; text-decoration: none; }
h2.section-heading::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: var(--blue); margin: 14px auto 0;
}
h3.section-subheading {
  text-align: center; text-transform: none; font-weight: 400;
  font-style: italic; color: var(--muted); font-family: "Droid Serif", serif;
  margin: 0 0 28px; font-size: 1.05rem;
}
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ---- grid (flex replacement for Bootstrap row/col) ---- */
.row { display: flex; flex-wrap: wrap; margin: 16px -12px 0; }
.row > [class*="col-"] { padding: 0 12px; flex: 1 1 100%; }
.col-lg-12 { flex: 1 1 100%; max-width: 100%; margin: 0 auto; }
.col-md-4 { flex: 1 1 33.333%; max-width: 33.333%; }
.col-md-8 { flex: 1 1 66.666%; max-width: 66.666%; margin: 0 auto; }
.col-lg-12.text-center { max-width: 820px; }

/* ---- portfolio cards ---- */
.portfolio-item { margin-bottom: 28px; text-align: center; }
.portfolio-item .portfolio-caption h4 { margin: 0 0 12px; }
.portfolio-item .portfolio-caption h4 a { color: var(--blue); text-decoration: none; }
.portfolio-item .portfolio-link { display: block; }
.portfolio-item .portfolio-link img { border-radius: 2px; }
.portfolio-item p.info { text-align: left; margin-top: 16px; }
.portfolio-item ul.list, ul.list {
  text-align: left; margin-top: 14px; padding-left: 20px;
}
ul.list li { margin: 2px 0; }

/* ---- team ---- */
#team .team-member { text-align: center; margin-bottom: 1.5em; }
.team-member h4 { margin: 0 0 6px; color: var(--blue); }
.team-member p { margin: 0; font-size: .95rem; }

/* ---- contact / map ---- */
#contact { background: var(--light); }
.img-centered { display: block; margin: 0 auto; }
#contact img { border-radius: 2px; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); }

/* ---- kontakt: planungsbogen download + imprint ---- */
.plandwl { margin: 12px auto; border-collapse: collapse; }
.plandwl td { padding: 8px 12px; vertical-align: middle; }
.planicon { width: 56px; height: auto; }
.printdwl { display: inline-block; margin-top: 10px; font-weight: 700; }
#imprint .col-md-8, #imprint [class*="col-"] { text-align: left; }
#imprint h3 { margin: 18px 0 4px; font-size: 1.05rem; }

/* ---- footers ---- */
.footer-contact { background: var(--light); padding: 28px 0; border-top: 1px solid #e6e6e6; }
.footer-name { text-align: center; margin: 0 0 18px; }
.footer-name a { color: var(--blue); text-decoration: none; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-cols > p { flex: 1 1 30%; margin: 0; font-size: .9rem; color: var(--muted); }
.footer-contact a { color: var(--blue); }
.footer-bottom { background: var(--blue); color: #fff; padding: 16px 0; }
.footer-bottom .footer-cols > p { color: #fff; text-align: center; }
.footer-bottom a { color: #fff; text-decoration: none; padding-left: 4px; border-left: 2px solid transparent; }
.footer-bottom a:hover { border-left-color: #fff; }

/* ---- responsive ---- */
@media (min-width: 768px) {
  h2.section-heading { font-size: 2.1rem; }
  .will, .carousel-caption p.will { font-size: 1.4rem; }
}

@media (max-width: 800px) {
  .col-md-4 { flex: 1 1 50%; max-width: 50%; }
}

@media (max-width: 720px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue-dark); margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 420px; }
  .nav-links a { padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-links a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .15); }
  .col-md-4, .col-md-8 { flex: 1 1 100%; max-width: 100%; }
  .footer-cols { flex-direction: column; }
  .footer-cols > p { flex: 1 1 100%; text-align: center; }
}

/* Phone links: clickable but visually identical to surrounding text */
a[href^="tel:"] { color: inherit; text-decoration: none; }
a[href^="tel:"]:hover { text-decoration: underline; }
