/* 
   Color variables, brand colors, and global design tokens
   -------------------------------------------------------
*/
:root {
    /* === Primary Accent Variations (Overriding one another in your example) === */
    --primary-accent: #ff7b33; /* Orange Schema */
    --navbar-border-top: #d46222;
    --button-border: #e27233;
    --link-focus: #dd6a38;
    --pagination-bg: #ffb093;
    --link-hover-bg: #e97340;
    --navbar-focus: #ffbb9f;
  
    --primary-accent: #98ce00; /* Green Schema*/
    --navbar-border-top: #6e9b00;
    --button-border: #79a400;
    --link-focus: #74a900;
    --pagination-bg: #b9e854;
    --link-hover-bg: #83b600;
    --navbar-focus: #9dda49;
  
    --darker-accent: #086172; /* Blue Schema*/
    --primary-accent: #0eb1d2; 
    --navbar-border-top: #0a8098;
    --button-border: #0b8ea6;
    --link-focus: #0b94ac;
    --pagination-bg: #66d8e7;
    --link-hover-bg: #0ca1b9;
    --navbar-focus: #61dae7;
    --table-striped-bg: #e4f8fb;
    --table-accent-bg: #e4f8fb;
    --breadcrumbs-bg: #e9e9e9;
  
    /* === Additional Color Vars === */
    --primary-accent-color: var(--primary-accent);
      
    --szdarksiena: #220c10;
    --szdarksiena-rgb: 34,12,16;
    --szdarksiena-600: #39141b;
  
    --szblue: #2176ae;
    --szblue-rgb: 33,119,176;
    --szbrightblue: #0eb1d2;
    --szbrightblue-rgb: 14,177,210;
  
    --szgreen: #688e26;
    --szgreen-rgb: 104,142,38;
    --szbrightgreen: #98ce00;
    --szbrightgreen-rgb: 152,206,0;
  
    --szorange: #ff7b33;
    --szorange-rgb: 255,123,51;
  
    --szpaper: #fffdf9;
    --szpaper-rgb: 255,253,249;
  
    --szred: #ff3333;
    --szred-rgb: 255,51,51;
  
    --szyellow: #fdcb34;
    --szyellow-rgb: 253,203,52;
  
    --szpink: #cb20c5;
    --szpink-rgb: 213,33,184;
  
    --szdarkpaper: #d7ac7f;
    --szdarkpaper-rgb: 215,172,127;
  
    --szheader: #fff6ef;
    --szheader-rgb: 255,246,239;
  
    --szsubmenubg: rgba(var(--szheader-rgb), 0.9);
    --szlightbuttontxt: white;
    --cassiopeia-color-hover: #220c10;
  
    --szfooter: #222222;
    --szcopyright: #111111;
    --sztext: var(--szdarksiena);
    --sztextgray: #666666;
    
  
    /* === Text & Backgrounds === */
    --white: #ffffff;
    --primary: var(--szdarksiena);
    --secondary: var(--szdarksiena-600);
    --success: rgba(var(--szgreen-rgb), 0.5);
    --info: rgba(var(--szdarksiena-rgb), 0.8);
    --warning: var(--szred);
    --danger: var(--szred);
    --light: var(--szpaper);
    --dark: var(--szdarksiena);
    --body-color: var(--szdarksiena);
    --body-bg: var(--white);
  
    /* === Gradients === */
    --gradient-orange-gelb: linear-gradient(132deg, rgb(255, 123, 51) 0%, rgb(253, 203, 52) 100%);
    --gradient-orange-gelb-blass: linear-gradient(132deg, rgb(255, 123, 51, 0.5) 0%, rgb(253, 203, 52, 0.5) 100%);
    --gradient-gruen-dunkel: linear-gradient(132deg, rgb(14, 177, 210) 0%, rgb(34, 12, 16) 100%);
    --gradient-hellgruen-gruen: linear-gradient(132deg, rgb(152,206,0) 14%, rgba(255,253,249,1) 67%);
    --gradient-orange: linear-gradient(132deg, rgb(255, 123, 51) 0%, rgb(255, 198, 167) 100%);
    --gradient-gruen: linear-gradient(132deg, rgb(104,142,38) 0%, rgb(152,206,0) 100%);
    --gradient-blau: linear-gradient(132deg, rgb(14, 177, 210) 0%, rgb(151, 221, 236) 100%);
    --gradient-blau-blass: linear-gradient(132deg, rgba(14, 177, 210, 0.5) 0%, rgba(151, 221, 236, 0.5) 100%);
    --gradient-weiss-bg: linear-gradient(132deg, rgba(34,12,16,0.03) 60%, rgba(255,253,249,1) 100%);
    --gradient-pink: linear-gradient(132deg, rgb(203, 32, 197) 0%, rgb(233, 159, 230) 100%);
    --gradient-paper: linear-gradient(132deg, rgba(34,12,16, 0.02) 1%, rgba(255, 123,51, 0.03) 100%);
    --gradient-yellow-bg: linear-gradient(132deg, rgb(253, 203, 52) 1%, rgb(255, 253, 249) 250%);
    --gradient-darkpaper: linear-gradient(132deg, rgb(247, 236, 224) 10%, rgb(251, 244, 236) 100%);
    --gradient-grey: linear-gradient(132deg, rgba(128, 128, 128, 0.2) 0%, rgba(128, 128, 128, 0.05) 100%);
    --gradient-image-fallback: radial-gradient(circle, #a0bcc2, #a4c0c7, #a8c4cb, #acc8d0, #b0ccd5, #a9cbd7, #a2cbd8, #9bcada, #85c4d8, #6bbed6, #4cb7d4, #0eb1d2);
    
    /* === Box Shadows === */
    --box-shadow: 0px 1px 15px rgba(var(--szdarksiena-rgb),0.3);
    --box-shadow-breit: 0px 10px 30px rgba(var(--szdarksiena-rgb),0.3);
    --box-shadow-schmal: 0px 1px 5px rgba(var(--szdarksiena-rgb),0.3);
  
    
  
    /* === Font Family Variables === */
    --font-sans-serif: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  
    --font-monospace: 'Ubuntu Mono', SFMono-Regular, Menlo, Monaco, Consolas,
      "Liberation Mono", "Courier New", monospace;
  
    --font-headline: 'Montserrat', 'Ubuntu', sans-serif;
  
    --body-font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
      "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
      "Noto Color Emoji";
  
    /* =========================================
       Base Typography (Respect user defaults)
       -----------------------------------------
       Use 1rem (user default ~16px) as the base,
       and let headings scale with clamp for
       a fluid, accessible experience.
    ========================================= */
    --body-font-size: clamp(1rem, 1.5vw, 1.125rem);      /* Let user’s default remain (often ~16px) */
    --body-line-height: 1.6;      /* Comfortable default line-height */
    --body-font-weight: 400;      /* Normal weight */
    --body-font-color: var(--szdarksiena);
  
    /* 
       Headings that scale between small screens and large screens.
       You can tweak clamp() as you wish.
       E.g.: clamp(MIN, VW-based, MAX).
    */
    --h1-size: clamp(2rem, 5vw, 2.5rem);  /* ~32px min to ~40px max */
    --h2-size: clamp(1.75rem, 4.5vw, 2rem);
    --h3-size: clamp(1.5rem, 4vw, 1.75rem);
    --h4-size: clamp(1.25rem, 3vw, 1.5rem);
    --h5-size: clamp(1.125rem, 2.8vw, 1.25rem);
    --h6-size: clamp(1rem, 2vw, 1.125rem);
  
     
    /* 
       Example for quotations, if desired:
       --quote-font-family: Georgia, serif;
    */
    --quote-font-family: Georgia, serif;
  }
  

  /* =========================================
       Font Choices
       ========================================= */
  
    /* instruct browser to use local fonts */
    /* Make sure the font files exist at these paths. */
    @font-face {
      font-family: 'Montserrat';
      src: url('../fonts/montserrat/montserrat-v25-latin-regular.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    @font-face {
      font-family: 'Ubuntu';
      src: url('../fonts/ubuntu/ubuntu-v20-latin-regular.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
    
    @font-face {
      font-family: 'Ubuntu Mono';
      src: url('../fonts/ubuntu/ubuntu-mono-v15-latin-regular.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }
  /* 
   
  /* 
  ================
  GLOBAL RESETS
  ================*/

  html {
    font-size: 100%; /* 1rem = 16px */
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
  }

  body {
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
    font-weight: var(--body-font-weight);
    line-height: var(--body-line-height);
    color: var(--body-font-color) !important;
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
  } 
 

 /* ==========================================================
  HEADINGS & TEXT STYLES
 ==========================================================
 */
 
 
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    letter-spacing: 0.03em !important;
    margin: 2rem 0 1.5rem 0!important; /* Keep consistent vertical spacing */
  }
  
  h1 {
    font-size: var(--h1-size);
    line-height: 1.2;
  }
  h2 {
    font-size: var(--h2-size);
    line-height: 1.25;
  }
  h3 {
    font-size: var(--h3-size);
    line-height: 1.3;
  }
  h4 {
    font-size: var(--h4-size);
    line-height: 1.35;
  }
  h5 {
    font-size: var(--h5-size);
    line-height: 1.4;
  }
  h6 {
    font-size: var(--h6-size);
    line-height: 1.4;
  }
  
  .heading h1, .heading h2, .heading h3, .heading h4, .heading h5 {
    display: inline-block;
    border-bottom: solid 5px var(--navbar-border-top);
    line-height: 1.1;
    padding-bottom: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom:0.3em;
  }


  

    /* Use var(--navbar-border-top) for the H1 bottom border if you like */
    .heading h1 {
      display: inline-block;
      border-bottom: solid 5px var(--navbar-border-top);
      border-left: none;
      line-height: 1.1;
      margin-bottom: 0;
      padding-bottom: 10px;
      vertical-align: middle;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      text-align: center;
      width: 100%;
    }
    
   
  .heading {
    margin-bottom: 20px;
  }
  
  
  @media (min-width: 1200px) {
    .heading.text-center {
        padding-left: 100px;
        padding-right: 100px;
    }
  }
  
/* Headlines auf Kacheln */

  .kachel-header {
      margin-top: 0rem!important;
      flex-grow: 0;
      font-size: 1.1rem;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--body-font-color);
      line-height: 1.2;
      text-decoration: underline;
    }

  .kachel-header a {
    color: var(--body-font-color)!important;
    text-decoration: underline;
  }

  .kachel-header a:hover {
    color: var(--navbar-border-top) !important;
   }
  /* 
  ================
  SECTION, DIV
  ================
  */
  section, div.section {
    margin-bottom: 20px;
  }
  
  /* 
  ================
  PARAGRAPHS, LISTS, etc.
  ================
  */
  p, li, td, tr, a, ul, ol {
    font-size: var(--body-font-size); 
    line-height: var(--body-line-height);
  }
  
  a {
    color: var(--navbar-border-top);
    text-decoration: none;
  } 

  /* Slightly bigger 'lead' paragraphs */
  .lead {
    font-size: calc(var(--body-font-size) * 1.1); /* ~10% bigger than base */
    line-height: var(--body-line-height);
  }
  
  /* Slightly smaller smaltext paragraphs */
  .smalltext {
    font-size: calc(var(--body-font-size) * 0.85); /* ~15% smaller than base */
    line-height: calc(var(--body-line-height) * 0.85);
  }


  /* 
  ================
  BLOCKQUOTES
  ================
  */
  blockquote {
    font-size: calc(var(--body-font-size) * 1.1); 
    line-height: 1.6; /* a bit looser than headings */
    margin: 1.5rem 0;
    margin-left: 0.5em;
    padding-left: 0.5em;
    border-left: 3px solid var(--primary-accent);
  }
  
  .colorquote {
    font-size: calc(var(--body-font-size) * 1.1); 
    line-height: 1.6;
    margin: 1.5rem 0;
    margin-left: 0.5em;
    padding-left: 0.5em;
    border-left: 3px solid var(--navbar-border-top);
  }
  
  .colorwarning {
    font-size: calc(var(--body-font-size) * 1.1); 
    line-height: 1.6;
    margin: 1.5rem 0;
    margin-left: 0.5em;
    padding-left: 0.5em;
    border-left: 5px solid var(--szorange);
  }

  
  /* 
  ================
  MONOSPACED ELEMENTS
  ================
  */
  pre, code, kbd, samp {
    font-family: var(--font-monospace);
    font-size: 0.9rem; 
    line-height: 1.4;
  }
  
  /* 
  ====================================
  RESPONSIVE BREAKPOINTS & SCALING
  ------------------------------------
  If you still want to nudge the body 
  font size on smaller breakpoints, 
  you can do so here. But remember, the 
  above clamp() for headings is 
  already fluid. 
  ====================================
  */
  
  /* Medium screens (tablets, ≤ 991px) */
  @media (max-width: 991px) {
    :root {
      /* Example: Slightly reduce or keep near default. */
      --body-font-size: 1.0625rem; /* ~17px */
      --body-line-height: 1.6;
  
      /* Headings if you want them a bit smaller on tablets: */
      --h1-size: clamp(2rem, 4.2vw, 2.3rem);
      --h2-size: clamp(1.75rem, 4vw, 2rem);
      --h3-size: clamp(1.4rem, 3.8vw, 1.7rem);
      --h4-size: clamp(1.25rem, 3vw, 1.5rem);
      --h5-size: clamp(1.125rem, 2.8vw, 1.25rem);
      --h6-size: clamp(1rem, 2vw, 1.125rem);
    }
  
    /* .lead adapt if needed */
    .lead {
      font-size: calc(var(--body-font-size) * 1.08);
      line-height: var(--body-line-height);
    }
  }
  
  /* Small screens (mobile, ≤ 767px) */
  @media (max-width: 767px) {
    :root {
      /* Return to 1rem if you like, or keep a slight difference. */
      --body-font-size: 1rem;
      --body-line-height: 1.5;
  
      /* Tweak heading clamps again if needed */
      --h1-size: clamp(1.8rem, 4vw, 2.2rem);
      --h2-size: clamp(1.6rem, 3.8vw, 1.9rem);
      --h3-size: clamp(1.3rem, 3vw, 1.6rem);
      --h4-size: clamp(1.2rem, 2.8vw, 1.4rem);
      --h5-size: clamp(1.125rem, 2.5vw, 1.25rem);
      --h6-size: clamp(1rem, 2vw, 1.125rem);
    }
  
    .lead {
      font-size: calc(var(--body-font-size) * 1.08);
      line-height: var(--body-line-height);
    }
  }
  
  /* Extra small screens (≤ 575px) */
  @media (max-width: 575px) {
    :root {
      --body-font-size: 1rem;
      --body-line-height: 1.5;
  
      /* Possibly even smaller heading clamp if desired */
      --h1-size: clamp(1.6rem, 4vw, 2rem);
      --h2-size: clamp(1.4rem, 3.5vw, 1.8rem);
      --h3-size: clamp(1.25rem, 3vw, 1.5rem);
      --h4-size: clamp(1.125rem, 2.8vw, 1.4rem);
      --h5-size: clamp(1.0625rem, 2.5vw, 1.25rem);
      --h6-size: clamp(1rem, 2vw, 1.125rem);
    }
  
    .lead {
      font-size: calc(var(--body-font-size) * 1.06);
      line-height: var(--body-line-height);   
    }
  }
    
  /* 
  ====================================
   CONTAINER & LAYOUT
  ====================================
 
  /* 
  ====================================
   text over image
  ====================================
  */
  .text-shadow {
   text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.7); /* Dark shadow */
   color: white!important; /* Ensures good contrast */
  }

  .icon.icon-lg {
    filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.5));
    font-size: 30px;
    border-width: 2px;
    margin: 5px;
}

.btn-shadow {
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.3));
}
  /* 
  ====================================
   NAVBAR & MENU 
  ====================================
  */
  .navbar > .container .navbar-brand {
    padding-left: 15px;
    padding-top: 15px;
  }
  
  .navbar .navbar-buttons button.navbar-toggle {
    margin-top: 11px;
    margin-bottom: 11px;
    margin-left: 0;
    margin-right: 0; /* Remove right margin */
    background: url('../icons/hamburger.svg') no-repeat center center;
    background-size: 24px 24px;
    width: 40px;
    height: 40px;
    text-indent: -9999px; /* Hide any text inside the button */
    overflow: hidden!important;     /* Prevent text overflow */
  }
  
  .navbar-default .navbar-toggle {
    border-color: transparent;
  }
  
  /* Exclude list items in the menu */
  .navbar li {
    padding-left: initial; 
    margin-left: initial;
  }
  
  @media (max-width: 992px) {
    /* Override navbar collapse breakpoint */
    .navbar-header {
      float: none;
    }
  
    /* Show hamburger */
    .navbar-toggle {
      display: block !important;
      position: absolute;
      top: 0px;
      right: 0px;
    }
  
   /* Container overflow control */
  .navbar > .container {
    overflow: hidden;
  }

  /* Collapsed menu overflow control */
  .navbar-collapse {
    overflow-x: hidden;
    max-height: calc(100vh - 60px); /* Prevent overflow beyond viewport */
  }
    /* Hide regular nav */
    .navbar-collapse {
      border-top: 1px solid transparent;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
  
    .navbar-collapse.collapse {
      display: none !important;
    }
  
    /* Show when toggled */
    .navbar-collapse.collapse.in {
      display: block !important;
    }
  
    /* Stack menu items */
    .navbar-nav {
      float: none !important;
      margin: 7.5px -15px;
    }
  
    .navbar-nav > li {
      float: none;
    }
  
    .navbar-nav > li > a {
      padding-top: 10px;
      padding-bottom: 10px;
    }
  }


  
  /* =====================================================
   FOOTER
===================================================== */
.footer {
    padding: 30px 0 30px 0;
    margin: 0 -30px 0 -30px!important;
  }
  
  .link-footer, a.link-footer, .link-footer a {
  color: var(--pagination-bg);
  text-decoration: none;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
  line-height: 1.2;
  display: block;
  clear:both;
}


  .link-footer:hover {
    color: var(--white);
  }
  
  
  /* =====================================================
     BUTTONS (No Rounded Corners)
  ===================================================== */
  button,
  .btn,
  .button {
    border-radius: 0 !important; /* Removes rounded corners on all buttons */
  }
  
  /* Base .btn style */
  .btn {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    line-height: var(--body-line-height); /* (4) changed from 1.5 to var(--body-line-height) */
    border-radius: 0;
    margin: 3px 3px 3px 0;
  }
  

.btn-lg {
  padding: 10px 16px;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1.33;
  border-radius: 0;
  border-width: 2px;
}


.btn-template-transparent-black {
  color: var(--white);
  background-color: transparent;
  border-color: var(--white);
}

  /* Special Action Button Layout */
  .action-button {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 5px;    /* horizontal spacing between items */
    row-gap: 5px;       /* vertical spacing between rows */
    margin: 20px 0px 20px 0px;
  }
  
  /* Template Main Button */
  .btn-template-main {
    color: var(--navbar-border-top);
    background-color: var(--white); /* (3) changed from #ffffff to var(--white) */
    border-color: var(--navbar-border-top);
  }
  
  /* Orange Action Button */
  .action-button-orange {
    background-color: var(--szorange)!important;
    border-color: var(--szorange)!important;
    color: var(--white) !important; /* changed from white to var(--white) */
  }
  
  .action-button-orange:hover {
    color: var(--szorange) !important;
    background-color: var(--white) !important; /* changed from white to var(--white) */
    border-color: var(--szorange) !important;
  }
  
  /* Primary Button */
  .btn-primary {
    color: var(--white); /* changed from #fff to var(--white) */
    background-color: var(--navbar-border-top);
    border-color: var(--white); /* changed from 'white' to var(--white) if desired for consistency */
  }
  
  .btn-primary:hover {
    color: var(--navbar-border-top);
    background-color: var(--white);
    border-color: var(--navbar-border-top);
  }
  /* Black & White Button */
  .btn-bw {
    color: var(--body-font-color);
    background-color: var(--white);
    border-color: var(--body-font-color);
  }

  .btn-bw:hover,
  .btn-bw:focus,
  .btn-bw:active {
    color: var(--navbar-border-top);
    background-color: var(--white);
    border-color: var(--navbar-border-top);
  }

  /* For anchor tags with btn-bw class */
  a.btn-bw {
    color: var(--body-font-color) !important;
  }

  a.btn-bw:hover,
  a.btn-bw:focus,
  a.btn-bw:active {
    color: var(--navbar-border-top) !important;
  }
  
  /* Custom Hover Buttons (e.g. Anmelden/Fragen/Beratung) */
  .custom-hover {
    color: var(--white); /* changed from #ffffff to var(--white) */
    background-color: var(--navbar-border-top); /* Primary accent background */
    border-color: var(--navbar-border-top);     /* Accent color border */
  }
  
  .custom-hover:hover,
  .custom-hover:focus,
  .custom-hover:active {
    color: var(--navbar-border-top);
    background-color: var(--white);
    border-color: var(--navbar-border-top);
  }

  /* Active/Focus states for Primary Buttons */
  .btn-primary.active:focus,
  .btn-primary.active:hover,
  .btn-primary:active.focus,
  .btn-primary:active:focus,
  .btn-primary:active:hover,
  .open > .dropdown-toggle.btn-primary.focus,
  .open > .dropdown-toggle.btn-primary:focus,
  .open > .dropdown-toggle.btn-primary:hover {
    color: var(--white);
    background-color: var(--navbar-border-top);
    border-color: var(--navbar-border-top);
  }
    
  /* =====================================================
     HOME CAROUSEL
  ===================================================== */
  .home-carousel .dark-mask {
    position: absolute;  /* Positions the mask element relative to the parent */
    top: 0;              /* Aligns the top of the mask with the top of the parent */
    left: 0;             /* Aligns the left side of the mask with the left of the parent */
    width: 100%;         /* Makes the mask cover the entire width of the parent */
    height: 100%;        /* Makes the mask cover the entire height of the parent */
    
    /* Background with a linear gradient overlay for a lighter effect */
    background: linear-gradient(
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1)
    ), var(--szorange);
    
    opacity: 0.35;
    filter: alpha(opacity=35); /* Fallback for older IE browsers */
  }
  
  .home-carousel ul,
  .home-carousel p,
  .home-carousel h1,
  .home-carousel h2,
  .home-carousel h3,
  .home-carousel h4,
  .home-carousel h5,
  .home-carousel h6 {
    text-shadow: 2px 2px 2px rgba(34, 12, 16, 0.9),
                 0 0 15px rgba(34, 12, 16, 1) !important;
  }
  
  /* =====================================================
     BANNERS
  ===================================================== */
  /* 
    Examples commented out; presumably kept as an optional snippet. 
    Ensure container is above the overlay
  */
  .page-banner .container {
    z-index: 1;
    position: relative;
  }
  
  /* =====================================================
     ARTICLE FORMATTING
  ===================================================== */
  .articletitle {
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    padding: 10px 10% 15px 10%;
    margin: 0 auto;
  }
  
  @media (max-width: 991px) {
    .articletitle {
      padding: 15px;
    }
  }
  
  @media (max-width: 767px) {
    .articletitle {
      padding: 15px;
    }
  }
  
  @media (max-width: 575px) {
    .articletitle {
      padding: 15px;
    }
  }
  
  .articleslice {
    padding: 0;
    margin: 0 auto;
  }
  
  .img-left,
  .img-right {
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    clear: both;
  }
  
  .img-left {
    margin-right: 1em;
    float: left;
  }
  
  .img-right {
    margin-left: 1em;
    float: right;
  }
  
  @media (max-width: 480px) { /* Adjust breakpoint for very small screens */
    .img-left,
    .img-right {
      display: block; /* Ensure block-level centering */
      float: none;    /* Disable floating */
    }
  }
  
  .img-shadow-100 {
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    width: 100%;
  }
  
  /* =====================================================
     KURSHEADER
  ===================================================== */
  .kursheader-content {
    position: relative;
    width: 100%;
  }
  
  .kursheader-image-container {
    position: relative;
    box-shadow: var(--box-shadow);
    margin: 25px 0; /* (1) removed the stray caret ^ */
  }
  
  .kursheader-image {
    width: 100%;
    height: auto;
  }
  
  /* 
     Make the text 20% bigger than normal text
     (2) changed from 1.7rem to calc(var(--body-font-size) * 1.2)
  */
  .kursheader-intro-text {
    font-size: calc(var(--body-font-size) * 1.2);
    /* font-style: italic; (commented out if not needed) */
    font-weight: 600;
    font-family: var(--font-headline);
    position: relative;
    line-height: 1.4;
    display: block;
    margin-top: 40px;
  }
  
  @media (max-width: 768px) {
    .kursheader-intro-text {
      margin-top: -10px;
    }
  }
  
  .kursheader-intro-text::before {
    display: none;
  }
  
  .kursheader-button-container {
    margin-top: 1rem;
  }
  
  /* =====================================================
     BACKGROUNDS & SLICES
  ===================================================== */
  .bg-weiss {
    background-color: var(--white); /* (3) changed from #fff to var(--white) */
    padding: 10px 0 30px 0;
  }
  
  .bg-gradient-blass-blau {
    background-image: var(--gradient-blau-blass);
    padding: 10px 0 30px 0;
  }
  
  .sz-fullwidth {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 30px);
  }
  
  .sz-bg-blass-grau-gradient {
    background-image: var(--gradient-grey);
  }
  
  .sz-bg-weiss {
    background-color: var(--white);
    padding: 10px 0 10px 0;
  }
  
  .sz-bg-blass-blau-gradient {
    background-image: var(--gradient-blass-blau);
  }
  
  /* =====================================================
     BREADCRUMBS
  ===================================================== */
  /* Simplified Breadcrumbs Styles */
