/* =========================================================
RESET / BASIS
========================================================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.5;
	text-align: left;
    color: #444;
	background-color: #fff;
}

a {
    text-decoration: none;
    color: #444;
    cursor: pointer;
}

ul p a {
    font-weight: 700;
}

button {
    font: inherit;
}

h1 {
	color: #fff;
	font-size: clamp(1.2rem, 6vw, 3.8rem); 
	line-height: clamp(1.2rem, 6vw, 3.8rem); 
	text-transform: uppercase;
}

h2 {
	color: #444;
    text-transform: uppercase;
	padding: 0 0 0 0;
}

h3 {
	color: #444;
    text-transform: uppercase;
	font-size: clamp(1.2rem, 5vw, 1.5rem); 
	line-height: clamp(1.2rem, 5vw, 1.5rem); 
	line-height: 1.5rem;
}

h4 {
	font-size: clamp(1rem, 2vw, 1rem);
	text-transform: uppercase;
}

h5 {
    color: #444;
	font-size: 1rem;
    line-height: 1rem;
}

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

::selection {
	background-color: #153135;
	color: #fff;
	text-shadow: none;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: none;
	outline-offset: 0;
}

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background-color: #fff;
	color: #153135;
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: translateY(0);
}

.sr-only {
	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;
}

/* =========================================================
LAYOUT BASICS
========================================================= */

.flexbox {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  width: 100%;
  padding: 50px;
}

