
form {
	width: 100%;
	border-right: 1px solid #eee;
	border-bottom: 1px solid #eee;
	border-left: 1px solid #eee;
}

/*
	"formulare, die keine sind" - z.B. für show/hide profile in den Tools
	 sind für styling sog. utility forms
*/
form.utility-form {
	border-width: 0;
}

form .row {
	padding: 22px 0;
	border-bottom: 1px solid #ddd;
}

.inline-field-inner-row + .inline-field-inner-row {
	padding-top: 22px;
}

form .row:last-of-type {
	border-bottom-width: 0;
	margin-bottom: 11px;
}

form .row .row {
	margin-bottom: 0;
}

.row-contains-helptext fieldset {
	width: 320px;
	float: left;
}

/* radio toggle rows */

.radio-toggle-content-container {
	padding-left: 26px;
}

.radio-toggle-content-container .row {
	border-bottom: 1px dashed #dadada;
}

h2 + form {
	margin-top: 22px;
}


/* -------------- FIELDSET / LEGEND -------------- */

fieldset {
	border: none;
}

.fieldset {
	position: relative;
	margin-bottom: 33px;
}

.fieldset-submit {
	background-color: #eee;
}

form .fieldset-submit .row:last-of-type {
	margin-bottom: 0;
}

.fieldset-content {
	padding: 0 10px;
}

.psd .create-component .fieldset {
	padding: 0;
	border-width: 0;
}

.row + .fieldset {
	margin-top: 2em;
} 

.fontface legend {
	top: 0;
}

.legend,
.legend-subtext {
	display: block;
	padding: 0 10px 0 95px;
}

legend {
	display: block;
	width: 100%;
	padding-bottom: 0.5em;
	background: url(../img/legend-bg.png) repeat-x left bottom;
	border-top: 2px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.legend {
	padding-top: 10px;
	padding-bottom: 3px;
	font-size: 1.3847em;		/* 16px */
	line-height: 1.2222;		/* 22px */
	font-weight: bold;
	color: #0077c8;
}

.legend-subtext {
	line-height: 1.230769230769231; /* 16px / 13px */
	color: #333;
}

.legend-star {
	position: absolute;
	top: -6px;
	left: 6px;
	height: 76px;
	width: 76px;
	background: url(../img/legend-star.png) no-repeat left top;
}

form .h4 {
	margin-bottom: 11px;
}


/* -------------- LABEL -------------- */

label {
	display: block;
	padding: 4px 0;
	margin-bottom: 0.25em;
	font-size: 1em;
	line-height: 1.3;
	color: #333;
}

.labels-left label {
	float: left;
	margin-right: 20px;
}

.group label {
	width: 100px;
}

.label {
	font-size: 1.1538em;
	color: #555;
	font-weight: bold !important;
	padding: 4px 0;
	margin-bottom: 0.25em;
}

.inline-label {
	display: inline;
	margin-left: 5px;
	font-size: 1em;
	font-weight: normal !important;
}

.readonly-label {
	color: #555;
}

.readonly-field .readonly-label {
    width: 220px;
    display: inline-block;
    padding-bottom: 6px;
}
	
.indicator {
	font-size: 0.8461em;
	font-style: italic;
}


/* -------------- FIELDS -------------- */

.inline-field {
	float: left;
	width: 43%;
	margin-right: 20px;
}

.wide-inline-field {
    float: left;
    width: 70%;
    margin-right: 3%;
}

.labels-hidden .inline-field {
	width: auto;
	margin-right: 20px;
}

.readonly-field {
	padding: 3px 6px 3px 0;
	line-height: 1.3;
}

.date-select-field {
	float: left;
	margin-right: 20px;
}

.date_day { width: 5em; }
.date_month { width: 11.5em; }
.date_year { width: 7em; }

.date-select-field select {
	width: 100%;
}



/* -------------- INPUT-FELDER -------------- */

/* Schrift für textarea zunächst resetten */

input.text,
input[type="text"], 
input.password,
input.url,
select,
textarea {
	border: 1px solid #bbb;
	background: #fefefe;
	width: 220px;
	font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
	font-size: 1em;
	color: #333;
	padding: 3px 6px;
	border-radius: 4px;
}

/*
    line-height alleine wird von FF, Opera und IE nicht unterstuetzt;
    in IE werden Unterlaengen abgeschnitten
    fix: http://joshnh.com/2012/12/03/line-height-doesnt-work-as-expected-on-inputs/
*/
input.text,
input[type="text"] {
    height: 1.3em;
}

select.wide {
	width: 290px;
}

select.superwide {
	width: 350px;
}

input.superwide {
	width: 43%;
}

/* z.B. fuer Titel */
input.emphasized {
	width: 75%;
	padding: 6px 12px;
	font-size: 1.153846153846154em;         /* 15px / 13px */
    height: 1.466666666666667em;
}

input.text:focus,
input[type="text"]:focus,
input.password:focus,
input.url:focus,
textarea:focus,
select:focus {
	border-color: #c73485;
	-moz-box-shadow: 2px 2px 6px rgba(147,35,130,0.2), -2px -2px 6px rgba(147,35,130,0.2);
	-webkit-box-shadow: 2px 2px 6px rgba(147,35,130,0.2), -2px -2px 6px rgba(147,35,130,0.2);
	box-shadow: 2px 2px 6px rgba(147,35,130,0.2), -2px -2px 6px rgba(147,35,130,0.2);
}

textarea {
	width: 43%;
	min-height: 250px;
	line-height: 1.5;
}

.inline-field textarea {
	width: 90%;
}

.textarea-wide {
	width: 96%;
}

.textarea-compact {
	min-height: 150px;
}

.textarea-micro {
	min-height: 80px;
}


/* fehlerhafte Eingaben (nach Validierung) */

input.text.error,
input[type="text"].error,
input.password.error,
input.url.error,
textarea.error,
select.error {
	border-color: #ad2a26;
	background-color: #FFD5D7;
}


/* bad magic number to make second column align with concept of two inline-fields next to each other */
.csscolumns .radio-group.css-columns-two {
    width: 788px;
}

/* Workaround fuer Case 32735: Form nicht zu breit werden lassen */

#about-contacts-feedback input.text,
#about-contacts-feedback input[type="text"],
#about-contacts-feedback textarea {
    width: 210px;
}

