/* ==========================================================================
   ISVB-TN Modern Stylesheet
   Modernized: 2026-01-23 - CSS Grid, Flexbox, CSS-only Mobile Menu
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #08386b;
  --color-primary-dark: #1e3463;
  --color-text: #3a4a4b;
  --color-text-light: #878787;
  --color-white: #fff;
  --color-bg-light: #dadada;
  --color-bg-gray: #eee;
  --color-border: #cecece;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Layout */
  --max-width: 1180px;
  --header-height: 100px;
  --header-height-scrolled: 80px;
  --mobile-breakpoint: 991px;

  /* Typography */
  --font-family: 'Raleway', Arial, sans-serif;
  --font-size-base: 95%;
  --line-height: 1.6;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Font Faces (Modern formats only)
   ========================================================================== */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../../files/fonts/raleway-v19-latin-regular.woff2') format('woff2'),
       url('../../files/fonts/raleway-v19-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../../files/fonts/raleway-v19-latin-600.woff2') format('woff2'),
       url('../../files/fonts/raleway-v19-latin-600.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../../files/fonts/raleway-v19-latin-800.woff2') format('woff2'),
       url('../../files/fonts/raleway-v19-latin-800.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../../files/fonts/raleway-v19-latin-300italic.woff2') format('woff2'),
       url('../../files/fonts/raleway-v19-latin-300italic.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../../files/fonts/raleway-v19-latin-600italic.woff2') format('woff2'),
       url('../../files/fonts/raleway-v19-latin-600italic.woff') format('woff');
}

@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../../files/fonts/raleway-v19-latin-800italic.woff2') format('woff2'),
       url('../../files/fonts/raleway-v19-latin-800italic.woff') format('woff');
}

/* ==========================================================================
   Base Reset & Box Sizing
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  min-height: 100%;
}

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

figure {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
  font-size: 200%;
  color: var(--color-text-light);
  font-weight: 400;
  margin: 0.625rem 0;
  line-height: 1.5;
}

h2 {
  font-size: 140%;
  color: var(--color-primary);
  font-weight: 600;
  margin: 1.25rem 0 0.625rem 0;
  line-height: 1.4;
}

h3 {
  font-size: 110%;
  font-weight: 400;
}

p {
  font-weight: 400;
  font-style: normal;
}

a {
  color: var(--color-text-light);
  font-weight: 600;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
  color: var(--color-primary);
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
#wrapper {
  max-width: 2350px;
  margin: 0 auto;
}

#container {
  position: relative;
}

#main {
  width: 100%;
}

#main .inside {
  padding-top: var(--header-height);
}

#main .inside .mod_article .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-sm);
}

#main .inside .mod_article {
  width: 100%;
}

/* ==========================================================================
   Header - Sticky (replaces JS scroll handler)
   ========================================================================== */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 2350px;
  z-index: 50;
  background-color: var(--color-white);
  box-shadow: 0 1px 5px rgba(128, 128, 128, 0.5);
}

#header .inside {
  transition: var(--transition-normal);
}

/* Info Bar */
.infoleiste {
  height: 35px;
  background-color: var(--color-primary);
  padding: 7px 20px 0 0;
}

.infoleiste .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.infoleiste .contact {
  text-align: right;
}

.infoleiste .contact p {
  margin: 0;
  font-size: 90%;
  font-weight: 400;
  color: var(--color-white);
}

.infoleiste .contact a {
  color: var(--color-white);
  font-weight: 400;
  margin-right: 20px;
  text-decoration: none;
}

/* Main Navigation Container */
.mainnavi .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo */
.logo {
  padding: 10px 15px;
  transition: var(--transition-normal);
}

.logo a {
  border-bottom: none;
  text-decoration: none;
}

.logo img {
  max-height: 80px;
  width: auto;
  transition: var(--transition-normal);
}

/* ==========================================================================
   CSS-Only Mobile Menu (Checkbox Hack)
   ========================================================================== */
.nav-checkbox {
  display: none;
}

.nav-trigger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
}

.nav-trigger span {
  display: block;
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: var(--transition-normal);
}

/* Hamburger Animation */
.nav-checkbox:checked ~ .nav-trigger span:nth-child(1) {
  transform: rotate(-45deg) translate(-9px, 6px);
}

.nav-checkbox:checked ~ .nav-trigger span:nth-child(2) {
  opacity: 0;
}

.nav-checkbox:checked ~ .nav-trigger span:nth-child(3) {
  transform: rotate(45deg) translate(-8px, -8px);
}

