/* Globale Stile & Variablen */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-text: 'Roboto', sans-serif;

    /* Haupt-Branding Farbe von Wullschlegers.ch (Grün) */
    --color-main-brand: #004225; 

    /* Farben für Confiserie (Dunkelbraun & Hellbraun) */
    --color-confiserie-primary: #311b0e; 
    --color-confiserie-secondary: #ca9e67; 

    /* Farben für Traveling Shaker (Rot & Schwarz) */
    --color-barkeeper-primary: #FF331A; /* Rot */
    --color-barkeeper-secondary: #000000; /* Schwarz */

    --color-text-light: #f8f9fa;
    --color-text-dark: #343a40;
    --background-light: #ffffff;
    --background-grey: #f1f3f5;
}

body {
    font-family: var(--font-text);
    margin: 0;
    color: var(--color-text-dark);
    line-height: 1.7;
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
}
h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--color-main-brand);
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-confiserie-secondary);
    margin: 10px auto 0;
}

/* --- Ladeanimation --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-main-brand);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out 0.5s, visibility 0.8s ease-out 0.5s;
}

.loader-logo-container {
    display: flex;
    position: relative;
}

.loader-logo {
    width: 150px;
    height: auto;
    margin: 0 25px;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

#logo-confiserie-loader {
    animation: flyInFromLeft 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards;
}

#logo-barkeeper-loader {
    animation: flyInFromRight 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.8s forwards;
}

@keyframes flyInFromLeft {
    0% { transform: translateX(-150%) scale(0.5) rotate(-15deg); opacity: 0; }
    70% { transform: translateX(10px) scale(1.1) rotate(2deg); opacity: 1; }
    100% { transform: translateX(0) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes flyInFromRight {
    0% { transform: translateX(150%) scale(0.5) rotate(15deg); opacity: 0; }
    70% { transform: translateX(-10px) scale(1.1) rotate(-2deg); opacity: 1; }
    100% { transform: translateX(0) scale(1) rotate(0deg); opacity: 1; }
}

.loader-text {
    margin-top: 30px;
    font-family: var(--font-primary);
    font-size: 1.3em;
    color: var(--color-text-light);
    opacity: 0;
    animation: fadeInText 1s ease-in 2.2s forwards;
}
.loader-progress {
    width: 0%;
    height: 3px;
    background-color: var(--color-confiserie-secondary);
    margin-top: 15px;
    border-radius: 3px;
    animation: loadingProgress 2.2s ease-out 0.5s forwards;
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 40%; }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hauptinhalt --- */
#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in, visibility 0.8s ease-in;
}

#main-content.loaded {
    opacity: 1;
    visibility: visible;
}

/* --- Hero/Entscheidungs-Sektion --- */
#choice-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--background-light);
    position: relative;
    overflow: hidden;
}

.main-logo {
    width: 250px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

#choice-section h1 {
    font-family: var(--font-primary);
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--color-main-brand);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
#choice-section .subtitle {
    font-size: 1.5em;
    margin-bottom: 50px;
    color: #555;
    font-family: var(--font-text);
}

/* Grüne Dreiecke im Hintergrund (mehr Aktion) */
.triangle-pattern-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none; /* Macht Elemente dahinter klickbar */
}

