/* PWA App Styles */
/* ───────────────────────────────────────────── */

/* Fonts */
@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/fonts/Exo2-Bold.woff2') format('woff2'),
        url('../fonts/fonts/Exo2-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/fonts/Exo2-Regular.woff2') format('woff2'),
        url('../fonts/fonts/Exo2-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/fonts/Exo2-SemiBold.woff2') format('woff2'),
        url('../fonts/fonts/Exo2-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/fonts/Exo2-ExtraBold.woff2') format('woff2'),
        url('../fonts/fonts/Exo2-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/fonts/NotoSans-Regular.woff2') format('woff2'),
        url('../fonts/fonts/NotoSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Font-Icons */
@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	src: local('Material Icons'), local('MaterialIcons-Regular'),
		url(../fonts/MaterialIcons-Regular.woff2) format('woff2'),
		url(../fonts/MaterialIcons-Regular.woff) format('woff');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;
  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;
  /* Support for IE. */
  font-feature-settings: 'liga';
}

@font-face {
  font-family: 'Framework7 Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Framework7Icons-Regular.woff2') format('woff2'),
	url('../fonts/Framework7Icons-Regular.woff') format('woff');
}

.f7-icons {
  font-family: 'Framework7 Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 28px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  text-align: center;
  
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;  
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: 'liga';
  -moz-font-feature-settings: 'liga=1';
  -moz-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}
.demo-list-icon,
.icon-f7 {
  background: #ccc;
  display: block;
  position: relative;
}
.dark .demo-list-icon {
  background-color: #555;
}
.icon-f7 {
  background: url(../img/f7-icon.png) no-repeat center;
  background-size: cover;
}
.icon-vi {
  background: url(../img/vi-icon.png) no-repeat center;
  background-size: cover;
}

.ios .demo-list-icon,
.ios .icon-f7,
.ios .icon-vi {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-sizing: border-box;
}
.md .demo-list-icon,
.md .icon-f7,
.md .icon-vi {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}


/* ───────────────────────────────────────────── */


/* ── Brand Tokens & F7-Variablen-Mapping ────────────────────────── */
:root {
  /* Brand */
  --p:    #0057B7;
  --acc:  #69b7fb;
  --grad: linear-gradient(135deg, #001F3F 0%, #0057B7 55%, #0096CC 100%);
  --r:    16px;
  --fh:   'Exo 2', sans-serif;
  --fb:   'Noto Sans', sans-serif;

  /* Semantische Farben – Light */
  --bg:  #EFF4FB;
  --sur: #FFFFFF;
  --txt: #1A1E2E;
  --sub: #5E6882;
  --bdr: #D8E3F0;
  --shd: rgba(0,87,183,.08);
  --ib:  #F5F8FD;
  --ibr: #C8D8EE;

  /* ── Framework7 Theme Variables ──────────────────────────────── */
  /*--f7-font-size: 16px;*/
  

}

/* Dark Mode – F7 + unser CSS nutzen beide 'html.dark' */
html.dark {
  --bg:  #0D1117;
  --sur: #161B22;
  --txt: #E6EDF3;
  --sub: #8B949E;
  --bdr: #30363D;
  --shd: rgba(0,0,0,.3);
  --ib:  #21262D;
  --ibr: #30363D;

}

/* ── Basis ───────────────────────────────────────────────────────── */
html, body {}


/* ── SplashScreen ───────────────────────────────────────────────────────── */
#splash-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1e293b, #0057B7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  font-family: -apple-system, sans-serif;
}

#splash-screen .splash-content { text-align: center; }
#splash-screen .logo-wrapper { position: relative; margin-bottom: 24px; }
#splash-screen .logo { width: 96px; z-index: 2; position: relative; animation: splashscreen_float 3s ease-in-out infinite; }
#splash-screen .title { text-align: center; align-items: center; }

/* Glow Effekt */
#splash-screen .glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59,130,246,0.6), transparent);
  filter: blur(25px);
  animation: splashscreen_glowPulse 2.5s infinite ease-in-out;
}

/* Progressbar */
#splash-screen .progress-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin: 25px auto 0;
}
#splash-screen .progress {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  animation: splashscreen_loading 1.4s infinite ease-in-out;
}

/* Animations */
@keyframes splashscreen_float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes splashscreen_glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes splashscreen_loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* Fade Out */
#splash-screen.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}


