body,form,figure{margin:0;padding:0}img{border:0}header,footer,nav,section,aside,article,figure,figcaption{display:block}body{font-size:100.01%}select,input,textarea{font-size:99%}#container,.inside{position:relative}#main,#left,#right{float:left;position:relative}#main{width:100%}#left{margin-left:-100%}#right{margin-right:-100%}#footer{clear:both}#main .inside{min-height:1px}.ce_gallery>ul,.content-gallery>ul{margin:0;padding:0;overflow:hidden;list-style:none}.ce_gallery>ul li,.content-gallery>ul li{float:left}.ce_gallery>ul li.col_first,.content-gallery>ul li.col_first{clear:left}.float_left,.media--left>figure{float:left}.float_right,.media--right>figure{float:right}.block{overflow:hidden}.media{display:flow-root}.clear,#clear{height:.1px;font-size:.1px;line-height:.1px;clear:both}.invisible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.custom{display:block}#container:after,.custom:after{content:"";display:table;clear:both}
@media (max-width:767px){#wrapper{margin:0;width:auto}#container{padding-left:0;padding-right:0}#main,#left,#right{float:none;width:auto}#left{right:0;margin-left:0}#right{margin-right:0}}img{max-width:100%;height:auto}.audio_container audio{max-width:100%}.video_container video{max-width:100%;height:auto}.aspect,.responsive{position:relative;height:0}.aspect iframe,.responsive iframe{position:absolute;top:0;left:0;width:100%;height:100%}.aspect--16\:9,.responsive.ratio-169{padding-bottom:56.25%}.aspect--16\:10,.responsive.ratio-1610{padding-bottom:62.5%}.aspect--21\:9,.responsive.ratio-219{padding-bottom:42.8571%}.aspect--4\:3,.responsive.ratio-43{padding-bottom:75%}.aspect--3\:2,.responsive.ratio-32{padding-bottom:66.6666%}.aspect--9\:16,.responsive.ratio-916{padding-bottom:177.7777%}.aspect--1\:1,.responsive.ratio-11{padding-bottom:100%}
/* ============================================================
   MAST NATURSTEINE – mast.css
   1:1 Nachbau der Originalseite mast-natursteine.de
   Für Contao 5 / nginx / MariaDB Stack
   ============================================================ */

/* ============================================================
   0. CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    --color-pink:       #e4007b;
    --color-dark-grey:  #363636;
    --color-grey:       #555555;
    --color-light-grey: #f0f0f0;
    --color-white:      #ffffff;
    --color-black:      #000000;

    --font-regular:  "RobotoCondensed-Regular", Arial, sans-serif;
    --font-bold:     "RobotoCondensed-Bold", Arial, sans-serif;

    --container-wide:   1400px;
    --container-normal: 1100px;
    --container-narrow: 900px;
    --container-narrow2: 700px;

    --transition-base:  all 0.3s ease;
    --transition-slow:  all 0.6s ease;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-regular);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark-grey);
    background: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-pink);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bold);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* ============================================================
   2. UTILITY / LAYOUT KLASSEN
   ============================================================ */

/* --- Container --- */
.main-container {
    max-width: var(--container-normal);
    margin: 0 auto;
    padding: 0 20px;
}

.main-container.wider {
    max-width: var(--container-wide);
}

.main-container.narrow {
    max-width: var(--container-narrow);
}

.main-container.narrow2 {
    max-width: var(--container-narrow2);
}

/* --- Hintergründe --- */
.white_bg  { background-color: var(--color-white); }
.dg_bg     { background-color: var(--color-dark-grey); }
.g_bg      { background-color: var(--color-grey); }
.pink_bg   { background-color: var(--color-pink) !important; }
.black_bg  { background-color: var(--color-black) !important; }
.dgbg      { background-color: #1a1a1a; }

/* --- Textfarben --- */
.white      { color: var(--color-white) !important; }
.g          { color: #aaaaaa; }
.uppercase  { text-transform: uppercase; }

/* --- Highlights / Links --- */
.pink_highlights h1,
.pink_highlights h2,
.pink_highlights h3 {
    color: var(--color-pink);
}

.pink_links a:hover {
    color: var(--color-pink);
}

.pink_linkshover a:hover {
    color: var(--color-pink) !important;
}

.blue_links a {
    color: #aac4dd;
}

.white_highlights h1,
.white_highlights h2 {
    color: var(--color-white);
}

/* --- Block / Content --- */
.cont-block {
    position: relative;
    width: 100%;
}

.nooverflow {
    overflow: hidden;
}

.center {
    text-align: center;
}

/* --- Padding-Varianten --- */
.widepad {
    padding: 80px 20px;
}

.lowpad {
    padding: 40px 20px;
}

/* --- Clear --- */
.cf::after,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================================
   3. HEADER / NAVIGATION
   ============================================================ */
#topmenu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: var(--transition-base);
}

#topmenu-wrapper .main-container.wider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    gap: 20px;
}

#logo_img {
    height: 52px;
    width: auto;
    flex-shrink: 0;
    transition: var(--transition-base);
}

