135 lines
8.1 KiB
CSS
135 lines
8.1 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root {
|
|
--black: #000000;
|
|
--white: #ffffff;
|
|
--blue: #1e40af;
|
|
--gray1: #f3f4f6;
|
|
--gray2: #e5e7eb;
|
|
}
|
|
html { scroll-behavior: smooth; }
|
|
body {
|
|
font-family: 'Inter', system-ui, sans-serif;
|
|
background: var(--white);
|
|
color: var(--black);
|
|
line-height: 1.6;
|
|
}
|
|
a { color: var(--blue); text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 24px 0;
|
|
}
|
|
.brand { font-size: 1.75rem; font-weight: 800; }
|
|
.lang-select {
|
|
display: flex; gap: 8px; background: var(--gray1);
|
|
padding: 4px; border-radius: 8px;
|
|
}
|
|
.lang-btn {
|
|
padding: 6px 14px; font-size: .85rem; font-weight: 600;
|
|
border: none; border-radius: 6px; background: transparent;
|
|
cursor: pointer; color: var(--black); transition: all .2s;
|
|
}
|
|
.lang-btn.active { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
|
|
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
|
|
.user-actions { display: flex; gap: 8px; align-items: center; }
|
|
.user-btn { padding: 6px 12px; font-size: .75rem; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
|
|
.user-btn svg { width: 16px; height: 16px; fill: currentColor; }
|
|
|
|
.intro { padding: 48px 0 32px; text-align: center; }
|
|
.intro h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
|
|
.intro p { font-size: 1.1rem; color: #4b5563; max-width: 600px; margin: 0 auto; }
|
|
|
|
.main-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
|
|
.main-full { grid-column: 1 / -1; }
|
|
.notebook { width: 100%; }
|
|
.news-col h2 { font-size: 1.75rem; font-weight: 800; border-bottom: 2px solid var(--black); padding-bottom: 12px; margin-bottom: 24px; }
|
|
.news-item { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray2); }
|
|
.news-date { font-size: .75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
|
|
.news-item h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
|
|
.news-item p { font-size: 1rem; color: #4b5563; line-height: 1.6; }
|
|
.news-tag {
|
|
display: inline-block; font-size: .75rem; font-weight: 600;
|
|
color: var(--blue); text-transform: uppercase; letter-spacing: .04em;
|
|
border: 1px solid var(--blue); padding: 4px 10px; border-radius: 20px; margin-top: 10px;
|
|
}
|
|
|
|
.sidebar-col { position: sticky; top: 20px; height: fit-content; }
|
|
.login-panel { background: var(--gray1); padding: 32px; border-radius: 16px; border: 1px solid var(--gray2); }
|
|
.newsletter-panel { background: var(--gray1); padding: 32px; border-radius: 16px; border: 1px solid var(--gray2); }
|
|
.notebook { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.1); grid-column: 1 / -1; width: 100%; }
|
|
.newsletter-panel h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--gray2); }
|
|
.notebook .tabs { display: flex; border-bottom: 2px solid var(--gray2); }
|
|
.notebook .tab { flex: 1; padding: 14px; text-align: center; font-weight: 600; cursor: pointer; border: none; background: #f9fafb; color: #6b7280; }
|
|
.notebook .tab.active { background: var(--white); color: var(--black); border-bottom: 3px solid var(--blue); }
|
|
.notebook .tab-content { padding: 24px; min-height: 200px; }
|
|
.notebook .hidden { display: none; }
|
|
.user-search { margin-bottom: 20px; }
|
|
.user-search input { width: 100%; padding: 10px; border: 1px solid var(--gray2); border-radius: 8px; font-size: 1rem; outline: none; }
|
|
.user-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }
|
|
.users-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
|
|
.user-card { background: var(--white); border: 1px solid var(--gray2); border-radius: 12px; padding: 20px; display: flex; align-items: flex-start; gap: 16px; }
|
|
.user-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; overflow: hidden; }
|
|
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
|
|
.user-avatar-text { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
|
|
.user-info h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
|
|
.user-company, .user-email { font-size: .9rem; color: #6b7280; margin: 0; }
|
|
.user-location { font-size: .85rem; color: #6b7280; margin: 4px 0 0 0; }
|
|
.user-description { font-size: .85rem; color: #4b5563; margin: 8px 0 0 0; max-height: 40px; overflow: hidden; text-overflow: ellipsis; }
|
|
.wiki-accordion { margin: 24px 0; }
|
|
.wiki-topic { margin-bottom: 16px; }
|
|
.wiki-topic h4 { font-size: 1.1rem; font-weight: 600; padding: 12px 16px; background: var(--gray1); border-radius: 8px; cursor: pointer; transition: background .2s; }
|
|
.wiki-topic h4:hover { background: var(--gray2); }
|
|
.wiki-subtopics { padding-left: 24px; margin-top: 8px; }
|
|
.wiki-subtopic { margin-left: 24px; border-left: 2px solid var(--gray2); padding-left: 16px; }
|
|
.wiki-subtopic.hidden { display: none; }
|
|
.wiki-subtopic-title { font-weight: 600; padding: 8px 0; cursor: pointer; }
|
|
.wiki-subtopic-title:hover { color: var(--blue); }
|
|
.wiki-subtopic-content { padding: 12px 16px; background: var(--gray1); border-radius: 8px; margin-top: 8px; }
|
|
.user-actions { display: flex; gap: 12px; align-items: center; }
|
|
.user-btn { padding: 8px 16px; font-size: .85rem; }
|
|
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 999; display: flex; align-items: center; justify-content: center; }
|
|
.modal.hidden { display: none; }
|
|
.modal-content { background: var(--white); padding: 32px; border-radius: 16px; width: 90%; max-width: 800px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
|
|
.modal-content h3 { margin-bottom: 24px; }
|
|
.close-btn { position: absolute; top: 16px; right: 20px; font-size: 24px; cursor: pointer; color: #6b7280; }
|
|
.username-display { padding: 12px 0; font-size: 1.1rem; font-weight: 700; color: var(--black); }
|
|
.profile-form .hidden { display: none; }
|
|
.form-group label { font-weight: 400; }
|
|
.login-panel h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--gray2); }
|
|
.form-group { margin-bottom: 16px; }
|
|
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
|
|
.form-group input {
|
|
width: 100%; padding: 12px; border: 1px solid var(--gray2); border-radius: 8px;
|
|
font-size: 1rem; outline: none; transition: border-color .2s;
|
|
}
|
|
.form-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,64,175,.1); }
|
|
.btn-primary { width: 100%; padding: 12px; background: var(--black); color: var(--white); border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s; }
|
|
.btn-primary:hover { background: var(--blue); }
|
|
.btn-secondary { width: 100%; padding: 10px; background: var(--gray1); border: 1px solid var(--gray2); border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 12px; }
|
|
.btn-secondary:hover { background: #e5e7eb; }
|
|
.hidden { display: none; }
|
|
.success-msg { padding: 12px; background: #d1fae5; border: 1px solid #34d399; border-radius: 8px; color: #065f46; margin-bottom: 16px; text-align: center; }
|
|
|
|
.footer { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--black); text-align: center; font-size: 1rem; white-space: nowrap; }
|
|
.footer a { font-weight: 600; text-decoration: none; }
|
|
.footer a:hover { text-decoration: underline; }
|
|
|
|
@media (max-width: 768px) {
|
|
.main-grid { grid-template-columns: 1fr; }
|
|
.sidebar-col { position: static; }
|
|
.brand { font-size: 1.4rem; }
|
|
.header { flex-direction: column; gap: 12px; }
|
|
}
|
|
|
|
.hide-de { display: none; }
|
|
.hide-en { display: none; }
|
|
[data-lang="de"] .hide-de { display: block; }
|
|
[data-lang="en"] .hide-en { display: block; }
|
|
[data-lang="de"] .hide-en { display: none; }
|
|
[data-lang="en"] .hide-de { display: none; }
|