/* Allgemeine Stile */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #449e9c;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
}

h1 a {
    color: #fff;
    text-decoration: none;
}

h2 {
    color: #449e9c;
}

nav {
    position: relative;
}

a {
    color: #449e9c;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* Responsives Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed; /* Change to fixed position */
        top: 100px; /* Adjust based on your header height */
        right: 0;
        left: 0;
        width: 100%;
        background-color: #449e9c;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 999; /* Ensure it stays on top but below the header */
        margin: 0; /* Remove any margin */
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* Einführung */
#intro {
    padding: 20px;
    background: #f9f9f9;
    text-align: center;
}

/* Abschnitte */
section {
    padding: 20px;
}

#employer-selection {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically if needed */
    text-align: center;
}

.job-box {
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
    animation: fadeIn 0.3s ease-in-out;
}

.job-summary {
    padding: 10px;
    border-radius: 8px;
}


.job-details {
    display: none;
    padding: 10px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

.form-container {
    flex-grow: 1;
    padding: 2rem;
    background: white;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="textarea"],
select {
    width: 97%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Form elements with datalist */
input[list] {
    width: 97%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* For browsers that support styling datalist */
datalist {
    width: 97%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
}

datalist option {
    padding: 0.5rem;
    cursor: pointer;
}

datalist option:hover {
    background-color: #f5f5f5;
}

/* Make textareas responsive */
textarea {
    width: 97%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical; /* Allow vertical resizing but not horizontal */
}

.responsive-textarea {
    width: 97%; /* Consistent with other form elements */
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .responsive-textarea {
        width: 95%; /* Slightly narrower on mobile */
        font-size: 16px; /* Better for mobile input */
    }

    input[list] {
        width: 95%;
    }
    
    datalist {
        width: 95%;
    }
}

.time-group label {
    flex: 1;
    margin: 0.5rem;
}

.day-time {
    display: flex;
    margin-bottom: 0.5rem;
}

.actions {
    margin-top: 2rem;
    text-align: center;
}

.button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #449e9c;
    color: white;
    transition: background-color 0.3s;
}

.container {
    max-width: 800px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.book-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 5px solid #449e9c;
}

.book-title {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.book-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.toc {
    background-color: #f5f9fa;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toc h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.toc ol {
    padding-left: 20px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.toc a:hover {
    color: #449e9c;
    text-decoration: underline;
}

.chapter {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.chapter h2 {
    color: #449e9c;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.chapter-content {
    line-height: 1.8;
}

.chapter-content p {
    margin-bottom: 15px;
}

.chapter-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.chapter-content li {
    margin-bottom: 5px;
}

.back-to-top {
    display: block;
    text-align: right;
    margin-top: 20px;
    font-size: 0.9em;
}

.address-block {
    margin: 15px 0;
    padding: 15px;
    background-color: #f5f9fa;
    border-left: 3px solid #449e9c;
    border-radius: 5px;
}

.contact-info {
    margin: 15px 0;
}

.chapter-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.chapter-content td {
    padding: 8px;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .book-container {
        margin: 15px;
        padding: 15px;
    }
    
    .toc {
        padding: 15px;
    }
}

.info-text {
    display: none;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in-out;
}

.selection {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.example-box {
    background: #f9f9f9;
    padding: 15px;
    border-left: 5px solid #449e9c;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.employee-entry {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
}

.employee-info-sticky {
    position: sticky;
    top: 70px;
    z-index: 10;
    background-color: white;
    padding: 10px;
    margin: -10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 6px;
}

.employee-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.employee-summary {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 5px;
    border-radius: 6px;
}

.summary-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.week-group {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.day-entry {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.date-label {
    width: 120px;
    font-weight: bold;
}

.time-inputs {
    display: flex;
    gap: 15px;
}

.hour-input {
    width: 60px;
}

.remove-button {
    background-color: #ff4b5c;
    margin-top: 20px;
}

.reset-button {
    background-color: #ff9800; /* Orange color for reset button */
    margin-top: 20px;
}

.hours-container {
    margin-top: 20px;
}

h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #449e9c;
}

.month-selection {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.month-selection select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.file-upload-container {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

.file-format-hint {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

.period-info {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #449e9c;
}

.period-info h3 {
    margin-top: 0;
    color: #449e9c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #333;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

#summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#summary-table th, 
#summary-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#summary-table th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
}

#summary-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#summary-table tr:hover {
    background-color: #f1f1f1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.secondary-button {
    background-color: #999;
}

.secondary-button:hover {
    background-color: #777;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #summary-table th, 
    #summary-table td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
}

footer a {
    color: #ffa500;
    text-decoration: none;
}

/* New styles for unternehmen.html */
.hero-section {
    background-color: #f5f9fa;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #449e9c;
}

.hero-section h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #449e9c;
}

.benefits-section, .examples-section, .rates-section, .info-section, .contact-section {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.highlight-box {
    background-color: #e8f4f4;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #449e9c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conclusion-box {
    background-color: #f9f4e8;
}

.benefit-list {
    padding-left: 20px;
}

.benefit-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.benefit-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #449e9c;
    font-weight: bold;
}

.rates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.rate-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rate-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.rate {
    font-size: 1.5rem;
    font-weight: bold;
    color: #449e9c;
}

.special-card {
    grid-column: span 2;
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .rates-container {
        grid-template-columns: 1fr; /* Changed to single column layout */
    }
    
    .special-card {
        grid-column: auto;
    }
    
    .rate-card {
        padding: 15px; /* Slightly reduced padding for mobile */
        min-height: 100px; /* Ensure minimum height for consistency */
    }
    
    .rate {
        font-size: 1.3rem; /* Slightly smaller font size on mobile */
    }
}

/* Datenschutz Styles */
.privacy-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.privacy-header {
    border-bottom: 2px solid #449e9c;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.privacy-date {
    color: #666;
    font-style: italic;
    margin-top: -10px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h3 {
    color: #449e9c;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.privacy-subsection {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid #f0f0f0;
}

.privacy-subsection h4 {
    color: #333;
    margin-bottom: 10px;
}

.contact-box {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #449e9c;
}

.contact-box p {
    margin: 5px 0;
}

.highlight-box {
    background-color: #e8f4f4;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #449e9c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conclusion-box {
    background-color: #f9f4e8;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #f0ad4e;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .privacy-container {
        margin: 15px;
        padding: 15px;
    }
    
    .privacy-section h3 {
        font-size: 1.3rem;
    }
    
    .privacy-subsection {
        padding-left: 10px;
    }
}

/* Video styles for flash-zone.html */
.video-container {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

/* Add responsive adjustments for video */
@media (max-width: 850px) {
    .video-container {
        max-width: 95%;
        margin: 20px auto;
    }
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
}

footer a {
    color: #ffa500;
    text-decoration: none;
}

/* Form validation styles */
.input-control.success input,
.input-control.success select,
.input-control-small.success input,
.input-control-small.success select,
.input-control-large.success input,
.input-control-large.success select {
    border: 1px solid #2ecc71; /* Green border for valid input */
}

.input-control.error input,
.input-control.error select,
.input-control-small.error input,
.input-control-small.error select,
.input-control-large.error input,
.input-control-large.error select {
    border: 1px solid #e74c3c; /* Red border for invalid input */
}

.error {
    color: #e74c3c;
}

/* German Learning Page Styles */
.level-selection {
    padding: 30px 20px;
    background-color: #f5f9fa;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.level-selection .container {
    margin: 0 auto;
    max-width: 800px;
    display: block;
    float: none;
}

.level-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* Slightly narrower for better appearance */
}

.level-filter {
    padding: 8px 15px;
    border: 2px solid #449e9c;
    border-radius: 30px;
    background: transparent;
    color: #449e9c;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.level-filter:hover {
    background-color: rgba(68, 158, 156, 0.1);
}

.level-filter.active {
    background-color: #449e9c;
    color: white;
}

.lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.lesson-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lesson-header {
    padding: 15px 20px;
    background-color: #f5f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.lesson-header h3 {
    margin: 0;
    color: #333;
    padding-right: 50px;
}

.level-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #449e9c;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.lesson-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lesson-details {
    margin-top: 15px;
}

.lesson-button {
    margin-top: 15px;
    align-self: flex-start;
}

.resources-section {
    background-color: #f5f9fa;
    padding: 40px 20px;
    margin-top: 30px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.resource-card h3 {
    color: #449e9c;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.resource-card ul {
    padding-left: 20px;
}

.resource-card li {
    margin-bottom: 8px;
}

.nav-links a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .lessons-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    
    .level-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .level-filter {
        width: 80%;
        margin-bottom: 10px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}