.col-100 {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.col-50 {
  width: 50%;
  max-width: 600px;
  background-color: unset;
}

.flexbox .col-50:nth-child(1) {
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.col-33 {
  width: 33.3%;
  max-width: 400px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.col-33 img {
	max-width: 200px;
}

.left .col-100,
.left .col-50 {
    text-align: left;
}

.left .col-50 {
    padding-right: 30px;
}

.star {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: gold;
  clip-path: polygon(
    50% 0%, 
    61% 35%, 
    98% 35%, 
    68% 57%, 
    79% 91%, 
    50% 70%, 
    21% 91%, 
    32% 57%, 
    2% 35%, 
    39% 35%
  );
}

.btn {
  background-color: rgba(137,198,176,0);
  color: #3f7868;

  border: 2px solid #3f7868;
  border-radius: 3rem;
  padding: 0.3rem 2rem;
  margin: 1rem;

  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2rem;

  transition: all 650ms ease;
}

.btn:hover {
    background-color: rgba(137,198,176,1);
	border: 2px solid #3f7868;
}

.btn a {
	color: #3f7868;
    transition: all 650ms ease;
}

.btn:hover a {
    color: #fff;
}

@media (max-width: 1100px) {

  .col-100 {
    margin-bottom: 50px;
  }
  
  .col-33 {
		 width: 100%;
     max-width: unset;
		 margin-bottom: 50px;
    
	}
}

@media screen and (max-width: 1000px) {
  
	.col-50 {
		 width: 100%;
     max-width: unset;
		 margin-bottom: 50px;
	}
  
  .flexbox {
		padding: 30px;
	}
}

/* =========================================================
HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background-color: rgba(21,49,53,1);
}

/* =========================================================
TOP BAR
========================================================= */

.top-bar {
    background-color: #111;

    display: flex;
    justify-content: center;
}


.top-bar a {
    color: #fff;
    transition: opacity 0.2s ease;
    margin: 10px;
}

.top-bar a:hover {
    opacity: 0.7;
}

/* =========================================================
MAIN NAVIGATION
========================================================= */

.main-nav {
    position: relative;
    background-color: rgba(21,49,53,1);
    border-bottom: 1px solid #fff;
}

.main-nav__inner {
    width: 100%;
    min-height: 84px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    
    gap: 40px; /* Abstand zwischen den Kind-Elementen */
}

/* =========================================================
LOGO
========================================================= */

.logo {
    position: relative;
    z-index: 10;

    width: 100%;

    display: inline-flex; 
    justify-content: center;
    align-items: center;

    margin-top: 10px;
}

/* =========================================================
DESKTOP MENU
========================================================= */

.main-nav__menu {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    justify-content: center;

    margin: 0;
    padding: 0;

    list-style: none;

    background-color: rgba(21,49,53,1);
}

.menu-item {
    position: relative;
    display: flex;
}

.menu-item button,
.menu-item > a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
}

.menu-link,
.menu-trigger {
    position: relative;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 10px 20px;

    border: 0;
    background-color: transparent;
    color: #111;

    cursor: pointer;

    transition: color 0.2s ease;
}

.direct-link {
    border: 2px solid rgba(137,198,176,1);
    border-radius: 24px;
    margin: 6px;
    background-color: rgba(137,198,176,0);
    transition: background-color 0.3s ease;
}

.direct-link:hover {
    background-color: rgba(137,198,176,0.2);
}

/* =========================================================
ARROW
========================================================= */

.menu-arrow {
    width: 7px;
    height: 7px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);

    transition: transform 0.25s ease;
}

.arrow-right {
    width: 7px;
    height: 7px;
    display: inline-block;

    transform: rotate(-45deg) translateY(-2px);

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.arrow-down {
    width: 30px;
    height: 30px;
    display: inline-block;

    transform: rotate(45deg) translateY(-2px);

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    cursor: pointer;
}

.arrow-up {
    width: 20px;
    height: 20px;

    transform: rotate(-45deg) translateY(0);

    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
}

.arrow-right-big {
    width: 30px;
    height: 30px;
    display: inline-block;

    transform: rotate(-45deg) translateY(-2px);

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

.arrow-left-big {
    width: 30px;
    height: 30px;
    display: inline-block;

    transform: rotate(45deg) translateY(-2px);

    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

/* =========================================================
NORMAL DROPDOWN
========================================================= */

.submenu {
    position: absolute;
    
    top: 100%;

    width: 260px;

    margin: 0;
    padding: 12px 0;

    list-style: none;

    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    border-top: 6px solid rgba(137,198,176,1);

/* Startposition etwas weiter unten. Beim Öffnen bewegt sich das Menü nach oben. */

    transform: translateY(36px);
    transition: transform 0.3s ease;
}

.submenu a {
    display: block;
    padding: 12px 22px;

    transition: background-color 0.3s ease;
}

.submenu a:hover {
    background-color: #f5f5f5;
}

/* =========================================================
MEGA MENU
========================================================= */

.mega-menu {

/* Bezugspunkt ist die gesamte Navigation, nicht nur der einzelne Menüpunkt. */

    position: absolute;

    top: 100%;
    left: 50%;

    padding: 40px 24px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    width: 100vw;

    background-color: #fff;
    color: #000;
    border-top: 6px solid rgba(137,198,176,1);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(36px);

    transition: transform 0.3s ease;
}

.menu-item--mega {
    position: static;
}

.mega-menu-container {
    width: 25%;

    text-align: center;
}

/* =========================================================
DESKTOP OPEN STATE
========================================================= */

@media (min-width: 1000.2px) {
    
    .has-submenu.is-open > .submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }

    .has-submenu.is-open > .menu-trigger .menu-arrow {
        transform: rotate(225deg) translate(-1px, -1px);
    }

    /* Mega Menu */

    .menu-item--mega.is-open > .mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform:
            translateX(-50%)
            translateY(0);
    }

}

/* =========================================================
MEGA MENU CONTENT
========================================================= */

.mega-menu h3 {
    margin: 0 0 25px;

    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #888;
}

.mega-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-menu li + li {
    margin-top: 14px;
}

.mega-menu a {
    transition: opacity 0.3s ease;
}

.mega-menu a:hover {
    opacity: 0.6;
}

/* =========================================================
MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 48px;
    height: 48px;

    padding: 11px;

    border: 0;
    background-color: transparent;

    cursor: pointer;
}

.menu-toggle__icon {
    position: relative;

    display: block;

    width: 26px;
    height: 18px;

    margin: auto;
}

.menu-toggle__icon span {
    position: absolute;
    left: 0;

    width: 100%;
    height: 2px;

    background-color: #fff;
}

.menu-toggle__icon span:nth-child(1) {
    top: 0;
}

.menu-toggle__icon span:nth-child(2) {
    top: 8px;
}

.menu-toggle__icon span:nth-child(3) {
    top: 16px;
}

/* X wenn geöffnet */

.site-header.mobile-open
.menu-toggle__icon span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
}

.site-header.mobile-open
.menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.site-header.mobile-open
.menu-toggle__icon span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 1000px) {

    /* =====================================================
    TOP BAR
    ===================================================== */

    .top-bar__inner {
        width: calc(100% - 32px);
        min-height: 34px;
    }

    .top-bar__links {
        display: none;
    }

    .top-bar {
        font-size: 0.6rem;
    }

    /* =====================================================
    NAVIGATION
    ===================================================== */

    .main-nav__inner {
        width: 100%;
        min-height: 70px;

        gap: 0;
    }

    /* =====================================================
    LOGO
    ===================================================== */

    .logo {
        grid-area: logo;

        display: flex;
        align-items: center;

        height: 70px;

        padding-left: 16px;
    }

    /* =====================================================
    MENU TOGGLE
    ===================================================== */

    .menu-toggle {
        grid-area: toggle;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 48px;
        height: 70px;

        margin: 0 7px 0 0;
        padding: 0;
    }

    /* =====================================================
    HAUPTMENÜ
    ===================================================== */

    .main-nav__menu {

        /*

         * Das Menü bleibt im Dokumentfluss. Wichtig: kein display:none,
         * denn display kann nicht animiert werden. Stattdessen wird die
         * tatsächliche Höhe per JavaScript von 0 auf scrollHeight animiert.
         * So wird der nachfolgende Content weich nach unten geschoben.

         */

        grid-area: menu;

        display: block;
        width: 100%;
        height: 0;
        overflow: hidden;

        margin: 0;
        padding: 0;

        border-top: 1px solid #e5e5e5;

        background-color: #fff;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            visibility 0s linear 0.45s;        
    }

    .site-header.mobile-open .main-nav__menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
            height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            visibility 0s linear 0s;
    }

    /* =====================================================
    MOBILE ITEMS
    ===================================================== */

    .menu-item {
        display: block;

        width: 100%;

        margin: 0;
        padding: 0;
        
        background-color: rgba(21,49,53,1);

        border-bottom: 1px solid #e8e8e8;
    }
    
    .main-nav__menu .menu-item:nth-child(5) {
        padding: 50px;
    }
    
    .main-nav__menu .menu-item:nth-child(5) a {
        display: flex;
        justify-content: center;
    }

    .direct-link {
        border-radius: 35px;
    }

    /* Alle fünf Hauptmenüpunkte erhalten exakt dieselbe Höhe. */

    .menu-link,
    .menu-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        margin: 0;
        padding: 20px;

        background-color: rgba(21,49,53,1);
    }
    

    .menu-link::after,
    .menu-trigger::after {
        display: none;
    }

    /* =====================================================
    PFEIL
    ===================================================== */

    .menu-item.is-open
    > .menu-trigger
    .menu-arrow {
        transform: rotate(225deg);
    }

    /* =====================================================
    NORMALES SUBMENU
    ===================================================== */

    .submenu {
        position: static;

        width: 100%;

        margin: 0;
        padding: 0;

        border: 0;
        box-shadow: none;

        background-color: #f5f5f5;

        max-height: 0;
        overflow: hidden;

        visibility: hidden;
        pointer-events: none;

        transition: max-height 0.3s ease;
    }

    .menu-item.is-open > .submenu {
        max-height: 500px;

        padding: 15px 0;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }

    .submenu a {
        padding: 14px 34px;
    }

    /* =====================================================
    MEGA MENU – GESCHLOSSEN
    ===================================================== */

    .mega-menu {
        position: static;

        /*  Geschlossen wirklich komplett auf 0 setzen. Besonders wichtig: kein Padding im geschlossenen Zustand. */

        width: 100%;
        height: 0;
        min-height: 0;
        max-height: 0;

        margin: 0;
        padding: 0;
        
        display: block;
        justify-content: unset;
        flex-wrap: unset;

        overflow: hidden;

        border: 0;

        background-color: #fff;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(16px);

        transition:
            max-height 0.5s ease,
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    /* =====================================================
       MEGA MENU – GEÖFFNET
    ===================================================== */

    .menu-item--mega.is-open
    > .mega-menu {
        /* Erst jetzt erhält das Mega-Menü seine Höhe */

        height: auto;
        min-height: 100vh;
        max-height: 2000px;

        padding: 40px 24px;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }

    /* =====================================================
    MEGA MENU CONTENT
    ===================================================== */

    .mega-menu-container {
        width: unset;
        text-align: left;

    }
}

