/* 
  PromptPalette Main Stylesheet
  Farben: #9B59B6 (Primär/Violett), #1ABC9C (Sekundär/Türkis), 
         #F39C12 (Akzent/Orange), #2C3E50 (Text), #ECF0F1 (Hintergrund)
*/

/* Globale Grundeinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2C3E50;
}

p {
    margin-bottom: 1.5em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #ECF0F1;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, transform 0.3s ease;
}

.primary-btn {
    background-color: #1ABC9C;
    color: white;
}

.primary-btn:hover {
    background-color: #F39C12;
    transform: scale(1.05);
}

.primary-btn:active {
    transform: scale(0.97);
}

/* Icons-Button für Aktionen */
.icon-btn {
    background: none;
    border: none;
    color: #9B59B6;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: rgba(155, 89, 182, 0.1);
    color: #F39C12;
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn i {
    margin-right: 5px;
}

.icon-btn.active {
    color: #F39C12;
}

/* Header Styling */
#header {
    background-color: #9B59B6;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #F39C12;
}

/* Hero Sektion */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    background-color: #9B59B6;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Hero-Hintergrund */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    animation: fadeInSlideUp 1.2s ease-out;
}

.hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInSlideUp 1.2s ease-out 0.2s forwards;
    opacity: 0;
}

.hero .primary-btn {
    animation: fadeInSlideUp 1.2s ease-out 0.4s forwards;
    opacity: 0;
    position: relative;
    z-index: 2;
}

/* Hero-Animationen */
@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Schwebende Elemente für zusätzlichen visuellen Effekt */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 1;
}

.floating-element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.floating-element-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 85%;
    animation: float 6s ease-in-out infinite 1s;
}

.floating-element-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation: float 10s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Generator Sektion */
.generator {
    text-align: center;
}

.prompt-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.prompt-display {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2C3E50;
    margin-bottom: 30px;
    padding: 30px;
    background-color: #ECF0F1;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.5s ease;
    position: relative;
}

.prompt-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.shortcut-hint {
    display: inline-block;
    background-color: #ECF0F1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 5px;
    color: #7f8c8d;
}

#generateBtn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Features Sektion */
.features {
    text-align: center;
}