.breadcrumbs-wrapper {
  background-image: linear-gradient(132deg, rgba(14, 177, 210, 0.1) 0%, rgba(151, 221, 236, 0.1) 100%);
  padding: 2px 0 1px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem; /* Smaller font size */
  letter-spacing: 0.02em; /* Narrower letter spacing */
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "–";
  padding: 0 0.1em 0 0.2em;
  color: var(--body-font-color);
}

.breadcrumb-item a {
  color: var(--navbar-border-top);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--szorange);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--body-font-color);
  font-weight: 400;
  text-transform: none; /* No capitalization */
}

/* Hide breadcrumbs on screens smaller than 992px */
@media (max-width: 991px) {
  .breadcrumbs-wrapper {
    display: none;
  }
}

/* If you need specific container width alignment */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}
  /* =====================================================
     VIDEOS
  ===================================================== */
  .responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    z-index: 1;
  }
  
  .video-container .video-js .vjs-tech {
    height: inherit;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 0 15px;
    width: inherit;
  }
  
  .video-container-16-9 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
  }
  
  .video-container-16-9 iframe,
  .video-container-16-9 .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    /* both 100% so it is effectively "fullwidth" */
    width: 100%;
    height: 100%;
  }
  

  /* =====================================================
    Kundenstimmen
  ===================================================== */

   /* General Carousel Styles */
   .owl-carousel {
    display: block;
    position: relative;
    width: 100%;
  }

  .owl-carousel .owl-wrapper {
    display: flex;
    transition: transform 500ms ease-in-out !important;
  }

  .owl-carousel .owl-wrapper-outer {
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .owl-carousel .owl-item {
    float: left;
    padding: 0px !important;
    box-sizing: border-box;
  }

  .owl-controls {
    margin-top: 10px;
    text-align: center;
    user-select: none;
  }

  .owl-controls .owl-page {
    display: inline-block;
    cursor: pointer;
    margin-bottom: 25px;
  }

  .owl-controls .owl-page span {
    display: block;
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    opacity: 0.5;
    border-radius: 20px;
    background: #869791;
  }

  .owl-controls .owl-page.active span {
    opacity: 1;
  }

  .owl-controls .owl-buttons div {
    display: inline-block;
    cursor: pointer;
    user-select: none;
  }

  .owl-item.loading {
    min-height: 150px;
    background: url(AjaxLoader.gif) no-repeat center center;
  }

  /* Navigation Buttons */
  .sz-owl-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .sz-owl-nav .sz-owl-prev,
  .sz-owl-nav .sz-owl-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: all;
  }

  .sz-owl-nav .sz-owl-prev {
    left: 10px;
  }

  .sz-owl-nav .sz-owl-next {
    right: 10px;
  }

  /* Testimonial Card */

  .bg-testimonial {
    background-image: var(--gradient-blau-blass);
    padding: 30px 0 30px 0 !important;
    position: relative;
    width: 100%!important;
    margin: 0!important;
    }
    
    .testimonial {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    margin: 15px 0;
    background: var(--white);
    box-shadow: var(--box-shadow-schmal);
    border-radius: 0;
    box-sizing: border-box;
    width: calc(100% - 5px);
    min-height: 320px;
    overflow: hidden;
  }

  /* Text Section */
  .testimonial .text {
    text-align: left;
    color: var(--body-font-color);
    height: 200px;
    overflow-y: auto;
  }

  .testimonial .text p {
    margin: 0;
    padding: 0;
  }

  .testimonials .item {
    list-style-type: none;
    margin: 0 5px;
    background: transparent;
    padding-bottom: 0px !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  .testimonial .bottom {
    display: flex;
    margin-top: 2em;
  }

  /* Image */
  .testimonial .bottom img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--box-shadow-schmal); /* Assign img-shadow class effect */
  }

  /* Name and Job Details */
  .testimonial .bottom .details {
    text-align: center; /* Center-align text */
    margin-top: 10px;
  }

  .testimonial .bottom .details h5 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
  }

  .testimonial .bottom .details p {
    margin: 5px 0 0;
    font-size: 90%; /* 90% of normal font size */ 
    color: var(--body-font-color);
  }

  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .testimonial {
      max-width: 100%; /* Full width on smaller screens */
    }
  }

  
