/* 
 * Mobile CSS für The Root Wellness
 * Basis-Stylesheet für alle Geräte, optimiert für Smartphones
 */

/* Grundlegende Resets und allgemeine Regeln */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    padding-top: 70px; /* Reduziert für den kompakteren Header (60px + 10px Puffer) */
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a3b5d;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-top: 2rem;
}

h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
}

/* Absätze und Text */
p {
    margin-bottom: 1rem;
}

.intro, p.tagline {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: #2c5282;
    margin-bottom: 1.5rem;
}

p.tagline {
    font-style: italic;
}

strong, b {
    font-weight: 600;
}

.cta {
    font-size: 1.1rem;
    color: #c53030;
    margin: 1.5rem 0;
}

.footnote {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* Links */
a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover, a:focus {
    color: #2c5282;
    text-decoration: underline;
}

/* Listen */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

ul.benefits-list {
    list-style: none;
    margin-left: 0;
}

ul.benefits-list li {
    background-color: #f7fafc;
    border-left: 4px solid #3182ce;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

ul.benefits-list h3 {
    color: #2c5282;
    margin-bottom: 0.5rem;
}

/* Header und Navigation */
header {
    background-color: rgba(255, 255, 255, 0.5); /* 50% Transparenz für alle Geräte */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header Content Container */
.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    text-align: center;
    margin: 0;
}

.logo {
    max-width: 30px;
    height: auto;
}

.affiliate-text {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0 0.5rem 0.5rem 0.5rem;
    position: relative;
}

nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover, nav a:focus, nav a.active {
    background-color: #ebf8ff;
    color: #3182ce;
}

/* Dropdown-Menü für Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    min-width: 12rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    z-index: 100;
    padding: 0.5rem 0;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: #ebf8ff;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Im mobilen Layout Dropdown-Menü anders darstellen */
@media (max-width: 767px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        padding-left: 1.5rem;
    }
}

/* Main Content Bereiche */
main {
    padding: 1.5rem;
}

section {
    margin-bottom: 2.5rem;
}

/* Produkt-Hero-Bereich */
#product-hero {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.product-image-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Trinity Pack Produktgitter */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background-color: #f7fafc;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
}

.product-card h3 {
    margin: 1rem 1rem 0.5rem 1rem;
}

.product-card p {
    margin: 0 1rem 1rem 1rem;
    flex-grow: 1;
}

/* Buttons */
.button, button {
    display: inline-block;
    background: linear-gradient(to right, #7ab51d, #5c8a17);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.button:hover, button:hover,
.button:focus, button:focus {
    background: linear-gradient(to right, #8bc925, #6da41a);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.product-card .button {
    margin: 0 1rem 1rem 1rem;
    align-self: flex-start;
}

/* KI Chat-Widget */
#ask-ai {
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: 2em 1em 1.5em 1em;
    margin-top: 2vw;
    margin-bottom: 2vw;
    animation: fadein 3s;
}

#ask-ai .ask-ai-headline {
    background: linear-gradient(90deg, #7ac142 0%, #2e7d32 100%);
    color: #fff;
    border-radius: 10px;
    padding: 0.7em 1em;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1.2em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}

#questionInput {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #cbd5e0;
    border-radius: 0.25rem;
    font-family: 'Raleway', sans-serif;
}

#sendQuestion {
    width: 100%;
    margin-bottom: 1rem;
}

#answerOutput {
    background-color: white;
    padding: 1rem;
    border-radius: 0.25rem;
    min-height: 100px;
    margin-top: 1rem;
    white-space: pre-wrap;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem 1rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

.share-buttons {
    margin-bottom: 0.75rem;
}

.share-buttons a {
    display: inline-block;
    margin: 0 0.5rem;
}

.share-buttons img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.share-buttons img:hover {
    transform: scale(1.2);
}

/* FAQ-Sektion Styles */
.form-control {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 20px;
}

#anfrageForm {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-sizing: border-box !important;
}

#anfrageForm select,
#anfrageForm input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #a0aec0;
    padding: 12px;
    height: 42px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.question-box {
    color: #4a5568 !important;
    background-color: transparent !important;
    padding: 8px 15px !important;
    border-radius: 10px 10px 0 0 !important;
    margin: 15px 0 0 0 !important;
    border-bottom: none !important;
    font-size: 16px !important;
    box-shadow: none;
}

.answer-header {
    background: #4a90e2;
    color: white;
    padding: 12px 15px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    border: none !important;
}

.response-text {
    padding: 8px 15px !important;
    margin: 0 !important;
    border-radius: 0 0 10px 10px !important;
    background-color: transparent !important;
    color: #000000 !important;
    font-size: 16px;
    line-height: 1.8;
    border-top: none !important;
    box-shadow: none;
}

.response-box, 
.more-info-content, 
.follow-up-section,
.placeholder-text,
#faq,
#anfrage,
.follow-up-input {
    color: #000000 !important;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    max-width: 100%;
}

.follow-up-section {
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(74, 144, 226, 0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.follow-up-section:hover {
    background-color: rgba(74, 144, 226, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.follow-up-input {
    width: 100%;
    margin: 0 !important;
    margin-top: 20px !important;
    padding: 15px !important;
    font-size: 18px !important;
    font-family: 'Raleway', sans-serif;
    min-height: 50px;
    border-radius: 10px 10px 0 0 !important;
    border: 1px solid #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.follow-up-input:focus {
    outline: none;
    border-color: #7ab51d;
    box-shadow: 0 0 0 3px rgba(122, 181, 29, 0.3);
}

.follow-up-input::placeholder {
    color: #718096;
    opacity: 0.8;
    font-style: italic;
}

.follow-up-button {
    width: 100%;
    margin: 0 !important;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 0 10px 10px !important;
    background: linear-gradient(to right, #7ab51d, #5c8a17);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.follow-up-button:hover {
    background: linear-gradient(to right, #8bc925, #6da41a);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Einheitliche Rundungen für alle Formular-Elemente */
#faq,
#anfrage,
button,
.follow-up-button,
.follow-up-input {
    border-radius: 10px !important;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Search container */
.search-container {
    margin: 15px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: none;
}

.search-message {
    font-size: 1.2em;
    color: #ffffff;
    text-align: center;
    margin: 1px 0;
    font-weight: bold;
    padding: 1px;
    display: none;
}

.search-message.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-message::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #7ab51d;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.search-container.active {
    display: block;
}

/* Wartende Texte */
.waiting-text {
    color: #ffffff;
    text-align: center;
    margin: 5px auto;
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-width: 80%;
    padding: 5px 0;
}

.waiting-text.visible {
    opacity: 1;
}

/* AI Disclaimer */
.ai-disclaimer {
    display: none;
    background: #000000;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
}

.ai-disclaimer p {
    color: #FFD700;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

/* Error Message */
.error-message {
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
    animation: fadeIn 0.3s ease-out;
    margin: 10px 0;
}

/* Spezifische Anpassungen für mobile Geräte */
@media (max-width: 768px) {
    .follow-up-input {
        font-size: 16px !important;
        padding: 12px !important;
        min-height: 44px;
    }
    
    .follow-up-section {
        padding: 10px;
    }
} 