
*, *::before, *::after { box-sizing: border-box; }
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin-block-end: 0;
    font-family: var(--font-base);
}
ul[role="list"],
ol[role="list"] {
    list-style: none;
}
input, button, textarea, select {
    font: inherit;
}
body, html {
    height: 100%;
    margin: 0;
}
body {
    min-height: 100vh;
    line-height: 1.5;
    padding: 0;
    text-align: center;
}
h1, h2, h3, h4, button, input, label {
    line-height: 1.1;
}
h1, h2, h3, h4 { font-size: var(--size-step-3); }
img, picture {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto;
}
a:not([class]) {
    text-decoration-skip-ink: auto;
    white-space: nowrap;
    color: currentColor;
}
a {
    text-decoration: none;
}

/* fonts */
/* roboto-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300.woff2') format('woff2');
}
/* roboto-300italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/roboto-v30-latin-300italic.woff2') format('woff2');
}
/* roboto-regular - latin */
@font-face {
    font-display: swap;
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-regular.woff2') format('woff2');
}
/* roboto-italic - latin */
@font-face {
    font-display: swap;
    font-family: "Roboto";
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/roboto-v30-latin-italic.woff2') format('woff2');
}
/* lobster-regular - latin */
@font-face {
    font-display: swap;
    font-family: "Lobster";
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lobster-v30-latin-regular.woff2') format('woff2');
}
/* cinzel-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: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cinzel-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fluid system typography */
:root {
    --color-dark: #404040;
    --color-light: #fafafa;
    --color-primary: #0a5694;
    --color-secondary: #09487C;
    --space-xs: clamp(0.75rem, 0.69rem + 0.29vw, 0.9375rem);
    --space-s: clamp(1rem, 0.92rem + 0.39vw, 1.25rem);
    --space-m: clamp(1.5rem, 1.38rem + 0.58vw, 1.875rem);
    --space-l: clamp(2rem, 1.84rem + 0.78vw, 2.5rem);
    --space-xl: clamp(3rem, 2.77rem + 1.17vw, 3.75rem);
    --space-2xl: clamp(4rem, 3.69rem + 1.55vw, 5rem);
    --space-3xl: clamp(6rem, 5.53rem + 2.33vw, 7.5rem);
    --space-xs-s: clamp(0.75rem, 0.59rem + 0.78vw, 1.25rem);
    --space-s-m: clamp(1rem, 0.73rem + 1.36vw, 1.875rem);
    --space-m-l: clamp(1.5rem, 1.19rem + 1.55vw, 2.5rem);
    --space-l-xl: clamp(2rem, 1.46rem + 2.72vw, 3.75rem);
    --space-l-2xl: clamp(2rem, 1.07rem + 4.66vw, 5rem);
    --space-xl-2xl: clamp(3rem, 2.38rem + 3.11vw, 5rem);
    --space-2xl-3xl: clamp(4rem, 2.91rem + 5.44vw, 7.5rem);
    --size-step-0: clamp(1rem, 0.92rem + 0.39vw, 1.25rem);
    --size-step-1: clamp(1.1875rem, 1.01rem + 0.87vw, 1.75rem);
    --size-step-2: clamp(1.4375rem, 1.11rem + 1.65vw, 2.5rem);
    --size-step-3: clamp(1.75rem, 1.19rem + 2.82vw, 3.5625rem);
    --size-step-4: clamp(2.0625rem, 1.15rem + 4.56vw, 5rem);
    --size-step-5: clamp(2.5rem, 1.08rem + 7.09vw, 7.0625rem);
    --size-step-6: clamp(3rem, 0.84rem + 10.78vw, 9.9375rem);
    --font-base: "Roboto", "San Francisco", "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif;
    --font-serif: "Charter", "Bitstream Charter", "Sitka Text", "Cambria", "Noto Serif", serif;
    --font-spanhead: "Lobster", cursive;
    --gutter: var(--space-s-m);
    --border-radius: var(--size-step-1);
    --transition-base: 250ms ease;
    --transition-movement: 200ms linear;
    --transition-fade: 200ms ease;
    --transition-bounce: 500ms cubic-bezier(0.5, 0.05, 0.2, 1.5);
    --tracking: -0.05ch;
    --tracking-s: -0.075ch;
}
:root { font-size: clamp(14px, 1rem + 0.25vw, 18px); }
/* custom css */
header {
    grid-area: header;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    background-color: #fff;
}
header img {
    width: 100vw;
    height: auto;
}
.headingline span {
    font-family: var(--font-spanhead);
    color: #767676;
    font-weight: 200;
}
h1, h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #444;
    text-align: center;
}
p, a {
    font-size: var(--size-step-0);
    line-height: 1.4;
    margin-bottom: var(--space-s);
    text-align: left;
    max-width: 80ch;
}
#start {
    grid-column: 1;
    padding: 1rem;
    margin-left: var(--space-l);
    text-align: center;
}
.center {
    text-align: center;
}
#start p {
    text-align: center;
    margin: 0 auto;
}
.bigpic {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

footer {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column for mobile and smaller screens */
    background-color: #F1EDE2;
    align-items: center;
    justify-items: center;
    text-align: center;
}
footer > *:first-child { order: 2; }
#impressum, #datenschutz { margin-left: var(--space-l); }
.subtle {
    color: #444;
    font-weight: 300;
    font-size: 1rem;
}
.social  {
    color: #1877F2;
    font-family: "Lobster";
    font-size: 2rem;
    text-align: center;
    align-items: center;
    justify-items: center;
}
.social span{ color: #C13584; }
.msvg {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 2rem;
}
h2 span {
    font-family: var(--font-spanhead);
    color: #767676;
    font-weight: 200;
}
#rohde {
    max-width: 50vw;
    margin-top: 2vh;
}
#aktuell {
    width: 100vw;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
svg#email {
    width: 10rem;
    align-self: center;
}
#phone {
    max-width: 50rem;
}

