@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/roboto-v30-latin-regular.woff2') format('woff2'),
         url('/fonts/roboto-v30-latin-regular.woff') format('woff');
}

:root {
    --font-base: 'Roboto', sans-serif;

    --color-primary: #f59b10;
    --color-heading: #006068;
    --color-surface: #f4f4f4;
    --color-border-light: #e6e6e6;
    --color-text-muted: #a5a5a5;
    --color-text-dark: #4c626c;
    --color-text: #333333;
    --color-placeholder: #828282;
    --color-white: #ffffff;

    --font-size-body: 16px;
    --line-height-body: 1.5;

    --h1-size: 36px;
    --h2-size: 30px;
    --h3-size: 25px;
    --h4-size: 21px;
    --h5-size: 16px;
    --h6-size: 16px;

    --space-text: 1rem;
    --table-cell-padding: 12px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    color: var(--color-text);
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
    line-height: var(--line-height-body);
    margin: 0;
    min-height: 0;
    padding: 0;
}

body.page-embedded {
    min-height: 100vh;
    background: var(--embedded-background);
    color: var(--embedded-text);
}

body.page-embedded--dark {
    color-scheme: dark;
    --embedded-background: #282828;
    --embedded-panel: #333333;
    --embedded-surface: #474747;
    --embedded-border: #5f5f5f;
    --embedded-text: #efefef;
    --embedded-text-muted: #c3c3c3;
    --embedded-accent: #f59b10;
    --embedded-active-background: #3d3d3d;
    --color-heading: #efefef;
    --color-surface: #333333;
    --color-border-light: #474747;
    --color-text-muted: #939393;
    --color-text-dark: #c3c3c3;
    --color-text: #efefef;
}

body.page-embedded--light {
    color-scheme: light;
    --embedded-background: #e3e3e3;
    --embedded-panel: #f5f5f5;
    --embedded-surface: #ffffff;
    --embedded-border: #cccccc;
    --embedded-text: #000000;
    --embedded-text-muted: #404040;
    --embedded-accent: #17baae;
    --embedded-active-background: #e6f7f8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-family: var(--font-base);
    font-weight: 400;
    margin: 0 0 0.75em 0;
    text-align: left;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

h5 {
    font-size: var(--h5-size);
}

h6 {
    font-size: var(--h6-size);
}

p,
td,
th,
li {
    color: var(--color-text);
    font-size: var(--font-size-body);
}

p,
ul,
ol,
table {
    margin: 0 0 var(--space-text) 0;
}

small[data-text-size="small"] {
    font-size: max(0.875em, 0.875rem);
}

/* Leere TipTap-Absaetze und Ueberschriften mit eigener Zeilenhoehe erhalten. */
p:empty,
h1:empty,
h2:empty,
h3:empty,
h4:empty,
h5:empty,
h6:empty {
    min-height: 1.5em;
    min-height: 1lh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    text-transform: none;
}

a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

table {
    border-collapse: separate;
    border-spacing: 1px;
    table-layout: fixed;
    width: 100%;
    word-wrap: break-word;
}

td,
th {
    background-color: var(--color-surface);
    border: 2px solid var(--color-white);
    padding: var(--table-cell-padding);
    vertical-align: top;
}

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

::placeholder {
    color: var(--color-placeholder);
}

.inred {
    color: red;
}

.page-draft-badge {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1900;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

/* Header */
.page-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    height: 60px;
}

.page-header svg {
    display: block;
}

.page-header__inner {
    align-items: center;
    display: flex;
    gap: 16px;
    height: 60px;
    margin: 0 auto;
    max-width: 1520px;
    padding: 0 20px;
}

.page-header__logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    height: 100%;
}

.page-header__logo a {
    align-items: center;
    display: inline-flex;
    height: 100%;
}
/*
.page-header__menu {
    position: relative;
    align-items: flex-end;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    justify-content: center;
} */
.page-header__menu {
    align-items: flex-end;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    justify-content: center;
    padding-bottom: 8px;
    position: relative;
}

.page-header__tools {
    align-items: center;
    color: #00555d;
    display: flex;
    fill: #00555d;
    flex: 0 0 auto;
    gap: 5px;
    height: 100%;
    justify-content: flex-end;
    margin-left: auto;
}

.page-header__phone,
.page-header__search,
.page-header__partner-login,
.page-header__language {
    align-items: center;
    display: flex;
    height: 100%;
}

.page-header__phone-link,
.page-header__partner-state a,
.page-header__language-button,
.page-header__search-link,
.page-header__search-form,
.page-header__search-form button {
    align-items: center;
    display: inline-flex;
}

/* Firmen-Logo */
.page-header__logo-large,
.page-header__logo-medium,
.page-header__logo-midsmall {
    display: none;
}

.page-header__logo-small {
    display: block;
    max-height: 30px;
}

@media (min-width: 768px) {
    .page-header__logo-small {
        display: none;
    }

    .page-header__logo-midsmall {
        display: block;
        max-height: 34px;
    }
}

@media (min-width: 992px) {
    .page-header__logo-midsmall {
        display: none;
    }

    .page-header__logo-medium {
        display: block;
        max-height: 38px;
    }
}

@media (min-width: 1400px) {
    .page-header__logo-medium {
        display: none;
    }

    .page-header__logo-large {
        display: block;
        max-height: 42px;
    }
}

/* MegaMenü */
.page-header__menu {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    gap: 24px;
    height: 100%;
    justify-content: center;
    min-width: 0;
}