/* Grid Layout Styles */
.sz-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1rem, 2.5vw, 27px);
  margin-block-end: clamp(2rem, 4vw, 40px);
  container-type: inline-size;
}

.sz-grid-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Add motion preferences */
  @media (prefers-reduced-motion: no-preference) {
    transition: transform 0.2s ease-out;
  }
}

.sz-box-image-text {
  background-color: #fff;
  /*border-radius: clamp(0px, 0.5vw, 8px);*/
  border-radius: 0px;
  box-shadow: var(--box-shadow);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Better touch handling */
  -webkit-tap-highlight-color: transparent;
}

.sz-box-image-text h4 {
  margin-block-start: 1rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.sz-box-image-text img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--box-shadow-schmal);
  /* Better loading */
  loading: lazy;
}

/* Optional: Class for square images if needed */
.sz-box-image-text img.square {
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Responsive breakpoints */
@container (max-width: 768px) {
  .sz-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  }
}

/* Fallback for older browsers */
@supports not (display: grid) {
  .sz-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .sz-grid-item {
    flex: 1 1 250px;
    margin: 0.5rem;
  }
}

  .tag-group {
    margin-bottom: 20px;
  }

  .tag-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
  }
 
 /* Rubriken sidebar */

 .rubrikenlink {
    color: var(--body-font-color);
    text-decoration: underline;
    line-height: 1!important;
    margin-bottom: 2em!important;
}

.rubrikenlink:hover {
    color: var(--navbar-border-top);
}