#logo_img:hover {
    opacity: 0.85;
}

/* Spacer unterhalb des fixed Headers */
#top_spacer {
    height: 78px;
}

/* --- Navigation Liste --- */
nav#main-nav {
    flex: 1;
}

.mod-menu.nav,
ul.mod-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

.nav-item a {
    display: block;
    padding: 8px 12px;
    font-family: var(--font-bold);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-item a:hover,
.nav-item.current a,
.nav-item.active a {
    color: var(--color-pink);
}

.nav-item.current a,
.nav-item.active a {
    border-bottom: 2px solid var(--color-pink);
}

/* Kontakt-Button oben rechts */
.top_contact_link {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid var(--color-white);
    font-family: var(--font-bold);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
    flex-shrink: 0;
    transition: var(--transition-base);
}

.top_contact_link:hover {
    background: var(--color-pink);
    border-color: var(--color-pink);
    color: var(--color-white);
}

/* --- Burger-Menü (Mobile) --- */
#menu-activator {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
}

#menu-activator div {
    width: 100%;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================================
   4. HERO / CONTENT SLIDER
   ============================================================ */
.cont-block.high {
    min-height: 550px;
    position: relative;
}

.contentslider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.contslide {
    position: relative;
    width: 100%;
    height: 100%;
}

.contslide_img_wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.contslide_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Parallax Effekt */
.bg_parallax {
    transform: scale(1.1);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Center-Logo im Slider */
.contentslide_centerlogo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 120px;
    width: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

/* Slider Text-Overlay */
.contentslide_text_wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 5;
}

.contentslide_text {
    padding: 40px;
    max-width: 600px;
}

.contentslide_tit {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-bold);
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ============================================================
   5. OVERLAY MASK & IMAGE EFFECT
   ============================================================ */
.overlay_mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    transition: var(--transition-slow);
}

.imgeffect:hover .overlay_mask {
    background: rgba(0, 0, 0, 0.25);
}

.imgeffect {
    overflow: hidden;
    position: relative;
}

.imgeffect img.section_bg {
    transition: transform 0.6s ease;
}

.imgeffect:hover img.section_bg {
    transform: scale(1.05);
}

/* ============================================================
   6. SECTION HINTERGRUNDBILDER
   ============================================================ */
.section_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.section_bg._hc {
    object-position: center center;
}

.section_bg._ht {
    object-position: center top;
}

.section_bg._hb {
    object-position: center bottom;
}

/* Spezial: bei News-Sektionen leicht rechts */
.section_bg._special {
    object-position: 70% center;
}

/* ============================================================
   7. FLEXBOX LAYOUT – KATEGORIEBOXEN UND SEKTIONEN
   ============================================================ */
.flexwrap {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.flexwrap.respblock {
    gap: 0;
}

.flexbox {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
}

/* Größen */
.flexbox._s1 { flex: 1 1 300px; }
.flexbox._s2 { flex: 1 1 33.333%; }
.flexbox._s3 { flex: 1 1 50%; }

/* Content im flexbox */
.flexpad {
    position: relative;
    z-index: 5;
    padding: 30px 40px;
    color: var(--color-white);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.flexpad h1,
.flexpad h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--color-white);
    margin-bottom: 10px;
}