.page-header__menu-link {
    align-items: center;
    color: var(--color-heading);
    display: inline-flex;
    font-size: 16px;
    font-weight: 400;
    gap: 6px;
    height: 100%;
    white-space: nowrap;
}

.page-header__menu-link:hover {
    color: var(--color-primary);
}

.page-header__menu-link svg {
    display: block;
    flex: 0 0 auto;
    height: 12px;
    width: 12px;
}

.page-header__hamburger {
    align-items: center;
    background: none;
    border: 0;
    color: var(--color-heading);
    cursor: pointer;
    display: none;
    flex: 0 0 auto;
    height: 100%;
    justify-content: center;
    padding: 0;
}

.page-header__hamburger svg {
    display: block;
    height: 24px;
    width: 24px;
}

@media (max-width: 991px) {
    .page-header__menu {
        display: none;
    }

    .page-header__hamburger {
        display: inline-flex;
    }
}

/* Telefon */
.page-header__phone-link {
    color: #006068;
    gap: 8px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.page-header__phone-link:hover {
    color: var(--color-primary);
}

.page-header__phone-link:hover .page-header__phone-icon svg {
    color: var(--color-primary);
    transform: scale(1.1);
}

.page-header__phone-icon {
    display: inline-flex;
}

.page-header__phone-icon svg {
    color: #006068;
    height: 21px;
    width: 21px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.page-header__phone-text {
    display: none;
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 1400px) {
    .page-header__phone-icon {
        display: none;
    }

    .page-header__phone-text {
        display: inline;
    }
}

/* Suche */
.page-header__search-form {
    display: none;
}

.page-header__search-link {
    color: var(--color-heading);
}

.page-header__search-link svg,
.page-header__search-form button svg {
    height: 20px;
    width: 20px;
}

.page-header__search-form input {
    border: 1px solid var(--color-border-light);
    font: inherit;
    line-height: 1.2;
    padding: 6px 10px;
}

@media (min-width: 1200px) {
    .page-header__search-form {
        gap: 8px;
        display: inline-flex;
    }

    .page-header__search-form button {
        background: none;
        border: 0;
        color: var(--color-heading);
        cursor: pointer;
        justify-content: center;
        padding: 0;
    }

    .page-header__search-link {
        display: none;
    }
}

/* Partner */
.page-header__partner-state--logged-in a {
    color: var(--color-primary);
}

.page-header__partner-state--logged-out a {
    color: var(--color-text-dark);
}

.page-header__partner-state a svg {
    height: 24px;
    width: 24px;
}

/* Sprachumschalter */
.page-header__language {
    align-items: center;
    display: flex;
    height: 100%;
    position: relative;
}

.page-header__language-button {
    align-items: center;
    background: none;
    border: 0;
    color: var(--color-heading);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 6px;
    padding: 0;
}

.page-header__language-button span {
    color: var(--color-heading);
    display: inline-block;
    line-height: 1;
}

.page-header__language-button svg {
    color: var(--color-heading);
    display: block;
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.page-header__language-dropdown {
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    display: none;
    min-width: 180px;
    padding: 8px 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
}

.page-header__language:hover .page-header__language-dropdown {
    display: block;
}

.page-header__language-item {
    color: var(--color-heading);
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.page-header__language-item:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

.page-header__language-item.is-current {
    font-weight: 700;
}

.page-header__language-item.is-disabled {
    color: var(--color-text-muted);
    cursor: default;
}

/* Icons */
.page-header__phone-icon svg {
    color: var(--color-heading);
    display: block;
    height: 21px;
    width: 21px;
}

.page-header__search-link svg,
.page-header__search-form button svg {
    display: block;
    height: 20px;
    width: 20px;
}

.page-header__partner-state a svg {
    display: block;
    height: 24px;
    width: 24px;
}

.page-header__language-button svg {
    color: var(--color-heading);
    display: block;
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}


.page-back-to-top[hidden] {
    display: none;
}

.page-back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.page-back-to-top svg {
    display: block;
    fill: currentColor;
    height: 28px;
    margin: 8px auto;
    width: 28px;
}

.page-back-to-top:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.page-back-to-top:focus,
.page-back-to-top:focus-visible {
    outline: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

@media (max-width: 700px) {
    .page-back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

footer.footer {
    background: #006068;
    color: #ffffff;
}

.submenu {
    background: #006068;
    color: #ffffff;
    padding: 40px 24px;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.submenu-column {
    min-width: 0;
}

.submenu-title {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.submenu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.submenu-item {
    margin: 0 0 8px 0;
}

.submenu-link {
    color: #ffffff;
    text-decoration: none;
    line-height: 1.5;
}

.submenu-link:hover,
.submenu-link:focus {
    color: #f59b10;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .submenu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 760px) {
    .submenu {
        padding: 32px 20px;
    }

    .submenu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 520px) {
    .submenu {
        padding: 28px 16px;
    }

    .submenu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-menu {
    background: #004d58;
    color: #ffffff;
    padding: 14px 20px;
}

.footer-menu__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

.footer-menu__link,
.footer-menu__copyright,
.footer-menu__sep {
    color: #ffffff;
    display: inline-block;
}

.footer-menu__link {
    text-decoration: none;
}

.footer-menu__consent-reset {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.footer-menu__link:hover,
.footer-menu__link:focus,
.footer-menu__consent-reset:hover,
.footer-menu__consent-reset:focus-visible {
    color: #f59b10;
    text-decoration: none;
}

.footer-menu__consent-reset:focus-visible {
    outline: 1px solid #f59b10;
    outline-offset: 3px;
}

.footer-menu__sep {
    margin: 0 10px;
}
