/* quicksand-300 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300;
  src: url('webfonts/quicksand-v31-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  src: url('webfonts/quicksand-v31-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  src: url('webfonts/quicksand-v31-latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  src: url('webfonts/quicksand-v31-latin_latin-ext-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  src: url('webfonts/quicksand-v31-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
  --brand: #b42326;
  --brand-700: #a01f22;

}
html{
    scroll-snap-type: y mandatory;
    scroll-padding-top: 150px !important;
    scroll-behavior: smooth; /* optional */
}
    
body{
    margin:0;
    font-family: 'Quicksand',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
    color:var(--text);
    background:#fafafa; 
    font-size: 1.6em;
    background-image: url(images/abc_bg.svg);
    background-repeat: repeat-y;
    background-position: right;
}

a {
    color: #b42326;
}
a:hover {
    color: #000 !important;
}
nav a {
    color: #000 !important;
    font-weight: 700;
}  
.fas {
   color:var(--brand);
}
header {
    width: 100%;
}
ul {
    list-style: none;
}
ul li {
    margin-left: 0;
    padding-left: 0;
}
ul.nebennavi {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    font-weight: 700;
}
.rounded-top-right-0 {
  border-radius: 20px;                 
  border-top-right-radius: 0;          
}
.rounded-top-left-0 {
  border-radius: 20px;                 
  border-top-left-radius: 0;          
}
.schatten {
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.dachzeile {
    padding: 0;
    margin: 0;
    font-style: oblique;
    color:var(--brand);
}
.rund {
    border-radius: 50%;
}

sl-button[variant="primary"]::part(base):hover {
  background: #b42326 !important;   
  border-color: #b42326 !important; 
  color: #000 !important;      
}
button {
    background: #b42326 !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    padding: 8px;
    border-radius: 10px;
}

body {
    color: #000;
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    letter-spacing: 0.05em;
}

a:focus {
    outline: none;
}
a {
    color: #a4312e;
    text-decoration: none;
}
a:hover {
    color: #333;
}

h1, h4 {
    font-weight: 700;
    color: #a4312e;
}

h3 {
    font-size: 1.2em;
}

strong {
    font-weight: 700;
}
.rot {
    background-color: #a4312e;
}
.weiss {
    background-color: #fff;
}
.zentriert {
    text-align: center;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

body.user-is-tabbing .skip-link:focus {
  position: absolute;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  z-index: 10000;
  padding: 10px;
  background: #000;
  color: #fff;
}

#scrollBtn {
  display: none; 
  position: fixed; 
  bottom: 30px; 
  right: 30px;
  z-index: 99; 
  border: none; 
  outline: none; 
  background-color: none !important; 
  cursor: pointer; 
  font-size: 2.3em !important; 
}

#scrollBtn:hover, #scrollBtn a:hover {
  color: #a4312e; 
}
iframe {
    padding: 0px !important;
}
.abstand {
    padding-top: 50px;
    padding-bottom: 50px;
}
.abstand25 {
    padding-top: 25px;
    padding-bottom: 25px;
}
ul.inhalt {
    list-style-type: circle;
    margin-left: 5px;
    padding-left: 15px;
}

ul.inhalt li {
    margin-bottom: 10px;	
}
button.accordion-button {
    background-color: #fff !important;
}
.accordion-button a {
    color: #a4312e !important;
}
.accordion-body {
    border: none !important;
}
h2.accordion-header {
    font-size: 3.5em !important;
}

/* Header Base Styles - Mobile First */
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sticky .topbar {
    position: relative;
    text-align: center;
    height: 60px;
    transition: height 0.3s ease-in-out;
}

/* Logo ausblenden auf mobil */
.sticky .brand-icon {
    display: none !important;
}

/* Kontakt-Button ausblenden auf mobil */
.sticky .kontakt-button {
    display: none;
}

/* Brand/Titel zentriert und kleiner */
.sticky .brand {
    display: block;
    text-decoration: none;
}

.sticky .brand h1 {
    font-size: 1.0rem;
    padding-left: 0;
    margin: 0;
    line-height: 60px;
    padding-top: 0;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
}

/* Hamburger Menu standardmäßig sichtbar auf mobil */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation standardmäßig versteckt auf mobil */
#mainNav {
    display: none;
}

#mainNav.mobile-nav-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
}

#mainNav.mobile-nav-open a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* DESKTOP ANSICHT - ab 992px */
@media (min-width: 992px) {
    /* Header kompakt auf Desktop - RICHTIGE HÖHE */
    .sticky .topbar {
        height: auto;
        min-height: 130px;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Logo anzeigen - KLEINER! */
    .sticky .brand-icon {
        display: block !important;
        position: absolute;
        top: 10px;
        left: 20px;
    }
    
    .sticky .brand-icon img {
        height: 100px !important;
        width: auto;
    }
    
    /* Brand Container für Titel */
    .sticky .brand {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    /* Titel - GRÖßER */
    .sticky .brand h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        padding-top: 15px;
        margin-bottom: 8px;
        text-transform: uppercase;
        font-weight: 500;
    }
    
    /* Navigation - kompakt unter dem Titel */
    #mainNav {
        display: block;
        position: relative;
        width: 100%;
        text-align: center;
        padding: 5px 0;
        margin: 0;
    }
    
    #mainNav a {
        display: inline;
        padding: 0;
        border: none;
        margin: 0 8px;
        font-size: 0.9em;
    }
    
    /* Kontakt-Button - STICKY an seiner Position - IMMER sichtbar auf Desktop */
    .sticky .kontakt-button {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        width: 150px;
        height: 150px;
        background: var(--brand);
        border-radius: 75px;
        right: 20px;
        top: 40px;
        z-index: 1001;
        padding: 20px;
        color: #fff;
        font-weight: 700;
        text-align: center;
        font-size: 1.2rem;
        transform: rotate(5deg);
        text-decoration: none;
        transition: background 0.3s ease;
    }
    
    .sticky .kontakt-button:hover {
        background: var(--brand-700);
        color: #fff !important;
    }
    
    /* Hamburger verstecken */
    .hamburger {
        display: none;
    }
    
    /* ===== NACH DEM SCROLLEN: Header wird KLEIN, Button bleibt sichtbar ===== */
    .sticky.scrolled .topbar {
        height: 60px;
        min-height: auto;
        padding: 0;
        display: block;
    }
    
    .sticky.scrolled .brand-icon {
        display: none !important;
    }
    
    .sticky.scrolled .brand {
        display: block;
        width: auto;
        margin: 0;
    }
    
    .sticky.scrolled .brand h1 {
        font-size: 1.2rem;
        line-height: 60px;
        padding-top: 0;
        margin-bottom: 0;
    }
    
    /* WICHTIG: Button bleibt auch nach dem Scrollen sichtbar! */
    /* (Kein .sticky.scrolled .kontakt-button { display: none; } mehr!) */
    
    /* Hamburger nach Scrollen anzeigen */
    .sticky.scrolled .hamburger {
        display: flex;
    }
    
    /* Navigation nach Scrollen verstecken */
    .sticky.scrolled #mainNav {
        display: none;
    }
    
    .sticky.scrolled #mainNav.mobile-nav-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: left;
    }
    
    .sticky.scrolled #mainNav.mobile-nav-open a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        margin: 0;
    }
}
