/* Cellergy – schlanker Nachbau des Joomla-Templates "cellergy" (Protostar/Bootstrap 2) */
:root {
  --blue: #0071bb;
  --orange: #cc7d44;
  --orange-dark: #d68448;
  --text: #424242;
  --muted: #999;
  --line: #ddd;
  --box-bg: #f5f5f5;
  --max: 940px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 14px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

h1, h2, h3, h4, h5 { color: #333; line-height: 1.3; margin: 1.2em 0 .5em; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4, h5 { font-size: 15px; }

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

/* Kopf ------------------------------------------------------------------ */
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 10px; }
.header .brand img { display: block; width: 157px; }
.header .escan img { display: block; max-width: 180px; }

/* Navigation ------------------------------------------------------------- */
.nav { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav > li { position: relative; }
.nav a { display: block; padding: 8px 12px; border-radius: 5px; color: var(--blue); font-weight: bold; font-size: 13px; }
.nav a:hover, .nav a:focus { background: #eee; text-decoration: none; }
.nav .active > a { color: var(--orange); }
.nav ul {
  display: none; position: absolute; top: 100%; left: 0; z-index: 10;
  list-style: none; margin: 0; padding: 5px 0; min-width: 240px;
  background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
}
.nav li:hover > ul, .nav li:focus-within > ul { display: block; }
.nav ul a { font-weight: normal; border-radius: 0; padding: 4px 15px; }
.nav ul a:hover { background: var(--blue); color: #fff; }

/* Banner ------------------------------------------------------------------ */
.banner { position: relative; margin-bottom: 30px; }
.banner img { display: block; width: 100%; }
.banner-typo {
  position: absolute; left: 50px; bottom: 30px; margin: 0;
  font: 40px/44px "Noto Sans", sans-serif; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* Inhalt + Seitenleiste --------------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
.content > :first-child { margin-top: 0; }
.content table { border-collapse: collapse; }
.content td { padding: 0 12px 0 0; vertical-align: top; }
.content td p { margin: 0; }
.content iframe { max-width: 100%; }

.page-header { font-size: 24px; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #eee; }

.blog-item { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #eee; overflow: hidden; }
.blog-item h2 { font-size: 20px; margin-top: 0; }
.blog-item .date { color: var(--muted); font-size: 12px; margin: -6px 0 10px; }
.readmore { display: inline-block; margin-top: 6px; padding: 4px 12px; border: 1px solid #ccc; border-radius: 4px; background: #f5f5f5; font-size: 13px; }
.news ul { list-style: none; padding-left: 0; }

.rbox {
  background: var(--box-bg); border: 1px solid #aaa; border-radius: 3px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .2); margin: 6px 0 16px; padding: 10px 10px 20px;
  text-shadow: 0 1px rgba(255, 255, 255, .8);
}
.rbox h3 {
  margin: -10px -10px 10px; padding: 8px 10px; border-radius: 3px 3px 0 0;
  background: linear-gradient(to bottom, #e88e4c, var(--orange-dark));
  color: #f6f6f6; font-size: 14px; font-weight: normal;
  text-shadow: 0 1px #a96839, 0 0 .2em rgba(0, 0, 0, .7);
}
.rbox p { margin: 0 0 10px; }

.map-link { display: inline-block; margin: 8px 0 16px; }

/* Fuss ------------------------------------------------------------------ */
.footer { margin-top: 40px; padding: 20px 0 30px; border-top: 1px solid #eee; color: #aaa; font-size: 13px; }
.footer a { color: #aaa; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Mobil ------------------------------------------------------------------ */
@media (max-width: 767px) {
  .layout { grid-template-columns: 1fr; }
  .banner-typo { left: 16px; bottom: 12px; font-size: 22px; line-height: 26px; }
  .nav ul { display: none !important; }
  .content img[style*="float"] { float: none !important; display: block; margin: 0 0 12px !important; }
  .header .escan img { max-width: 120px; }
}