.feature-list {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #9B59B6;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Examples Sektion */
.examples {
    text-align: center;
}

.example-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.example-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.example-item i {
    font-size: 2rem;
    color: #1ABC9C;
    margin-bottom: 15px;
}

.example-item p {
    font-style: italic;
    margin-bottom: 0;
}

/* Verlauf und Favoriten */
.history-section, .favorites-section {
    margin-top: 40px;
    text-align: left;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.section-title i {
    margin-right: 10px;
    color: #9B59B6;
}

.history-list, .favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.history-list li, .favorites-list li {
    padding: 15px;
    border-bottom: 1px solid #ECF0F1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-list li:last-child, .favorites-list li:last-child {
    border-bottom: none;
}

.history-text, .favorite-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.history-actions, .favorite-actions {
    display: flex;
    gap: 5px;
}

.history-actions button, .favorite-actions button {
    background: none;
    border: none;
    color: #9B59B6;
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.history-actions button:hover, .favorite-actions button:hover {
    color: #F39C12;
}

.empty-msg {
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
    padding: 20px 0;
}

/* Benachrichtigungen */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background-color: #1ABC9C;
    color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Notification types */
.notification.success {
    background-color: #2ECC71;
}

.notification.warning {
    background-color: #F39C12;
}

.notification.error {
    background-color: #E74C3C;
}

.notification.info {
    background-color: #3498DB;
}

/* Verbesserte visuelle Effekte */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(26, 188, 156, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0); }
}

@keyframes fadeZoom {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

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

.animate-shimmer {
    animation: shimmer 1.5s infinite;
}

.animate-copy {
    position: relative;
}

.animate-copy::after {
    content: '📋';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.animate-copy.active::after {
    top: -30px;
    opacity: 1;
}

/* Feedback-Elemente */
.feedback-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #ECF0F1;
    border-radius: 8px;
    text-align: center;
}

.feedback-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-title i {
    margin-right: 10px;
    color: #9B59B6;
}

.rating-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-btn {
    background: none;
    border: 2px solid #9B59B6;
    color: #9B59B6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover, .rating-btn.active {
    background-color: #9B59B6;
    color: white;
    transform: scale(1.1);
}

.rating-btn i {
    transition: transform 0.3s ease;
}

.rating-btn:hover i {
    transform: scale(1.2);
}

.feedback-form {
    max-width: 500px;
    margin: 0 auto;
}

.feedback-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
}

.feedback-form button {
    background-color: #9B59B6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-form button:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
}

/* Konfetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

/* Footer */
#footer {
    background-color: #2C3E50;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1ABC9C;
    text-decoration: none;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.footer-links a:hover {
    background-color: rgba(26, 188, 156, 0.1);
    color: #1ABC9C;
    text-decoration: none;
}

/* Keyboard-Shortcuts Info */
.shortcuts-info {
    margin-top: 30px;
    background-color: #ECF0F1;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.shortcuts-info h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.shortcuts-info ul {
    list-style: none;
}

.shortcuts-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.key {
    background-color: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 8px;
    margin-right: 10px;
    font-family: monospace;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Header */
    #header .container {
        flex-direction: column;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: #9B59B6;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding-top: 80px;
        transition: right 0.3s ease;
        margin: 0;
        z-index: 101;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Features */
    .feature-list {
        flex-direction: column;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }
    
    /* Generator */
    .prompt-display {
        font-size: 1.2rem;
        padding: 20px;
    }
    
    /* Examples */
    .example-list {
        flex-direction: column;
        align-items: center;
    }
    
    .example-item {
        max-width: 100%;
    }
    
    /* Prompt Actions */
    .prompt-actions {
        flex-wrap: wrap;
    }
    
    /* Notification */
    .notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
    
    /* Feedback */
    .rating-container {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
}

/* SEO-optimierter Bereich - für Suchmaschinen sichtbar, für Benutzer versteckt */
.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    /* 
       Diese Methode versteckt den Inhalt visuell, 
       hält ihn aber für Screenreader und Suchmaschinen zugänglich 
    */
}

#promptList {
    list-style: none;
}

#promptList li {
    margin-bottom: 5px;
    color: #2C3E50;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #9B59B6;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for better keyboard navigation */
a:focus, button:focus {
    outline: 3px solid #F39C12;
    outline-offset: 3px;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn, .icon-btn, .rating-btn {
        border: 2px solid currentColor;
    }
}

/* Mobile Navigation Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 102;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #F39C12;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
}

/* Unterstütze sowohl JS-basierte als auch URL-basierte Anzeige */
.modal:target, .modal.active {
    display: block;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Unterstütze sowohl JS-basierte als auch URL-basierte Anzeige */
.modal:target ~ .modal-backdrop, .modal.active ~ .modal-backdrop, .modal-backdrop.active {
    display: block;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #9B59B6;
}

.close-modal {
    font-size: 30px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #9B59B6;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body h3 {
    color: #2C3E50;
    margin-top: 0;
}

.modal-body h4 {
    color: #9B59B6;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* Responsive Enhancements */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: #9B59B6;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding-top: 80px;
        transition: right 0.3s ease;
        margin: 0;
        z-index: 101;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
}

/* Druckbare Version der Modals */
@media print {
    body * {
        visibility: hidden;
    }
    
    .modal.active, .modal.active * {
        visibility: visible;
    }
    
    .modal.active {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    
    .modal-content {
        margin: 0;
        padding: 15px;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        border: none;
    }
    
    .close-modal, .modal-backdrop {
        display: none !important;
    }
    
    .modal-header {
        margin-bottom: 30px;
    }
    
    /* Schriftgrößen für Druck anpassen */
    .modal-body h3 {
        font-size: 18pt;
        margin-top: 20px;
    }
    
    .modal-body h4 {
        font-size: 14pt;
        margin-top: 15px;
    }
    
    .modal-body p, .modal-body ul li {
        font-size: 11pt;
        line-height: 1.5;
    }
} 