/* ==========================================================================
   Optik Scheuerer – statische Website
   Aussehen dem bisherigen Joomla-Template (GavickPro „University“) nachempfunden.
   Farben: Blau #006eb6, Hellblau #3eb3ff, Text #777, Überschriften #1b1d1f
   ========================================================================== */

/* ---- Schriften (Raleway, SIL Open Font License) ---- */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/raleway-v28-latin-regular.woff2') format('woff2'), url('../fonts/raleway-v28-latin-regular.woff') format('woff'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/raleway-v28-latin-500.woff2') format('woff2'), url('../fonts/raleway-v28-latin-500.woff') format('woff'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/raleway-v28-latin-700.woff2') format('woff2'), url('../fonts/raleway-v28-latin-700.woff') format('woff'); }

/* ---- Grundlagen ---- */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; -webkit-font-smoothing: subpixel-antialiased; }
body {
  margin: 0; padding: 0; min-height: 100%;
  background: #fff url('../images/bg.jpg') no-repeat center top;
  color: #777; font: 300 14px/1.6 Arial, Helvetica, sans-serif;
  word-wrap: break-word;
}
body.frontpage { background-image: none; }
a { color: #006eb6; text-decoration: none; transition: color .2s linear; }
a:hover, a:focus, a:active { color: #010101; }
h1, h2, h3, h4, h5, h6 { color: #1b1d1f; font-weight: 500; line-height: 1.2; margin: 0; padding: 0; }
h1 { font-size: 40px; }
h2 { font-size: 36px; }
h3 { font-family: 'Raleway', Arial, sans-serif; font-size: 30px; text-transform: uppercase; }
h4 { font-size: 20px; font-weight: 700; margin: 32px 0 0; }
p { margin: 1em 0 2em; }
ul { list-style: none; margin: 0; padding: 0; }
ul li { line-height: 1.7; }
img { max-width: 100%; height: auto; }
address { font-style: italic; }
b, strong { font-weight: 700; }
.clear { clear: both; height: 1.6em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Seitenbreite ---- */
.page { max-width: 1240px; margin: 0 auto; padding: 0; }
#wrap { overflow: hidden; width: 100%; transition: margin-left .3s ease-out; }

/* ---- Kopfbereich ---- */
#header { margin: 0; padding: 0; position: relative; }
#header.page { padding: 150px 0 0 !important; }
#header-nav {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
  margin: 10px 0 0; padding: 0;
}
#header-nav > .page { position: relative; }
#header-nav > .page::after { content: ""; display: table; clear: both; }
#logo {
  float: left; display: block; margin: 0 24px 0 0; padding: 0;
  width: 500px; height: 97px; text-indent: -999em; overflow: hidden;
  background: url('../images/logo.svg') no-repeat center center / contain;
}
#main-menu { float: right; padding: 36px 0 0; text-align: center; }
#main-menu > ul { display: flex; }
#main-menu > ul > li { display: inline-block; position: relative; height: 40px; line-height: 40px; font-size: 18px; text-transform: uppercase; }
#main-menu > ul > li > a {
  display: block; height: 40px; line-height: 40px; padding: 0 12px; color: #fff;
  background: rgba(0, 110, 182, .9); transition: color .3s ease-out;
}
#main-menu > ul > li:first-child > a { padding-left: 20px; }
#main-menu > ul > li:last-child > a { padding-right: 20px; }
#main-menu > ul > li > a:hover, #main-menu > ul > li > a:focus { color: #3eb3ff; }
#main-menu > ul > li.active > a { color: #fff; }
#main-menu > ul > li.active > a:hover { color: #3eb3ff; }
#main-menu .submenu {
  position: absolute; left: -999em; top: 40px; z-index: 999; width: 170px; margin-left: -11px;
  padding: 12px 0 8px; background: #fff; border: 1px solid #eee; text-align: left; text-transform: none;
}
#main-menu > ul > li:hover > .submenu, #main-menu > ul > li:focus-within > .submenu { left: 11px; }
#main-menu .submenu li { font-size: 12px; font-weight: 300; line-height: 1; padding: 0 20px; }
#main-menu .submenu a { display: block; padding: 7px 0; color: #777; }
#main-menu .submenu a:hover, #main-menu .submenu a:focus, #main-menu .submenu li.active a { color: #3eb3ff; }
#menu-toggle { display: none; }