/* ==========================================================================
   Main Navigation
   ========================================================================== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 110%;
}

.main-nav .nav-list > li {
  position: relative;
  margin: 0 5px;
}

.main-nav .nav-list > li:last-child {
  margin-right: 0;
}

.main-nav .nav-list a,
.main-nav .nav-list .active-link {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  padding: 7px 15px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.main-nav .nav-list a:hover,
.main-nav .nav-list .active-link,
.main-nav .nav-list .trail > a {
  color: var(--color-white);
  background-color: var(--color-primary);
}

/* Dropdown Menu */
.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition-fast);
  z-index: 100;
}

.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.main-nav .submenu li {
  background-color: var(--color-white);
  box-shadow: 0 3px 5px rgba(128, 128, 128, 0.5);
}

.main-nav .submenu a {
  padding: 10px 20px;
  font-size: 90%;
  font-weight: 400;
}

.main-nav .submenu a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.mod_breadcrumb {
  margin-top: 30px;
  background-color: #ddd;
}

.mod_breadcrumb .outer {
  max-width: var(--max-width);
  margin: 0 auto;
}

.mod_breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 15px;
  margin: 0;
}

.mod_breadcrumb li {
  padding: 5px 10px;
  border-right: 1px solid var(--color-text-light);
  font-size: 80%;
}

.mod_breadcrumb li.first {
  padding-left: 0;
}

.mod_breadcrumb li.last {
  border-right: none;
}

.start .mod_breadcrumb {
  display: none;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.mod_article.bgfull {
  /* Fallback für ältere Browser */
  background: url('../../files/content/AdobeStock_250309636-kl.jpg') no-repeat center center;
  background-size: cover;
  /* WebP für moderne Browser */
  background: image-set(
    url('../../files/content/AdobeStock_250309636-kl.webp') type('image/webp'),
    url('../../files/content/AdobeStock_250309636-kl.jpg') type('image/jpeg')
  ) no-repeat center center;
  background-size: cover;
  min-height: 550px;
}

.mod_article.bgfull .bg {
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  left: 60%;
  width: 500px;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 50px;
}

.mod_article.bgfull .bg h1 {
  font-size: 160%;
  color: var(--color-text);
  font-weight: 600;
}

.mod_article.bgfull .bg p {
  font-size: 120%;
  color: var(--color-text);
}

.mod_article.bggrau {
  background-color: var(--color-bg-light);
}

.mod_article.blau {
  background-color: var(--color-primary-dark);
}

.mod_article.blau .ce_text,
.mod_article.blau h2,
.mod_article.blau h3,
.mod_article.blau a {
  color: var(--color-white);
}

/* ==========================================================================
   Cluster Layout (CSS Grid)
   ========================================================================== */
.cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  justify-items: center;
}

.cluster .ce_text {
  width: 260px;
  text-align: center;
  position: relative;
  background-color: var(--color-bg-gray);
  border-radius: 130px 130px 5px 5px;
  padding: 10px;
  min-height: 530px;
  display: flex;
  flex-direction: column;
}

.start .cluster .ce_text {
  min-height: 480px;
  background-color: var(--color-white);
}

.cluster .ce_text .image_container {
  margin-bottom: 15px;
}

.cluster .ce_text .image_container img {
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
}

.cluster h2 {
  margin: 15px 0;
}

.cluster .ce_text p:last-of-type a {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 5px 15px;
  font-weight: 200;
  text-decoration: none;
  margin-top: auto;
}

.cluster .ce_text p:last-of-type a:hover {
  background-color: var(--color-text-light);
  font-weight: 600;
}

/* ==========================================================================
   Column Layout (CSS Grid)
   ========================================================================== */
.col_12 {
  width: 100%;
  padding: 0 15px;
}

.col_8 {
  width: 70%;
  padding: 0 15px;
}

.col_4 {
  width: 30%;
  padding: 0 15px;
}

/* ==========================================================================
   Images & Galleries
   ========================================================================== */
.ce_gallery img,
.col_12 .ce_image img,
.ce_text.col_4 img {
  border: 3px solid var(--color-white);
  border-radius: 5px;
  box-shadow: 0 0 2px 2px rgba(195, 195, 195, 0.4);
  margin: 3px;
}

.image_container.float_above {
  margin-bottom: 15px;
}

.rund img {
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
}

/* ==========================================================================
   Lists
   ========================================================================== */
.mod_article ul {
  padding-left: 0;
}

