/* assets/frontend.css - Finaler Entwurf mit Single-Page-Anpassungen */

/* --- Color Palette --- */
:root {
    --color-light-blue: #70D6FF;
    --color-pink: #FF70A6;
    --color-orange: #FF9770;
    --color-yellow: #FFD670;
    --color-light-green: #E9FF70;
    
    --color-push-one: #556677;
    --color-push-two: #556688;
    --color-push-tre: #556699;
    
    
    --col_one: #ff499b;
    --col_two: #ff647f;
    --col_tre: #ff8966;
    --col_for: #ffb057;
	--col_five: #FFD557;

	--col_c_one: #00cfff;
    --col_c_two: #00e3e5;
    --col_c_tre: #41f1bb;
    --col_c_for: #a6f88e;


}





/* --- Font Faces --- */
@font-face {
    font-family: 'Karla';
    src: url('fonts/Karla-Regular.woff2') format('woff2'),
         url('fonts/Karla-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend Exa';
    src: url('fonts/LexendExa-SemiBold.woff2') format('woff2'),
         url('fonts/LexendExa-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Base & Layout --- */
body {
    font-family: 'Karla', sans-serif;
    line-height: 1.6;
    color: #444;
    margin: 0;
    padding: 0;
    background-color: #efefef;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, a:hover {
text-decoration:none;

}

.container {
    max-width: 1000px; /* Zurück auf 900px */
    margin: 20px auto;
    padding: 0 2rem;
}

#seeder_left_bar{

background-color:#444;

position:fixed;
top:0px;
left:0px;
width:30px;
height: 100vh;
 box-shadow: inset 0 -4px -3px rgba(0,0,0,0.5);
 
 cursor: pointer;
  transition: background 0.3s;
}

#seeder_left_bar:hover {
  background: #d0d0d0;
}


.full-width-container {
    width: 90%;
   margin: 0 auto;
   
    padding: 0;
}

/* --- Header & Navigation (Minimalist, Fixed) --- */
.header {
    background: none;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header .nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
}


#mainLogolink{

	position: fixed;
    top: 8px;
    left: 8px;
}

#backendlink{

	position: fixed;
    top: 20px;
    left: 34px;
    color: #fff;
    
}


#mainLogolink img{
	width:50px;
}

.header .nav a {
    color: #444;
    text-decoration: none;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* --- Global Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend Exa', sans-serif;
     font-size: 1.1em;
    margin-top: 1.7em;
    margin-bottom: 0.28em;
    line-height: 1.3em;
    font-weight: 600;
}

.page_title{
font-size: 2.2em;
  line-height: 1.4em;
}

/* --- Page List Styles --- */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding-bottom:1rem;
    border-bottom:1px dotted #444;
}

.controls input[type="text"],
.controls select {

 box-shadow: inset 0 1px 8px rgba(0,0,0,0.2);

font-family: 'Karla', sans-serif;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    flex-grow: 1;
    min-width: 180px;
    background-color:#E2E2E2;
    width:20%;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 600px) {
    .page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .page-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .page-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.page-card {
    background: white;
    border-radius: 12px;
     
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 250px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.page-card > a {
    text-decoration: none;
    color: inherit;
}

.page-thumbnail {
    width: 100%;
    height: 300px;
    background: #e9eff1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 3rem;
    position: relative;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #222;
    color: #fff;
    padding: 0.5rem 1rem;
    border-top-right-radius: 16px;
    box-shadow: 2px -2px 5px rgba(0,0,0,0.1);
    width:70%;
}

.page-title-overlay h2 {
    margin: 0;
    font-size: 0.8rem;
     
}

.page-info {
    padding: 1rem;
}

.page-info p, .page-info .page-meta {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.page-meta {
    color: #7f8c8d;
    font-size: 0.8rem;
    display: flex;
   
    gap: 0.5rem;
}

.page-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.status-indicator {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

/* Status colors from palette */
.status-realitycheck { background-color: var(--color-light-green); }
.status-pragmatics { background-color: var(--color-light-blue); }
.status-ethics { background-color: var(--color-pink); }
.status-speculative { background-color: var(--color-yellow); }
.status-diy { background-color: var(--color-orange); }

/* --- Single Page Styles --- */
.content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.line_trenner {
    border: 0;
    border-bottom: 2px dotted #e0e0e0;
    margin-bottom:1em;
    margin-top:2em;
}

.page-image {
    text-align: center;
    margin: 2rem 0;
     width: 100%;
}


.page-image img{

width:100%;
height:auto;

}


.gallery-image {
     
    margin: 2rem 0;
     width: 100%;
}

.gallery-image img{

width:100%;
height:auto;

}


.page-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

.page-description {
   font-size: 1.3rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.markdown-body {
    line-height: 1.5;
    font-size: 1.1rem;
    word-wrap: break-word;
   
}
.markdown-body p{

	 margin:4px;
}
.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-tags .tag {
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #444;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-section {
    background-color: white; /* Changed from fdfdfd to white for consistency */
    
    border-radius: 8px;
    padding: 0; /* Padding is now inside the content div */
    margin-top: 0.2rem;
   
    overflow: hidden; /* This is important for the transition */
}

.section_label{

width:100%;
padding:0.4em;
font-size:0.7em;

}

.fat_deco_line{

border:0;

border-top:2px dotted #444;
margin:0.96em;

}

.page-section-title {
 font-family: 'Lexend Exa', sans-serif;
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0;
  padding: 0.6rem;
  border-bottom: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  letter-spacing: 0.6rem;
}
.page-section-title:hover {
    background-color: #f7f7f7;
}

/* Sektionen farbcodiert */
.section-realitycheck .page-section-title { background-color: var(--color-light-green); }
.section-pragmatics .page-section-title { background-color: var(--color-light-blue); }
.section-ethics .page-section-title { background-color: var(--color-pink); }
.section-speculative .page-section-title { background-color: var(--color-yellow); }
.section-diy .page-section-title { background-color: var(--color-orange); }

/* Versteckte/geöffnete Sektion */
.page-section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.05rem;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.page-section-content.is-active {
    max-height: 2000px; /* Großer Wert, um den Inhalt anzuzeigen */
    padding: 1.05rem;
}

/* Fixed Section Navigation */
.section-nav {
    position: fixed;
    top: 5rem;
    left: 1.5rem;
    z-index: 999;
}

.section-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-nav .nav-item {
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.section-nav .nav-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.section-nav .nav-item i {
    font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* --------------------------------------------------------------- */
/* --------------------------------------------------------------- */
/* --------------------------------------------------------------- */
/* --------------------------------------------------------------- */
/* --------------------------------------------------------------- */
/* --------------------------------------------------------------- */

@media (max-width: 1200px) {

	.container {
		 
		margin: 0px auto;
		padding: 0 0rem;
	}
	.page_title {
	
	font-size:1.3em;
	
	}
	
	.page-description {
  font-size: 1.2rem;
  
  line-height: 1.4;
  }
  
  .section-nav {
  
  display:none;
  
  }
  
  .markdown-body {
  line-height: 1.5;
  font-size: 1.0rem;
   
  }
  
  .content {
  
		padding: 1.0rem;
	}
	
	.page-card {
  
  height: 120px;
  }
  
  .page-section-title {
  
  font-size: 1.02rem;
   
  
  }
}
