.header-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    width: 32px;      /* Begrenzt die Breite auf ein Icon-Maß */
    height: 32px;     /* Begrenzt die Höhe */
    object-fit: contain;
    flex-shrink: 0;   /* Verhindert, dass das Bild bei Platzmangel schrumpft */
}


/* safety/style.css */
:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-sec: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ED;
    --danger: #ff3b30;
    --success: #34c759;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

header {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand { font-weight: 600; font-size: 1.2rem; text-decoration: none; color: var(--text-main); letter-spacing: -0.5px; }
.back-link { font-size: 0.9rem; color: var(--text-sec); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    position: relative;
}

h1 { font-weight: 600; font-size: 1.8rem; margin-top: 0; margin-bottom: 10px; letter-spacing: -0.5px; }
h2 { font-weight: 600; font-size: 1.4rem; margin-top: 0; margin-bottom: 10px; }
p.desc { color: var(--text-sec); margin-bottom: 25px; line-height: 1.5; font-size: 0.95rem; }

.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.5px; }

textarea, input, select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
    transition: all 0.2s;
    -webkit-appearance: none;
}

textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
textarea { min-height: 120px; resize: vertical; }

button.btn-primary, button.btn-danger, button.btn-secondary {
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

button.btn-primary { background-color: var(--text-main); color: white; }
button.btn-primary:hover { background-color: #000; }
button.btn-primary:active { transform: scale(0.98); }

button.btn-danger { background-color: #fff0f0; color: var(--danger); margin-top: 10px; }
button.btn-danger:hover { background-color: #ffe0e0; }

/* Result Box Tweaks */
.result-box { margin-top: 30px; padding: 20px; background: #f5f5f7; border-radius: 12px; display: none; }
.link-group { display: flex; gap: 10px; margin-top: 10px; }
.result-link {
    flex-grow: 1;
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.9rem;
    background: white;
    padding: 12px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    color: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.btn-copy {
    background: white; border: 1px solid #e5e5ea; border-radius: 8px; cursor: pointer; padding: 0 15px;
    font-weight: 600; color: var(--text-main); transition: all 0.2s;
}
.btn-copy:hover { border-color: var(--text-sec); }
.btn-copy:active { background: #f0f0f0; }

/* Secret Reveal Area */
.secret-container {
    position: relative;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secret-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
}
.secret-mask.revealed { opacity: 0; pointer-events: none; }

.mask-dots { font-size: 2rem; letter-spacing: 4px; color: var(--text-main); margin-bottom: 5px; }
.mask-hint { font-size: 0.85rem; color: var(--accent); font-weight: 500; }

.secret-content-text {
    width: 100%;
    padding: 20px;
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    white-space: pre-wrap;
    border: none;
    background: transparent;
    color: var(--text-main);
    resize: none;
    outline: none;
}

.timer-badge {
    display: inline-block;
    background: #e5e5ea;
    color: var(--text-sec);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.actions-row { display: flex; gap: 10px; margin-top: 15px; }
.actions-row button { width: 50%; font-size: 0.9rem; padding: 12px; }

.hidden { display: none; }
.error { color: var(--danger); font-size: 0.9rem; margin-top: 10px; font-weight: 500; }