.triangle {
    position: absolute;
    background-color: var(--color-main-brand);
    clip-path: polygon(50% 100%, 0 0, 100% 0); /* Umgekehrtes Dreieck */
    opacity: 0.04; /* Etwas sichtbarer */
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.triangle-1 {
    width: 150px; height: 150px;
    top: 10%; left: 5%;
    transform: rotate(180deg);
    animation: triangleMove 18s 0s infinite alternate-reverse ease-in-out, trianglePulse 4s 0s infinite alternate ease-in-out;
}
.triangle-2 {
    width: 100px; height: 100px;
    top: 30%; right: 10%;
    animation: triangleMove 15s 2s infinite alternate ease-in-out, trianglePulse 3.5s 0.5s infinite alternate ease-in-out;
}
.triangle-3 {
    width: 120px; height: 120px;
    bottom: 20%; left: 15%;
    transform: rotate(180deg);
    animation: triangleMove 20s 4s infinite alternate-reverse ease-in-out, trianglePulse 5s 1s infinite alternate ease-in-out;
}
.triangle-4 {
    width: 80px; height: 80px;
    bottom: 5%; right: 25%;
    animation: triangleMove 16s 1s infinite alternate ease-in-out, trianglePulse 3s 1.5s infinite alternate ease-in-out;
}
.triangle-5 {
    width: 180px; height: 180px;
    top: 0%; right: 0%;
    transform: rotate(180deg);
    animation: triangleMove 22s 3s infinite alternate-reverse ease-in-out, trianglePulse 4.5s 2s infinite alternate ease-in-out;
}

@keyframes triangleMove {
    0% { transform: translate(0, 0) scale(1) rotate(var(--initial-rotation, 0deg)); }
    50% { transform: translate(var(--translate-x, 20px), var(--translate-y, 20px)) scale(var(--scale, 1.05)) rotate(calc(var(--initial-rotation, 0deg) + var(--rotate, 10deg))); }
    100% { transform: translate(0, 0) scale(1) rotate(var(--initial-rotation, 0deg)); }
}

@keyframes trianglePulse {
    0% { opacity: 0.04; }
    50% { opacity: 0.08; }
    100% { opacity: 0.04; }
}

/* Variable Rotationen für Dreiecke im Keyframe */
.triangle-1 { --initial-rotation: 180deg; --translate-x: 30px; --translate-y: 10px; --rotate: 5deg; }
.triangle-2 { --initial-rotation: 0deg; --translate-x: -20px; --translate-y: 20px; --rotate: -8deg; }
.triangle-3 { --initial-rotation: 180deg; --translate-x: 10px; --translate-y: -30px; --rotate: 12deg; }
.triangle-4 { --initial-rotation: 0deg; --translate-x: -15px; --translate-y: -10px; --rotate: -5deg; }
.triangle-5 { --initial-rotation: 180deg; --translate-x: 25px; --translate-y: 25px; --rotate: 7deg; }

/* Subtile Dreiecke in Sektionen */
.triangle-pattern-section {
    position: absolute;
    background-color: var(--color-main-brand);
    clip-path: polygon(50% 100%, 0 0, 100% 0); /* Umgekehrtes Dreieck */
    opacity: 0.015; /* Sehr, sehr subtil */
    z-index: 0;
    pointer-events: none;
    width: 80px;
    height: 80px;
    animation: sectionTriangleAnimation 10s infinite alternate ease-in-out;
}

.section-top-right {
    top: 10px;
    right: 10px;
    transform: rotate(0deg); /* Zeigt nach unten */
    animation-delay: 0s;
}

.section-bottom-left {
    bottom: 10px;
    left: 10px;
    transform: rotate(180deg); /* Zeigt nach oben */
    animation-delay: 2s;
}

.section-top-left {
    top: 10px;
    left: 10px;
    transform: rotate(180deg); /* Zeigt nach oben */
    animation-delay: 4s;
}

@keyframes sectionTriangleAnimation {
    0% { transform: translate(0, 0) scale(1) rotate(var(--section-initial-rotation, 0deg)); }
    50% { transform: translate(5px, 5px) scale(1.02) rotate(calc(var(--section-initial-rotation, 0deg) + 2deg)); }
    100% { transform: translate(0, 0) scale(1) rotate(var(--section-initial-rotation, 0deg)); }
}

.section-top-right { --section-initial-rotation: 0deg; }
.section-bottom-left { --section-initial-rotation: 180deg; }
.section-top-left { --section-initial-rotation: 180deg; }


.choices-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.world-choice {
    width: 350px;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--color-text-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.world-choice:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.world-choice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    z-index: 0;
}
.world-choice:hover::before {
    width: 300%;
    height: 300%;
    opacity: 1;
    transition: width 0.7s ease-out, height 0.7s ease-out, opacity 0.7s ease-out;
}
.logo-wrapper, .world-choice h2, .world-choice p, .world-choice span {
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    margin-bottom: 25px;
    padding: 10px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: inline-block;
}
.choice-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    display: block;
}

.world-choice h2 {
    font-family: var(--font-primary);
    font-size: 2.3em;
    margin: 0 0 15px 0;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.2;
}
.world-choice h2::after { display: none; }

.world-choice p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}
.world-choice span {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Confiserie Farben */
.confiserie-world {
    background: linear-gradient(145deg, var(--color-confiserie-primary), var(--color-confiserie-secondary));
}
.confiserie-world span {
    background-color: var(--color-text-light);
    color: var(--color-confiserie-primary);
}
.confiserie-world:hover span {
    background-color: #eee;
    transform: translateY(-2px);
}

/* Barkeeper (Traveling Shaker) Farben */
.barkeeper-world {
    background: linear-gradient(145deg, var(--color-barkeeper-secondary), var(--color-barkeeper-primary));
}
.barkeeper-world span {
    background-color: var(--color-text-light);
    color: var(--color-barkeeper-primary);
}
.barkeeper-world:hover span {
    background-color: #eee;
    color: var(--color-barkeeper-secondary);
}

/* --- Allgemeine Content Sektionen --- */
.content-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.content-section:nth-child(even) { 
    background-color: var(--background-grey);
}
.content-section:nth-child(even) h2::after {
    background-color: var(--color-barkeeper-primary);
}


/* --- Über Mich --- */
#about-me { background-color: var(--background-light); }
#about-me h2::after { background-color: var(--color-confiserie-primary); }

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}
.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 7px solid var(--background-light);
}
.about-content p {
    max-width: 800px;
    font-size: 1.15em;
    line-height: 1.9;
    color: var(--color-text-dark);
}