/* =========================================================
DEMO CONTENT
========================================================= */

.mega-menu-name {
    margin: 0.7rem 0 0.45rem;
    color: #444;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 700;
}

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

/* =========================================================
FOOTER
========================================================= */

footer {
    background-color: rgba(21,49,53,1);
    background-image: url(../img/doggies.webp);
    background-repeat: no-repeat;
    background-position: bottom right;
    padding: 50px;
    color: #fff;
    line-height: 1.6rem;
}

.footer-container {
    display: flex;
}

.footer-container > a {
    color: #fff;
    font-size: 0.8rem;
}

.footer-container:nth-child(2) {
    margin-bottom: 50px;
}

.footer-sub-container {
    width: 250px;
    overflow: hidden;
}

.footer-sub-container:nth-child(1) {
    width: 40%;
    margin-right: 5%;
}

.footer-sub-container .footer-heading {
    color: #fff;
    font-size: 1rem;
}

.footer-sub-container a {
    color: #fff;
    opacity: 1;
    transition: 0.3s opacity ease;
}

.footer-sub-container a:hover {
    opacity: 0.7;
}

.footer-sub-container li a img {
    margin: 30px 0;
}

@media (max-width: 1000px) {

    footer {
        background-image: unset;
        background-repeat: unset;
        background-position: unset;
    }

    .footer-container {
        flex-wrap: wrap;
    }
    
    .footer-sub-container:nth-child(1) {
        width: 100%;
        margin-right: unset;
    }
}

