/* styles.css */
:root {
    --primary-color: #0071e3;
    --secondary-color: #f5f5f7;
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --border-color: #d2d2d7;
    --success-color: #4cd964;
    --error-color: #ff3b30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    line-height: 1.5;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 24px;
    color: var(--light-text);
    margin-bottom: 30px;
}

/* Button Styles */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    font-size: 17px;
    transition: all 0.3s;
}

.button:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

.button.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.button.secondary:hover {
    border-color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature p {
    color: var(--light-text);
}

/* Form Styles */
.form-section {
    padding: 60px 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 30px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

/* Tickets Table */
.tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.tickets-table th,
.tickets-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.tickets-table th {
    background-color: var(--secondary-color);
    font-weight: 500;
    color: var(--text-color);
}

.tickets-table tr:last-child td {
    border-bottom: none;
}

.tickets-table tr:hover {
    background-color: rgba(245, 245, 247, 0.5);
}

.ticket-id {
    font-weight: 600;
    color: var(--primary-color);
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.status.open {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
}

.status.in-progress {
    background-color: rgba(255, 204, 0, 0.1);
    color: #ff9500;
}

.status.closed {
    background-color: rgba(76, 217, 100, 0.1);
    color: var(--success-color);
}

/* Ticket Detail */
.ticket-detail {
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ticket-title {
    font-size: 24px;
    font-weight: 600;
}

.ticket-info {
    margin-bottom: 30px;
}

.ticket-info p {
    margin-bottom: 10px;
    display: flex;
}

.info-label {
    font-weight: 500;
    width: 120px;
}

.ticket-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

.responses {
    margin-top: 40px;
}

.response {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.response-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--light-text);
}

.response-author {
    font-weight: 500;
    color: var(--text-color);
}

/* Alert Messages */
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(76, 217, 100, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 217, 100, 0.2);
}

.alert-error {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 30px 0;
    text-align: center;
    color: var(--light-text);
    font-size: 14px;
    margin-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 20px;
    }

    .features .container {
        grid-template-columns: 1fr;
    }
}

/* ======== Modernisierte Tabelle mit DataTables Unterstützung ======== */

#geraeteTabelle {
  font-family: Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

#geraeteTabelle thead {
  background-color: #e9ecef;
  color: #333;
  text-transform: uppercase;
  font-size: 13px;
}

#geraeteTabelle th,
#geraeteTabelle td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

#geraeteTabelle tbody tr:hover {
  background-color: #f1f1f1;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
  text-align: right;
  margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_length {
  float: left;
  margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate {
  float: right;
  margin-top: 10px;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 10px;
  clear: both;
  float: left;
  font-size: 13px;
}

/* Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 5px 10px;
  margin: 2px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: #007bff;
  color: white !important;
  cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #0056b3;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0056b3;
}

/* Responsive Icon für kleine Screens */
@media (max-width: 768px) {
  #geraeteTabelle th,
  #geraeteTabelle td {
    font-size: 12px;
    padding: 8px;
  }
}