/* ── App-Container ───────────────────────────────────────────────── */

#app {
  /*display: flex;
  flex-direction: column;
  height: 100%;*/
  /*background: var(--bg);*/
  /*overflow: hidden;*/
}


/*.ios .toolbar-pane { padding-left: 10px; padding-right: 10px; }*/

.page-content { word-wrap: break-word; overflow-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }

.no-offset.page-content { --f7-page-navbar-offset: 0px; }
.no-offset.navbar .navbar-bg { opacity: 0; }
	.no-offset.navbar.navbar-transparent-visible .navbar-bg { opacity: inherit; }

.noTopPadding { padding-top: 0 !important; }
.noTopMargin { margin-top: 0 !important; }

.spacer-5 { display: block; height: 5px; }
.spacer-10 { display: block; height: 10px; }
.spacer-15 { display: block; height: 15px; }
.spacer-20 { display: block; height: 20px; }
.spacer-30 { display: block; height: 30px; }
.spacer-40 { display: block; height: 40px; }
.spacer-50 { display: block; height: 50px; }



/* ── Alle Devices: Phone-Frame ────────────────────────────────────────── */
@media (min-width: 768px) {
	html body {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 100vh;
		background: #111;
	}
  
	html #app {
		width: 550px;
		height: min(844px, 95vh);
		outline: 8px solid #2a2a2a;
		box-shadow: 0 30px 80px rgba(0,0,0, 0.7);
	}
}


/* ── Desktop: Phone-Frame ────────────────────────────────────────── */
@media (min-width: 520px) {
	.device-desktop body {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 100vh;
		background: #111;
	}

	.device-desktop #app {
		width: 406px;
		height: min(844px, 95vh);
		border-radius: 44px;
		border: 8px solid #2a2a2a;
		box-shadow: 0 30px 80px rgba(0,0,0, 0.7);
	}
}




/* Seiten: absolute gestapelt, nur .on ist sichtbar */


