/* ==============================================================
   KIWAG.com — Basis-Styles (base.css)
   Reset, Typografie, Grundelemente
   ============================================================== */

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: #f0efe8;
    background-image: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(37, 99, 235, 0.03), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(15, 110, 86, 0.03), transparent);
    background-attachment: fixed;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

ul, ol {
    list-style: none;
}

/* --- Typografie --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--space-md);
    max-width: 68ch;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
}

small, .text-sm {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--color-text-soft);
}

.text-accent {
    color: var(--accent);
}

/* --- Formular-Grundstyles --- */
input, textarea, select, button {
    font-family: var(--font-body);
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

/* --- Auswahl-Styling --- */
::selection {
    background: var(--accent-light);
    color: var(--accent-dark);
}

/* --- Zugänglichkeit --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
