/* CSS-Datei für 1ahilfe.de */

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

html {
    /* Stellen Sie sicher, dass die HTML-Höhe mindestens 100% des Viewports beträgt */
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    /* Farbverlauf im Body */
    background: linear-gradient(to bottom, #34698B 0%, #6E92B6 600px) no-repeat;
    background-color: #6E92B6;
    /* Feste Farbe nach dem Verlauf */
    /* Stellen Sie sicher, dass der Body die volle Höhe einnimmt */
    min-height: 100vh;
    /* Ein wenig Abstand zum oberen Rand */
    padding-top: 20px;
    padding-bottom: 40px;
}


/* Hauptcontainer mit fester Breite */

.main {
    width: 100%;
    max-width: 800px;
    /* Feste Breite statt dynamischer Anpassung */
    margin: 0 auto;
    background-color: transparent;
    /* Transparent, damit der Body-Hintergrund durchscheint */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px 15px 15px 15px;
}


/* Header mit kopf.jpg */

#header {
    width: 100%;
    height: 295px;
    /* Feste Höhe statt dynamischer Anpassung */
    background-image: url('../images/kopf.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}


/* Inhaltscontainer mit abgerundeten Ecken unten */

#content {
    background-color: #DAD09B;
    color: white;
    padding: 20px;
    overflow: hidden;
    /* Für floating elements */
    border-radius: 0 0 15px 15px;
    /* Abgerundete Ecken unten */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Subtiler Schatten */
}


/* Linke Spalte */

#left {
    width: 50%;
    float: left;
    padding-right: 20px;
}


/* Zentrierung des Inhalts in der linken Spalte */

#left .center-content {
    text-align: center;
}


/* Rechte Spalte */

#right {
    width: 50%;
    float: right;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
}


/* Vertikale und horizontale Zentrierung in der rechten Spalte */

#right .center-content-vertical {
    text-align: center;
    width: 100%;
}


/* Zentrale IP-Anzeige (neu) */

#center {
    clear: both;
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}


/* Große klickbare Bereiche */

.big-clickarea {
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.big-clickarea:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.big-clickarea h3 {
    margin-bottom: 15px;
}

.big-clickarea img {
    max-width: 100%;
    height: auto;
}

.big-clickarea .clickarea-text {
    margin-top: 10px;
    margin-bottom: 10;
    font-size: 1.1em;
}

.big-clickarea:hover .clickarea-text {
    color: white;
}


/* Überschriften */

h1 {
    margin-bottom: 20px;
    font-size: 2em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

h2 {
    margin-bottom: 10px;
    font-size: 1.6em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* Textabsätze */

p {
    margin-bottom: 0px;
}


/* Links */

a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: white;
    text-decoration: underline;
}


/* IP-Adresse hervorheben */

.ip-address {
    font-size: 1.3em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
}


/* Fußbereich */

#fuss {
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    color: white;
    margin-top: 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}


/* Buttons für Filetransfer */

.button {
    display: inline-block;
    #background-color: #3498db;
    background-color: rgba(40, 57, 80, 0.3);
    color: white;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.button:hover {
    background-color: #2980b9;
    text-decoration: none;
}


/* Formularelemente */

form {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    background-color: rgba(40, 57, 80, 0.3);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: white;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="file"] {
    width: 100%;
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0,0 L12,0 L6,6 Z" fill="%23666"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}


/* Button Styles */

.btn {
    display: inline-block;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
    /* Konsistente Zeilenhöhe */
    height: auto;
    /* Höhe automatisch anpassen */
    box-sizing: border-box;
    /* Box-Sizing-Modell anpassen */
    vertical-align: middle;
    /* Vertikale Ausrichtung */
}


/* Zusätzliche Anpassung für Link-Buttons, um sie mit normalen Buttons anzugleichen */

a.btn {
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: rgba(40, 57, 80, 0.3);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: white;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
    margin-top: 5px;
}


/* Benachrichtigungen */

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: bold;
    position: relative;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alert.success {
    background-color: rgba(46, 204, 113, 0.8);
    color: white;
    border-left: 5px solid #27ae60;
}

.alert.error {
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    border-left: 5px solid #c0392b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Upload-Erfolg-Seite */

.success-info {
    background-color: rgba(40, 57, 80, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-group:last-child {
    border-bottom: none;
}

.file-id,
.download-link {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.1em;
    margin: 5px 0;
    word-break: break-all;
}

.warning-box {
    background-color: rgba(241, 196, 15, 0.2);
    border-left: 5px solid #f39c12;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box h3 {
    color: #f39c12;
    margin-bottom: 10px;
}

.buttons {
    margin-top: 20px;
    text-align: center;
}

.copy-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: fadeInOut 2s ease;
}


/* Admin-Seite */

.admin-link {
    text-align: center;
    margin-top: 20px;
}

.admin-button {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.admin-button:hover {
    color: #333;
}

.dashboard {
    margin-bottom: 30px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    background-color: #f2f2f2;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    margin-top: 0;
    color: #333;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #3498db;
}

.stats-row {
    display: flex;
    justify-content: space-between;
}

.stat-column {
    flex: 1;
    margin: 0 5px;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mini-table th,
.mini-table td {
    padding: 6px;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}


/* Show Password Button (wird dynamisch per JS hinzugefügt) */

.show-password-btn {
    margin-top: 5px;
    font-size: 14px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.show-password-btn:hover {
    background-color: #e9ecef;
}


/* Fortschrittsanzeige für Upload */

.progress-container {
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 3px;
    position: relative;
    height: 30px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #2ecc71, #3498db);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* Abbrechen-Button für den Upload */

.cancel-upload {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.cancel-upload:hover {
    background-color: #c0392b;
}


/* Responsive Design */

@media screen and (max-width: 600px) {
    #left,
    #right {
        width: 100%;
        float: none;
        padding: 0;
        display: block;
    }
    #right {
        margin-top: 20px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 20px;
    }
    .main {
        width: 95%;
    }
    form {
        padding: 15px;
    }
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}