#karrierestuhl { border-radius: 55px; margin-bottom: 2rem; padding: 2rem; }
.block, .blocky, #mode { grid-template-columns: 1fr; }
.block > #start, .block > #social, #intro, #rohde { width: 100%; }
#social, #mode { text-align: center; }
#mode a img {
    width: 100%;
    border-radius: 11%;
    transition: transform 0.5s;
    padding: 2rem;
}
.block > #start,
.block > #social {
    width: 100%;
    grid-column: 1 / -1;
    display: block;
    margin: 0;
    padding: 2rem;
}
.square:hover { transform: scale(1.05); }
#openinghours { line-height: 0.5; }
#applemaps, #googlemaps, #osm {
    height: 120px;
    padding: 10px;
}
#intro {
    grid-column: 1;
    width: 80vw;
    margin: 0 auto;
}
#intro p {
    font-size: var(--size-step-0);
    line-height: 1.2;
    margin-bottom: var(--space-s);
    text-align: left;
}
#karriere p, #kontakt p {
    text-align: center;
    font-size: var(--size-step-2);
}
#karriere p span, #kontakt p span {
    font-family: var(--font-spanhead);
    font-weight: 200;
    color: #666;
}
#karriere, #kontakt{
    align-items: center;
    justify-items: center;
    text-align: center;
}
#kontakt p {
    padding: 2rem;
}
#filialen p { padding: 0 2rem; }
#geschichte p {
    margin: 0 auto;
    padding-right: 1rem;
    padding-left: 1.5rem;
}
.linkfoto { transition: transform 0.5s; }
.linkfoto:hover { transform: scale(1.05); }
.filialfoto {
    width: 80vw;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 25px;
}
.geschichtsfoto { width: 70vw; padding: 1rem; }
#25px, #instagramicon { height: 100px; padding: 10px; }
#phone { width: 8rem; margin-top: 1rem; }
#mrohdekarte, #srohdekarte {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
#mrohdekarte { display: none; }
#openinghours p { text-align: center; }