#about-contacts-feedback select,
#about-contacts-feedback textarea {
    width: 456px;
}


/* -------------- HELPTEXTE -------------- */

.helptext-form-leading {
    margin-bottom: 44px;
}
                                                                                                                                                                                                                                                                                                                                                                  
.helptext {
	float: left;
	width: 180px;
	display: inline;
	font-size: 0.8461em;	/* 11px */
	color: #555;
}

.single-wide-input-field .helptext {
    width: 26%;
}

.helptext-block {
	font-size: 0.8461em;	/* 11px */
	color: #555;
	clear: both;
	padding-bottom: 11px;
}

/* Hilfetexte in applicationforms (altes Formularsystem) als Blockhilfe behandeln */
.applicationform .helptext {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    margin-top: 6px;
}

.applicationform .helptext p:last-of-type {
    margin-bottom: 0;
}

.top-aligned-labels .helptext {
	width: 135px;
}

.helptext .counter {
	font-weight: bold;
	font-size: 13px;
}

.helptext .counter-minus {
	color: red;
}

.groupname-submit .helptext-block {
	padding-left: 4px;
}



/* -------------- SUBMIT / CANCEL -------------- */

form .groupname-submit {
	border-bottom-width: 0;
}

.psd-content .groupname-submit {
	margin-top: 33px;
}

.groupname-submit label {
	display: none;
}

.groupname-submit .field {
	margin-left: 0;
}

.groupname-submit .button {
	float: left;
	margin-right: 1em;
}



/* -------------- BUTTONS -------------- */

.button {
	border: 1px solid #bbb;
	text-shadow: 1px 1px 1px #fff;
	font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
	font-weight: normal;
	color: #c73485;
	padding: 1px 8px 3px 8px;
	text-align: center;
	background-color: #f5f5f5;
	text-decoration: none;
	line-height: normal;
}

.button:hover,
.button:focus {
	border-color: #c73485;
	cursor: pointer;
	text-decoration: none;
}



/* spezielle Buttons */

.small-button {
	font-size: 0.8461em;
	line-height: 1.1;
	padding: 4px 6px 6px;
}

.large-button,
.huge-button {
	display: block;
}

.large-button,
.large-button-inline {
	padding: 5px 7px 6px 7px;
	margin-bottom: 11px;
	font-size: 1em;
}

.huge-button,
.huge-button-inline {
	padding: 10px 15px;
	font-size: 1.3847em;  /* 18px / 13px */
	line-height: 1.2;
}