/* ---- Slider / Kopfbild ---- */
#header-bg { position: relative; }
.slider { position: relative; overflow: hidden; width: 100%; min-height: 896px; background: #e3e2e1; }
.slider figure {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1720px; height: 896px; margin: 0;
  background-position: center top; background-repeat: no-repeat; background-size: 1720px 896px;
}
.slider figcaption {
  position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%);
  width: 100%; max-width: 1240px; z-index: 2;
}
.slider figcaption > div { float: left; width: 69%; padding: 20px; margin: 0; }
.slider figcaption h2 {
  color: #fff; font-family: 'Raleway', Arial, sans-serif; font-size: 50px; font-weight: 300; line-height: 54px;
  text-transform: uppercase; text-shadow: 3px 3px 3px rgba(0, 0, 0, .8); margin: 0;
}
.slider figcaption h2 strong { font-weight: 700; }
.slider figcaption p {
  color: #fff; font-family: 'Raleway', Arial, sans-serif; font-size: 24px; font-weight: 300; line-height: 30px;
  margin: 20px 0; width: 80%; text-shadow: 2px 2px 2px rgba(0, 0, 0, .8);
}
.slider figcaption p strong { font-weight: 700; }
.slider .progress { display: block; width: 25%; height: 5px; margin: 15px 0 0; border: 1px solid #006eb6; overflow: hidden; }
.slider .progress span { display: block; width: 100%; height: 6px; margin-left: -100%; background: #006eb6; }

/* Slideshow ohne JavaScript: Überblendung per CSS-Animation */
.slider figure { opacity: 1; }
.slider-5 figure, .slider-7 figure, .slider-2 figure { opacity: 0; animation-iteration-count: infinite; animation-timing-function: linear; }
.slider-5.slider-8s figure { animation-name: fade5; animation-duration: 40s; }
.slider-5.slider-8s figure:nth-child(1) { animation-delay: 0s; }
.slider-5.slider-8s figure:nth-child(2) { animation-delay: 8s; }
.slider-5.slider-8s figure:nth-child(3) { animation-delay: 16s; }
.slider-5.slider-8s figure:nth-child(4) { animation-delay: 24s; }
.slider-5.slider-8s figure:nth-child(5) { animation-delay: 32s; }
.slider-5.slider-8s .progress span { animation: progress 8s linear infinite; }
@keyframes fade5 { 0% { opacity: 0; } 2% { opacity: 1; } 20% { opacity: 1; } 22% { opacity: 0; } 100% { opacity: 0; } }
.slider-7.slider-6s figure { animation-name: fade7; animation-duration: 42s; }
.slider-7.slider-6s figure:nth-child(1) { animation-delay: 0s; }
.slider-7.slider-6s figure:nth-child(2) { animation-delay: 6s; }
.slider-7.slider-6s figure:nth-child(3) { animation-delay: 12s; }
.slider-7.slider-6s figure:nth-child(4) { animation-delay: 18s; }
.slider-7.slider-6s figure:nth-child(5) { animation-delay: 24s; }
.slider-7.slider-6s figure:nth-child(6) { animation-delay: 30s; }
.slider-7.slider-6s figure:nth-child(7) { animation-delay: 36s; }
.slider-7.slider-6s .progress span { animation: progress 6s linear infinite; }
@keyframes fade7 { 0% { opacity: 0; } 1.5% { opacity: 1; } 14.3% { opacity: 1; } 15.8% { opacity: 0; } 100% { opacity: 0; } }
.slider-2.slider-6s figure { animation-name: fade2; animation-duration: 12s; }
.slider-2.slider-6s figure:nth-child(1) { animation-delay: 0s; }
.slider-2.slider-6s figure:nth-child(2) { animation-delay: 6s; }
.slider-2.slider-6s .progress span { animation: progress 6s linear infinite; }
@keyframes fade2 { 0% { opacity: 0; } 5% { opacity: 1; } 50% { opacity: 1; } 55% { opacity: 0; } 100% { opacity: 0; } }
@keyframes progress { 0% { margin-left: -100%; } 100% { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .slider figure { animation: none !important; opacity: 0; }
  .slider figure:first-child { opacity: 1; }
  .slider .progress span { animation: none !important; margin-left: 0; }
}

/* ---- Hinweispfeil unten im Kopfbild (klickbar, hüpft langsam) ---- */
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 44px; height: 44px; margin-left: -22px; z-index: 20; opacity: .9; transition: opacity .4s; animation: hint-bounce 2.4s ease-in-out infinite; }
.scroll-hint::before { content: ""; position: absolute; left: 11px; top: 6px; width: 20px; height: 20px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.scroll-hint:hover, .scroll-hint:focus { opacity: 1; }
body.scrolled .scroll-hint { opacity: 0; pointer-events: none; }
@keyframes hint-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* ---- Info-Kasten rechts im Kopfbild (Startseite) ---- */
#header-modules { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; z-index: 10; }
#header-right { position: absolute; bottom: 0; right: 0; width: 270px; }
.box.box-transparent { background: rgba(0, 110, 182, .9); color: #eee; font-size: 13px; padding: 20px 40px; }
.box-transparent li { border-bottom: 1px solid #fff; padding: 18px 0; line-height: 1.6; }
.box-transparent h3 { font-size: 16px; font-weight: 500; margin: 0 0 10px; text-transform: none; }
.box-transparent a { color: #fff; }
.box-transparent a:hover, .box-transparent a:focus { color: #3eb3ff; }
.box-transparent p { margin: 0; color: #fff; white-space: nowrap; }

/* ---- Inhalt ---- */
#page-content { background: #fff; width: 100%; }
.frontpage #page-content { padding: 70px 0; }
#page-content.page { padding: 60px; }
#mainbody { margin-bottom: 60px; }
.frontpage #mainbody { margin-bottom: 0; }
article h1 { font-size: 36px; line-height: 1; margin: 0 0 24px; }
.box { color: #555; line-height: 1.6; width: 100%; }
.box .header { color: #010101; font-family: 'Raleway', Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 1; padding: 0 0 20px; text-transform: uppercase; }
.box-intro .header { font-size: 24px; }
.box-intro p { margin: 1em 0 2em; }
.notice { text-align: center; font-size: 1.4em; font-weight: bold; color: #c00; margin: 0 0 15px; }

/* Spalten */
.cols { margin: 0 -20px; width: auto; }
.cols::after { content: ""; display: table; clear: both; }
.cols > div { float: left; padding: 0 20px; }
.cols[data-cols="2"] > div { width: 50%; }
.cols[data-cols="3"] > div { width: 33.333%; }

/* Bild + Text (Fachseiten, Team) */
.content-image { float: left; width: 40%; height: auto; }
.team-image { float: left; width: 20%; height: auto; }
.content-text { width: 100%; font-family: 'Raleway', Arial, sans-serif; }
.content-image + .content-text { float: right; width: 60%; padding: 0 0 0 60px; }
.team-image + .content-text { float: right; width: 80%; padding: 0 0 0 60px; }
.content-text p { font-size: 14px; margin: 0 0 16px; }
.content-text h3 { margin: 0; }
.content-text h4 { font-family: Arial, Helvetica, sans-serif; }
article > .content-image, article > div > .content-image { margin-top: 0; }
article > div::after { content: ""; display: table; clear: both; }
.cols > div::after { content: ""; display: table; clear: both; }

/* Aufzählungen mit Punkt */
ul.bullets { margin: 2em 0; padding: 0; }
ul.bullets li { position: relative; list-style: none; padding: 2px 0 2px 32px; }
ul.bullets li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #111; }
ul.bullets ul.bullets { margin: 1em 0; }
article ul.bullets h4 { margin-top: 24px; }

/* Kontakt */
.contact::after { content: ""; display: table; clear: both; }
.contact-details { float: left; width: 50%; margin-right: 5%; }
.contact-image { float: left; width: 45%; }
.contact-address { margin: 30px 0; }
.contact .label { color: #010101; font-size: 12px; font-weight: 700; }
.contact h2 { margin: 0 0 12px; }
.contact-info div { line-height: 1.6; }
.route { margin: 30px 0 0; }
.route small { display: inline-block; margin-top: 8px; font-size: 12px; color: #999; }
.button { display: inline-block; background: #006eb6; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; padding: 10px 20px; line-height: 1.4; transition: background .2s linear; }
.button:hover, .button:focus { background: #3eb3ff; color: #fff; }

/* Sitemap */
.sitemap h1 { font-size: 36px; margin: 0 0 24px; }
.sitemap ul { margin: 0 0 9px 25px; list-style: disc; }
.sitemap ul ul { margin-top: 4px; }
.sitemap li { line-height: 1.7; }
.sitemap .separator { color: #1b1d1f; font-weight: 700; }

/* Seitentitel-Balken (Impressum usw.) */
#page-title { color: #fff; font-size: 36px; padding: 80px 0 0; text-transform: uppercase; }
#page-title span { background: #0f1725; padding: 2px 12px; display: inline-block; }

/* ---- Bewerbungsblock (Team) ---- */
#bottom-single { padding: 90px 0 65px; color: #555; overflow: hidden; }
#page-content + #bottom-single::before {
  content: ""; display: block; height: 1px; border-top: 1px solid #e5e5e5; position: relative; top: -60px; width: 100%;
}
#bottom-single h2 { margin: 0 0 20px; }
#bottom-single h4 { margin: 24px 0 0; }
#bottom-single p { margin: 1em 0 0; }

/* ---- Grauer Kontaktbalken ---- */
#contact-bar { background: #f1f1f1; overflow: hidden; clear: both; }
#contact-bar > .page { display: table; width: 100%; }
#contact-bar .box { display: table-cell; vertical-align: top; float: none; margin: 0; padding: 30px; width: 40%; }
#contact-bar .box-blue { background: #006eb6; color: rgba(255, 255, 255, .7); padding: 42px; width: 20%; }
#contact-bar .box-blue .header { color: #fff; }
#contact-bar .box p { margin: 1em 0 2em; }
#contact-bar .box .cols p { margin: 1em 0; }
.social li { display: inline-block; margin: 0 2px 0 0; padding: 0; height: 27px; line-height: 27px; width: 25px; text-align: center; }
.social a { color: #fff; display: inline-block; }
.social a:hover, .social a:focus { color: rgba(255, 255, 255, .75); }
.social svg { vertical-align: middle; }

/* ---- Fußzeile ---- */
#footer { color: #666; font-size: 12px; line-height: 2; text-align: center; }
#footer > .page { border-top: 1px solid #e5e5e5; }
#footer strong { color: #000; }
#footer a { color: #666; font-weight: 700; }
#footer a:hover, #footer a:focus { color: #006eb6; }
#footer-nav { margin: 45px auto 5px; }
#footer-nav li { display: inline-block; line-height: 1; padding: 0 8px; }
#footer-nav li::before { content: "|"; position: relative; left: -8px; }
#footer-nav li:first-child::before { display: none; }
#copyright { margin: 0 auto 20px; }

/* ---- Mobiles Menü (seitlich einfahrend) ---- */
#menu-toggle, #menu-close { background: none; border: 0; cursor: pointer; padding: 0; }
#aside-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 0; overflow: hidden; z-index: 1000;
  background: #152136; transition: width .3s ease-out;
}
#aside-menu > ul { padding: 20px 32px; min-width: 280px; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
#aside-menu li { font-size: 15px; font-weight: 600; padding: 4px 0; text-transform: uppercase; }
#aside-menu li li { font-size: 14px; font-weight: 400; text-transform: none; }
#aside-menu li a { color: #eee; }
#aside-menu li li a { color: #999; }
#aside-menu li a:hover, #aside-menu li a:focus, #aside-menu li.active > a { color: #3eb3ff; }
#aside-menu li.has-children > a { pointer-events: none; }
#menu-close { position: fixed; top: 25px; right: 0; color: #3eb3ff; opacity: 0; z-index: 1001; transition: all .3s ease-out; pointer-events: none; }
body.menu-open #wrap { margin-left: -280px; }
body.menu-open #aside-menu { width: 280px; }
body.menu-open #menu-close { opacity: 1; right: 10px; pointer-events: auto; }

/* ==========================================================================
   Responsiv
   ========================================================================== */
@media (max-width: 1240px) {
  .page { padding-left: 10px; padding-right: 10px; }
  #page-content.page { padding: 60px 10px; }
  #header-right { right: 10px; }
  .slider figcaption h2 { font-size: 48px; }
  .slider figcaption p { font-size: 14px; }
}

@media (max-width: 1040px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  article h1 { font-size: 32px; }
  #main-menu { display: none; }
  #menu-toggle {
    display: block; float: right; width: 44px; height: 44px; margin: 10px 0 9px; color: #006eb6; text-align: center;
  }
  .slider, .slider figure { min-height: 542px; height: 542px; }
  .slider figure { max-width: 1040px; background-size: 1040px 542px; }
  .slider figcaption h2 { font-size: 32px; line-height: 40px; }
  .slider figcaption p { margin: 10px 0; }
  .frontpage #page-content { padding: 30px 0; }
  #mainbody { margin-bottom: 30px; }
  .box-transparent { padding: 20px; }
  .box-transparent li { padding: 10px 0; }
  #bottom-single { padding: 50px 0; }
  .contact-image { float: left; clear: both; padding-top: 20px; }
}

@media (max-width: 840px) {
  .content-image + .content-text { padding: 0 0 0 30px; }
  .team-image + .content-text { padding: 0 0 0 30px; }
}

@media (max-width: 640px) {
  #header-right { display: none; }
  #logo { max-width: 140px; height: 60px; margin: 0; }
  #menu-toggle { margin-top: 8px; }
  .slider, .slider figure { min-height: 334px; height: 334px; }
  .slider figure { max-width: 640px; background-size: 640px 334px; }
  .slider figcaption { top: 75%; }
  .slider figcaption > div { width: 100%; }
  .slider figcaption h2 { font-size: 17px; line-height: 20px; }
  .slider figcaption p { font-size: 12px; line-height: 1.2; margin: 10px 0; width: 100%; }
  .cols { margin: 0; }
  .cols[data-cols="2"] > div, .cols[data-cols="3"] > div { width: 100%; padding: 0 0 20px; }
  #mainbody .box, #contact-bar .box { clear: both; float: none; margin: 0 auto 20px; max-width: 300px; width: 100%; }
  #contact-bar > .page { display: block; }
  #contact-bar .box, #contact-bar .box-blue { display: block; width: 100%; }
  .content-image, .team-image, .content-text { float: none; width: 100%; margin: 10px 0; padding: 0; }
  .contact-details, .contact-image { float: none; width: 100%; margin: 0; }
  #bottom-single { padding: 20px 0; }
  #page-title { padding-top: 40px; font-size: 28px; }
}