nav {
    position: relative;
    width: 100%;
}
.nav-link {
    display: inline-block;
    margin: 0 0.5rem;
    text-decoration: none;
    color: #000;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}
    #navLinks a.footer-link { display: none; }
.nav-link.current, .foot-link.current { border-color: #ff0000; }
.foot-link {
    display: inline-block;
    border-bottom: 2px solid #808080;
    padding-bottom: 3px;
}
.foot-link:hover { color: #ff0000; }
.foot-link.current { color: #fff;  }

footer p { text-align: center; }
#navToggle {
    display: block;
    cursor: pointer;
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 101;
    align-self: center;
}
#navToggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #000;
    transition: transform 0.3s ease;
}
#navToggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
#navToggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }
#navToggle.active span { background-color: #fff; /* Change color to white when active */ }
#navLinks {
    display: grid;
    grid-template-columns: 1fr;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: #000;
    transform: translateX(-100%);
    opacity: 0; /* Start fully transparent */
    justify-items: center;
    align-content: center;
    z-index: 99;
}
#navLinks a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}
nav > section { display: none; }
#navToggle.active + #navLinks {
    opacity: 1; /* Fully visible when active */
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.contact {
    display: grid;
    grid-template-columns: auto auto; /* Adjust as needed */
    justify-content: center;
    align-items: center;
    font-style: italic;
    font-weight: 300;
    margin-left: 0;
}
#facebookicon, #instagramicon {
    height: 100px;
    padding: 10px;
}
#redframe {
    border: 4px solid #ff0000;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    display: inline-block;
}
@media (hover: hover) {
    #facebookicon path, #instagramicon path {
        fill: black; /* Default color set to black */
        -webkit-transition: fill 0.6s ease; /* Safari */
        -moz-transition: fill 0.6s ease; /* Firefox */
        -o-transition: fill 0.6s ease; /* Opera */
        transition: fill 0.6s ease;
    }
    #facebookicon:hover path {
        fill: #1877F2; /* Facebook blue color on hover */
    }
    #instagramicon:hover path {
        fill: #C13584; /* Instagram magenta color on hover */
    }
}

@media (max-width: 321px) {
    body, h1, article {
        font-size: 0.8rem;
    }
    h1 {
        font-size: 1.5rem; /* Ensures h1 has a distinct size */
    }
    h2 {
        font-size: 1.2rem; /* Ensures h2 has a distinct size */
    }
}

@media (min-width: 600px) {
    article#marken {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        grid-gap: 30px;
        padding: 40px;
        align-items: center;
        justify-items: center;
    }
    .msvg { padding: 2rem; }
}

/* Styles for wider screens */
@media (min-width: 936px) {
    #navToggle { display: none; }

    #navLinks {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, auto)); /* Adjust as necessary */
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        transform: none;
        opacity: 1;
        justify-content: center; /* Center the items horizontally */
        align-content: center; /* Center the items vertically */
        gap: 0px; /* Fixed space between each item */
    }

    #navLinks a {
        display: inline-block;
        margin: 0 5px;
        color: #000;
        font-size: 1rem;
    }

    nav > section { display: block; }
    footer > *:first-child {
        order: initial; /* Reset the order for wider screens */
    }
    .filiale:nth-child(odd), .filiale:nth-child(even) {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Common settings for both odd and even children */
    }
    .filiale:nth-child(odd) a, .filiale:nth-child(even) p { order: 2; }
    .filiale:nth-child(odd) p, .filiale:nth-child(even) a { order: 1; }

    .filialfoto {
        display: inline-block;
        grid-column: 2;
        width: 80vw;
        padding: 1rem;
        border-radius: 25px;

    }
    #intro {
        width: 50vw;
    }
    footer { grid-template-columns: repeat(3, 1fr); }
    footer > *:not(:last-child) {
        border-bottom: none; /* Removes bottom border from child elements, except the last one */
        padding-bottom: 0; /* Resets padding at the bottom */
        margin-bottom: 0; /* Resets margin at the bottom */
    }
    footer a { font-size: 0.9rem; }

    #mode {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    #mode a img {
        width: 30vw;
        display: inline-block;
        border-radius: 15px;
        padding: 0;
    }
    #social {
        grid-column: 2;
        gap: 1rem;
        padding: 1rem;
        justify-self: center;
        align-self: center;
        margin-right: var(--space-l);
    }
    #mrohdekarte {
        display: block; margin-bottom: 2rem;
    }
    #srohdekarte {
        display: none;
    }
    .blocky {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .contact {
        justify-content: start; /* Align items to the start on larger screens */
        margin-left: 7rem; /* Apply the margin-left */
    }
    #start {
        grid-column: 1;
        padding: 1rem;
        margin-left: var(--space-l);
        text-align: center;
    }
    p.social {
        font-size: 2.8rem;
    }
    svg#email {
        width: 20vw;
    }

    h1 { font-size: var(--size-step-3); }
}
.stelle { text-align: left; }
.center { text-align: center; }
.no-bullet { list-style-type: none; }
.indented { margin-left: 1rem; }
.cinzel {
    font-family: "Cinzel";
    font-size: 1.5rem;
    margin-left: 4rem;
}

.email-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #BB9163;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.email-button:hover {
    background-color: #865625;
}
.qrcode {

}
.nocinzel { font-family: "Cinzel"; }
.vertrauen {
    text-align: left;
    margin-left: 2rem;
}

/* Lists */
ol, ul {
    padding-left: 3rem;
}


/* Submit button text section */
.submit-section p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color, #000);
}

