/* styles.css - NextGenPrint Website */

/* ----------------------------------------
   Grundsätzliche Styles (Resets und Variablen)
   ---------------------------------------- */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #272727;
    --text-color: #eee;
    --header-bg: #272727;
    --link-color: #367c39;
    --link-hover-bg: #45a049;
    --button-bg: #367c39;
    --button-hover-bg: #45a049; 
    --form-border-color: #555; 
    --form-button-bg: #367c39;
    --form-button-hover-bg: #45a049;
    --hero-bg-color: #272727;
    --hero-text-color: #fff;  
}

a:-webkit-any-link {
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.welcome {
    margin: auto;
    width: fit-content;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
    color: #367c39;
    background-color: #272727;
    border-radius: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    text-shadow: 0 0 4px black;
    font-size: clamp(0.8em, 1vw, 1.6em);
}

.welcome_image {
    padding-top: 10px;
    display: flex;
    justify-content: center;
}

.headline {
    margin: auto;
    width: fit-content;
    font-size: 1.2em;
    text-align: center;
    color: #367c39;
    background-color: #272727;
    border-radius: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    text-shadow: 0 0 4px black;
}

.post-title {
    margin-right: 10px;
    font-size: 0.8em;
    color: #367c39;
    text-shadow: 0 0 4px black;
}

.date {
    color: #636363;
    text-shadow: 0 0 2px black;
    position: absolute;
    font-size: 0.8em;
    right: 0;
    z-index: 2;
}

body {
    font-family: sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('images/printer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */

header {
    background-color: var(--header-bg);
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;

}

.logo {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1;
}

.logo img {
    vertical-align: middle;
}

nav {
    width: 100%;
    z-index: 2;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 5px;
    position: relative;
  }

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 15px;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: var(--link-hover-bg);
    color: white;
}

nav ul li a.active {
    background-color: var(--link-hover-bg); 
    color: white; 
    font-weight: bold;
    border-bottom: 2px solid #000;
}

/* ----------------------------------------
 Dropdown Menü
---------------------------------------- */

.dropbtn {
    cursor: pointer;
  }

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--header-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 3;
    border-radius: 5px;
    white-space: nowrap;
    padding-top: 5px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--link-hover-bg);
}

/* Dropdown anzeigen beim Hover (Desktop) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
      display: block;
  }
}



/* ----------------------------------------
 Main
---------------------------------------- */

main {
padding: 20px;
flex-grow: 1;
}


/* ----------------------------------------
Cards
---------------------------------------- */

.card {
    background-image: linear-gradient(163deg, #45a049 0%, #367c39 100%);
    margin: 0 auto 20px;
    border-radius: 12px;
    width: fit-content;
    transition: all .3s;
}

.card2 {
    background-color: var(--hero-bg-color);
    color: var(--hero-text-color);
    border-radius: 12px;
    width: fit-content;
    transition: all .2s;
    }

.card:hover {
    box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.30);
}

.card2:hover {
    transform: scale(0.98);
    border-radius: 12px;
}

.card-images img {
    max-width: 100%;  
    height: auto;     
    display: block;   
    margin: 0 auto;  
    max-height: 500px;
    border-radius: 0px 0px 12px 12px;
}


.hero {
background-color: var(--hero-bg-color);
color: var(--hero-text-color);
padding: 15px;
margin: 0 auto 20px;
margin-bottom: 10px;
border-radius: 20px;
max-width: 80%;
}

.hero-text {
    text-align: center;
    font-size: 1.2em;
    }

.hero-images {
    display: flex; 
    flex-wrap: wrap;     
    justify-content: center; 
    gap: 10px;
    margin-bottom: 10px;      
}

.hero-images img {
    max-width: 100%;  
    height: auto;     
    display: block;   
    margin: 0 auto;  
    max-height: 500px;
    border-radius: 20px;
}

.addition-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    flex-direction: row;
    margin-bottom: 10px;
}

.addition-images img {
    max-width: 100%;  
    height: auto;     
    display: block;   
    margin: 0 auto;  
    max-height: 300px; 
    border-radius: 20px;
}

.content-section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;  
}

.content-section h2 {
    text-align: center;    
    margin-bottom: 20px;  
}

.content-container {
    font-size: clamp(0.8em, 1vw, 1.6em);
    white-space: nowrap;
    display: flex;
    gap: 20px;
    position: relative;
}