/* --- Newsletter --- */
#newsletter {
    /* Verlauf angepasst für besseren Kontrast und Lesbarkeit */
    background: linear-gradient(to right, var(--color-main-brand), #005a2e); 
    color: var(--color-text-light);
}
#newsletter h2 { color: var(--color-text-light); }
#newsletter h2::after { background-color: var(--color-text-light); }
#newsletter p { 
    text-align: center; 
    margin-bottom: 35px; 
    font-size: 1.15em;
    color: rgba(255,255,255,0.9); /* Text etwas heller für besseren Kontrast */
}

#newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
#newsletter-form input[type="email"] {
    padding: 18px 25px;
    border: 2px solid rgba(255,255,255,0.7); /* Rand etwas stärker sichtbar */
    background-color: rgba(255,255,255,0.25); /* Hintergrund etwas dunkler */
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    font-size: 1.05em;
    color: var(--color-text-light);
    transition: border-color 0.3s, background-color 0.3s;
    text-align: center;
}
#newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.9); /* Placeholder Text heller */
}
#newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-text-light);
    background-color: rgba(255,255,255,0.35); /* Focus Hintergrund dunkler */
}
#newsletter-form button {
    padding: 18px 45px;
    background-color: var(--color-text-light);
    color: var(--color-main-brand);
    border: none;
    border-radius: 30px;
    font-size: 1.05em;
    font-weight: bold;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
#newsletter-form button:hover {
    background-color: var(--color-confiserie-secondary);
    color: var(--color-text-light);
    transform: translateY(-3px);
}
#newsletter-message {
    text-align: center;
    margin-top: 25px;
    font-weight: bold;
    min-height: 1.2em;
    color: var(--color-text-light); /* Standard-Farbe für Nachrichten */
}

/* --- Instagram Feed --- */
#instagram-feed { background-color: var(--background-light);}
#instagram-feed h2::after { background-color: var(--color-barkeeper-primary);}

#instagram-feed .insta-subtitle {
    text-align: center;
    font-size: 1.15em;
    color: #666;
    margin-bottom: 35px;
}
.feed-widget-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--background-grey);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    min-height: 350px;
}
.feed-widget-container .widget-placeholder {
    text-align: center;
    padding: 50px;
    border: 2px dashed #bbb;
    border-radius: 10px;
    color: #888;
}
.feed-widget-container .widget-placeholder a {
    color: var(--color-barkeeper-primary);
    font-weight: bold;
}
.feed-widget-container iframe {
    width: 100% !important;
    min-height: 550px;
    border: none !important;
}
#instagram-feed a {
    text-decoration: none;
    color: var(--color-barkeeper-primary);
    font-weight: bold;
}
#instagram-feed a:hover {
    text-decoration: underline;
}


/* --- Footer --- */
footer {
    background-color: var(--color-main-brand);
    color: #e0e0e0;
    text-align: center;
    padding: 40px 0;
    font-size: 0.95em;
}
footer a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--color-confiserie-secondary);
    text-decoration: underline;
}

/* --- Responsive Anpassungen --- */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    #newsletter-form {
        flex-direction: row;
        justify-content: center;
    }
    #newsletter-form input[type="email"] {
        margin-right: -40px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    #newsletter-form button {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

@media (max-width: 768px) {
    .main-logo { width: 200px; }
    #choice-section h1 { font-size: 2.8em; }
    .world-choice { width: 90%; max-width: 380px; }
    h2 { font-size: 2.2em; }
    .profile-pic { width: 150px; height: 150px; }
    .logo-wrapper { padding: 8px; }
    .choice-logo { width: 120px; }
    /* Anpassungen für kleinere Dreiecke auf Mobilgeräten */
    .triangle-pattern-container .triangle {
        width: 60px; height: 60px;
        opacity: 0.03; /* Weniger sichtbar */
    }
    .triangle-pattern-container .triangle-1 { top: 5%; left: 3%; }
    .triangle-pattern-container .triangle-2 { top: 20%; right: 5%; }
    .triangle-pattern-container .triangle-3 { bottom: 15%; left: 8%; }
    .triangle-pattern-container .triangle-4 { bottom: 3%; right: 10%; }
    .triangle-pattern-container .triangle-5 { top: 0%; right: 0%; }
    .triangle-pattern-section {
        width: 40px; height: 40px;
        opacity: 0.01;
    }
}

@media (max-width: 576px) {
    .main-logo { width: 180px; }
    #choice-section h1 { font-size: 2.2em; }
    #choice-section .subtitle { font-size: 1.2em; }
    .world-choice { padding: 25px; }
    .world-choice h2 { font-size: 2em; }
    .profile-pic { width: 120px; height: 120px; }
    .loader-logo { width: 100px; margin: 0 10px; }
    
    #newsletter-form { flex-direction: column; }
    #newsletter-form input[type="email"], #newsletter-form button {
        width: 90%; max-width: 320px;
        margin-right: 0; border-radius: 30px !important;
    }
    #newsletter-form input[type="email"] { margin-bottom: 15px; }
}