/* Slide-Animationen */
@keyframes slide-in  { from { transform: translateX(100%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes slide-bck { from { transform: translateX(-20%); opacity: .6; } to { transform: none; opacity: 1; } }
.pv.anim-in  { animation: slide-in  .25s cubic-bezier(.4,0,.2,1) both; }
.pv.anim-bck { animation: slide-bck .25s cubic-bezier(.4,0,.2,1) both; }


/* ── Preloader ───────────────────────────────────────────────────── */
#preloader {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(239,244,251,.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
html.dark #preloader { background: rgba(13,17,23,.95); }
#preloader.show       { opacity: 1; pointer-events: all; }
#preloader .preloader { --f7-preloader-color: var(--p); width: 40px; height: 40px; }
#preloader .pl-txt    { font-family: var(--fh); font-size: 13px; color: var(--sub); }


/* ═══════════════════════════════════════════════════════════════════
   CUSTOM – Hero (komplett eigenes Design)
═══════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--grad);
  padding: 28px 28px 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,212,255,.07);
}
.hi          { position: relative; z-index: 2; }
.logo-row    { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logo-box    { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; }
.logo-name   { font-size: 16px; font-weight: 800; color: #fff; }
.logo-tag    { font-size: 10px; font-weight: 300; color: rgba(255,255,255,.75); letter-spacing: 2px; text-transform: uppercase; }
.ntc         { display: flex; flex-direction: column; align-items: flex-start; }
.hero-h1     { font-size: 27px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 10px; }
.hero-h1 .acc{ color: var(--acc); }
.hero-p      { /*font-size: 13px;*/ color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 20px; }
.hero-btn    { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 10px 20px; border-radius: 50px; font-weight: 600; /*font-size: 13px;*/ cursor: pointer; }



/* ── Kennzahlen ──────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; gap: 1px; background: var(--bdr); border-radius: var(--r); overflow: hidden; box-shadow: 0 3px 12px var(--shd); }
.stat  { background: var(--sur); padding: 13px 8px; text-align: center; }
.stn   { font-family: var(--fh); font-size: 21px; font-weight: 900; color: var(--p); }
.stl   { font-size: 10px; color: var(--sub); margin-top: 2px; }

/* ── Abschnittstitel ─────────────────────────────────────────────── */
.sec { font-family: var(--fh); font-size: 16px; font-weight: 700; color: var(--txt); padding: 17px 16px 10px; }

/* ── Quick-Grid ──────────────────────────────────────────────────── */
.qgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 0 16px 4px; }
.qcard { border-radius: var(--r); padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; text-decoration: none; }
.qc1 { background: linear-gradient(135deg,#003D82,#0070CC); }
.qc2 { background: linear-gradient(135deg,#005858,#008888); }
.qc3 { background: linear-gradient(135deg,#5C1A72,#8B20B0); }
.qc4 { background: linear-gradient(135deg,#A03500,#C85000); }
.qi { margin-bottom: 4px;}
.qi svg { width: 30px; height: 30px; }
.qi i { color: #fff; }
.qt  { font-family: var(--fh); font-size: 13px; font-weight: 700; color: #fff; }
.qs  { font-size: 11px; color: rgba(255,255,255,.72); }

/* ── News-Karten ─────────────────────────────────────────────────── */

.ncard  { display: block; background: var(--sur); border-radius: var(--r); margin: 0 16px 12px; overflow: hidden; box-shadow: 0 2px 10px var(--shd); cursor: pointer; }
.nban   { height: 100px; display: flex; align-items: flex-end; padding: 10px; }
.cbadge { background: rgba(0,212,255,.88); color: #001830; font-family: var(--fh); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 50px; }
.nbody  { padding: 12px 14px 8px; }
.nmeta  { font-size: 11px; color: var(--sub); margin-bottom: 5px; }
.ntit   { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--txt); margin-bottom: 5px; }
.ntea   { font-size: 12px; line-height: 1.55; color: var(--sub); }
.nfoot  { padding: 7px 14px 13px; display: flex; justify-content: flex-end; }
.mlink  { font-size: 12px; font-weight: 700; color: var(--p); }

.news-list .card-header-pic {}
.news-list .card-header-pic .card-header { height: 40vw; max-height: 150px; background-size: cover; background-position: center; color: #fff; }
.news-list .date, .news-list .author { color: #8e8e93; font-size: 0.9em; }


/* ── CTA ─────────────────────────────────────────────────────────── */
.cta     { background: var(--grad); border-radius: var(--r); padding: 20px 18px; }
.cta h3  { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.cta p   { /*font-size: 12px;*/ color: rgba(255,255,255,.8); line-height: 1.5; margin-bottom: 14px; }
.cta-btns{ display: flex; gap: 9px; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 8px 15px; border-radius: 50px; /*font-size: 12px;*/ font-weight: 600; cursor: pointer; text-decoration: none; }

/* ── Leistungen ────────────────────────────────────────── */
#offers-list .sico { width: 50px; height: 50px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; /*margin: 2px 0px;*/ }
	#offers-list .sico svg { max-width: 60%; max-height: 60%; }
	#offers-list .sico path:not([fill="none"]), #offers-list .sico circle:not([fill="none"]), #offers-list .sico rect:not([fill="none"]) { fill: #FFF !important; }
	#offers-list .sico path:not([stroke="none"]), #offers-list .sico circle:not([stroke="none"]), #offers-list .sico rect:not([stroke="none"]) { stroke: #FFF !important; }
#offers-list .item-title, #offers-list .item-subtitle { color: var(--f7-color-black); }


/* ── F7-Liste: Rechtliches ───────────────────────────────────────── */
.legal-list ul { background: transparent !important; margin: 0 16px !important; }
.legal-list li { background: transparent !important; }
.legal-list li::before, .legal-list li::after,
.legal-list ul::before, .legal-list ul::after { display: none !important; }
.legal-list .item-link {
  background: var(--sur);
  border-radius: var(--r);
  margin-bottom: 10px;
  box-shadow: 0 2px 8px var(--shd);
}
.legal-list .item-inner { padding: 14px 16px 14px 0; }
.legal-list .item-inner::after { display: none !important; }
.lico { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,87,183,.09); display: flex; align-items: center; justify-content: center; margin: 8px 12px; flex-shrink: 0; }
.lico svg { width: 22px; height: 22px; color: var(--p); }

/* Kontakt-Karte (Rechtliches-Seite) */
.ccard { background: var(--sur); border-radius: var(--r); margin: 0 16px 16px; padding: 16px; box-shadow: 0 2px 8px var(--shd); }
.cctt  { font-family: var(--fh); font-size: 15px; font-weight: 700; color: var(--txt); margin-bottom: 11px; }
.crow  { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--sub); padding: 5px 0; }
.crow svg { width: 16px; height: 16px; color: var(--p); flex-shrink: 0; }
.crow a { color: var(--p); text-decoration: none; }


/* ── Detail-Header (News / Leistung) ─────────────────────────────── */
#offers-detail .hero { padding: 0px; text-align: center;  }
#offers-detail svg { max-width: 100px; max-height: 75px; margin-bottom: 20px; }
	#offers-detail path:not([fill="none"]), #offers-detail circle:not([fill="none"]), #offers-detail rect:not([fill="none"]) { fill: #FFF !important; }
	#offers-detail path:not([stroke="none"]), #offers-detail circle:not([stroke="none"]), #offers-detail rect:not([stroke="none"]) { stroke: #FFF !important; }
#offers-detail .title, #offers-detail .subtitle { color: #FFF; }
#offers-detail .subtitle { margin-top: 8px; }



/* ── Kontaktformular ─────────────────────────────────────────────── */
.form-wrap   { padding: 4px 16px 32px; }
.form-group  { margin-bottom: 14px; }
.form-label  { font-family: var(--fh); font-size: 12px; font-weight: 600; color: var(--sub); margin-bottom: 5px; display: block; }
.form-input,
.form-textarea,
.form-select {
  width: 100%; background: var(--ib); border: 1.5px solid var(--ibr);
  border-radius: 12px; padding: 12px 14px;
  font-family: var(--fb); font-size: 14px; color: var(--txt);
  outline: none; -webkit-appearance: none;
}
.form-textarea   { resize: none; height: 110px; line-height: 1.5; }
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--p); }
.form-input.err,
.form-textarea.err,
.form-select.err   { border-color: #E0323E; }
.form-err-msg      { font-size: 11px; color: #E0323E; margin-top: 4px; display: none; }
.form-err-msg.show { display: block; }
.form-row          { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.submit-btn        { width: 100%; background: var(--p); color: #fff; border: none; padding: 14px; border-radius: 50px; font-family: var(--fh); font-weight: 700; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; }
.form-success      { display: none; text-align: center; padding: 28px 20px; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg,#1A7A40,#28B060); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.form-success h3   { font-family: var(--fh); font-size: 18px; font-weight: 700; color: var(--txt); margin-bottom: 8px; }
.form-success p    { font-size: 13px; color: var(--sub); line-height: 1.6; }
.form-back-btn     { display: inline-flex; align-items: center; gap: 6px; background: var(--p); color: #fff; padding: 10px 20px; border-radius: 50px; font-family: var(--fh); font-weight: 600; font-size: 13px; cursor: pointer; margin-top: 18px; border: none; }

/* ── Legal-Seiten ────────────────────────────────────────────────── */
.lpher { background: var(--grad); padding: 24px 18px 34px; }
.lpht  { font-family: var(--fh); font-size: 22px; font-weight: 800; color: #fff; }
.lphs  { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 5px; }
.ltxt  { padding: 18px 16px 36px; font-size: 13px; line-height: 1.75; color: var(--txt); }
.ltxt h2 { font-family: var(--fh); font-size: 17px; font-weight: 800; color: var(--txt); margin: 22px 0 9px; }
.ltxt h3 { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--p); margin: 16px 0 7px; }
.ltxt p  { margin-bottom: 9px; }
.ltxt ul { padding-left: 17px; margin: 5px 0 11px; }
.ltxt li { margin-bottom: 5px; }
.ltxt a  { color: var(--p); }

/* Ladezustand für Legal-Seiten */
.legal-loading { padding: 32px 16px; text-align: center; color: var(--sub); font-size: 13px; }

/* ── API-Fehler ──────────────────────────────────────────────────── */
.api-error { margin: 12px 16px; padding: 12px 14px; background: rgba(200,50,50,.08); border-left: 3px solid #C83232; border-radius: 10px; font-size: 12px; color: var(--sub); display: none; }
.api-error.show { display: block; }
.sp { height: 22px; }


.map-iframe-container iframe {
	width: 100%;
	height: 400px;
}
.map-placeholder { background: #eee url(../img/dummy-maps.jpg) center; background-size: cover; text-align: center; padding: 20px; }
.map-placeholder .subtext { font-size: 12px; }