.content-item {
    flex: 1 1 300px; 
    padding: 10px;
    border-radius: 12px;
    background-color: var(--bg-color);
}

.content-item img {  
    max-width: 100%;  
    height: auto;     
    display: block;   
    margin: 0 auto; 
}

/* ----------------------------------------
Horizontale Linie
---------------------------------------- */

.horizontal_line {
    border-color: #404040;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 5px;
}

/* ----------------------------------------
Buttons
---------------------------------------- */

.button-background {
    background: #367c39;
    border-radius: 20px;
    padding: 5px 10px 5px 10px;
    max-width: 250px;
    margin: auto;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 10px;
}

button {
    display: inline-block;
    border-radius: 5px;
    font-size: 18px;
    font-family: inherit;
    font-weight: 800;
    position: relative;
    border: none;
    background: none;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    color: #fff;
    cursor: pointer;
}

button:focus,
button:hover {
    color: #fff;
}

button:focus:after,
button:hover:after {
    width: 100%;
    left: 0%;
}

button:after {
    content: "";
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

.single-link {
    text-align: center;
    margin: 0 auto 20px;
    margin-bottom: 0px;
    border-radius: 12px;
    width: fit-content;
    width: -moz-fit-content;
}

.input_password {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--form-border-color);
    border-radius: 12px;
    margin-bottom: 10px;
}





/* ----------------------------------------
 Error Message
---------------------------------------- */

.error-message {
    border: 1px solid red;
    color: red;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ffe6e6;
  }

/* ----------------------------------------
 Kontaktformular
---------------------------------------- */

form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

#salutation {
    width: 120px;
    padding: 10px;
    border: 1px solid var(--form-border-color);
    border-radius: 12px;
    margin-bottom: 10px; 
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none;   
    background-color: white;
    color: #272727; 
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 5px;
    padding-right: 25px;

}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--form-border-color);
    border-radius: 12px;
    margin-bottom: 10px;
}

textarea {
    height: 150px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #272727; 
}

/*Fokus Styling*/
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #272727;
  box-shadow: 0 0 5px rgba(70, 70, 70, 0.5);
}

.name-container {
    display: flex;
    column-gap: 10px; 
}

.name-container > div {
    flex: 1;
}
.name-container > div > input{
    width: 100%;
}

.textarea_label{
    text-align: left;
    padding-left: 10px;
    padding-right: 5px;
}

.field-style {
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ----------------------------------------
Checkbox
---------------------------------------- */

.checkbox-wrapper {
    --checkbox-size: 25px;
    --checkbox-color: #00ff88;
    --checkbox-shadow: rgba(0, 255, 136, 0.3);
    --checkbox-border: rgba(0, 255, 136, 0.7);
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 10px;
  }
  
  .checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .checkbox-wrapper .checkmark {
    position: relative;
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    border: 2px solid var(--checkbox-border);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px var(--checkbox-shadow);
    overflow: hidden;
  }
  
  .checkbox-wrapper .checkmark::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--checkbox-color), #00ffcc);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0) rotate(-45deg);
  }
  
  .checkbox-wrapper input:checked ~ .checkmark::before {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
  
  .checkbox-wrapper .checkmark svg {
    width: 0;
    height: 0;
    color: #1a1a1a;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  }
  
  .checkbox-wrapper input:checked ~ .checkmark svg {
    width: 18px;
    height: 18px;
    transform: rotate(360deg);
  }
  
  .checkbox-wrapper:hover .checkmark {
    border-color: var(--checkbox-color);
    transform: scale(1.1);
    box-shadow:
      0 0 20px var(--checkbox-shadow),
      0 0 40px var(--checkbox-shadow),
      inset 0 0 10px var(--checkbox-shadow);
  }
  
  .checkbox-wrapper input:checked ~ .checkmark {
    animation: pulse 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 20px var(--checkbox-shadow);
    }
    50% {
      transform: scale(0.9);
      box-shadow:
        0 0 30px var(--checkbox-shadow),
        0 0 50px var(--checkbox-shadow);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 20px var(--checkbox-shadow);
    }
  }
  
  .checkbox-wrapper .label {
    margin-left: 15px;
    font-family: "Segoe UI", sans-serif;
    color: var(--checkbox-color);
    font-size: 18px;
    text-shadow: 0 0 10px var(--checkbox-shadow);
    opacity: 0.9;
    transition: all 0.3s;
  }
  
  .checkbox-wrapper:hover .label {
    opacity: 1;
    transform: translateX(5px);
  }

/* ----------------------------------------
ReCaptcha Badge
---------------------------------------- */

.grecaptcha-badge {
    visibility: hidden;
}

/* ----------------------------------------
   Tabelle für Filamentarten (klassische Tabelle)
   ---------------------------------------- */
 
.filament-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
    border: 1px solid var(--form-border-color); 
}

