/*
 * Stylesheet:  style.css
 * Autoren:     Yannik Zentner/ MN 392213 ,Nils Herzig/ MN 393649 ,Marvin Heß/ MN 386261,Lasse John/ MN 391609 - TH-Lübeck Projektteam 3 im Modul Internet-Technologie
 * Erstellt:    20.10.2025
 * Beschreibung: Globale Styles die Einsendeaufgabe 1
 */

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #202122;
    /*background: #f8f9fa;*/
    background-image: url("../images/space-background-large.jpg");
    /*change background to a theme-related picture -yannik*/
    background-attachment: fixed;
    /*background shouldn't move while scrolling -yannik*/
    padding: 0;
}

header {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    background-image: url("../images/space.jpg");
    /*change header background to a fitting theme. (pictures are non-copyrighted from: https://openverse.org/ All credit goes to original creator -yannik*/
    border-bottom: 1px solid #a2a9b1;
    padding: 1.5rem 1rem;
}

header h1 {
    font-size: 2rem;
    font-style: italic;
    /*cursive headline for all h1 in header -yannik*/
    font-weight: 400;
    color: white;
    margin-bottom: 0.3rem;
}

header p {
    font-size: 0.95rem;
    color: #4287f5;
    /*change color for better visibility -yannik */
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    background: #ffffff;
}

nav {
    /*background: #f8f9fa;*/
    background-color: antiquewhite;
    /*changing color for a more transparent design -yannik*/
    border: 1px solid #a2a9b1;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
}

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

nav li {
    border-right: 1px solid #a2a9b1;
}

nav li:last-child {
    border-right: none;
}

nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #0645ad;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav ul ul {
    display: block;
    padding-left: 1rem;
    border-top: 1px solid #eaecf0;
}

nav ul ul li {
    border-right: none;
    border-bottom: 1px solid #eaecf0;
}

nav ul ul li:last-child {
    border-bottom: none;
}


section {
    margin-bottom: 2rem;
}

section h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: black;
    /*consistent headline color -yannik*/
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.2rem;
}

section p {
    margin-bottom: 0.8rem;
}

figure {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    border: 1px solid #a2a9b1;
    padding: 0.5rem;
    /*background: #f8f9fa;*/
    background: antiquewhite;
    /*consistent transparent design -yannik*/
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

figcaption {
    font-size: 0.9rem;
    color: #54595d;
    padding: 0.5rem;
    text-align: center;
}

fieldset {
    display: flex;
    flex-direction: column;
    border: 1px solid #a2a9b1;
    padding: 1rem;
    margin-bottom: 1.5rem;
    /*background: #f8f9fa;*/
    background: antiquewhite;
    /*transparent and consistent design -yannik*/
    text-align: center;
    /*Video imgage zentriert*/
}

legend {
    font-weight: bold;
    padding: 0 0.5rem;
    color: #000;
}

form p {
    margin: 0.5rem 0;
}

label {
    text-align: left;
    display: block;
    margin: 0.8rem 0 0.3rem 0;
    font-weight: 500;
}

form p label {
    text-align: left;
    display: inline;
    font-weight: normal;
    margin-right: 1rem;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #a2a9b1;
    background: #ffffff;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: 2px solid #36c;
    outline-offset: 0;
}

button {
    background: #36c;
    color: #fff;
    border: 1px solid #36c;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

button:hover {
    background: #447ff5;
    border-color: #447ff5;
}

footer {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    padding: 1rem;
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0;
    color: #54595d;
}

footer address {
    font-style: normal;
}

footer nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

footer a {
    color: #0645ad;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

a {
    color: #0645ad;
    text-decoration: none;
}

a:visited {
    color: #0b0080;
}

a:hover {
    text-decoration: underline;
}

a.dead {
    color: #ba0000 !important;
}

article {
    display: flex;
    flex-direction: column;
    border: 1px solid #a2a9b1;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #ffffff;
}

article h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

article p {
    margin: 0.5rem 0;
}

article footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #eaecf0;
}

article footer small {
    color: #54595d;
    font-size: 0.85rem;
}

dl {
    display: flex;
    flex-direction: column;
    margin: 0.8rem 0;
}

dt {
    font-weight: bold;
    margin-top: 0.5rem;
}

dd {
    margin-left: 1.5rem;
    color: #54595d;
}

aside {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 1rem;
    margin: 1.5rem 0;
}

aside h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #a2a9b1;
    background: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: 2px solid #36c;
    outline-offset: 0;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
}

fieldset fieldset {
    border: none;
    padding: 0.5rem 0;
    margin: 0.8rem 0;
    background: transparent;
}

fieldset fieldset legend {
    font-size: 1rem;
    font-weight: 500;
}

fieldset fieldset label {
    display: inline;
    font-weight: normal;
    margin-right: 1rem;
}

/** small hinzugefügt - Lasse John*/
small {
    font-style: italic;
}

#wikisearchInput {
    font-size: 1.6rem;
    font-weight: 400;
    color: black;
    /*consistent headline color -yannik*/
}

#wikiArticleBody{
    text-align: justify;
}

#wikiArticleBody.error {
    background-color: #fee;
    border: 2px solid #c33;
    border-radius: 4px;
    padding: 1rem;
    color: #811;
}

#wikiArticleBody.error strong {
    color: #c33;
    font-size: 1.1rem;
}

#wikiArticleImage {
    display: none;
    float: right;
    margin-left: 20px;  
    margin-bottom: 10px; 
    max-width: 250px;   
    height: auto;        
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

/* <!--Ajax - MH & LJ--> */
#hole-panel {
    padding: 30px;
    background: antiquewhite;
    margin-top: 20px;
}

#hole-panel .title {
    color: #000000; 
    font-size: 1.8em; 
    margin-bottom: 15px;
    padding-bottom: 5px;
}

#hole-panel .description {
    color: #000000; 
    line-height: 1.6;
    font-family: Georgia, serif; 
    margin-bottom: 15px;
    font-size: 1.1em;
}

#hole-panel .ref {
    display: block; 
    font-size: 1.1em;
    color: #000ece; 
    text-decoration: none; 
    margin-top: 10px;
    margin-bottom: 10px; 
}

#hole-panel .ref:hover {
    text-decoration: underline; 
    color: #000ece;
}

#hole-panel .ref .label {
    font-style: italic; 
}

main h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: black;
    /*consistent headline color -yannik*/
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.2rem;
}
