/* -------------------------------------------------------------
style sheet for textpraxis.ch  |  general styles

(c) sept 2026 by designsia.ch / sia (Responsive Design)
------------------------------------------------------------- */

/* inter-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/inter-v20-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
    --body-font-family: Inter, Sans-Serif, Arial;
    --cassiopeia-font-family-headings: Inter, Sans-Serif, Arial;
    --body-font-size: calc(0.9rem + .21vw);
    --body-font-weight: 400;
    --body-line-height: 1.5;
    --body-color: rgb(68,68,68,1);
    --color-primary: rgb(141,0,74,1);
    --color-primary25: rgb(141,0,74,0.05);
    --body-bg: #fff;
    --heading-color: inherit;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    z-index: 1;
    letter-spacing: 0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(141, 0, 74, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(circle at 85% 85%, black 0%, transparent 60%);
    mask-image: radial-gradient(circle at 85% 85%, black 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20vw;
    height: 20vh;
    max-width: 200px;
    max-height: 200px;
    min-width: 100px;
    min-height: 100px;

    background-image: url(../images/textpraxis-favicon.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: calc(100% - .6rem) calc(100% );

    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.grid-child {
    max-width: 1100px;
}

.site-grid {
    grid-gap: 0 1em;
    grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 16.4375rem)) [main-end] minmax(0, 1fr) [full-end];
    grid-template-areas:
        ".banner banner banner banner."
        ".top-a  top-a  top-a  top-a. "
        ".top-b  top-b  top-b  top-b. "
        ".comp   comp   comp   comp.  "
        ".side-r side-r side-r side-r."
        ".side-l side-l side-l side-l."
        ".bot-a  bot-a  bot-a  bot-a. "
        ".bot-b  bot-b  bot-b  bot-b. ";
    display: grid;
}

.container-header {
    background: transparent;
    padding-top: 1.5rem;
}

.container-header .container-nav {
    display: flex;
    width: 100%;
    padding: 0 1em 1rem 1em;
}

.container-header nav {
    margin-top: 0rem!important;
}

.logo img {
    max-width: 180px;
}

ul.referenzen {
    columns: 1;
}

.container-header .navbar-toggler {
    color: var(--color-primary);
    font-size: 3rem;
    cursor: pointer;
    border: 1px solid #fff;
}

.back-to-top-link {
    color: #ffffff!important;
    background: var(--color-primary)!important;
    border: 1px solid #ffffff;
    border-radius: 50%;
    padding: .8em;
    bottom: 2rem;
}

.back-to-top-link:hover {
    color: #ffffff!important;
    background: var(--body-color)!important;
}


small, .small {
    font-size: .9em;
}

p.zitat {
    background: url(../images/anfuehrungszeichen.png) no-repeat 0px 2px;
    text-indent: 2rem;
    font-size: 0.9em;
    margin: 2.5rem 0 .6rem 0;
}

li { }

.footer {
    margin-top: 3rem;
    background: var(--body-color) ;
    color: #ffffff;
}

.footer .grid-child {
    align-items: start;
}

footer p {
    font-size: 0.9em;
    margin: 0px;
    color: #ffffff;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    color: var(--body-color);
    margin-top: .5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

h1 {
    font-size:              1.6rem;
    color: var(--color-primary);
}

h2, .blog .item h1 {
    color: var(--color-primary);
    font-size:              1.3rem;
}

h3, h4, h5, h6 {
    font-weight:            bold;
    font-size:              1em;
 }

 a, .readmore a.btn, .footer a:not(.btn) {
    background: none;
    border: none;
    padding: 0rem;
    font-size: var(--body-font-size) ;
    color: var(--color-primary) ;
    text-decoration: underline;
}

.footer a:not(.btn) {
    color: #ffffff!important;
}

 a:hover, .readmore a:hover.btn, .footer a:hover{
    color: var(--color-primary)!important;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff!important;
}

.btn {
    --btn-color: #ffffff;
    --btn-bg: var(--color-primary);
    --btn-border-radius: 1.5rem;
}

.btn:hover, .btn-check+.btn:hover {
    color:#ffffff!important;
    background:var(--body-color)!important;
}

.icon-chevron-right {
    display: none;
}

.mod-menu > li a, .container-header .mod-menu > li a {
    padding: .5rem .5rem;
    font-weight: 900;
    color: var(--body-color);
    font-size: 1rem;
    line-height: 1.2em;
    display: inline-block;
    text-decoration: none!important;
}

.container-sidebar-left .mainmenu {
    display: none;
}

#mainmenu {
    padding-bottom: 2rem;
}

.mod-menu > li.current a, .container-header .mod-menu > li.current a,
.mod-menu > li a:hover, .container-header .mod-menu > li a:hover {
    background: none;
    color: var(--color-primary);
    text-decoration: none;
}

.book {
    background-color: #ffffff;
    max-width: 700px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
    align-items: center; /* Vertikale Zentrierung von Bild und Text */
    margin-bottom: 2rem;
}

.book img {
    width: 100%;
    height: auto;
    max-width: 150px !important;
    display: block;
    margin: 0 auto;

    /* Weißer Rahmen & Bild-Details */
    padding: 6px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}


@media (min-width: 768px) {
    ul.referenzen {
        columns: 2;
    }
}


@supports (display: grid) {
    @media (width >= 992px) {
        .site-grid {
            grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, 16.4375rem)) [main-end] minmax(0, 1fr) [full-end];
            grid-template-areas:
                ".banner banner banner banner."
                ".top-a  top-a  top-a  top-a. "
                ".top-b  top-b  top-b  top-b. "
                ".side-l comp   comp   side-r."
                ".bot-a  bot-a  bot-a  bot-a. "
                ".bot-b  bot-b  bot-b  bot-b. ";
        }
    }
}

@media (min-width: 992px) {

.container-sidebar-right  {
   text-align: right;
}

.container-header .mod-menu > li + li {
    margin-left: .6rem;
}

.container-sidebar-left .mainmenu {
    display: block;
}

.mod-menu > li a, .container-header .mod-menu > li a {
    padding: 0rem .5rem;
}

.footer .grid-child {
    align-items: center;
}
}

@media (min-width: 1340px) {
.container-header .container-nav {
    padding: 0 0em 2rem 0em;
}
}
