:root {
    --primary-color: #222;
    --background-color: #f8f8f8;
    --card-background:#f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.42);
    --font-family: 'Karla', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
   
    min-height: 100vh;
    background: #444;
background: linear-gradient(180deg,rgb(241, 241, 241) 0%, rgb(228, 228, 228) 100%);
 background: linear-gradient(180deg,rgb(235, 235, 235) 0%, rgb(201, 201, 201) 100%);
 
    
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 0.8em;
}

a{

color:#444;
text-decoration:none;


}

.container {
  max-width: 800px;
  padding: 20px;
  margin: auto;
  
 
}
    
 .controls {
  width:100%;
 float:left;
 height:auto;
 
 padding-bottom:1em;
 }

header {
    display: flex;
   
    align-items: center;
    margin-bottom: 4px;
}

header h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button, .back-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 55px;
  
    border: none;
    cursor: pointer;
    font-size: 1em;
    margin-left:1em;
}

.button:hover, .back-link:hover {
    background-color: #555;
}

.entries {

}

.entry {
  
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
 border-bottom: 3px solid #444;
 
background-image: linear-gradient(to right bottom, #f8f8f8, #fff);
}

.entry:hover {
   
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

h3.toggle-title {
    font-size: 1.5em;
    line-height: 1.4em;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    flex-grow: 1;
    color: #222;
}

.actions {
    display: flex;
    gap: 10px;
}

.edit-button, .delete-button {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.edit-button:hover, .delete-button:hover {
    color: #888;
}

.content-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.content-container.active {
    max-height: 1000px; /* Großer Wert, um eine reibungslose Animation zu gewährleisten */
    transition: max-height 0.6s ease-in;
}

.content-container .content {
    margin: 10px 0;
    white-space: pre-wrap;
    font-weight: 600;
	color:#222;
}

.meta {
    font-size: 0.8em;
    color: #888;
    margin-top: 15px;
    font-style: italic;
    border-top: 1px dotted #ccc;
    padding-top: 10px;
}

.dotted_line {
    border: 0;
    border-top: 1px dotted #ccc;
    margin: 10px 0;
}

/* Eintrag-Seite (entry.php) */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 700;
}

input[type="text"], textarea, select{
  width: 100%;
  padding: 0.6em;
  border: 0px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1em;
  line-height: 1.4;
 background-color: #d7d7d7;
  color: #333;
  border: 1px solid #969696;
  font-weight: 600;
  margin-bottom:4px;
 box-shadow: inset 3px 4px 5px rgba(0, 0, 0, 0.1);
 height:30px;
 margin-right:2%;
  
}

textarea {
    resize: vertical;
    
     font-size: 1.1em;
     line-height: 1.3;
    
}

.back-link {
    margin-bottom: 20px;
}


#summarize_btns_menu{



}

.llm-feedback {
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    padding: 15px;
    background-color: #f9f9f9;
}

.llm-feedback h4 {
    margin-top: 0;
}

/* Login-Seite */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.login-container h2 {
    margin-top: 0;
}

.login-container input[type="password"] {
    margin-bottom: 20px;
}

/* Neue Stile für Tags */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.tag-category h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #888;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
}

.tag-item {
    background-color: #fff;
    color: #919090;
    padding: 4px 6px;
    border-radius: 10px;
    font-size: 0.8em;
    border: 0px solid #ccc;
}

.tag-icon {
    margin-left: 8px;
    color: #888;
    font-size: 0.8em;
}

#llm_remix_ouput_div_wrapper{

position: fixed;
    top: 0;
    right: 0px;
    width: 100%;
    height: 100vh;
    background: #ffc9e2;
background: linear-gradient(180deg,rgba(255, 201, 226, 1) 0%, rgba(237, 202, 159, 1) 100%);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%); /* Initial versteckt */
    transition: transform 0.5s ease-in-out;
    z-index: 200;
overflow-y: auto; /* Erlaubt vertikales Scrollen, falls der Inhalt zu lang ist */
padding: 1em;

padding-bottom:400px;

 max-width:900px;

}


#llm_remix_ouput_div_wrapper.open {
    transform: translateX(0px); /* Eingeblendet */
}



#clickFahne {
    
    width: 40px;
    height: 40px;
    background-color: #ff0d5d;
    color: white;
    font-size: 24px; /* Größer für das Symbol */
    font-weight: bold;
    
    /*
   
    transform: translateX(-10px);
    transition: transform 0.5s ease-in-out;
    *  */
    position: fixed;
    right: 20px;
    bottom:20px;
    z-index:999;
    
     display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.3);
}

#llm_remix_ouput_div_wrapper.open #clickFahne {
    /* transform: translateX(50px); /* Bei geöffnetem Panel */
    background-color:#fff;
    color:#444;
}


#llm_remix_ouput_div{
font-size: 1.2em;
  line-height: 1.5em;
  color: #000;
  font-weight: 600;
 
}

.remix_btns{

padding: 0.5em;
  width: 28px;
  display: inline;
  border-radius: 53px;
  border: 0px;
  margin-right: 2px;
background-color: #7ce0f1;
  color: #000;
  
  box-shadow: inset -2px 2px 5px rgba(0, 0, 0, 0.3);
} 


.header_btns{

padding: 0.5em;
  width: 28px;
  display: inline;
  border-radius: 12px;
  border: 0px;
  margin-right: 2px;
background-color:#ff9d8d;;
  color: #FFF;
  font-weight:600;
  box-shadow: inset  -2px 2px 5px rgba(0, 0, 0, 0.3);
} 

#summarize_btns_menu{

padding: 1em;
 padding-left:0px;
 
}


#summarize_btns_menu a{

 margin-right:8px;
 
}


.dotted_line{

border:0px;
border-bottom:1px dotted #444;
width:100%;
}

#save_btn{

position:fixed;

top:10px;
right:10px;
background-color:#4DEBAF;

width:50px;
height:50px;

}


.btn {
 background-color: #ffb18a;
  color: #fff;
  padding: 0.4em;
  border: 0px solid #000;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 1px;
   
  margin-bottom: 4px;
  font-weight: 600;
    font-family: var(--font-family);
}

btn:hover {
    background-color: #333;
}

btn:active {
    background-color: #555;
    transform: translateY(1px);
}





/* Media Queries für mobile Ansichten */
@media (max-width: 600px) {
    body {
        font-size: 0.9em;
    }
    .container {
        margin: 4px auto;
        padding: 12px;
    }
    header h1 {
        font-size: 1.8em;
    }
    h3.toggle-title {
        font-size: 1.2em;
    }
    .button, .back-link {
        padding: 8px 12px;
    }
    .entry {
        padding: 15px;
    }
    .entry-header {
      
    }
    .actions {
        align-self: flex-end;
    }


 
}
