/* Modernisierte Anpassung mit Garet und neuer Markenfarbe */
@font-face {
  font-family: 'Garet';
  src: url('/assets/default/css/fonts/Garet-Book.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Garet';
  src: url('/assets/default/css/fonts/Garet-Heavy.ttf') format('truetype');
  font-weight: 800;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body,
input,
select,
textarea {
  font-family: 'Garet', sans-serif;
  color: #222;
}

body {
  background: #f5f7fa;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  margin-bottom: 0.5em;
  color: #ca0019;
}

a, .link {
  color: #ca0019;
  text-decoration: none;
}

a:hover, .link:hover {
  text-decoration: underline;
}

.button,
.button:visited,
input[type=submit],
input[type=button].primary {
  background-color: #ca0019;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.button:hover,
input[type=submit]:hover,
input[type=button].primary:hover {
  background-color: #a30014;
  transform: translateY(-1px);
}

.button.secondary {
  background-color: #28a745;
}

.button.secondary:hover {
  background-color: #218838;
}

input[type=button].cancel,
input[type=reset] {
  background-color: #fff;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

input[type=button].cancel:hover,
input[type=reset]:hover {
  background-color: #f7f7f7;
  border-color: #bbb;
  color: #444;
}

#container {
  background: #fff;
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#header {
  background-color: #ca0019;
  padding: 20px;
  color: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#header img {
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 100%;
}

#nav {
  background-color: #fde5ea;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#nav li {
  list-style: none;
}

#nav li a {
  display: block;
  color: #ca0019;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background-color 0.2s;
  text-align: center;
  white-space: nowrap;
}

#nav li a:hover,
#nav li a.active {
  background-color: #ca0019;
  color: white;
}

#footer {
  text-align: center;
  font-size: 13px;
  padding: 20px;
  color: #666;
}

input[type=text],
input[type=password],
input[type=email],
input[type=tel],
select,
textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

select {
  padding: 12px 16px;
  font-size: 18px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #bbb;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ca0019" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

select:focus {
  border-color: #ca0019;
  box-shadow: 0 0 0 3px rgba(202, 0, 25, 0.15);
  outline: none;
}

input[type=tel],
input[name$="-ext"] {
  width: auto;
  display: inline-block;
  margin-right: 10px;
  min-width: 200px;
}

input[name$="-ext"] {
  max-width: 80px;
}

fieldset {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

label span.required {
  color: #000;
  font-weight: 600;
  margin-left: 4px;
}

#ticketForm input[type=submit],
#clientLogin input[type=submit] {
  background-color: #ca0019;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#ticketForm input[type=submit]:hover,
#clientLogin input[type=submit]:hover {
  background-color: #a30014;
}

#msg_notice {
  background-color: #e0f7e9;
  border-left: 6px solid #28a745;
  padding: 10px;
  color: #155724;
}

#msg_warning, .warning-banner {
  background-color: #fff3cd;
  border-left: 6px solid #ffc107;
  padding: 10px;
  color: #856404;
}

#msg_error {
  background-color: #f8d7da;
  border-left: 6px solid #dc3545;
  padding: 10px;
  color: #721c24;
}

#msg_info {
  background-color: #d1ecf1;
  border-left: 6px solid #17a2b8;
  padding: 10px;
  color: #0c5460;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

th {
  background-color: #fbe6e9;
  color: #ca0019;
  font-weight: 600;
}

.avatar > img {
  border-radius: 50%;
}

.thread-entry {
  background-color: #f9f9f9;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.thread-entry .header {
  background-color: #fde5ea;
  padding: 10px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  color: #ca0019;
}

.thread-body {
  padding: 10px;
  border-radius: 0 0 8px 8px;
  background-color: white;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}

small {
  font-size: 85%;
  color: #777;
}