.round-button {
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	-khtml-border-radius: 4px;
	background: #eee; /* old browsers */
	background: -moz-linear-gradient(top, #ffffff 0%, #f5f5f5 100%); /* firefox */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#f5f5f5)); /* webkit */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f5f5f5',GradientType=0 ); /* ie */
}

.square-label {
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	-khtml-border-radius: 2px;
	background: url(../img/modal-box-head-bg.png) no-repeat left bottom;
}

.delete-button {
	background: #ad2a26; /* old browsers */
	background: -moz-linear-gradient(top, #cf0404 0%, #ad2a26 100%); /* firefox */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cf0404), color-stop(100%,#ad2a26)); /* webkit */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cf0404', endColorstr='#ad2a26',GradientType=0 ); /* ie */
	color: #fff;
	text-shadow: none;
	border: 1px solid #ad2a26;
}

/* für gemeinsame baseline von primary und secondary action text manchmal notwendig */
.secondary-action-container {
    padding-top: 3px;
}

.secondary-action {
	font-family: Verdana, "GillSans", sans-serif;	/* kann auch auf <button> exisitieren, */
	font-size: 1em;									/* daher font styling auf base bringen */
	border: none;
	text-shadow: 0px 0px 0px;
	color: #333;
	background: none;
	text-decoration: underline;
	margin-top: 3px;
}

.dangerous-action {
	color: #ad2a26;
}

/* button resets für Aussehen als Link */
button.secondary-action {
	padding: 0;
	text-align: left;
	-moz-text-rendering: auto;
	text-rendering: auto;
}

/* fix for Firefox */
button.secondary-action::-moz-focus-inner {
  /* es gibt in einigen Versionen einen Extra-Innenabstand */
  padding: 0;
}

button.link {
	color: #c73485;
}

.secondary-action-leading {
	display: inline;
	float: left;
	margin-left: 11px;
	color: #555;
	line-height: normal;
	padding-right: 3px;
	margin-top: 3px;
}

.callforaction {
	display: block;
	width: 200px;
	float: left;
	line-height: 1.2;
	font-size: 1.3em;
	text-align: center;
	padding-top: 8px;
	padding-bottom: 10px;
	box-shadow:1px 1px 7px rgba(153, 153, 153, 0.3);
	-webkit-box-shadow:1px 1px 7px rgba(153, 153, 153, 0.3);
	-khtml-box-shadow:1px 1px 7px rgba(153, 153, 153, 0.3);
	-moz-box-shadow:1px 1px 7px rgba(153, 153, 153, 0.3);
}

.callforaction:active {
	position: relative;
	top: 1px;
	box-shadow:1px 1px 2px rgba(153, 153, 153, 0.3);
	-webkit-box-shadow:1px 1px 2px rgba(153, 153, 153, 0.3);
	-khtml-box-shadow:1px 1px 2px rgba(153, 153, 153, 0.3);
	-moz-box-shadow:1px 1px 2px rgba(153, 153, 153, 0.3);
}

.callforaction-centered {
	float: none;
	margin-right: auto;
	margin-left: auto;
}

.callforaction .call {
	display: block;
	font-size: 1.5em;
}

.callforaction .call-addendum {
	font-size: 0.792899408284024em; /* 13px / 17px */
	color: #444;
}

.callforaction-divider {
	float: left;
	display: inline;
	margin: 0 18px;
	font-size: 1.5em;
	font-style: italic;
	color: #555;
}

.callforaction-divider-linebreak {
	margin-top: 15px;
	margin-bottom: 15px;
}

.active-state-button {
	background: #c73485;
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c73485', endColorstr='#c73485',GradientType=0 ); /* ie */
	border-color: #c73485;
	text-shadow: none;
	color: #f5f5f5;
	font-weight: normal;
}

.active-state-button:hover,
.active-state-button:focus {
	cursor: auto;
}

.active-state-button:active {
	top: 0;
}


/* Button Bar */

.button-bar {
}

.button-bar li,
.button-bar .button {
	float: left;
	margin-right: 3px;
}


/* Newsletter subscription fixes */

.groupname-newsletter_registration_form_subscriptions .field label {
	width: 340px;
}


/* Downloads specific */

form .uploaded-file {
	padding-left: 17px;
	background: url(../img/icons/twg/document-blank.png) no-repeat left center;
}
