/* ==========================================================================
   NAARMANN Corporate Website - Professional Stylesheet
   ========================================================================== */

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Arial', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    border-bottom: 3px solid #e9ecef;
}

.logo-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-image {
    max-height: 60px;
    width: auto;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 100;
}

.flag-btn {
    background: white;
    border: 1px solid #dee2e6;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flag-btn:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.flag-btn.active {
    background-color: #e3f2fd;
    border-color: #1976d2;
    box-shadow: 0 0 0 1px #1976d2;
}

.flag-btn img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 1px;
}

/* ==========================================================================
   Container und Layout
   ========================================================================== */

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

h2 {
    color: #34495e;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
}

h3 {
    color: #34495e;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
}

h4 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 12px 0 8px 0;
}

.subtitle {
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

p {
    margin-bottom: 12px;
    color: #495057;
    line-height: 1.5;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

input[type="text"]:invalid:not(:focus),
input[type="email"]:invalid:not(:focus) {
    border-color: #dc3545;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    font-family: inherit;
}

.btn-primary {
    background: #1976d2;
    color: white;
    border: 1px solid #1976d2;
}

.btn-primary:hover {
    background: #1565c0;
    border-color: #1565c0;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.btn:disabled {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #e9ecef !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn:active {
    transform: translateY(1px);
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Special Components
   ========================================================================== */

/* Info Boxes */
.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.user-info {
    background: #f0f8ff;
    border: 1px solid #cce7ff;
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
}

.user-info h3 {
    margin-top: 0;
    color: #1976d2;
    font-size: 1.1rem;
}

.user-info p {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info strong {
    color: #495057;
    min-width: 100px;
    font-weight: 500;
}

/* Agreement Text Box */
.agreement-text {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 14px;
}

.agreement-text::-webkit-scrollbar {
    width: 6px;
}

.agreement-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.agreement-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.agreement-text::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.agreement-text ul {
    margin: 8px 0 12px 16px;
}

.agreement-text li {
    margin: 4px 0;
    color: #495057;
}

/* Checkbox Styles */
.checkbox-group {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fafbfc;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin: 16px 0;
    padding: 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.checkbox-item:hover {
    border-color: #1976d2;
}

.checkbox-item input[type="checkbox"] {
    margin: 2px 0 0 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1976d2;
}

.checkbox-item label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    flex: 1;
    color: #495057;
}

.checkbox-item label a {
    color: #1976d2;
    text-decoration: none;
}

.checkbox-item label a:hover {
    text-decoration: underline;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: white;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.footer small {
    color: #6c757d;
    line-height: 1.5;
    font-size: 13px;
}

.footer a {
    color: #1976d2;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }
    
    .card {
        padding: 24px 16px;
        margin: 0 8px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .language-switcher {
        top: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .flag-btn {
        padding: 4px 6px;
    }
    
    .flag-btn img {
        width: 20px;
        height: 14px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 240px;
    }
    
    .user-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .checkbox-item {
        padding: 12px;
    }
    
    .checkbox-item label {
        font-size: 13px;
    }
    
    .agreement-text {
        max-height: 200px;
        padding: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .language-switcher {
        top: 8px;
        right: 8px;
    }
    
    .submit-section {
        padding: 16px;
    }
    
    .checkbox-group {
        padding: 16px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    body {
        background: white;
    }
    
    .language-switcher {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .footer {
        box-shadow: none;
        border-top: 1px solid #000;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid;
    }
}

/* ==========================================================================
   Success Page Styles (user_showlogoutcredentials.html)
   ========================================================================== */

/* Success Icon */
.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #28a745;
    border-radius: 50%;
    position: relative;
}

.success-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
}

/* Success Title */
h1.success {
    color: #28a745;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.info-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 30%;
    font-size: 14px;
}

.info-table td {
    color: #2c3e50;
    font-size: 14px;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #495057;
}

/* Logout Section */
.logout-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 24px;
    margin: 24px 0;
    border-left: 4px solid #f39c12;
}

.logout-section h2 {
    color: #856404;
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-section h2::before {
    content: '⚠️';
    font-size: 1.2rem;
}

.logout-section p {
    color: #856404;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* Logout Link Box */
.logout-link {
    background: white;
    border: 2px solid #1976d2;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #1976d2;
    word-break: break-all;
    line-height: 1.4;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-link:hover {
    background: #f0f8ff;
    border-color: #1565c0;
}

.logout-link::before {
    content: '🔗';
    position: absolute;
    top: -8px;
    left: -8px;
    background: white;
    padding: 4px;
    border-radius: 50%;
    font-size: 12px;
}

/* Copy Buttons */
.copy-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-link {
    background: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
    text-decoration: none;
}

.btn-link:hover {
    background: #138496;
    border-color: #117a8b;
    color: white;
    text-decoration: none;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

/* ==========================================================================
   Responsive Adjustments for Success Page
   ========================================================================== */

@media (max-width: 768px) {
    h1.success {
        font-size: 1.8rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .info-table th {
        width: 35%;
    }
    
    .logout-section {
        padding: 20px 16px;
    }
    
    .logout-section h2 {
        font-size: 1.2rem;
    }
    
    .logout-link {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .copy-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .copy-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .success-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
    
    .success-icon::after {
        font-size: 26px;
    }
    
    h1.success {
        font-size: 1.6rem;
    }
    
    .info-table {
        font-size: 12px;
    }
    
    .info-table th {
        width: 40%;
    }
    
    .logout-section {
        padding: 16px 12px;
    }
    
    .logout-section h2 {
        font-size: 1.1rem;
    }
    
    .logout-link {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* ==========================================================================
   Print Styles for Success Page
   ========================================================================== */

@media print {
    .copy-buttons,
    .action-buttons {
        display: none;
    }
    
    .logout-section {
        background: white;
        border: 2px solid #000;
    }
    
    .logout-section h2::before {
        content: '[WICHTIG] ';
    }
    
    .logout-link {
        border: 1px solid #000;
        background: white;
        color: #000;
    }
    
    .logout-link::before {
        display: none;
    }
}
/* ==========================================================================
   Logout Page Styles (logout.html)
   ========================================================================== */

/* Form Section */
.form-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 24px;
    margin: 24px 0;
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* Input Group für Date/Time mit Button */
.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-group input[type="date"],
.input-group input[type="time"] {
    flex: 1;
}

/* Now Button */
.btn-now {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-now:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Date und Time Inputs */
input[type="date"],
input[type="time"] {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

/* Button Group für Submit/Cancel */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive für Logout Page
   ========================================================================== */

@media (max-width: 768px) {
    .form-section {
        padding: 20px 16px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-now {
        width: 100%;
        justify-self: stretch;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group .btn {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 16px 12px;
    }
    
    .form-section h2 {
        font-size: 1.2rem;
    }
}
/* ==========================================================================
   Logout Success Page Styles (logout_success.html)
   ========================================================================== */

/* Success Info Container */
.success-info {
    margin: 24px 0;
}

/* Visit Details */
.visit-details {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
}

.visit-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visit-details strong {
    color: #495057;
    font-weight: 500;
}

/* Thank You Box */
.thank-you-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #1976d2;
}

.thank-you-box h3 {
    color: #1976d2;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.thank-you-box p {
    color: #1565c0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Next Steps */
.next-steps {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ff9800;
}

.next-steps h3 {
    color: #e65100;
    margin-bottom: 16px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-steps h3::before {
    content: '📋';
    font-size: 1.1rem;
}

.next-steps ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.next-steps li {
    color: #bf360c;
    margin: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 16px;
}

/* Bounce Animation für Success Icon */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Print Button Styling */
.btn.btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

.btn.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* ==========================================================================
   Responsive für Logout Success Page
   ========================================================================== */

@media (max-width: 768px) {
    .visit-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .thank-you-box {
        padding: 16px;
    }
    
    .thank-you-box h3 {
        font-size: 1.2rem;
    }
    
    .thank-you-box p {
        font-size: 14px;
    }
    
    .next-steps {
        padding: 16px;
    }
    
    .next-steps h3 {
        font-size: 1.1rem;
    }
    
    .next-steps li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .success-info {
        margin: 16px 0;
    }
    
    .visit-details {
        padding: 12px;
    }
    
    .thank-you-box {
        padding: 12px;
    }
    
    .next-steps {
        padding: 12px;
    }
    
    .next-steps li {
        padding-left: 20px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Print Styles für Logout Success
   ========================================================================== */

@media print {
    .language-switcher,
    .action-buttons {
        display: none;
    }
    
    .success-info {
        break-inside: avoid;
    }
    
    .thank-you-box,
    .next-steps {
        background: white !important;
        border: 1px solid #000 !important;
    }
    
    .thank-you-box h3::before,
    .next-steps h3::before {
        display: none;
    }
    
    .next-steps li::before {
        content: '- ';
        color: #000;
    }
}