.filament-header {
    font-weight: bold;
    background-color: var(--header-bg);
    padding: 8px 12px;
    border: 1px solid var(--form-border-color); 
    text-align: center; 
    color:#367c39;
    font-weight: bold;
    font-size: 1.2em;
}

.filament-item {
    text-align: center;
    color:#367c39;
    font-weight: bold;
}

.filament-description {
    padding: 8px 12px;
    background-color: var(--header-bg);
    border: 1px solid var(--form-border-color);
    text-align: left; 
}


/* ----------------------------------------
   Footer
   ---------------------------------------- */

footer {
    background-color: var(--header-bg);
    color: #367c39;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}



.terms a {
    color: var(--link-color);
}

.terms a:hover {
    color: var(--link-hover-bg); 
     text-decoration: underline;
}

.social-icons {
    position: fixed;    
    top: 50%;
    right: 0;
    transform: translateY(-50%); 
    z-index: 1000; 
    display: flex;
    flex-direction: column; 
    gap: 10px;
    padding: 10px;
    background-color: snow;
    border-radius: 12px 0 0 12px;
}

.social-icons a {
    display: block;
}

.social-icons img {
    width: 32px;
    height: 32px; 
    vertical-align: middle; 
    transition: transform 0.2s ease;
}

.social-icons a:hover img {
    transform: scale(1.1); 
}


/* Allgemeine Liste Styles */
.sitemap-section ul {
    list-style: none;
    padding-left: 0;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.sitemap-section li {
    margin-bottom: 8px; /* Kleinerer Abstand zwischen den Listenelementen */
}

/* Links innerhalb der Sitemap */
.sitemap-section a {
    text-decoration: none; /* Keine Unterstreichung standardmäßig */
    color: #367c39; /* Grünton für Links */
    font-size: 1.2em;
    transition: color 0.3s ease; /* Sanfter Übergang beim Hover */
}

.sitemap-section a:hover {
    color: #45a049; /* Etwas hellerer Grünton beim Hover für einen leichten Effekt */
    text-decoration: underline; /* Unterstreichung beim Hover */
}


/* ----------------------------------------
    Media Queries (Responsives Design)
   ---------------------------------------- */

   @media (max-width: 768px) {

    .logo {
        display: none;
    }
    
    nav ul li a {
        
        padding: 4px 5px;
    }
     nav ul{
        flex-direction: row;
        display: flex;
        align-items: center;
    }

    nav ul li {
        margin: 0 2px;
        text-align: center;
        font-size: 0.7em;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .hero {
        max-width: 100%;
        padding: 10px; 
    }

    .hero-text {
        margin-top: 0;
        font-size: 1em;
        }

    .hero-images {
        flex-direction: column; 
        align-items: center;
        margin-bottom: 10px;
    }

    .hero-images img {
        max-width: 100%;
        height: auto;
        display: block; 
        margin: 0 auto;
    }

    .content-container {
        flex-direction: column;
    }
    .content-section{
      max-width: 100%;
    }

    /* Kontaktformular */
    .name-container {
        flex-direction: column;
    }
    .name-container > div > input{
      width: 100%; 
    }
    form{
        max-width: 100%;
    }

    .filament-grid {
        grid-template-columns: 1fr;
        display: block;
    }

    /* Header ausblenden */
    .filament-header {
        display: none;
    }

    .filament-item {
        font-weight: bold;
    }

    .social-icons {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background-color: snow;
        border-radius: 0;
    }

    .sitemap-section ul {
        list-style: none;
        padding-left: 0;
        font-family: 'Open Sans', sans-serif;
        text-align: center;
    }

    .sitemap-section li {
        margin-bottom: 8px; /* Kleinerer Abstand zwischen den Listenelementen */
    }

    .sitemap-section ul ul {
        padding-left: 15px; /* Weniger Einrückung auf kleinen Bildschirmen */
    }

}