/* =========================================================
BOTTOM-TO-TOP
========================================================= */

#bottom-to-top {
    width: 60px;
    height: 60px;

    display: none;
    justify-content: center;
    align-items: center;

    position: fixed;
    right: 30px;
    bottom: 30px;

    padding-top: 7px;

    z-index: 2300;
    cursor: pointer;

    opacity: 1.0;
	background-color: rgba(0,0,0,0.3);
    color: #fff;
    
	border: 2px solid #fff;
	border-radius: 40px;
    
	transition: background-color .2s linear;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

#bottom-to-top:hover {
    background-color: rgba(0,0,0,0.5);
}

@media (max-width: 1000px) {

    footer {
        padding: 30px;
    }
	
	#bottom-to-top {
		right: 10px;
		bottom: 10px;
	}
}
/* Semantische Seitenüberschriften bei unverändertem visuellen Raster. */

.content-title,
.content-subtitle {
    color: #444;
    text-transform: uppercase;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.5rem;
}

.legal-title,
.legal-section {
    color: #444;
    text-transform: uppercase;
}

.legal-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.5rem;
}

.legal-section {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.5rem;
}

.legal-subtitle {
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
    text-transform: uppercase;
}

/* UA-Margins der zuvor verwendeten Heading-Tags beibehalten, damit die Optik gleich bleibt. */

.content-title,
.content-subtitle,
.legal-section,
.footer-heading {
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.legal-title,
.legal-subtitle {
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
}

.legal-title {
    font-size: 1rem;
    line-height: normal;
}.cookie-settings { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.cookie-settings[hidden] { display: none; }