/* ============================================================
   8. ABSOLUT-BOX LAYOUT (Zweispaltiger Abschnitt)
   ============================================================ */
.fixedh_1 { min-height: 480px; position: relative; }
.fixedh_2 { min-height: 380px; position: relative; }
.fixedh_3 { min-height: 300px; position: relative; }

.absbox {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}

.absbox._half { width: 50%; }
.absbox._l    { left: 0; }
.absbox._r    { right: 0; }

.absbox_pad {
    padding: 50px 60px;
}

.absbox_pad.centered {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.absbox_pad h1 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

/* ============================================================
   9. MINI DIVIDER (Akzent-Linie unter Überschriften)
   ============================================================ */
.minidivider {
    width: 50px;
    height: 3px;
    margin: 12px 0 20px 0;
    flex-shrink: 0;
}

/* ============================================================
   10. BUBBLE LINK BUTTONS
   ============================================================ */
.bubblelink {
    display: inline-block;
    font-family: var(--font-bold);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    margin-top: 20px;
}

.bubblelink .bubble_padder {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Varianten */
.bubblelink.transparent.white.white_border {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.bubblelink.transparent.white.white_border:hover {
    background: var(--color-white);
    color: var(--color-dark-grey);
}

.bubblelink.transparent.pink.pink_border {
    background: transparent;
    color: var(--color-pink);
    border-color: var(--color-pink);
}

.bubblelink.transparent.pink.pink_border:hover {
    background: var(--color-pink);
    color: var(--color-white);
}

.bubblelink.v2 {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
    margin-top: 0;
}

/* ============================================================
   11. KONTAKTFORMULAR-SEKTION
   ============================================================ */
.main-container.wider.center.white_bg.dg.widepad.nooverflow {
    position: relative;
    text-align: center;
}

#kontakt-section {
    position: relative;
}

.narrow2 {
    position: relative;
    z-index: 5;
}

.narrow2 h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 10px;
}

.narrow2 > p {
    margin-bottom: 30px;
    color: var(--color-grey);
    font-size: 15px;
}

/* --- Contao Formular-Styling (1:1 nach Original) --- */
.formbody,
form.mast-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
}

.widget,
.cf-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget label,
.cf-label {
    font-size: 13px;
    color: #333333;
    font-weight: 400;
    font-family: var(--font-regular);
}

.widget input,
.widget textarea,
.widget select,
.cf-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    color: #333333;
    background: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 0;
    outline: none;
    font-family: var(--font-regular);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget input:focus,
.widget textarea:focus,
.cf-input:focus {
    border-color: var(--color-pink);
    box-shadow: 0 0 0 2px rgba(228,0,123,0.15);
}

.widget textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox */
.widget.checkbox,
.cf-checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.widget.checkbox input[type="checkbox"],
.cf-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-pink);
}

.widget.checkbox label,
.cf-checkbox-group label {
    font-size: 13px;
    line-height: 1.4;
}

.widget.checkbox label a,
.cf-checkbox-group label a {
    color: var(--color-pink);
    text-decoration: underline;
}

/* Submit Button */
.widget.submit,
.cf-control-group[data-type="submit"],
.submit {
    margin-top: 8px;
}

.widget.submit button,
.cf-btn,
button[type="submit"].mast-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--color-pink);
    color: var(--color-white);
    border: none;
    font-family: var(--font-bold);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-base);
}

.widget.submit button:hover,
.cf-btn:hover {
    background: #c20068;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(228,0,123,0.4);
}

/* Pflichtfeld-Markierung */
.mandatory,
.cf-required-label {
    color: var(--color-pink);
    margin-left: 3px;
}

/* Captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-equation {
    font-size: 16px;
    font-family: var(--font-bold);
    color: #333;
    white-space: nowrap;
}

/* Erfolgs- / Fehlermeldungen */
.formbody .confirm,
.formbody .error {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.formbody .confirm {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.formbody .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   12. FOOTER INFO BEREICH (Adresse, Öffnungszeiten, Kontakt)
   ============================================================ */
.footer-info-block {
    padding: 60px 20px;
}

.footer-info-block .flexwrap.respblock {
    align-items: flex-start;
}

.footer-info-block .flexbox._s1 {
    min-height: auto;
    flex: 1 1 250px;
}

.footer-info-block .flexpad h1 {
    font-size: 1.3rem;
    color: var(--color-pink);
    margin-bottom: 10px;
}

.footer-info-block .flexpad p {
    font-size: 14px;
    line-height: 1.8;
    color: #cccccc;
}

.footer-info-block .flexpad a {
    color: var(--color-pink);
}

.footer-info-block .flexpad a:hover {
    color: var(--color-white);
}

/* Google Maps */
.maps-wrapper iframe {
    display: block;
    width: 100%;
    height: 490px;
    border: 0;
}

/* ============================================================
   13. FOOTER BAR
   ============================================================ */
#footer-wrapper {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #888888;
}

#footer-wrapper p {
    margin: 6px 0;
}

#footer-wrapper a {
    color: #aac4dd;
}

#footer-wrapper a:hover {
    color: var(--color-white);
}

#footer-wrapper b {
    color: var(--color-white);
}

/* ============================================================
   14. ANCHORLINKS
   ============================================================ */
.anchorlink {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

/* ============================================================
   15. GALERIE (PhotoSwipe + SIGE-Style)
   ============================================================ */
.sige {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sige_cont {
    flex: 0 0 auto;
}

.sige_thumb {
    display: block;
    width: 200px;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.sige_thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.sige_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.sige_thumb:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.sige_clr {
    display: block;
    clear: both;
}

/* Galerie-Container (Floater Layout wie Original) */
.floater {
    position: relative;
}

.floater._l { float: left; }
.floater._r { float: right; }
.floater._s1 { width: 60%; }
.floater._s2 { width: 40%; }

.floater_pad {
    padding: 40px;
}

/* ID-Hintergrundeffekt für Galerie-Sidebar */
#contbg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.97;
}

.contstyles h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.contstyles h2 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    color: var(--color-pink);
}

/* ============================================================
   16. ANIMATIONS
   ============================================================ */
.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fadeIn {
    animation-name: fadeIn;
}

/* ============================================================
   17. RESPONSIVE – TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    .nav-item a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .absbox._half {
        width: 55%;
    }

    .floater._s1 { width: 100%; float: none; }
    .floater._s2 { width: 100%; float: none; }

    .sige_thumb {
        width: 160px;
        height: 160px;
    }
}

/* ============================================================
   18. RESPONSIVE – MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Header */
    #topmenu-wrapper .main-container.wider {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    #menu-activator {
        display: flex;
        order: 2;
    }

    .top_contact_link {
        order: 3;
        font-size: 11px;
        padding: 6px 12px;
    }

    /* Navigation: ausgeblendet bis Burger geklickt */
    nav#main-nav {
        order: 4;
        width: 100%;
        display: none;
    }

    nav#main-nav.open {
        display: block;
    }

    .mod-menu.nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .nav-item {
        width: 100%;
    }

    .nav-item a {
        padding: 10px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-item.current a {
        border-bottom: 1px solid var(--color-pink);
    }

    /* Slider */
    .contentslider {
        height: 300px;
    }

    .contentslide_centerlogo {
        height: 70px;
    }

    /* Sections */
    .absbox {
        position: relative;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
    }

    .absbox_pad {
        padding: 30px 20px;
    }

    .fixedh_1,
    .fixedh_2,
    .fixedh_3 {
        min-height: auto;
    }

    .flexbox._s2 {
        flex: 1 1 100%;
        min-height: 260px;
    }

    .bubblelink.v2 {
        position: static;
        margin-top: 15px;
    }

    /* Galerie */
    .sige {
        gap: 5px;
        justify-content: center;
    }

    .sige_thumb {
        width: 140px;
        height: 140px;
    }

    /* Footer */
    .footer-info-block .flexbox._s1 {
        flex: 1 1 100%;
    }

    .maps-wrapper iframe {
        height: 280px;
    }

    .widepad {
        padding: 40px 15px;
    }

    .lowpad {
        padding: 20px 15px;
    }
}

/* ============================================================
   19. PRINT
   ============================================================ */
@media print {
    #topmenu-wrapper,
    #menu-activator,
    .top_contact_link { display: none; }

    #top_spacer { height: 0; }
}