/* Makes input fields wider on smaller screens */
@media only screen and (max-width: 720px) {
    textarea,
    select,
    input {
        width: 100%;
    }
}

.baustelle {
    text-align: center;
}
.kreditinstitut {
    display: none;
}
#bankname {
    display: none;
}
#banknamefield {
    display: none;
}

#billingForm {
    display: grid;
    grid-template-columns: 1fr; /* 1 part for label, 2 parts for input */
    gap: 1rem; /* Space between rows */
    max-width: 800px; /* Optional: constrain the form width */
    margin: 0 auto; /* Center the form */
    padding-right: 2rem;
}

#billingForm label {
    text-align: left; /* Align labels to the right */
    padding-right: 0.5rem; /* Space between label and input */
    white-space: nowrap; /* Prevent labels from wrapping */
}

#billingForm input {
    width: 100%; /* Ensure inputs take full width of their column */
    box-sizing: border-box; /* Include padding and border in width */
}

#billingForm div {
    grid-column: span 2; /* Make checkboxes and other full-width items span both columns */
}

#billingForm button {
    grid-column: span 2; /* Center the button */
    justify-self: center; /* Align button in the center */
    padding: 0.7rem 1.5rem;
}

.kreditinstitut {
    grid-column: span 2; /* Optional: Full width if needed */
}

.checkbox-container {
    display: grid;
    grid-template-columns: auto 1fr; /* Auto for checkbox, remaining space for label */
    align-items: center; /* Align checkbox and label vertically */
    gap: 0.5rem; /* Space between checkbox and label */
    padding-left: 1rem;
    max-width: 100%;
}

#agb {
    margin-left: 5rem;
}
#agblabel {
    margin-right: 2rem;
}

.submit-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts for the paragraph, 1 part for the button */
    gap: 1rem; /* Space between the paragraph and the button */
}

.submit-container p {
    margin: 0; /* Remove default paragraph margins */
    padding-left: 2rem;
}

.submit-container button {
    justify-self: end; /* Align the button to the right within its grid cell */
    padding: 0.7rem 1.5rem;
}

.agbtext {
    margin-left: 2rem;
}
ul { list-style-type: none; }

li { text-align: left; }

#bic:disabled,
#banknamedisplay:disabled {
    background-color: #f9f9f9;
    color: #aaa;
}
@media screen and (max-width: 375px) {
    #billingForm {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

    #billingForm label {
        display: block;
        font-size: 14px;
        margin-bottom: 5px;
    }

    #billingForm input,
    #billingForm button {
        width: 100%;
        font-size: 14px;
        margin-bottom: 15px;
        padding: 8px;
        box-sizing: border-box;
    }

    #verifyIBAN {
        margin-top: 5px;
    }

    #billingForm .submit-container {
        text-align: center;
    }

    #billingForm .submit-container p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    #billingForm button[type="submit"] {
        font-size: 16px;
        padding: 10px;
    }

    .kreditinstitut, .bank-icon {
        display: none; /* Hide unused or redundant elements */
    }

    #billingForm span.bank-icon,
    #banknamedisplay {
        width: 100%;
        margin-top: 5px;
    }

    #agb {
        display: inline-block;
        margin-right: 10px;
    }

    #agblabel {
        font-size: 12px;
        line-height: 1.5;
    }
}
/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#billingForm {
    width: 100%;
    max-width: 375px; /* Optional for centering */
    margin: 0 auto; /* Optional for centering */
    padding: 20px;
    box-sizing: border-box;
}

#billingForm label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

#billingForm input,
#billingForm button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#billingForm input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#verifyIBAN {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#verifyIBAN:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#agb {
    display: inline-block;
    margin-right: 10px;
    transform: scale(1.2);
    vertical-align: middle;
    border: 2px solid #ff0000;
    width: 16px;
    height: 16px;
}
#agb:checked {
    background-color: #ff0000;
    color: #fff;
}

#agblabel {
    display: inline-block;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}

.submit-container {
    text-align: center;
}

.submit-container p {
    font-size: 14px;
    margin-bottom: 10px;
}

.submit-container button {
    background-color: #28a745;
    color: white;
    border: none;
    font-size: 18px;
    padding: 14px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.submit-container button:hover {
    background-color: #218838;
}

/* Hide unnecessary elements */
.kreditinstitut,
.bank-icon {
    display: none;
}
.smaller {
    font-size: 2.2rem;
}
#pausenbild {
        max-width: 70vw;
        height: auto;
}
