@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding-top: 130px; /* Default for larger screens, slightly more than 110px min-height */
}

.content {
    padding-bottom: 40px;
}

.footer {
    flex-shrink: 0;
}

header, footer {
    background-color: #000;
    color: #fff;
}

img {
    height: auto;
}

p, li {
    font-size: 1.1rem;
}

h1, h2, h3, h4, h6 {
    color: #E6017D !important;
}

a {
    color: #E6017D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E6017D;
    text-decoration: underline;
}

button, .btn-primary {
    background-color: #E6017D !important;
    color: #fff !important;
    border: none !important;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* 2. Der Ziegel-Header & Footer (Puristisch) */
.brick-header, .footer {
    width: 100%;
    min-height: 110px;
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    /* Stabiles Ziegelmuster - Rot auf Dunkelbraun */
    background-color: #2a0e0a;
    background-image:
        linear-gradient(335deg, #E6017D 12px, transparent 12px),
        linear-gradient(155deg, #E6017D 12px, transparent 12px),
        linear-gradient(335deg, #E6017D 12px, transparent 12px),
        linear-gradient(155deg, #E6017D 12px, transparent 12px);
    background-size: 30px 30px;
    background-position: 0px 1px, 2px 18px, 15px 16px, 18px 3px;
}

.brick-header {
    border-bottom: 2px solid #000;
    flex-wrap: wrap;
    gap: 15px;
    top: 0;
    z-index: 1050; /* Hoher z-index, damit das Menü nicht unter dem Content verschwindet */
    flex-shrink: 0; /* Verhindert, dass der Header beim Scrollen komprimiert wird */
}

.footer {
    border-top: 2px solid #000;
    position: relative;
    overflow: hidden; /* Für den Footer behalten wir es bei */
}

/* 3. Das Menü & Footer-Links (Kein Springen) */
.main-nav, .left-nav, .footer-nav {
    display: flex;
    gap: 10px;
}

.left-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    z-index: 10;
}

.main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    z-index: 10;
}

/* Base style for nav buttons (header and footer) */
.main-nav > a, .left-nav > a, .footer-nav > a {
    color: #fff !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    background: #000;
    padding: 8px 18px;
    border: 2px solid #fff;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
}

/* Custom positioning for footer buttons */
.footer-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
}

.footer-nav > a:first-child {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.footer-nav > a:last-child {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}


.left-nav .dropdown-menu {
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 0;
    margin-top: 10px;
    padding: 0;
    z-index: 1100; /* Stellt sicher, dass das Dropdown wirklich ganz oben ist */
}

.left-nav .dropdown-menu a.dropdown-item {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    background: transparent;
    border: none;
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #333;
}

.left-nav .dropdown-menu li:last-child a.dropdown-item {
    border-bottom: none;
}

.left-nav .dropdown-menu a.dropdown-item:hover {
    background-color: #E6017D;
    color: #fff !important;
}

.left-nav .dropdown-toggle::after {
    display: none;
}

/* Vision Cards and One-Pager Spacing */
.vision-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 0.5rem;
    /* Entfernt den Schatten der Karte */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
    border: none;
    contain: content;
}

@media (max-width: 992px) {
    .vision-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .vision-card {
        padding: 1.5rem 1rem;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Anchor links for headings */
h4, h5 {
    position: relative;
}

.anchor-link {
    font-size: 0.7em;
    color: #ccc;
    margin-left: 8px;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
    text-decoration: none !important;
    cursor: pointer;
}

.anchor-link:hover {
    opacity: 1;
    color: #E6017D;
}

/* Copy notification toast */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
}

.vision-card h4, h5 {
    color: #E6017D !important;
    font-weight: 700;
    text-align: left;
}

.vision-card p {
    text-align: left;
    font-size: 1.1rem;
}

.vision-card ul {
    text-align: left;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.vision-card li {
    text-align: left;
    font-size: 1.1rem;
}

section {
    padding: 10px 0;
}

.section-divider {
    height: 5px;
}
/* Scroll Arrow Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

#vision {
    position: relative;
    min-height: 70vh;
}

.scroll-arrow {
    color: #E6017D;
    font-size: 2.5rem;
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    /* Entfernt den Schatten des Scroll-Arrows */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.2); */
    transition: all 0.3s ease;
    text-decoration: none !important;
    will-change: transform;
    pointer-events: none;
    cursor: default;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: none;
    color: #E6017D;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}

/* Hide scroll arrow when user has scrolled down significantly or direction is down */
/* Rule removed to keep arrow permanently visible */

/* Custom Trig-JS Transition Enhancements */
.enable-trig {
    transition: opacity 1.5s cubic-bezier(0.2, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.2, 1, 0.3, 1),
                filter 1.5s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform, filter;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.trig-fade-up {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    filter: blur(12px);
}

.trig-fade-up.trig {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* 4. Die Titel-Box (Gerade & Simpel) */
.title-container {
    background: #000;
    padding: 5px 20px;
    border: 2px solid #fff;
    text-align: center;
    box-shadow: none; /* Kein Schatten für Puristen-Look */
}

.brick-header h1 {
    color: #E6017D !important;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
}

.brick-header h1 span {
    color: #E6017D !important;
}

/* Mobile Optimierung */
@media (max-width: 1100px) {
    .brick-header {
        height: auto;
        min-height: 150px;
        flex-direction: column;
        padding: 25px 20px;
        gap: 15px;
    }
    main {
        padding-top: 170px; /* For this breakpoint, slightly more than 150px min-height */
    }
    .main-nav, .left-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .main-nav {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        order: 3;
    }
    .left-nav {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        order: 2;
    }

    .brick-header .title-link {
        order: 1;
    }
}

/* Footer specific adjustments for desktop and larger tablets */
@media (min-width: 992px) {
    .footer-nav {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: block; /* Ensure block display for absolute positioning */
    }

    .footer-nav > a:first-child {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-nav > a:last-child {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 991.98px) {
    /* Blend the text out for tablets as well, just like mobile */
    .left-nav span, .main-nav span {
        display: none !important;
    }
    .brick-header {
        min-height: 70px;
        flex-direction: row;
        padding: 10px;
    }
    main {
        padding-top: 90px; /* For this breakpoint, slightly more than 70px min-height */
    }
    .footer {
        min-height: 70px;
        flex-direction: row;
        padding: 10px;
    }
    .main-nav {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        order: initial;
    }
    .left-nav {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        order: initial;
    }

    .footer-nav {
        position: static; /* Reset to static for smaller screens to allow flexbox or other layout */
        display: block; /* Keep block for consistency, but positioning will be handled by children */
        width: 100%;
        height: 100%;
    }

    .footer-nav > a:first-child {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-nav > a:last-child {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-nav > a, .left-nav > a, .footer-nav > a {
        padding: 8px 12px;
    }

    /* Removed the rule hiding the title on tablets/mobile to fix the issue */
    /* .brick-header .title-link {
        display: none !important;
    } */
}

@media (max-width: 575.98px) {
    /* Existing mobile rules, mostly covered by the 991px rule now, but keeping for specific overrides if needed */
}

@media (max-width: 480px) {
    .brick-header h1 {
        font-size: 1.1rem;
    }
    .main-nav > a, .left-nav > a, .footer-nav > a {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Custom links */
.custom-link {
    color: #E6017D !important;
    text-decoration: none;
}

.custom-link:hover {
    text-decoration: underline;
}

/* Lightbox & Interactive Images */
.clickable-img {
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.clickable-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.img-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.img-container::after {
    content: '\f00e'; /* FontAwesome search-plus icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 1; /* Permanently visible */
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.img-container:hover::after {
    background: #E6017D; /* Turn brand color on hover */
    transform: scale(1.1);
}

.img-caption {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.modal-dialog-lightbox {
    max-width: 95vw;
    margin: 1.75rem auto;
}

.modal-content-lightbox {
    background-color: transparent;
    border: none;
    width: fit-content;
    margin: auto;
    position: relative;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 4px;
    /* Entfernt den Schatten des Lightbox-Bildes */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.5); */
    background-color: #fff;
}

.btn-close-white {
    background-color: #E6017D;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3csvg%3e");
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    /* Entfernt den Schatten des Schließen-Buttons in class der Lightbox */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.3); */
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 1060;
    border: 2px solid white !important;
}

/* Checkbox styling to match primary color */
.form-check-input:checked {
    background-color: #E6017D !important;
    border-color: #E6017D !important;
}

.form-check-input:focus {
    border-color: #E6017D !important;
    box-shadow: 0 0 0 0.25rem rgba(230, 1, 125, 0.25) !important;
}

/* Timeline component based on CodyHouse Vertical Timeline */
.cd-timeline {
  overflow: hidden;
  margin: 2em auto;
}

.cd-timeline__container {
  position: relative;
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 2em 0;
}

.cd-timeline__container::before {
  /* this is the vertical line */
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  height: 100%;
  width: 4px;
  background: #d7e4ed;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline__container::before {
    left: 50%;
    margin-left: -2px;
  }
}

.cd-timeline__block {
  position: relative;
  margin: 2em 0;
}

.cd-timeline__block::after {
  /* clearfix */
  content: "";
  display: table;
  clear: both;
}

.cd-timeline__block:first-child {
  margin-top: 0;
}

.cd-timeline__block:last-child {
  margin-bottom: 0;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline__block {
    margin: 4em 0;
  }
}

.cd-timeline__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E6017D;
  box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.cd-timeline__img i {
  color: white;
  font-size: 16px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: block;
}

@media only screen and (min-width: 1170px) {
  .cd-timeline__img {
    width: 60px;
    height: 60px;
    left: 50%;
    margin-left: -30px;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
  .cd-timeline__img i {
    font-size: 24px;
  }
  .cd-timeline__img.cd-timeline__img--hidden {
    visibility: hidden;
  }
  .cd-timeline__img.cd-timeline__img--bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-1 0.6s;
            animation: cd-bounce-1 0.6s;
  }
}

@-webkit-keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes cd-bounce-1 {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  60% {
    opacity: 1;
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.cd-timeline__content {
  position: relative;
  margin-left: 60px;
  background: #ffffff;
  border-radius: 0.25em;
  padding: 1em;
  box-shadow: 0 3px 0 #d7e4ed;
  border: 1px solid #e9ecef;
}

.cd-timeline__content::after {
  /* clearfix */
  content: "";
  display: table;
  clear: both;
}

.cd-timeline__content::before {
  /* triangle next to content block */
  content: '';
  position: absolute;
  top: 16px;
  right: 100%;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-right: 7px solid #ffffff;
}

.cd-timeline__content h5 {
  color: #E6017D;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cd-timeline__content p {
  margin: 0;
  color: #495057;
}

.cd-timeline__date {
  display: inline-block;
  color: #E6017D;
  font-weight: bold;
}

@media only screen and (min-width: 768px) {
  .cd-timeline__content {
    padding: 1.5em;
  }
}

@media only screen and (min-width: 1170px) {
  .cd-timeline__content {
    margin-left: 0;
    padding: 1.6em;
    width: 45%;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
  }
  .cd-timeline__content::before {
    top: 24px;
    left: 100%;
    border-color: transparent;
    border-left-color: #d7e4ed; /* FIXED border color here to align with shadow */
  }

  .cd-timeline__content::after {
    /* Need an internal triangle to cover the border */
    content: '';
    position: absolute;
    top: 24px;
    left: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-left: 7px solid #ffffff;
    margin-left: -1px;
  }

  .cd-timeline__date {
    position: absolute;
    width: 100%;
    left: 122%;
    top: 6px;
    font-size: 1.2rem;
  }
  .cd-timeline__block:nth-child(even) .cd-timeline__content {
    float: right;
  }
  .cd-timeline__block:nth-child(even) .cd-timeline__content::before {
    top: 24px;
    left: auto;
    right: 100%;
    border-color: transparent;
    border-right-color: #d7e4ed; /* FIXED border color here */
  }

  .cd-timeline__block:nth-child(even) .cd-timeline__content::after {
    content: '';
    position: absolute;
    top: 24px;
    left: auto;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid #ffffff;
    margin-right: -1px;
  }

  .cd-timeline__block:nth-child(even) .cd-timeline__date {
    left: auto;
    right: 122%;
    text-align: right;
  }
  .cd-timeline__content.cd-timeline__content--hidden {
    visibility: hidden;
  }
  .cd-timeline__content.cd-timeline__content--bounce-in {
    visibility: visible;
    -webkit-animation: cd-bounce-2 0.6s;
            animation: cd-bounce-2 0.6s;
  }
}

@media only screen and (min-width: 1170px) {
  /* inverse bounce effect on even content blocks */
  .cd-timeline__block:nth-child(even) .cd-timeline__content.cd-timeline__content--bounce-in {
    -webkit-animation: cd-bounce-2-inverse 0.6s;
            animation: cd-bounce-2-inverse 0.6s;
  }
}

@-webkit-keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes cd-bounce-2 {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100px);
            transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(20px);
            transform: translateX(20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@-webkit-keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes cd-bounce-2-inverse {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateX(-20px);
            transform: translateX(-20px);
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}