/* Custom CSS to replace Bulma functionality */
/* Custom CSS to replace Bulma functionality */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Grid System - Replace Bulma columns */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    flex: 1;
    padding: 0.75rem;
}

.column.is-half {
    flex: none;
    width: 50%;
}

.columns.is-multiline {
    flex-wrap: wrap;
}

/* Components - Replace Bulma components */
.card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
    color: #4a4a4a;
    max-width: 100%;
    position: relative;
    display: block;
}

.card-content {
    padding: 1.5rem;
     
}

.media {
    align-items: flex-start;
    display: flex;
    text-align: inherit;
}

.media-left {
    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
    margin-right: 1rem;
    
}

.media-right {
    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
    margin-left: 1rem;
}

.media-content {
    flex-basis: auto;
    flex-grow: 1;
    flex-shrink: 1;
    text-align: inherit;
}

/* Images */
.image {
    display: block;
    position: relative;
}

.image.is-128x128 {
    height: 128px;
    width: 128px;
}



.is-rounded {
    border-radius: 9999px;
}

/* Navbar Components */
.navbar {
    background-color: white;
    min-height: 3.25rem;
    position: relative;
    z-index: 30;
}

.navbar-brand {
    align-items: stretch;
    display: flex;
    flex-shrink: 0;
    min-height: 3.25rem;
}

.navbar-burger {
    color: #4a4a4a;
    cursor: pointer;
    display: none;
    height: 3.25rem;
    position: relative;
    width: 3.25rem;
    margin-left: auto;
}

.navbar-burger span {
    background-color: currentColor;
    display: block;
    height: 1px;
    left: calc(50% - 8px);
    position: absolute;
    transform-origin: center;
    transition-duration: 86ms;
    transition-property: background-color, opacity, transform;
    transition-timing-function: ease-out;
    width: 16px;
}

.navbar-burger span:nth-child(1) {
    top: calc(50% - 6px);
}

.navbar-burger span:nth-child(2) {
    top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
    top: calc(50% + 4px);
}

.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.navbar-menu {
    display: block;
    box-shadow: none;
    padding: 0.5rem 0;
}

.navbar-end {
    justify-content: flex-end;
    margin-left: auto;
}

.navbar-item {
    color: #4a4a4a;
    display: block;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    position: relative;
    text-decoration: none;
}

