/* =========================================================
   Immokonto – Stylesheet (Nachbau des Joomla-Templates "mmokonto-start")
   Schriften lokal eingebunden (keine Verbindung zu Google, DSGVO).
   Die Schriftdateien liegen in /assets/fonts/ (siehe LIESMICH.md).
   ========================================================= */

@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/oswald-v53-latin_latin-ext-300.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/oswald-v53-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/oswald-v53-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-family: 'Arimo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/arimo-v29-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Arimo'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/arimo-v29-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Arimo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/arimo-v29-latin-700.woff2') format('woff2'); }

:root {
  --blau: #407b9b;      /* Topline, aktiver Menüpunkt */
  --blau-dunkel: #304867; /* Überschriften */
  --tuerkis: #50b5d0;   /* Untermenü */
  --tuerkis-dunkel: #3f96a9;
  --text: #666;
  --grau: #404040;
  --footer: #5f5f5f;
  --footer-in: #676767;
  --footer-text: #b9b9b9;
  --orange: #ff6600;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Arimo', Arial, 'Liberation Sans', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; font-family: var(--body); font-size: 14px; line-height: 23px; color: var(--text); }
img { border: 0; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
a:hover, a:focus { color: var(--orange); }
:focus-visible { outline: 2px solid var(--tuerkis-dunkel); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1020px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 6px 10px; z-index: 1000; }

/* ---------- Kopf ---------- */
#topline { height: 4px; background: var(--blau); }

#top-menue { display: flex; justify-content: flex-end; align-items: flex-start; height: 19px; position: relative; }
.menu-top { list-style: none; margin: 0; padding: 0; text-align: right; }
.menu-top li { display: inline; padding: 10px; }
.menu-top a { font-family: Tahoma, Verdana, Geneva, sans-serif; font-size: 11px; color: #6a6a6a; line-height: 20px; }
.menu-top a:hover { color: #ccc; }
.login-btn { position: absolute; right: 20px; top: 40px; z-index: 10; line-height: 0; }

#logo { height: 30px; }
#logo img { display: block; }

#main-menue { padding: 10px 0 0 40px; height: 70px; }
.dj-main { list-style: none; margin: 0; padding: 0; height: 60px; display: flex; position: relative; z-index: 500; }
.dj-main > li { position: relative; }
.dj-main > li > a { display: block; height: 60px; line-height: 58px; padding: 0 21px 0 18px;
  font-family: var(--head); font-weight: 300; font-size: 14px; text-transform: uppercase; color: var(--grau); }
.dj-main > li:hover > a, .dj-main > li:focus-within > a { color: var(--blau); }
.dj-main > li.active > a { background: var(--blau); color: #fff; }

.dj-submenu { list-style: none; margin: 0; padding: 3px; position: absolute; left: 0; top: 54px; width: 186px;
  background: var(--tuerkis); display: none; z-index: 300; }
.dj-main li:hover > .dj-submenu, .dj-main li:focus-within > .dj-submenu { display: block; animation: einblenden .25s ease; }
.dj-submenu a { display: block; padding: 11px 10px; line-height: 18px; font-family: var(--head); font-weight: 300;
  font-size: 12px; text-transform: uppercase; color: #fff; }
.dj-submenu a:hover, .dj-submenu a:focus, .dj-submenu a.active { background: var(--tuerkis-dunkel); color: #fff; }
@keyframes einblenden { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.nav-toggle { display: none; }

/* Kopfbilder-Slider (Überblendung wie Nivo-Slider: 3,5 s Überblendung, 6 s Standzeit) */
.slider { position: relative; max-width: 1020px; margin: 0 auto; aspect-ratio: 1020 / 320; overflow: hidden; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 3.5s ease; }
.slider img.is-active { opacity: 1; }

/* ---------- Inhalt ---------- */
#pfad { font-size: 11px; line-height: 13px; border-bottom: 1px dotted #c0c0c0; padding: 6px 0 5px; }
.breadcrumb { list-style: none; margin: 0; padding: 0; color: #858181; }
.breadcrumb li { display: inline; padding-right: 5px; }
.breadcrumb li + li::before { content: '›'; padding-right: 5px; }
.breadcrumb a { color: var(--blau-dunkel); }

.spalten { display: flex; gap: 0; }
#mit { flex: 0 0 262px; padding: 20px 0 0 10px; }
#mit .seitenbild { display: block; margin: 36px auto 0; }
.ohnecontent { flex: 1 1 738px; min-width: 0; padding: 0 0 20px; }
.mitcontent { flex: 1 1 100%; padding: 0 0 20px; }

.item-page { padding: 30px; }
.item-page.start { padding: 15px 15px 15px 35px; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 300; color: var(--blau-dunkel); }
h1 { font-size: 30px; line-height: 1.2; margin: 30px 0 15px; }
h2 { font-size: 18px; line-height: 1.3; margin: 0 0 10px; }
h3 { font-size: 14px; text-shadow: 2px 2px 2px #eaeaea; padding: 10px 0 3px; margin: 0; }
p { margin: 0 0 14px; line-height: 18px; }
.ohnecontent p, .ohnecontent li { line-height: 23px; }
.ohnecontent ul { padding-left: 20px; }
.ohnecontent li { margin-bottom: 8px; list-style: none; position: relative; }
.ohnecontent li::before { content: ''; position: absolute; left: -16px; top: 8px; border: 4px solid transparent; border-left: 6px solid var(--blau); }

/* Seitenmenü "Unsere Leistungen" */
.menu-sub { list-style: none; margin: 0; padding: 50px 0 0; }
.menu-sub a { display: block; text-align: right; font-size: 12px; line-height: 32px; color: #3b3b3b;
  border-bottom: 2px solid #ececec; padding-right: 20px;
  background: url('/images/template/menue-sub.png') no-repeat right center; }
.menu-sub a:hover, .menu-sub li.active a { color: var(--orange); }

.zentriert { display: block; margin: 20px auto; }
.hinweis { background: #f2f7fa; border-left: 4px solid var(--blau); padding: 12px 15px; margin: 20px 0; }

/* ---------- Formulare ---------- */
.formular fieldset { border: 0; border-top: 1px dotted #c0c0c0; padding: 15px 0 5px; margin: 20px 0 0; }
.formular legend { font-family: var(--head); font-weight: 300; font-size: 16px; color: var(--blau-dunkel); padding-right: 8px; }
.feld { display: grid; grid-template-columns: 220px 1fr; gap: 6px 15px; align-items: start; margin-bottom: 10px; }
.feld label { padding-top: 6px; }
.feld input[type=text], .feld input[type=email], .feld input[type=tel], .feld select, .feld textarea {
  width: 100%; max-width: 380px; font: inherit; color: var(--text); padding: 5px 7px; border: 1px solid #ccc; background: #fff; }
.feld textarea { min-height: 130px; max-width: 100%; }
.feld input:hover, .feld select:hover, .feld textarea:hover { background: #f4f4f4; }
.pflicht::after { content: ' *'; color: #c0392b; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { margin-top: 5px; }
.formular .hp { position: absolute; left: -9999px; }
.button { font: inherit; font-family: var(--head); text-transform: uppercase; letter-spacing: .5px; background: var(--blau);
  color: #fff; border: 0; padding: 9px 22px; cursor: pointer; margin-top: 10px; }
.button:hover { background: var(--tuerkis-dunkel); }
.fehler { background: #fdecea; border-left: 4px solid #c0392b; padding: 10px 15px; margin: 15px 0; }
.fehler ul { margin: 5px 0 0; }
.danke { background: #eaf6ee; border-left: 4px solid #2e8b57; padding: 12px 15px; margin: 15px 0; }
.klein { font-size: 12px; line-height: 17px; }

/* Login (bestehende Kundenplattform) */
.login-frame { width: 100%; max-width: 1000px; min-height: 420px; border: 0; display: block; }

/* ---------- Fuß ---------- */
#footer { background: var(--footer); padding: 5px 0; margin-top: 10px; }
#footer_in { background: var(--footer-in); display: flex; flex-wrap: wrap; max-width: 1000px; }
.footer-col { width: 195px; min-height: 130px; padding: 15px 5px 15px 10px; text-align: right; font-size: 11px; line-height: 16px;
  color: var(--footer-text); border-right: 1px dotted var(--footer-text); }
.footer-col:nth-child(4) { border-right: 0; }
.footer-col h4 { font-size: 20px; font-weight: 300; color: var(--footer-text); text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; color: var(--footer-text); }
.footer-col address a { display: inline; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; }
.footer-col.copy { border: 0; min-height: 0; margin-left: auto; align-self: flex-end; }

/* ---------- Mobil ---------- */
@media (max-width: 1040px) {
  .wrap { padding: 0 12px; }
  #main-menue { padding-left: 0; }
}
@media (max-width: 800px) {
  #top-menue { height: auto; flex-wrap: wrap; }
  .login-btn { position: static; margin-left: 10px; }
  .login-btn img { width: 52px; }
  #logo { height: auto; margin: 6px 0; }
  .nav-toggle { display: block; width: 100%; font: inherit; font-family: var(--head); text-transform: uppercase; background: var(--blau);
    color: #fff; border: 0; padding: 10px 12px; text-align: left; margin-bottom: 6px; }
  .nav-toggle::after { content: ' ☰'; float: right; }
  #main-menue { height: auto; padding: 0; }
  .dj-main { display: none; flex-direction: column; height: auto; }
  .dj-main.offen { display: flex; }
  .dj-main > li > a { height: auto; line-height: 40px; border-bottom: 1px solid #eee; }
  .dj-submenu { position: static; display: block; width: 100%; }
  .spalten { flex-direction: column; }
  #mit { order: 2; flex-basis: auto; padding: 0 12px; }
  #mit .seitenbild { margin-top: 0; }
  .menu-sub { padding-top: 10px; }
  .item-page, .item-page.start { padding: 15px 0; }
  h1 { font-size: 24px; }
  .feld { grid-template-columns: 1fr; gap: 2px; }
  .feld input, .feld select { max-width: 100%; }
  .footer-col { width: 50%; text-align: left; border-right: 0; min-height: 0; }
  .footer-col.leer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slider img { transition: none; }
  .dj-submenu { animation: none !important; }
}
