AMPERION_Webpage/assets/scss/_typography.scss
astosic 30fb9c0827 Refactor SCSS styles in common and about templates
- Removed unused styles and nested selectors from _common.scss to streamline the code.
- Cleaned up the .about section in _about.scss by eliminating redundant styles for headings and paragraphs.
- Improved overall readability and maintainability of the SCSS files.
2025-08-02 01:31:47 +02:00

118 lines
2 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ===========================
// TYPOGRAPHY Schriftarten & Textstile
// ===========================
body {
font-family: 'Open Sans', sans-serif;
font-size: 16px;
line-height: 1.6;
color: #222;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.hero-subtitle {
font-size: clamp(1.25rem, 2.5vw, 1.75rem);
text-align: center;
color: $text-dark;
text-transform: uppercase;
letter-spacing: 0.12em;
line-height: 1.4;
margin-top: 1rem;
}
// ---------------------------
// Überschriften-Stile
// ---------------------------
h1 {
font-size: clamp(2rem, 5vw, 3rem); // ~32px auf Desktop
font-weight: 600;
line-height: 1.3;
margin-bottom: 1rem;
color: #046e6e;
}
h1.page-title {
font-size: clamp(2.5rem, 6vw, 4rem);
margin-top: 2rem;
text-transform: capitalize;
}
h2 {
font-size: clamp(1.25rem, 2vw, 1.5rem); // Reaktionsfähig statt fix
font-style: italic;
font-weight: 400;
line-height: 1.4;
margin-bottom: 5rem; // Erhöht den Abstand nach h2
color: #222;
}
h3 {
font-size: clamp(1.2rem, 1.8vw, 1.5rem);
font-weight: normal;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
p {
font-style: normal;
font-size: clamp(1.3rem, 1.5vw, 1.4rem);
margin-bottom: 1.25rem;
line-height: 1.6;
}
// ---------------------------
// Textausrichtung
// ---------------------------
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
// ---------------------------
// Text-Elemente
// ---------------------------
strong, b {
font-weight: 700;
}
p {
margin-bottom: 1.25rem;
}
// ---------------------------
// Listen
// ---------------------------
ul, ol {
padding-left: 1.5rem;
margin-bottom: 1.5rem;
}
li {
margin-bottom: 0.5rem;
line-height: 1.6;
}
// ---------------------------
// Links
// ---------------------------
a {
color: #046e6e;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #F5A623;
text-decoration: underline;
}