.mod_article li {
  padding-left: 10px;
  margin-left: 20px;
}

.mod_article .ce_downloads ul {
  margin-left: 0;
}

.mod_article .ce_downloads li {
  padding-left: 35px;
  margin-left: 0;
}

/* Download icons */
.download-element {
  padding: 3px 6px 3px 35px;
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: left center;
  list-style-type: none;
}

.ext-pdf {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d14'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2l5 5h-5V4zM8.5 18.5v-6h1.7c.9 0 1.6.7 1.6 1.5s-.7 1.5-1.6 1.5H9.5v3H8.5zm1-4h.7c.3 0 .6-.2.6-.5s-.3-.5-.6-.5h-.7v1zm3.5 4v-6h1.5c1.4 0 2.5 1.1 2.5 2.5v1c0 1.4-1.1 2.5-2.5 2.5H13zm1-5v4h.5c.8 0 1.5-.7 1.5-1.5v-1c0-.8-.7-1.5-1.5-1.5H14z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Box & Card Styles
   ========================================================================== */
.box {
  border: 1px solid var(--color-border);
  background: rgba(240, 240, 240, 0.8);
  padding: 20px;
  margin: 30px 0;
}

.box h2,
.box h3 {
  margin: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button,
form button,
input[type="submit"] {
  display: inline-block;
  padding: 10px 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 3px;
  font-size: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.button:hover,
form button:hover,
input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
  font-weight: 600;
}

.btn p a {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 15px 20px;
  font-weight: 600;
  margin-top: 30px;
  text-decoration: none;
  display: inline-block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
  width: 100%;
  background-color: var(--color-primary);
  margin-bottom: 35px;
}

#footer .inside {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
}

#footer .firma {
  color: var(--color-white);
  font-size: 90%;
}

#footer .firma a {
  color: var(--color-white);
}

#footer .mod_customnav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .mod_customnav li a {
  padding: 5px 10px;
  color: var(--color-white);
  font-weight: 400;
  text-decoration: none;
  font-size: 90%;
}

#footer .mod_customnav li a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.block {
  display: block;
}

.center {
  text-align: center;
}

.schmal {
  max-width: 730px;
  margin: 0 auto;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet and below */
@media (max-width: 991px) {
  /* Show mobile menu trigger */
  .nav-trigger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Hide desktop nav */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-checkbox:checked ~ .main-nav {
    right: 0;
  }

  .main-nav .nav-list {
    flex-direction: column;
    padding: 60px 0 20px 0;
  }

  .main-nav .nav-list > li {
    margin: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav .nav-list a,
  .main-nav .nav-list .active-link {
    padding: 15px 30px;
  }

  /* Mobile submenu */
  .main-nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
  }

  .main-nav .submenu li {
    box-shadow: none;
    padding-left: 20px;
    border-bottom: none;
  }

  .main-nav .submenu a {
    font-size: 100%;
  }

  /* Overlay when menu is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 98;
  }

  .nav-checkbox:checked ~ .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Adjust header */
  #main .inside {
    padding-top: 80px;
  }

  .logo img {
    max-height: 60px;
  }

  /* Cluster adjustments */
  .cluster {
    grid-template-columns: repeat(auto-fit, minmax(280px, 330px));
  }

  .cluster .ce_text {
    width: 330px;
    border-radius: 165px 165px 5px 5px;
  }

  .cluster .ce_text img {
    width: 300px;
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 770px) {
  h1, h2, h3 {
    line-height: 1.6;
  }

  h1 {
    font-size: 160%;
  }

  /* Hero adjustments */
  .mod_article.bgfull {
    min-height: 500px;
    background-position: left top;
  }

  .mod_article.bgfull .bg {
    left: 5%;
    width: 90%;
    margin-top: 200px;
  }

  /* Column reset */
  .col_4,
  .col_6,
  .col_8 {
    width: 100%;
  }

  /* Footer */
  #footer .inside {
    flex-direction: column;
    text-align: center;
  }

  #footer .mod_customnav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .zusatznavi {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 460px) {
  #main .inside {
    padding-top: 55px;
  }

  .logo img {
    max-height: 50px;
  }

  .nav-trigger {
    right: 10px;
  }

  .cluster .ce_text {
    width: 300px;
    max-width: 100%;
  }

  .cluster .ce_text img {
    width: 270px;
    height: 270px;
  }

  .mod_article.bgfull .bg h1 {
    font-size: 140%;
  }

  .mod_article.bgfull .bg p {
    font-size: 100%;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
