/*
 * pwr2fl.com – Framework
 * ------------------------------------------------------------------
 * Schlanker Ersatz für Bootstrap 5.3.3. Enthält nur das, was die Website
 * tatsächlich nutzt – mit den exakt gleichen Werten, damit die Optik
 * unverändert bleibt:
 *
 *   1. Variablen
 *   2. Reboot       (Grundformatierung der HTML-Elemente)
 *   3. Grid         (.container, .row, .col-*, .g-*)
 *   4. Button-Basis (.btn – Farben/Abstände kommen aus style.css)
 *   5. Hilfsklassen (.d-flex, .align-items-*)
 *
 * WICHTIG: Diese Datei wird NACH style.css geladen (wie früher Bootstrap).
 * Einige Regeln hier überschreiben daher bewusst style.css, z. B. die
 * Schriftart von body/Überschriften. Reihenfolge im <head> nicht ändern,
 * sonst ändert sich die Optik.
 *
 * Breakpoints: sm ≥ 576px · md ≥ 768px · lg ≥ 992px
 * Grundlage: Bootstrap v5.3.3 (MIT-Lizenz, https://getbootstrap.com)
 */


/* 1. Variablen ---------------------------------------------------------- */
:root{
    --fw-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --fw-body-color: #212529;
    --fw-body-bg: #fff;
    --fw-link-color-rgb: 13, 110, 253;
    --fw-link-hover-color-rgb: 10, 88, 202;
    --fw-gutter: 1.5rem;
}


/* 2. Reboot ------------------------------------------------------------- */
*,
*::before,
*::after{
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference){
    :root{
        scroll-behavior: smooth;
    }
}

