@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #ffffff; color: #2c2c2c; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
a { color: #3687A2; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px; flex: 1; width: 100%; }
.brand { font-family: 'Fjalla One', sans-serif; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; color: #3687A2; margin-bottom: 36px; display: flex; justify-content: space-between; align-items: center; }
.brand .nav { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #888; font-size: 12px; letter-spacing: 2px; text-transform: none; }
.brand .nav a { color: #888; }
.brand .nav a:hover { color: #3687A2; text-decoration: none; }
h1 { font-family: 'Fjalla One', sans-serif; font-size: 40px; font-weight: 400; letter-spacing: 0.5px; margin-bottom: 16px; line-height: 1.1; color: #3687A2; text-transform: uppercase; }
h2 { font-size: 20px; font-weight: 700; margin: 36px 0 14px; color: #2c2c2c; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 17px; color: #555; margin-bottom: 32px; max-width: 640px; }
p { margin-bottom: 12px; color: #444; }
.info { background: #3687A2; color: #ffffff; padding: 28px 30px; margin-bottom: 32px; border-radius: 6px; }
.info-label { font-family: 'Fjalla One', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: #ffffff; margin-bottom: 14px; }
.info p { color: #ffffff; }
.info ul { list-style: none; }
.info li { padding: 6px 0 6px 22px; position: relative; color: #ffffff; }
.info li::before { content: "\2192"; position: absolute; left: 0; color: #ffffff; font-weight: 700; }
label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: #3687A2; margin-bottom: 6px; font-weight: 700; }
input[type="text"], input[type="email"], input[type="number"], textarea { width: 100%; background: #f7f7f7; border: 1px solid #ddd; color: #2c2c2c; padding: 11px 14px; border-radius: 4px; font-size: 14px; font-family: inherit; }
input:focus, textarea:focus { outline: none; border-color: #3687A2; background: #ffffff; }
textarea { resize: vertical; min-height: 70px; }
input[type="file"] { width: 100%; background: #f7f7f7; border: 1px solid #ddd; color: #555; padding: 12px; border-radius: 4px; font-size: 13px; cursor: pointer; }
input[type="file"]::file-selector-button { background: #3687A2; border: none; color: #ffffff; padding: 6px 14px; border-radius: 3px; margin-right: 10px; cursor: pointer; font-family: inherit; font-weight: 600; }
.form-group { margin-bottom: 20px; }
.hint { font-size: 12px; color: #888; margin-top: 4px; }
.btn { display: inline-block; background: #3687A2; color: #ffffff; padding: 12px 24px; border: none; border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; letter-spacing: 0.3px; transition: all 0.15s; }
.btn:hover:not(:disabled) { background: #4DA8C0; text-decoration: none; }
.btn:disabled { background: #cccccc; color: #888; cursor: not-allowed; }
.btn-secondary { background: transparent; color: #3687A2; border: 2px solid #3687A2; padding: 10px 22px; }
.btn-secondary:hover:not(:disabled) { background: #3687A2; color: #ffffff; }
.btn-danger { background: #c33232; color: #ffffff; }
.btn-danger:hover:not(:disabled) { background: #d04545; }
.btn-row { display: flex; gap: 12px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.btn-small { padding: 6px 14px; font-size: 12px; }
table.table { width: 100%; border-collapse: collapse; margin-top: 14px; background: #ffffff; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #555; padding: 12px 14px; border-bottom: 2px solid #3687A2; font-weight: 700; background: #f7f7f7; }
.table td { padding: 14px; border-bottom: 1px solid #eaeaea; font-size: 14px; color: #444; vertical-align: middle; }
.table tr:hover td { background: #fafafa; }
.badge { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 12px; font-weight: 700; }
.badge-pending { background: #fff4d4; color: #997300; }
.badge-authorized { background: #d4ecdd; color: #2c7a4a; }
.badge-revoked { background: #f7d4d4; color: #a02323; }
.badge-completed { background: #d4e6f7; color: #2a5a8e; }
.copybox { background: #f7f7f7; border: 1px solid #ddd; padding: 12px 14px; padding-right: 80px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; color: #2c2c2c; word-break: break-all; position: relative; margin-bottom: 12px; }
.copybox button { position: absolute; right: 6px; top: 6px; background: #3687A2; color: #ffffff; border: none; padding: 5px 12px; font-size: 11px; border-radius: 3px; cursor: pointer; font-family: inherit; font-weight: 600; }
.copybox button:hover { background: #4DA8C0; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 14px; font-size: 14px; border-left: 4px solid; }
.alert-success { background: #e8f5ed; border-left-color: #2c7a4a; color: #1f5e38; }
.alert-error { background: #fce8e8; border-left-color: #c33232; color: #8e2424; }
.alert-warn { background: #fff8e0; border-left-color: #c99a1c; color: #8a6a1c; }
.file-row { background: #f9f9f9; border: 1px solid #e5e5e5; border-left: 4px solid #3687A2; padding: 18px; margin-bottom: 12px; border-radius: 0 4px 4px 0; }
.file-row h4 { font-size: 14px; margin-bottom: 12px; color: #2c2c2c; word-break: break-all; font-weight: 700; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid3 label { font-size: 10px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; font-size: 14px; margin-bottom: 4px; }
.kv .k { color: #888; font-weight: 600; }
.kv .v { color: #2c2c2c; }
footer { text-align: center; padding: 28px 24px; color: #888; font-size: 12px; border-top: 1px solid #eaeaea; background: #fafafa; }


/* Logo + Untertitel */
.brand { padding: 4px 0; }
.logo-img { height: 56px; width: auto; display: block; }
.brand > span:first-of-type, .brand > img + .brand-sub { display: inline-flex; align-items: center; }
.brand-sub { font-family: 'Fjalla One', sans-serif; font-size: 16px; letter-spacing: 2px; color: #888; text-transform: uppercase; margin-left: 18px; align-self: center; }
.brand .nav { align-self: center; }
.brand img + .brand-sub { display: inline-block; vertical-align: middle; }
.brand > * { vertical-align: middle; }