/* Layout Components */
.hero {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-head {
    flex-grow: 0;
    flex-shrink: 0;
}

.hero-body {
    flex-grow: 1;
    flex-shrink: 0;
    padding: 3rem 1.5rem;
}

.container {
    flex-grow: 1;
    margin: 0 auto;
    position: relative;
    width: auto;
}

.section {
    padding: 3rem 1.5rem;
}

.content {
    color: #363636;
}

.title {
    color: #363636;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.125;
}

.title.is-4 {
    font-size: 1.5rem;
}

.footer {
    background-color: #fafafa;
    padding: 3rem 1.5rem 6rem;
}

/* Utilities */
.has-text-centered {
    text-align: center !important;
}

.mx-2 {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

.is-active {
    /* Used by JavaScript for active states */
}


.inl-img{
   width: 2rem;
}

/* Preserve original design */

/* Custom Font - Kleymisska */
@font-face {
    font-family: 'Kleymisska';
    src: url('../fonts/Kleymisska.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables for Design System */
:root {
    --primary-purple: #B6069F;
    --secondary-blue: #0E35DF;
    --dark-purple: #49006D;
    --light-purple: #9200c8;
    --gradient: linear-gradient(to right, #B6069F, #0E35DF);
    --text-color: #49006D;
    --background-color: #ffffff;
    --font-main: "Helvetica", Arial, sans-serif;
    --font-heading: 'Kleymisska', serif;
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles - Override Bulma Hero */
.hero {
    background: var(--background-color) !important;
    padding: 0 !important;
}

.hero .hero-head {
    padding: 0;
    width: 100vw;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: var(--background-color) !important;
    border-bottom: 7px solid transparent !important;
    border-image: var(--gradient) 1 !important;
}

.hero .hero-body {
    padding: 0 !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
	
}

.logo {
    text-align: left;
    margin: 20px 0;
    height: 80px;
    padding: 0 10px;
}

.logo img {
    height: 100%;
    width: auto;
}

/* Logo responsiveness - switch to smaller logo on very small screens */
@media screen and (max-width: 470px) {
    .logo img {
        content: url('../images/logo_klein.png');
    }
}

.logo a {
    text-decoration: none;
    color: var(--text-color);
}

/* Navigation Styles - Override Bulma Navbar */
.navbar {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
    min-height: 80px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}

.navbar-brand {
    align-items: center !important;
    display: flex !important;
    flex-shrink: 0 !important;
    min-height: auto !important;
    margin-left: 20px !important;
}

.logo {
    margin: 0;
    padding: 0;
}

.navbar-burger {
    color: var(--text-color) !important;
    height: 3rem !important;
    width: 3rem !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    position: absolute !important;
    right: 15px !important;
    top: 55% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
}

.navbar-burger span {
    background-color: var(--text-color) !important;
    display: block !important;
    height: 2px !important;
    width: 18px !important;
    margin: 2px 0 !important;
    transition: var(--transition) !important;
}

.navbar-burger:hover span {
    background-color: var(--light-purple) !important;
}

.navbar-burger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
}

.navbar-burger.is-active span:nth-child(2) {
    opacity: 0 !important;
}

.navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
}

.navbar-menu {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-right: 20px !important;
    position: absolute !important;
    right: 0 !important;
    top: 30px !important;
    align-items: center !important;
}

.navbar-end {
    align-items: center !important;
    display: flex !important;
}

.navbar-item {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    background: transparent !important;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap !important;
}

.navbar-item:hover {
    color: var(--light-purple) !important;
    background: transparent !important;
}

/* Hide old menu classes */
nav.menu,
.wide-only,
.narrow-only {
    display: none;
}

/* Responsive breakpoints */
@media screen and (max-width: 1200px) {
    .navbar-item {
        font-size: 1rem !important;
        padding: 0.5rem 0.5rem !important;
    }
}

@media screen and (max-width: 1100px) {
    .navbar-item {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.4rem !important;
    }
}

@media screen and (max-width: 1000px) {
    .navbar-item {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.3rem !important;
    }
}

/* Desktop - show regular navigation by default */
@media screen and (min-width: 971px) {
    .navbar-burger {
        display: none !important;
    }
    
    .navbar-menu {
        display: flex !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-right: 20px !important;
        flex-grow: 1 !important;
        justify-content: flex-end !important;
        padding: 0 !important;
    }
    
    .navbar-end {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
    }
    
    .navbar-item {
        padding: 0.5rem 0.75rem !important;
        border-bottom: none !important;
        text-align: left !important;
        font-family: var(--font-heading) !important;
        font-size: 1.1rem !important;
        color: var(--text-color) !important;
        white-space: nowrap !important;
    }
}


/* Mobile navbar menu - activate burger when items would overflow */
@media screen and (max-width: 970px) {
    .navbar-burger {
        display: flex !important;
    }
    
    .navbar-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--background-color) !important;
        box-shadow: var(--shadow) !important;
        border-top: 1px solid #e0e0e0 !important;
        z-index: 20 !important;
        display: none !important;
        justify-content: stretch !important;
        margin-right: 0 !important;
    }
    
    .navbar-menu.is-active {
        display: block !important;
    }
    
    .navbar-end {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .navbar-item {
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid #f0f0f0 !important;
        text-align: center !important;
        font-size: 1.1rem !important;
    }
    
    .navbar-item:last-child {
        border-bottom: none !important;
    }
}

/* Color Bar */
.color-bar {
    width: 100%;
    height: 7px;
    background: var(--gradient);
}

.color-bar.thin {
    height: 2px;
}

/* Header Image */
.header-picture {
    width: 100%;
    border: 0;
    margin-top: 88px;
    padding: 0;
}

.header-picture-ub {
    width: 100%;
    border: 0;
    margin-top: 88px;
    padding: 0;
}

.header-text-ub {
    padding-top: 0.25em;
}

    .header-text-ub ul {
        margin-left: 31.5rem;
        
    }

.header-picture-ub img {
    width: 50%;
    object-position: 50% 20%;
    aspect-ratio: 7 / 6.15;
    object-fit: cover;
    display: block;
    float:left;
}

.header-picture-ub h1 {
    float: none;
    padding-left: 52%;
    padding-top: 2%;
}

.header-picture-ub h2 {
    float: none;
    padding-left: 52%;
}

.header-picture-ub h3 {
    float: none;
    padding-left: 52%;
}

.header-picture-ub p {
    float: none;
    padding-left: 52%;
    padding-right: 5%
}

.header-picture-ub ul {
    float: none;
    padding-left: 53%;
    padding-right: 5%
}

.header-picture-ub li::marker {
    float: none;
    padding-left: 52%;
    padding-right: 5%
}

.header-picture img {
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 1919px) {
    .text2 {
        display:none;
    }
}

@media screen and (max-width: 1770px) {
    .text1 {
        display: none;
    }
}

@media screen and (max-width: 1430px) {
    .header-picture-ub ul{
        display:none;
    }

    .header-picture-ub h3 {
        display: none;
    }
}

@media screen and (max-width: 1100px) {

    .header-picture-ub h1 {
        display:none;
    }

    .header-picture-ub h2 {
        display: none;
    }

    .header-picture-ub p {
        display:none;
    }

    .header-picture-ub img {
        width: 100%;
        object-position: 50% 20%;
        aspect-ratio: 7 / 7;
        object-fit: cover;
        display: block;
        float: none;
    }

}

@media screen and (min-width: 1920px) {
    .invisible-text-ub {
        display: none;
    }

    .invisible-text-ub1 {
        display: none;
    }

    .invisible-text-ub2 {
        display: none;
    }
}

@media screen and (min-width: 1770px) {
    .invisible-text-ub {
        display: none;
    }

    .invisible-text-ub1 {
        display: none;
    }

    .invisible-text-ub2 {
        display: none;
    }
}

@media screen and (min-width: 1430px) {
    .invisible-text-ub {
        display:none;
    }

    .invisible-text-ub1 {
        display: none;
    }
}

@media screen and (min-width: 1100px) {
    .invisible-text-ub {
        display:none;
    }
}

/* Responsive header image adjustments */
@media screen and (max-width: 1000px) and (min-width: 769px) {
    .header-picture img {
        aspect-ratio: 4 / 2;
        min-height: 190px;
    }
}

@media screen and (max-width: 768px) {
    .header-picture img {
        aspect-ratio: 3 / 2;
        min-height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .header-picture img {
        aspect-ratio: 3 / 2;
        min-height: 220px;
        
    }
}

/* Intro Text Styling - Enhanced visibility and cursive styling */
.intro {
    text-align: center;
    margin: 2rem auto 3rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.intro p {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

/* Hide intro text initially on PC screens and iPad Pro screens */
@media screen and (min-width: 1024px) {
    .intro p {
        opacity: 0;
        visibility: hidden;
    }
    
    .intro p.animation-ready {
        opacity: 1;
        visibility: visible;
    }
}

/* Word-by-word animation styling */
.intro .word {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: inline-block;
    margin-right: 0.3em;
}

.intro .word.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro .word:last-child {
    margin-right: 0;
}

/* Responsive styling for intro text */
@media screen and (max-width: 768px) {
    .intro {
        margin: 1.5rem auto 2rem auto;
        padding: 0 1.5rem;
    }
    
    .intro p {
        font-size: 1.1rem;
        line-height: 1.7;
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .intro {
        margin: 1rem auto 1.5rem auto;
        padding: 0 1rem;
    }
    
    .intro p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
    }
}

/* Main Content - Override Bulma Section */
.section {
    padding: 2rem 1.5rem 7.5rem 1.5rem !important;
}

.hero .hero-head .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.container {
    max-width: var(--max-width) !important;
}

main {
    flex: 1;
    color: var(--text-color);
}

/* Typography - Override Bulma Title/Content */
h1, h2, h3, h4,
.title {
    font-family: var(--font-heading);
    font-weight: normal;
    color: var(--light-purple);
    margin: 1.25em 0 0.5em 0 ;
}

h1,
.title.is-1 {
    font-size: 2.5rem;
}

h1.subtitle {
    margin-top: 0.5rem;
    text-align: center;
}

h2,
.title.is-4 {
    font-size: 1.88rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.4rem;
}

.content p {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--light-purple);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-purple);
}

/* Strong text styling - match heading color and bold */
strong {
    color: var(--light-purple);
    font-weight: bold;
}

/* Lists */
ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-top: 0.5rem;
}

/* Service Bubbles Grid - Override Bulma Columns/Cards */
.bubbles.columns {
    gap: 2rem;
    margin-top: 2rem;
}

.bubble-entry.card {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.bubble-entry.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
}

.bubble-entry .card-content {
    padding: 1rem;
}

.bubble-entry .image.is-128x128 {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

.bubble-entry img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    transition: var(--transition);
}

.bubble-entry:hover img {
    transform: scale(1.05);
}

.bubble-entry .title.is-4 {
    margin: 20px 0 15px 0;
}

.bubble-entry .content {
    margin: 15px 0;
}

.media {
    align-items: flex-start;
}

.media-content {
    flex: 1;
}

.media-left {
    margin-right: 1rem;
}

.media-right {
    margin-left: 1rem;
}

.more::before {
    content: 'Mehr lesen…';
    color: var(--light-purple);
    text-decoration: underline;
    display: block;
    margin-top: 0.5rem;
}

/* Footer - Override Bulma Footer */
.footer {
    font-family: 'Verdana', sans-serif !important;
    font-size: 0.75rem;
    color: white !important;
    text-align: center !important;
    background: var(--gradient) !important;
    padding: 1.5rem 0 2rem 0 !important;
    margin-top: auto;
}

.footer .content {
    color: white !important;
}

.footer-content {
    color: white;
}

.footer-content a {
    color: white !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-content a:hover {
    text-decoration: underline;
}

.mx-2 {
    margin: 0 0.5rem;
    color: white;
}

/* Responsive Design - Override Bulma Responsive */
@media (max-width: 1024px) {
    .wide-only {
        display: none;
    }
    
    nav.menu {
        font-size: 1.2rem;
        text-align: center;
    }
    
    nav.menu .item {
        margin: 0 5px;
    }
    
    .bubbles.columns {
        flex-direction: column !important;
    }
    
    .column.is-half {
        width: 100% !important;
    }
    
    .bubble-entry .card-content {
        text-align: center !important;
    }
    
    .bubble-entry .media {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .bubble-entry .media-left,
    .bubble-entry .media-right {
        margin: 0 0 1rem 0 !important;
    }
    
    .bubble-entry .media-content {
        text-align: center !important;
    }
    
    .section {
        padding: 1rem 1rem 5rem 1rem !important;
    }
    
    h1,
    .title.is-1 {
        font-size: 2rem;
    }
    
    h2,
    .title.is-4 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .narrow-only {
        display: none;
    }
    
    .bubbles.columns {
        display: flex;
        flex-wrap: wrap;
    }
    
    .column.is-half {
        width: 50%;
        display: flex;
    }
    
    /* Alternating layout for desktop - left and right positioning */
    .column.is-half:nth-child(odd) {
        justify-content: flex-start;
    }
    
    .column.is-half:nth-child(even) {
        justify-content: flex-end;
    }
    
    .column.is-half:nth-child(odd) .bubble-entry {
        transform: translateX(5%);
    }
    
    .column.is-half:nth-child(even) .bubble-entry {
        transform: translateX(95%);
    }
    
    .column.is-half:nth-child(odd) .media {
        flex-direction: row;
    }
    
    .column.is-half:nth-child(even) .media {
        flex-direction: row-reverse;
    }
    
    .column.is-half:nth-child(odd) .card-content {
        text-align: left;
    }
    
    .column.is-half:nth-child(even) .card-content {
        text-align: right;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bubbles {
        grid-template-columns: 1fr;
    }
    
    .bubble-entry {
        break-inside: avoid;
        box-shadow: none;
    }
    
    .color-bar {
        background: #ccc;
    }
    
    footer {
        background: #ccc;
        color: black;
    }
}