body{
    margin: 0;
    font-family: var(--fw-font-sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--fw-body-color);
    background-color: var(--fw-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6{
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

h1{ font-size: calc(1.375rem + 1.5vw); }
h2{ font-size: calc(1.325rem + .9vw); }
h3{ font-size: calc(1.3rem + .6vw); }
h4{ font-size: calc(1.275rem + .3vw); }
h5{ font-size: 1.25rem; }
h6{ font-size: 1rem; }

@media (min-width: 1200px){
    h1{ font-size: 2.5rem; }
    h2{ font-size: 2rem; }
    h3{ font-size: 1.75rem; }
    h4{ font-size: 1.5rem; }
}

p{
    margin-top: 0;
    margin-bottom: 1rem;
}

ol,
ul{
    padding-left: 2rem;
}

ol,
ul,
dl{
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol{
    margin-bottom: 0;
}

b,
strong{
    font-weight: bolder;
}

small{
    font-size: .875em;
}

/* Link-Farbe über Variable, damit spezifischere Regeln (z. B. "footer a") beim Hover greifen */
a{
    color: rgba(var(--fw-link-color-rgb), 1);
    text-decoration: underline;
}

a:hover{
    --fw-link-color-rgb: var(--fw-link-hover-color-rgb);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover{
    color: inherit;
    text-decoration: none;
}

img,
svg{
    vertical-align: middle;
}

button{
    border-radius: 0;
}

button:focus:not(:focus-visible){
    outline: 0;
}

button,
input,
select,
textarea{
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
[type=button],
[type=submit],
[type=reset]{
    -webkit-appearance: button;
}

button:not(:disabled),
[type=button]:not(:disabled),
[type=submit]:not(:disabled),
[type=reset]:not(:disabled){
    cursor: pointer;
}

iframe{
    border: 0;
}

[hidden]{
    display: none !important;
}


/* 3. Grid --------------------------------------------------------------- */
/* max-width des Containers wird in style.css gesetzt */
.container{
    --fw-gutter-x: var(--fw-gutter);
    --fw-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--fw-gutter-x) * .5);
    padding-left: calc(var(--fw-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.row{
    --fw-gutter-x: var(--fw-gutter);
    --fw-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--fw-gutter-y));
    margin-right: calc(-.5 * var(--fw-gutter-x));
    margin-left: calc(-.5 * var(--fw-gutter-x));
}

.row > *{
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--fw-gutter-x) * .5);
    padding-left: calc(var(--fw-gutter-x) * .5);
    margin-top: var(--fw-gutter-y);
}

/* Abstände zwischen Spalten (g = beide Richtungen) */
.g-0{ --fw-gutter-x: 0;       --fw-gutter-y: 0; }
.g-1{ --fw-gutter-x: .25rem;  --fw-gutter-y: .25rem; }
.g-2{ --fw-gutter-x: .5rem;   --fw-gutter-y: .5rem; }
.g-3{ --fw-gutter-x: 1rem;    --fw-gutter-y: 1rem; }
.g-4{ --fw-gutter-x: 1.5rem;  --fw-gutter-y: 1.5rem; }
.g-5{ --fw-gutter-x: 3rem;    --fw-gutter-y: 3rem; }

/* Spalten – ohne Breakpoint (alle Bildschirmgrößen) */
.col-1{ flex: 0 0 auto; width: 8.33333333%; }
.col-2{ flex: 0 0 auto; width: 16.66666667%; }
.col-3{ flex: 0 0 auto; width: 25%; }
.col-4{ flex: 0 0 auto; width: 33.33333333%; }
.col-5{ flex: 0 0 auto; width: 41.66666667%; }
.col-6{ flex: 0 0 auto; width: 50%; }
.col-7{ flex: 0 0 auto; width: 58.33333333%; }
.col-8{ flex: 0 0 auto; width: 66.66666667%; }
.col-9{ flex: 0 0 auto; width: 75%; }
.col-10{ flex: 0 0 auto; width: 83.33333333%; }
.col-11{ flex: 0 0 auto; width: 91.66666667%; }
.col-12{ flex: 0 0 auto; width: 100%; }

/* sm – ab 576px */
@media (min-width: 576px){
    .col-sm-1{ flex: 0 0 auto; width: 8.33333333%; }
    .col-sm-2{ flex: 0 0 auto; width: 16.66666667%; }
    .col-sm-3{ flex: 0 0 auto; width: 25%; }
    .col-sm-4{ flex: 0 0 auto; width: 33.33333333%; }
    .col-sm-5{ flex: 0 0 auto; width: 41.66666667%; }
    .col-sm-6{ flex: 0 0 auto; width: 50%; }
    .col-sm-7{ flex: 0 0 auto; width: 58.33333333%; }
    .col-sm-8{ flex: 0 0 auto; width: 66.66666667%; }
    .col-sm-9{ flex: 0 0 auto; width: 75%; }
    .col-sm-10{ flex: 0 0 auto; width: 83.33333333%; }
    .col-sm-11{ flex: 0 0 auto; width: 91.66666667%; }
    .col-sm-12{ flex: 0 0 auto; width: 100%; }
}

/* md – ab 768px */
@media (min-width: 768px){
    .col-md-1{ flex: 0 0 auto; width: 8.33333333%; }
    .col-md-2{ flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3{ flex: 0 0 auto; width: 25%; }
    .col-md-4{ flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5{ flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6{ flex: 0 0 auto; width: 50%; }
    .col-md-7{ flex: 0 0 auto; width: 58.33333333%; }
    .col-md-8{ flex: 0 0 auto; width: 66.66666667%; }
    .col-md-9{ flex: 0 0 auto; width: 75%; }
    .col-md-10{ flex: 0 0 auto; width: 83.33333333%; }
    .col-md-11{ flex: 0 0 auto; width: 91.66666667%; }
    .col-md-12{ flex: 0 0 auto; width: 100%; }
}

/* lg – ab 992px */
@media (min-width: 992px){
    .col-lg-1{ flex: 0 0 auto; width: 8.33333333%; }
    .col-lg-2{ flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3{ flex: 0 0 auto; width: 25%; }
    .col-lg-4{ flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5{ flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6{ flex: 0 0 auto; width: 50%; }
    .col-lg-7{ flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8{ flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9{ flex: 0 0 auto; width: 75%; }
    .col-lg-10{ flex: 0 0 auto; width: 83.33333333%; }
    .col-lg-11{ flex: 0 0 auto; width: 91.66666667%; }
    .col-lg-12{ flex: 0 0 auto; width: 100%; }
}


/* 4. Button-Basis ------------------------------------------------------- */
/* Farben, Padding und Radius kommen aus style.css (.btn) */
.btn{
    display: inline-block;
    padding: .375rem .75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--fw-body-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: .375rem;
    background-color: transparent;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

@media (prefers-reduced-motion: reduce){
    .btn{
        transition: none;
    }
}


/* 5. Hilfsklassen ------------------------------------------------------- */
.d-flex{ display: flex !important; }
.align-items-start{ align-items: flex-start !important; }
.align-items-center{ align-items: center !important; }
.align-items-end{ align-items: flex-end !important; }

/* Unsichtbar, aber für Screenreader und Suchmaschinen lesbar */
.visually-hidden{
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
