AICertification/app/flask-postgres/styles/site.css
2026-03-31 20:46:44 +02:00

420 lines
6.0 KiB
CSS

/* =========================
RESET & BASE
========================= */
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
body {
background: linear-gradient(180deg, #07192d 0%, #102a45 100%);
color: #ffffff;
min-height: 100vh;
}
/* =========================
HEADER
========================= */
.site-header {
background: rgba(4, 18, 33, 0.96);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
position: sticky;
top: 0;
z-index: 100;
}
.header-inner {
max-width: 1320px;
margin: 0 auto;
padding: 14px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
/* =========================
LOGO
========================= */
.site-logo {
height: 60px;
width: auto;
display: block;
}
/* =========================
NAVIGATION
========================= */
.top-nav {
display: flex;
align-items: center;
gap: 8px;
}
.top-nav a {
color: #ffffff;
text-decoration: none;
font-weight: 600;
padding: 10px 18px;
border-radius: 999px;
display: inline-block;
min-width: 110px; /* verhindert Springen */
text-align: center;
transition: background 0.2s ease;
}
.top-nav a:hover,
.top-nav a.active {
background: #376da6;
}
.user-box {
font-weight: 700;
padding: 10px 12px;
}
/* =========================
MAIN CONTENT
========================= */
.content-area {
padding: 40px 20px;
}
.content-box {
max-width: 1200px;
margin: 0 auto;
background: #ffffff;
color: #1b2430;
border-radius: 16px;
padding: 32px;
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}
/* =========================
HEADINGS
========================= */
h1, h2, h3 {
color: #0d2f57;
margin-top: 0;
}
p {
color: #2f3b4a;
}
/* =========================
HERO
========================= */
.hero-box {
margin-bottom: 30px;
}
/* =========================
PRICING
========================= */
.pricing-section {
margin-bottom: 30px;
}
.pricing-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.price-card {
background: #ffffff;
border: 1px solid #dce3ea;
border-radius: 16px;
padding: 24px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.price-card.featured {
border: 2px solid #1d66b2;
background: #f5f9ff;
}
.price-card h3 {
color: #0d2f57;
}
.price-subline {
color: #526172;
min-height: 48px;
}
.price-value {
font-size: 30px;
font-weight: 800;
color: #125eb0;
margin: 18px 0;
}
.price-value span {
font-size: 14px;
color: #526172;
}
.price-card ul {
padding-left: 20px;
}
.price-card li {
margin-bottom: 8px;
color: #2f3b4a;
}
/* =========================
BUTTONS
========================= */
.btn-primary {
display: inline-block;
margin-top: 12px;
padding: 10px 16px;
border-radius: 8px;
background: #125eb0;
color: #ffffff;
text-decoration: none;
font-weight: 600;
}
/* =========================
IMAGE PANEL
========================= */
.image-panel img {
width: 100%;
border-radius: 12px;
}
/* =========================
TWO COLUMN LAYOUT
========================= */
.two-col {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 24px;
align-items: center;
}
/* =========================
MODULES
========================= */
.module-blocks {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.module-block {
background: #f8fbff;
border: 1px solid #dce3ea;
border-radius: 16px;
padding: 24px;
}
.module-block h3 {
color: #7f9cc0;
}
.module-result {
font-weight: 800;
color: #125eb0;
margin-bottom: 10px;
}
.module-block li {
color: #2f3b4a;
}
/* =========================
LOGIN
========================= */
.login-box {
max-width: 600px;
}
.intro-text {
color: #526172;
}
.login-form .form-row {
margin-bottom: 16px;
}
.login-form label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: #0d2f57;
}
.login-form input {
width: 100%;
padding: 10px;
border-radius: 8px;
border: 1px solid #c9d2db;
}
.error-box {
background: #ffe7e7;
color: #8d1d1d;
padding: 12px;
border-radius: 8px;
margin-bottom: 16px;
}
/* =========================
RESPONSIVE
========================= */
@media (max-width: 900px) {
.pricing-grid,
.module-blocks,
.two-col {
grid-template-columns: 1fr;
}
.top-nav a {
min-width: auto;
}
.header-inner {
flex-direction: column;
align-items: flex-start;
}
}
.info-section {
margin-bottom: 30px;
}
.check-list {
padding-left: 20px;
}
.check-list li {
margin-bottom: 8px;
}
.user-menu {
position: relative;
display: inline-block;
}
.user-menu-toggle {
background: #376da6;
color: #fff;
border: 0;
border-radius: 999px;
padding: 10px 18px;
font-weight: 600;
cursor: pointer;
min-width: 140px;
}
.user-menu-dropdown {
display: none;
position: absolute;
right: 0;
top: calc(100% + 4px);
min-width: 180px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
overflow: hidden;
z-index: 200;
}
.user-menu-dropdown a {
display: block;
padding: 12px 16px;
color: #1b2430;
text-decoration: none;
text-align: left;
}
.user-menu-dropdown a:hover {
background: #eef4fb;
color: #0d2f57;
}
.user-menu:hover .user-menu-dropdown,
.user-menu:focus-within .user-menu-dropdown {
display: block;
}
.admin-form,
.admin-card-form {
margin-bottom: 24px;
}
.admin-card {
background: #f8fbff;
border: 1px solid #dce3ea;
border-radius: 16px;
padding: 20px;
margin-bottom: 20px;
}
.admin-actions {
display: flex;
gap: 12px;
margin-top: 16px;
}
.btn-danger {
display: inline-block;
padding: 12px 18px;
border: 0;
border-radius: 10px;
background: #b62323;
color: #ffffff;
font-weight: 700;
cursor: pointer;
}
.admin-table {
width: 100%;
border-collapse: collapse;
}
.admin-table th,
.admin-table td {
padding: 12px 14px;
border-bottom: 1px solid #dce3ea;
text-align: left;
}
.admin-table th {
width: 220px;
color: #0d2f57;
}